Bug #14273: When I use 'urlencode' in a for loop the mod_php core dumps'

From: Date: Wed, 28 Nov 2001 22:23:08 +0000
Subject: Bug #14273: When I use 'urlencode' in a for loop the mod_php core dumps'
Groups: php.dev 
Request: Send a blank email to php-dev+get-71962@lists.php.net to get a copy of this message
From: FitzpatrickB@metrocall.com Operating system: Linux PHP version: 4.0.6 PHP Bug Type: URL related Bug description: When I use 'urlencode' in a for loop the mod_php core dumps' This works!!! $cnt = count($arrayA); for ( $ix=0 ; $ix < $cnt; $ix++ ) { $aurl = mysql_query("select name, url from sites where code='".$arrayA[$ix][1]."'"); list($name$url) = mysql_fetch_row($aurl); mysql_free_result($aurl); echo "$url $name"; } This Fails!! $cnt = count($arrayA); for ( $ix=0 ; $ix < $cnt; $ix++ ) { $aurl = mysql_query("select name, url from sites where code='".$arrayA[$ix][1]."'"); list($name$url) = mysql_fetch_row($aurl); mysql_free_result($aurl); echo urlencode($url)," $name"; } Only change is addition of urlencode, What gives? -- Edit bug report at: http://bugs.php.net/?id=14273&edit=1

« previous php.dev (#71962) next »