Hello, I'm Erwin. I'm a Web Developer.
See my little experiences on my blog.

Deprecated Functions List on PHP 5.3.x

Posted: March 3rd, 2010 | Author: erwin | Filed under: PHP | Tags: | No Comments »

I try to install my old application on new the version of XAMPP, but my application didn’t working correctly with the new version of PHP, it caused by deprecated function on the new version of PHP 5.3.x.

In my application just shown PHP error message.

“SPLIT() function has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 6.0.0. Relying on this feature is highly discouraged.”

Then, I must change SPLIT() using EXPLODE() function.


<?php

//to get categories and tags
$comma=”,”;//separate by commas
$categories=explode($comma, $row->caName);
$tags=explode($comma, $row->taName);?>

PHP 5.3.0 introduces two new error levels: E_DEPRECATED and E_USER_DEPRECATED. The E_DEPRECATED error level is used to indicate that a function or feature has been deprecated. The E_USER_DEPRECATED level is intended for indicating deprecated features in user code, similarly to the E_USER_ERROR and E_USER_WARNINGlevels.

The following is a list of deprecated INI directives. Use of any of these INI directives will cause an E_DEPRECATED error to be thrown at startup.

Deprecated functions:

Deprecated features:

  • Assigning the return value of new by reference is now deprecated.
  • Call-time pass-by-reference is now deprecated.
  • The use of {} to access string offsets is deprecated. Use [] instead.

Impact:

  • Code Igniter 1.7.1 cannot working because of this deprecated function. Please update to Code Igniter 1.7.2
  • Some Wordpress function deprecated. Please see this function reference.

See more about PHP 5.3.x migration on PHP Manual.



Leave a Reply