ID:               45441
 Updated by:       [EMAIL PROTECTED]
 Reported By:      victor dot stinner at haypocalc dot com
-Status:           Verified
+Status:           Feedback
 Bug Type:         Reproducible crash
 Operating System: *
 PHP Version:      5.2CVS-2008-07-06 (snap)
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows (zip):
 
  http://snaps.php.net/win32/php5.3-win32-latest.zip

For Windows (installer):

  http://snaps.php.net/win32/php5.3-win32-installer-latest.msi




Previous Comments:
------------------------------------------------------------------------

[2008-07-06 23:30:21] victor dot stinner at haypocalc dot com

Description:
------------
count_chars() function converts the second argument ($mode) using 
convert_to_long_ex(). If $input and $mode are both a reference to 
the same variable, PHP crashs with a segfault.

Reproduce code:
---------------
<?php
$text = 'Hello World!';
$n = count_chars(&$text, &$text);
print_r($n);
?>



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=45441&edit=1

Reply via email to