Dit is het hele lijstje met verbeteringen:
10 Jun 2005, PHP 5.1 Beta 1
- Added user opcode API that allow overloading of opcode handlers. (Dmitry)
- Opcodes ZEND_NEW, ZEND_JMP_NO_CTOR, ZEND_INIT_CTOR are mefget into one
ZEND_NEW. (Dmitry)
- Upgraded PCRE library to version 5.0. (Andrei)
- Added an optional remove old session parameter to session_regenerate_id(). (Ilia)
- Added array type hinting. (Dmitry)
- Removed php_check_syntax() function which never worked properly. (Ilia)
- Removed garbage manager in Zend Engine which results in more aggressive
freeing of data. (Dmitry, Andi)
- String offsets were re-designed and re-implemented (Dmitry)
- Moved extensions to PECL:
. ext/cpdf (Tony, Derick)
. ext/dio (Jani, Derick)
. ext/fam (Jani, Derick)
. ext/ingres_ii (Jani, Derick)
. ext/mnogosearch (Jani, Derick)
. ext/w32api (Jani, Derick)
. ext/yp (Jani, Derick)
- Changed stream_filter_(ap|pre)pend() to return resource. (Sara)
- Changed mysqli_exception and sqlite_exception to use RuntimeException as base
if SPL extension is present. (Georg, Marcus)
- Improved interactive mode of PHP CLI (php -a). (Johannes, Marcus)
- Improved support for embedded server in mysqli. (Georg)
- Improved performance of:
. general execution/compilation. (Andi, Thies, Sterling, Dmitry, Marcus)
. switch() statement. (Dmitry)
. several array functions. (Marcus)
. virtual path handling by adding a realpath() cache. (Andi)
. variable fetches. (Andi)
. magic method invocations. (Marcus)
- Improved extension SPL (Marcus).
. added standard hierarchy of Exception classes
. added interface Countable
. added interfaces Subject and Observer
. added spl_autoload*() functions
. converted several 5.0 examples into c code
. added class FileObject
. added possibility to use a string with class_parents() and
class_implements(). (Andrey)
- Added the tidy_get_opt_doc() function to return documentation for
configuration options in tidy. (Patch by: nlopess@php.net)
- Added support for .cc files in extensions. (Brian)
- Added imageconvolution() function which can be used to apply a custom 3x3
matrix convolution to an image. (Pierre)
- Added optional first parameter to XsltProcessor: :registerPHPFunctions to only
allow certain functions to be called from XSLT. (Christian)
- Added the ability to override the autotools executables used by the buildconf
script via the PHP_AUTOCONF and PHP_AUTOHEADER environmental variables. (Jon)
- Added several new functions to support the PostgreSQL v3 protocol introduced
in PostgreSQL 7.4. (Christopher)
. pg_transaction_status() - in-transaction status of a database connection.
. pg_query_params() - execution of parameterized queries.
. pg_prepare() - prepare named queries.
. pg_execute() - execution of named prepared queries.
. pg_send_query_params() - async equivalent of pg_query_params().
. pg_send_prepare() - async equivalent of pg_prepare().
. pg_send_execute() - async equivalent of pg_execute().
. pg_result_error_field() - highly detailed error information,
most importantly the SQLSTATE error code.
. pg_set_error_verbosity() - set verbosity of errors.
- Improved extension mysqli (Georg)
. added constructor for mysqli_stmt and mysqli_result classes
. added new function mysqli_get_charset
. added new class mysqli_driver
. added new class mysqli_warning
. added new class mysqli_execption
. added new class mysqli_sql_exception
- Added optional fifth parameter "count" to preg_replace_callback() and
preg_replace() to count the number of replacements made. FR #32275. (Andrey)
- Added optional third parameter "charlist" to str_word_count() which
contains characters to be considered as word part. FR #31560. (Andrey, Ilia)
- Added interface Serializeable. (Stanislav, Marcus)
- Added pg_field_type_oid() PostgreSQL function. (mauroi at digbang dot com)
- Added zend_declare_property_...() and zend_update_property_...()
API functions for bool, double and binary safe strings. (Hartmut)
- Added possibility to access INI variables from within .ini file. (Andrei)
- Added variable $_SERVER['REQUEST_TIME'] containing request start time. (Ilia)
- Added optional float parameter to gettimeofday(). (Ilia)
- Added apache_reset_timeout() Apache1 function. (Rasmus)
- Added sqlite_fetch_column_types() 3rd argument for arrays. (Ilia)
- Added optional offset parameter to stream_get_contents() and
file_get_contents(). (Ilia)
- Added optional maxlen parameter to file_get_contents(). (Ilia)
- Added SAPI hook to get the current request time. (Rasmus)
- Added new functions:
. array_diff_key() (Andrey)
. array_diff_ukey() (Andrey)
. array_intersect_key() (Christiano Duarte)
. array_intersect_ukey() (Christiano Duarte)
. array_product() (Andrey)
. DomDocumentFragment::appendXML() (Christian)
. fputcsv() (David Sklar)
. htmlspecialchars_decode() (Ilia)
. inet_pton() (Sara)
. inet_ntop() (Sara)
. mysqli::client_info property (Georg)
. posix_access() (Magnus)
. posix_mknod() (Magnus)
. SimpleXMLElement: :registerXPathNamespace() (Christian)
. stream_context_get_default() (Wez)
. stream_socket_enable_crypto() (Wez)
. stream_wrapper_unregister() (Sara)
. stream_wrapper_restore() (Sara)
. stream_filter_remove() (Sara)
. time_sleep_until() (Ilia)
- Added DomDocument::$recover property for parsing not well-formed
XML Documents. (Christian)
- Added Cursor support for MySQL 5.0.x in mysqli (Georg)
- Added proxy support to ftp wrapper via http. (Sara)
- Added MDTM support to ftp_url_stat. (Sara)
- Added zlib stream filter support. (Sara)
- Added bz2 stream filter support. (Sara)
- Added HTTP/1.1 and chunked encoding support to http:// wrapper. (Sara)
- Added max_redirects context option that specifies how many HTTP
redirects to follow. (Ilia)
- Added support of parameter=>value arrays to
xsl_xsltprocessor_set_parameter(). (Tony)
[... en een hoop fixes ...]
Weet iemand meer te vertellen over deze nieuwe feature?
- Added array type hinting. (Dmitry)
Het leek me wel handig maar heb er niets over kunnen vinden.
@zoeloelip: Ja duh... Maar
hoe?! Wat is de syntax?
[edit] Heb het gevonden, gewoon een 'array' sleutelwoord voor de parameter zetten...