ID: 38961
Updated by: [EMAIL PROTECTED]
Reported By: nikolas dot hagelstein at gmail dot com
-Status: Open
+Status: Feedback
Bug Type: Reproducible crash
Operating System: Netbsd 3.0.1 AMD64
PHP Version: 5.1.6
New Comment:
Can you please try the latest CVS, it has a 64bit fix that may
fix the crash you are experiencing.
Previous Comments:
------------------------------------------------------------------------
[2006-09-26 15:35:34] nikolas dot hagelstein at gmail dot com
So it is eigther a system specific issue (i was able to reproduce it on
2 maschines) or you did not used an utf8 file ;)
------------------------------------------------------------------------
[2006-09-26 15:32:42] [EMAIL PROTECTED]
Works perfectly fine: string(0) ""
------------------------------------------------------------------------
[2006-09-26 15:16:57] nikolas dot hagelstein at gmail dot com
I can not try that since i am not able to submit real utf8 chars
through my shell.
test.php
<?php
echo "crash:".metaphone('รถ');
?>
php test.php
results in a segmentation fault test.php needs to be an UTF8 file.
file -i test.php
test.php: text/plain; charset=utf-8
------------------------------------------------------------------------
[2006-09-26 15:09:28] [EMAIL PROTECTED]
./sapi/cli/php -r
'var_dump(metaphone("русский
язык UTF8"));'
string(3) "UTF"
------------------------------------------------------------------------
[2006-09-26 15:06:14] nikolas dot hagelstein at gmail dot com
Starting program: /usr/pkg/bin/php test.php
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
Program received signal SIGSEGV, Segmentation fault.
0x000000000050c86b in zif_metaphone ()
(gdb) bt
#0 0x000000000050c86b in zif_metaphone ()
#1 0x000000000050c761 in zif_metaphone ()
#2 0x000000000059f489 in execute ()
#3 0x000000000059ed20 in execute ()
#4 0x0000000000585a06 in zend_execute_scripts ()
#5 0x000000000054c169 in php_execute_script ()
#6 0x00000000005eac84 in main ()
#7 0x00000000004407a8 in ___start ()
(gdb)
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/38961
--
Edit this bug report at http://bugs.php.net/?id=38961&edit=1