ID: 38961
User updated by: nikolas dot hagelstein at gmail dot com
Reported By: nikolas dot hagelstein at gmail dot com
-Status: Feedback
+Status: Open
Bug Type: Reproducible crash
Operating System: Netbsd 3.0.1 AMD64
PHP Version: 5.1.6
New Comment:
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 ;)
Previous Comments:
------------------------------------------------------------------------
[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)
------------------------------------------------------------------------
[2006-09-26 14:09:57] [EMAIL PROTECTED]
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc. If the script requires a
database to demonstrate the issue, please make sure it creates
all necessary tables, stored procedures etc.
Please avoid embedding huge scripts into the report.
------------------------------------------------------------------------
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