|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-04-14 09:13 UTC] jani@php.net
[2009-04-14 09:15 UTC] jani@php.net
[2009-04-14 09:20 UTC] jani@php.net
[2009-04-14 09:26 UTC] dsp@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 20:00:01 2025 UTC |
Description: ------------ Passing -1 to the count argument of dcngettext leads to a PHP core dump on OpenSolaris. Reproduce code: --------------- make test TESTS=ext/gettext/tests will crash when testing dcngettext.phpt Expected result: ---------------- no crash Actual result: -------------- Program received signal SIGSEGV, Segmentation fault. 0xfedaaa76 in _real_gettext_u () from /lib/libc.so.1 (gdb) bt #0 0xfedaaa76 in _real_gettext_u () from /lib/libc.so.1 #1 0xfeda8d7a in dcngettext () from /lib/libc.so.1 #2 0x080f8692 in zif_dcngettext (ht=5, return_value=0x83d4b0c, return_value_ptr=0x0, this_ptr=0x0, return_value_used=1) at /export/home/dsp/dev/c/php52/ext/gettext/gettext.c:356 #3 0x08275389 in zend_do_fcall_common_helper_SPEC (execute_data=0x8047320) at zend_vm_execute.h:200 #4 0x08274b39 in execute (op_array=0x83d5090) at zend_vm_execute.h:92 #5 0x0825b469 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /export/home/dsp/dev/c/php52/Zend/zend.c:1134 #6 0x08223079 in php_execute_script (primary_file=0x8047a94) at /export/home/dsp/dev/c/php52/main/main.c:2023 #7 0x082d7a09 in main (argc=2, argv=0x8047b18) at /export/home/dsp/dev/c/php52/sapi/cli/php_cli.c:1133