|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-08-20 04:37 UTC] s dot masugata at digicom dot dnp dot co dot jp
Description: ------------ Segmentation Fault str_suffle. http://www.php.net/manual/en/function.str-shuffle.php FreeBSD 4.8-RELEASE:No problem. Linux 2.2.14-5.0:No problem. SunOS 5.6 Generic_105181-23 sun4u :Those with a problem. Reproduce code: --------------- <?php $str = 'abcdef'; $shuffled = str_shuffle($str); // This will print something like: bfdaec print $shuffled; ?> PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 15 05:00:02 2025 UTC |
Hi, derick. backtrace sent. ---------------------------------------------- # gdb /usr/local/Apache1.3.27_PHP4/bin/httpd GNU gdb 5.3 Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "sparc-sun-solaris2.6"... (gdb) run -X -f /usr/local/Apache1.3.27_PHP4/conf/httpd.conf Starting program: /usr/local/Apache1.3.27_PHP4/bin/httpd -X -f /usr/local/Apache1.3.27_PHP4/conf/httpd.conf [New LWP 1] [New LWP 2] [New LWP 3] [New LWP 4] Program received signal SIGSEGV, Segmentation fault. 0xee5fd140 in php_string_shuffle (str=0x174408 "abcdef", len=6) at /usr/local/src/php-4.3.3RC4/ext/standard/string.c:4010 4010 str[n_left] = str[rnd_idx]; (gdb) where #0 0xee5fd140 in php_string_shuffle (str=0x174408 "abcdef", len=6) at /usr/local/src/php-4.3.3RC4/ext/standard/string.c:4010 #1 0xee5fd360 in zif_str_shuffle (ht=1, return_value=0x1743c0, this_ptr=0x0, return_value_used=1) at /usr/local/src/php-4.3.3RC4/ext/standard/string.c:4031 #2 0xee6fc7e4 in execute (op_array=0x1740e0) at /usr/local/src/php-4.3.3RC4/Zend/zend_execute.c:1616 #3 0xee6df92c in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /usr/local/src/php-4.3.3RC4/Zend/zend.c:885 #4 0xee680900 in php_execute_script (primary_file=0xeffff310) at /usr/local/src/php-4.3.3RC4/main/main.c:1721 #5 0xee703874 in apache_php_module_main (r=0x15d8e8, display_source_mode=0) at /usr/local/src/php-4.3.3RC4/sapi/apache/sapi_apache.c:54 #6 0xee7050b8 in send_php (r=0x15d8e8, display_source_mode=0, filename=0x15e960 "/WWW/Web/gaia/Masugata/test.php") at /usr/local/src/php-4.3.3RC4/sapi/apache/mod_php4.c:620 #7 0xee70513c in send_parsed_php (r=0x15d8e8) at /usr/local/src/php-4.3.3RC4/sapi/apache/mod_php4.c:635 #8 0x0001ef38 in ap_invoke_handler () #9 0x0003e060 in process_request_internal () #10 0x0003e0e4 in ap_process_request () #11 0x00030bf8 in child_main () #12 0x00030e8c in make_child () #13 0x000310a8 in startup_children () #14 0x00031adc in standalone_main () #15 0x00032738 in main () (gdb)