PHP 4.0b4 is broken when setting magic_quotes_gpc to Off (patch included)

From: Date: Mon, 21 Feb 2000 12:20:20 +0000
Subject: PHP 4.0b4 is broken when setting magic_quotes_gpc to Off (patch included)
Groups: php.version4 
Request: Send a blank email to php-version4+get-10566@lists.php.net to get a copy of this message
hi, everybody using using b4 should apply the attached patch! elsewise php will die if magick_quotes_gps is switched off in your php.ini file! this patch has been committed to CVS already. regards, tc

Index: php_variables.c =================================================================== RCS file: /repository/php4/php_variables.c,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- php_variables.c 2000/02/19 23:21:25 1.8 +++ php_variables.c 2000/02/21 12:13:27 1.9 @@ -37,7 +37,7 @@ if (PG(magic_quotes_gpc)) { new_entry.value.str.val = php_addslashes(strval, new_entry.value.str.len, &new_entry.value.str.len, 0); } else { - strval = estrndup(strval, new_entry.value.str.len); + new_entry.value.str.val = estrndup(strval, new_entry.value.str.len); } new_entry.type = IS_STRING;
« previous php.version4 (#10566) next »