ID: 32719 Updated by: [EMAIL PROTECTED] Reported By: jason at amp-design dot net -Status: Open +Status: Closed Bug Type: Zend Engine 2 problem Operating System: CentOS 3 PHP Version: 5CVS-2005-04-15 (dev) New Comment:
This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2005-04-15 15:51:49] jason at amp-design dot net Sorry, for some reason the Expected result: ---------------- string(2) " Actual result: -------------- string(2) " stuff is all wrong..... string(2) "�^" Warning: String is not zero-terminated (ZZZZ�̏*�̏*ZZZZ) (source: /root/php/php5-200504121430/Zend/zend_variables.h:35) in /var/www/vhosts/martinco.com/httpdocs/phpinfo.php on line 2 is the result I get. I expect string(2) "en" Sorry about that ------------------------------------------------------------------------ [2005-04-15 15:49:34] jason at amp-design dot net 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 this bug report at http://bugs.php.net/?id=32719&edit=1