#37206 [NEW]: hexdec can not handle NAN and INF problem
From: sqchen at cititz dot net Operating system: redhat 7.3 PHP version: 5.1.2 PHP Bug Type: *Math Functions Bug description: hexdec can not handle NAN and INF problem Description: please see file ext/standard/math.c and function PHPAPI int _php_math_basetozval(zval *arg, int base, zval *ret), It's obvious that it does not consider the NAN and INF problem Reproduce code: --- ?php hexdec(INF); hexdec(NAN); ? Expected result: to be decided to be decided Actual result: -- 15 (actually It just convert f to decimal) 10 (covert A to decimal) -- Edit bug report at http://bugs.php.net/?id=37206edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37206r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=37206r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37206r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=37206r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=37206r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=37206r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=37206r=needscript Try newer version:http://bugs.php.net/fix.php?id=37206r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=37206r=support Expected behavior:http://bugs.php.net/fix.php?id=37206r=notwrong Not enough info: http://bugs.php.net/fix.php?id=37206r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=37206r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=37206r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37206r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=37206r=dst IIS Stability:http://bugs.php.net/fix.php?id=37206r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=37206r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=37206r=float No Zend Extensions: http://bugs.php.net/fix.php?id=37206r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=37206r=mysqlcfg
#37077 [NEW]: stream_socket_server() memory leaks when the port is not allowed
From: sqchen at cititz dot net Operating system: redhat 7.3 PHP version: 5.1.2 PHP Bug Type: Streams related Bug description: stream_socket_server() memory leaks when the port is not allowed Description: stream_socket_server() memory leaks when the port is not allowed such as 23 and when the php version is compiled by --enable-debug Reproduce code: --- ?php stream_socket_server(tcp://127.0.0.1:23); ? ~ Actual result: -- Warning: stream_socket_server(): unable to connect to tcp://127.0.0.1:23 (Permission denied) in /home/sqchen/ty.php on line 2 [Fri Apr 14 11:02:28 2006] Script: 'ty.php' /home/sqchen/sqchen/php-5.1.2/main/network.c(938) : Freeing 0x083F2E2C (18 bytes), script=ty.php === Total 1 memory leaks detected === -- Edit bug report at http://bugs.php.net/?id=37077edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37077r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=37077r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37077r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=37077r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=37077r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=37077r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=37077r=needscript Try newer version:http://bugs.php.net/fix.php?id=37077r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=37077r=support Expected behavior:http://bugs.php.net/fix.php?id=37077r=notwrong Not enough info: http://bugs.php.net/fix.php?id=37077r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=37077r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=37077r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37077r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=37077r=dst IIS Stability:http://bugs.php.net/fix.php?id=37077r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=37077r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=37077r=float No Zend Extensions: http://bugs.php.net/fix.php?id=37077r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=37077r=mysqlcfg