tel8618217223380 / prado3

Automatically exported from code.google.com/p/prado3
Other
0 stars 0 forks source link

Usage of deprecated function split() #146

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run any Prado application under PHP 5.3 or later

What is the expected output? What do you see instead?
The program is expected to run normal. However, you get all kinds of 
warnings and errors, due to Prado libraries using the function split() 
which is deprecated as of PHP 5.3. 

What version of the product are you using? On what operating system?
PHP/5.3.RC2

Please provide any additional information below.
The solution is to replace all split() calls with explode()s, which are 
faster anyway.

The problem might also affect a lot of 3rd party Prado components, too 
(like MEffectPanel).

Original issue reported on code.google.com by google...@pcforum.hu on 25 Apr 2009 at 4:22

GoogleCodeExporter commented 9 years ago
Fixed in framework itself.

For 3rd party components you have to fix it by your own or contact vendor.

BTW: Have you found a list of deprecated 5.3 functions?

Original comment by GODZilla...@gmail.com on 26 Apr 2009 at 6:28

GoogleCodeExporter commented 9 years ago
The deprecated functions and their preferred counterparts/alternatives are:
split() => preg_split(), ereg() => preg_match() ereg_replace() => 
preg_replace() 

When no regular expressions are required split() can be replaced with 
explode(). 

Also the latter functions are usually faster anyway than the deprecated ones, 
so 
even when PHP 5.3 compatibility isn't required or a priority, it's advisable to 
make 
the replacements/modifications.

Original comment by google...@pcforum.hu on 26 Apr 2009 at 1:03

GoogleCodeExporter commented 9 years ago
Also see: http://wiki.php.net/doc/scratchpad/upgrade/53 for other changes.

Original comment by google...@pcforum.hu on 26 Apr 2009 at 1:17

GoogleCodeExporter commented 9 years ago
Issue 190 has been merged into this issue.

Original comment by rojaro@gmail.com on 14 Jul 2009 at 9:34