1
Fanlistings Chit-Chat / Enth3 / Codesort2 and php 5.3
« on: December 05, 2010, 04:01:30 PM »
I noticed today that my webhost had upgraded the php server to php 5.3 and I was getting several warnings in my scripts, because some of the code was deprecated.
For those with the same problems, I've already fixed the following in the script and now it works again.
Enth3
Mail.php
PEAR.php
show_join.php
show_lostpass.php
show_update.php
Codesort 2
functions.php
For those with the same problems, I've already fixed the following in the script and now it works again.
Enth3
Mail.php
Code: [Select]
Line 154: $parser = &new Mail_RFC822();
replace withCode: [Select]
Line 154: $parser = new Mail_RFC822();
PEAR.php
Code: [Select]
Line 563: $a = &new $ec($code, $mode, $options, $userinfo);
Line 566: $a = &new $ec($message, $code, $mode, $options, $userinfo);
replace withCode: [Select]
Line 563: $a = new $ec($code, $mode, $options, $userinfo);
Line 566: $a = new $ec($message, $code, $mode, $options, $userinfo);
show_join.php
Code: [Select]
Line 139: $matchstring = "^([0-9a-zA-Z]+[-._+&])*[0-9a-zA-Z]+" .
"@([-0-9a-zA-Z]+[.])+[a-zA-Z]{2,6}$";
Line 141: if( $_POST['email'] && ereg( $matchstring, $_POST['email'] ) )
replace withCode: [Select]
Line 139: $matchstring = "/^([0-9a-zA-Z]+[-._+&])*[0-9a-zA-Z]+@([-0-9a-zA-Z]+[.])+[a-zA-Z]{2,6}$/";
Line 141: if( $_POST['email'] && preg_match( $matchstring, $_POST['email'] ) )
show_lostpass.php
Code: [Select]
Line 118: $matchstring = "^([0-9a-zA-Z]+[-._+&])*[0-9a-zA-Z]+" .
"@([-0-9a-zA-Z]+[.])+[a-zA-Z]{2,6}$";
Line 129: else if( !ereg( $matchstring, $_POST['email'] ) )
replace withCode: [Select]
Line 118: $matchstring = "/^([0-9a-zA-Z]+[-._+&])*[0-9a-zA-Z]+@([-0-9a-zA-Z]+[.])+[a-zA-Z]{2,6}$/";
Line 129: else if( !preg_match( $matchstring, $_POST['email'] ) )
show_update.php
Code: [Select]
Line 086: $matchstring = "^([0-9a-zA-Z]+[-._+&])*[0-9a-zA-Z]+" .
"@([-0-9a-zA-Z]+[.])+[a-zA-Z]{2,6}$";
Line 089: if( !ereg( $matchstring, clean( $_POST['email'] ) ) ||
replace withCode: [Select]
Line 086: $matchstring = "/^([0-9a-zA-Z]+[-._+&])*[0-9a-zA-Z]+@([-0-9a-zA-Z]+[.])+[a-zA-Z]{2,6}$/";
Line 089: if( !preg_match( $matchstring, clean( $_POST['email'] ) ) ||
Codesort 2
functions.php
Code: [Select]
Line 035: $instance =& new $object;
replace withCode: [Select]
Line 035: $instance = new $object;