ID: 45441 Updated by: [EMAIL PROTECTED] Reported By: victor dot stinner at haypocalc dot com -Status: Open +Status: Verified Bug Type: Reproducible crash -Operating System: Linux (Ubuntu Gutsy) +Operating System: * PHP Version: 5.2CVS-2008-07-06 (snap)
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
