oseawey / timthumb

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

For those with PHP Version 5.3.1 who receive a Deprecated error for the "split()" function #95

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. When you upgrade to php 5.3.1 the function split is deprecated

What is the expected output? What do you see instead?
Deprecated: Function split() is deprecated 

What version of the product are you using? On what operating system?
PHP Version 5.3.1
Windows 7
Xampp for windows

Please provide any additional information below:

The only thing you need to do to get timthumb working on this php version,
is to replace the "split()" function with "explode()" 

find the line:
$frags = split( "/.", $_REQUEST['src'] );

and replace with $frags = explode( ".", $_REQUEST['src'] );

remember to delete the backslash inside the quotes

http://wordpress.org/support/topic/348555

Original issue reported on code.google.com by hazel...@gmail.com on 1 Jun 2010 at 3:52

GoogleCodeExporter commented 9 years ago
Hi - this was fixed a while ago. Update to the latest version of the code and 
it will be fine.

Thakns

Original comment by BinaryMoon on 18 Jul 2010 at 7:44