6
« 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
Line 154: $parser = &new Mail_RFC822();
replace with
Line 154: $parser = new Mail_RFC822();
PEAR.php
Line 563: $a = &new $ec($code, $mode, $options, $userinfo);
Line 566: $a = &new $ec($message, $code, $mode, $options, $userinfo);
replace with
Line 563: $a = new $ec($code, $mode, $options, $userinfo);
Line 566: $a = new $ec($message, $code, $mode, $options, $userinfo);
show_join.php
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 with
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
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 with
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
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 with
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
Line 035: $instance =& new $object;
replace with
Line 035: $instance = new $object;