From:             jason at amp-design dot net
Operating system: CentOS 3
PHP version:      5CVS-2005-04-15 (dev)
PHP Bug Type:     Scripting Engine problem
Bug description:  strval() fails to zero terminate strings

Description:
------------
strval() does not terminate strings with 0 / NULL characters. The direct
return value for var_dump() is totally garbled. When this result is passed
to another internal PHP function this returns random garabe that varies
with each request.

Reproduce code:
---------------
<?php
var_dump(strval ('en')); die();
?>

Expected result:
----------------
string(2) "

Actual result:
--------------
string(2) "

-- 
Edit bug report at http://bugs.php.net/?id=32719&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=32719&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=32719&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=32719&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=32719&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=32719&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=32719&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=32719&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=32719&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=32719&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=32719&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=32719&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=32719&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=32719&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=32719&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=32719&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=32719&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=32719&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=32719&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=32719&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=32719&r=mysqlcfg

Reply via email to