# A list of PHP 6 changes from the old documentation

- Thread: https://externals.io/message/47855
- Original archive: https://news-web.php.net/php.internals/47855
- Started by Philip Olson on 2010-04-10T07:07:52+00:00
- Messages: 5
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #47855 — Philip Olson — 2010-04-10T07:07:52+00:00

URL: https://externals.io/message/47855#47855

Here's a list of stuff we documented for [the old] PHP 6. This does _not_ necessarily reflect what was implemented, or what was going to be implemented, but it only refers to what did end up in the documentation (but is now commented out or removed). 

Please determine which features/ideas are dead (or on extended holiday) versus which will end up in the current trunk.

Again, this only refers to stuff that was found within the PHP Manual for PHP 6. Of course, not every perceived PHP 6 change was documented


Functions:
------------------------------
*** New:
- Extension: i18n (part of ext/unicode I believe)
- Extension: unicode
- `gzdecode()`
- idn_to_unicode() (via ext/intl)
- is_binary()
- is_buffer()
- is_unicode()
- stream_encoding()

*** Changed:
- GD extension: removed support for GD/FreeType 1.x
- declare(): encoding directive informs scanner
- array sorting: `setlocale()` vs i18n_loc_set_default() for `SORT_LOCALE_STRING` 
- `file_get_contents()`: 'use_include_path' parameter changed to 'flags', with many added options
- `proc_open()`: added 'context' and 'binary_pipes' as other_options
- `ob_start()`: chunk_size of 1 no longer means '4096'
- `stream_resolve_include_path()`: Added context parameter
- `chr()`: now uses codepoint as input

*** Removed:
- Extension: ereg
- define_syslog_variables()
- mysql_db_query()
- mysql_escape_string()
- session_register()
- session_unregister()
- session_is_registered()
- set_magic_quotes_runtime()

INI Directives:
------------------------------
*** New:
- mysql.allow_local_infile
- mysql.cache_size
- mysqli.allow_local_infile
- mysqli.cache_size
- mysqlnd.collect_statistics
- sqlite.iso8859.locale
- unicode.fallback_encoding
- unicode.filesystem_encoding
- unicode.http_input_encoding
- unicode.output_encoding
- unicode.runtime_encoding
- unicode.script_encoding
- unicode.stream_encoding

*** Changed:
- allow_url_fopen (PHP_INI_ALL to PHP_INI_SYSTEM)
- error_reporting (E_STRICT part of E_ALL)

*** Removed:
- allow_call_time_pass_reference
- define_syslog_variables
- detect_unicode
- enable_dl
- highlight.bg
- magic_quotes_gpc
- magic_quotes_runtime
- magic_quotes_sybase
- pdo_odbc.db2_instance_name
- register_globals
- register_long_arrays
- safe_mode
- safe_mode_allowed_env_vars
- safe_mode_exec_dir
- safe_mode_gid
- safe_mode_include_dir
- safe_mode_protected_env_vars
- session.bug_compat_42
- session.bug_compat_warn

Other:
------------------------------
- (binary) type casting/juggling
- `FILE_BINARY` and `FILE_TEXT` constants for file functions have uses

Regards,
Philip

---

## #47856 — Pierre Joye — 2010-04-10T09:39:22+00:00

URL: https://externals.io/message/47855#47856 · In reply to: #47855

hi Philip,





> - idn_to_unicode() (via ext/intl)

The IDN functions are in 5.3 as well so you can keep them in the documentation.

> *** Changed:
> - GD extension: removed support for GD/FreeType 1.x

I will merge this change to trunk as well. Not sure how you plan to
document trunk, any idea already?


Thanks for your work and this update :)

Cheers,
-- 
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

---

## #47857 — johannes@php.net — 2010-04-10T09:54:03+00:00

URL: https://externals.io/message/47855#47857 · In reply to: #47856

> hi Philip,
> 
> 
> 
> 
> 
> > […]
> 
> The IDN functions are in 5.3 as well so you can keep them in the documentation.

Not this one. This one would return a Utf-16 unicode string type. We
have other functions returning ASCII (punicode) and binary PHP strings
(utf-8 encoded or such). Only the later ones are in 5.3.

johannes

---

## #47858 — Pierre Joye — 2010-04-10T10:19:37+00:00

URL: https://externals.io/message/47855#47858 · In reply to: #47857

2010/4/10 Johannes Schlüter <johannes@php.net>:
> 
> > […]
>
> Not this one. This one would return a Utf-16 unicode string type. We
> have other functions returning ASCII (punicode) and binary PHP strings
> (utf-8 encoded or such). Only the later ones are in 5.3.

Ah right.

Cheers,
-- 
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

---

## #47861 — Philip Olson — 2010-04-10T14:02:48+00:00

URL: https://externals.io/message/47855#47861 · In reply to: #47856

> > […]
> 
> I will merge this change to trunk as well. Not sure how you plan to
> document trunk, any idea already?

Nope, especially given that we're unsure what trunk means today. But keeping a list around somewhere sound fair, probably near the migration guides.

And don't worry about the documentation team starting too early this time because even though PHP 6 did feel real at one point, something isn't really real until an RC release exists. Or an alpha release, on a good day.

Regards,
Philip
