#4773 [Opn->]: Null character after key name in uksort
| From: | hholzgra@php.net | Date: | Tue, 01 Oct 2002 20:02:24 +0000 |
| Subject: | #4773 [Opn->]: Null character after key name in uksort | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-21109@lists.php.net to get a copy of this message | ||
ID: 4773
Updated by: hholzgra@php.net
Reported By: radekg@elektrownia-lagisza.com.pl
-Status: Open
+Status: Won\'t fix
Bug Type: Misbehaving function
Operating System: Solaris 2.6, probably all
PHP Version: 3.0.16
New Comment:
We are sorry, but can not support PHP 3 related problems anymore.
Momentum is gathering for PHP 5, and we think supporting PHP 3 will
lead to a waste of resources which we want to put into getting PHP 5
ready. Ofcourse PHP 4 will will continue to be supported for the
forseeable future.
looks fine in php 4.2.3
Previous Comments:
------------------------------------------------------------------------
[2000-06-02 13:48:55] radekg@elektrownia-lagisza.com.pl
SCRIPT
------
function cmpfunc($a,$b)
{
echo "*$a**$b*<BR>";
echo strtr("*$a**$b*<BR>","\0","_");
if ($a<$b) return -1;
else if ($a==$b) return 0;
else return 1;
}
$a=array("a" => 1, "b" => 2);
uksort($a,cmpfunc);
OUTPUT
------
*a
*a_**b_*
*a
*a_**b_*
CONFIGURE
---------
./configure --with-apxs=/usr/local/bin/apxs \
--with-config-file-path=/usr/local/apache/conf \
--with-pgsql=/usr/local/ --with-gd=$HOME/ \
--with-snmp --with-sysvsem --with-sysvshm
Apache version: 1.3.11
The same thing happens on Linux with PHP 3.0.12.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=4773&edit=1