From: [EMAIL PROTECTED]
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
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]