diff --git a/appendices/migration5.xml b/appendices/migration5.xml index 19352e6d53..65d8efa5d9 100755 --- a/appendices/migration5.xml +++ b/appendices/migration5.xml @@ -1,5 +1,5 @@ - + Migrating from PHP 4 to PHP 5 @@ -70,6 +70,45 @@ Classes must be declared before used. + + + + <function>strrpos</function> and <function>strripos</function> now + use the entire string as a needle + + +]]> + + + + + The following example was valid in PHP 4, although it will produce a fatal + error in PHP 5. + + + + Classes must be declared before used + +barfu(); + +class fubar { + function barfu() { + echo 'fubar'; + } +} +?> +]]> + + +
@@ -188,6 +227,10 @@ Action application/x-httpd-php "/php/php-cgi.exe" ibase_commit_ret - Commit a transaction without closing it + + ibase_db_info - Request statistics about a + database + ibase_drop_db - Drops a database @@ -202,6 +245,10 @@ Action application/x-httpd-php "/php/php-cgi.exe" ibase_gen_id - Increments the named generator and returns its new value + + ibase_maintain_db - Execute a maintenance command + on the database server + ibase_name_result - Assigns a name to a result set @@ -217,6 +264,14 @@ Action application/x-httpd-php "/php/php-cgi.exe" ibase_restore - Initiates a restore task in the service manager and returns immediately + + ibase_rollback_ret - Rollback transaction and + retain the transaction context + + + ibase_server_info - Request statistics about a + database + ibase_service_attach - Connect to the service manager @@ -314,6 +369,10 @@ Action application/x-httpd-php "/php/php-cgi.exe" dbase_get_header_info - Get the header info of a dBase database + + dbx_fetch_row - Fetches rows from a query-result + that had the DBX_RESULT_UNBUFFERED flag set + file_put_contents - Write a string to a file @@ -346,6 +405,10 @@ Action application/x-httpd-php "/php/php-cgi.exe" exif_thumbnail, exif_imagetype + + imagefilter - Applies Filter an image using a + custom angle + imap_getacl - Gets the ACL for a given mailbox @@ -376,6 +439,14 @@ Action application/x-httpd-php "/php/php-cgi.exe" proc_nice - Change the priority of the current process + + pspell_config_data_dir - Change location of + language data files + + + pspell_config_dict_dir - Change location of the + main word list + setrawcookie - Send a cookie with no url encoding of the value @@ -438,6 +509,39 @@ Action application/x-httpd-php "/php/php-cgi.exe"
+
+ Databases + + There were some changes in PHP 5 regarding databases (MySQL and SQLite). + + + In PHP 5 the MySQL client libraries are not bundled, because of licence + problems and some others. For more information, read the FAQ entry. + + + There is also a new extension, MySQLi (Improved + MySQL), which is designed to work with MySQL 4.1 and above. + + + Since PHP 5, the SQLite extension is + built-in PHP. SQLite is embeddable SQL database engine and is not a + client library used to connect to a big database server (like MySQL or + PostgreSQL). The SQLite library reads and writes directly to and from the + database files on disk. + +
+ +
+ New Object Model + + In PHP 5 there is a new Object Model. PHP's handling of objects has been + completely rewritten, allowing for better performance and more features. + Please read http://www.php.net/zend-engine-2.php + for more info. + +