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() forSORT_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
andFILE_TEXT
constants for file functions have uses
Regards,
Philip
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
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.
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
2010/4/10 Johannes Schlüter johannes@php.net:
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.
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
*** 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?
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