Migrating from PHP4 to PHP5

PHP 5 Gotchas – Some Common Error Messages

Call-time pass-by-reference has been deprecated
calling a variable by reference during the function call instead of in the function definition:

$conn =&getConnection();
OCIBindByName($stmt,"EMPLID",&$eeid, strlen($eeid) )

script declaration required (may be php.ini or apache setting)

variable declaration
initialize variables // set variables to null or blank

Some Other Gotchas

MYSQL separated from base PHP5
have to compile MySQL support into PHP now just like other db’s

Guides and Documentation

PHP.NET – Migrating from PHP 4 to PHP 5

http://us3.php.net/migration5/

Chapter 60. Migrating from PHP 4 to PHP 5

http://www.phpbuilder.com/manual/en/faq.migration5.php

A PHP V5 migration guide

http://www.ibm.com/developerworks/library/os-php-v5migr/index.html

This entry was posted in MySQL, WebTechnology. Bookmark the permalink.

Comments are closed.