|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2005-09-21 15:54 UTC] acraft at nb dot sympatico dot ca
  [2005-09-21 16:06 UTC] tony2001@php.net
  [2005-09-21 18:39 UTC] acraft at nb dot sympatico dot ca
  [2005-09-21 21:50 UTC] tony2001@php.net
  [2005-09-29 01:00 UTC] php-bugs at lists dot php dot net
 | |||||||||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 07:00:01 2025 UTC | 
Description: ------------ When using a php function to create the variable for a class method a segmentation fault occurs. Reproduce code: --------------- $ts = '112005'; $cal->initCalendarDMY(1, substr($ts, 0, 2), substr($ts, 2) ); Expected result: ---------------- No Segmemtation Fault Actual result: -------------- (gdb) bt #0 0xb7bb11cb in _zval_copy_ctor_func (zvalue=0xbf89ee34) at /root/src/php-5.1.0RC1/Zend/zend_variables.c:141 #1 0xb7be66e5 in ZEND_CAST_SPEC_VAR_HANDLER (execute_data=0xbf89ee60) at zend_variables.h:45 #2 0xb7bd1911 in execute (op_array=0x9d5b614) at zend_vm_execute.h:87 #3 0xb7bd1b03 in zend_do_fcall_common_helper_SPEC (execute_data=0xbf89f6d0) at zend_vm_execute.h:219 #4 0xb7bd1911 in execute (op_array=0x9c26344) at zend_vm_execute.h:87 #5 0xb7bd1b03 in zend_do_fcall_common_helper_SPEC (execute_data=0xbf8a06e0) at zend_vm_execute.h:219 #6 0xb7bd1911 in execute (op_array=0x9cf542c) at zend_vm_execute.h:87 #7 0xb7bb280e in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /root/src/php-5.1.0RC1/Zend/zend.c:1078 #8 0xb7b7fe68 in php_execute_script (primary_file=0xbf8a2a40) at /root/src/php-5.1.0RC1/main/main.c:1672 #9 0xb7c30275 in php_handler (r=0x9aa2600) at /root/src/php-5.1.0RC1/sapi/apache2handler/sapi_apache2.c:562 #10 0x080af63a in ap_run_handler (r=0x9aa2600) at config.c:152 #11 0x080afa05 in ap_invoke_handler (r=0x9aa2600) at config.c:364 #12 0x0809f151 in ap_process_request (r=0x9aa2600) at http_request.c:249 #13 0x0809ae19 in ap_process_http_connection (c=0x9a9a360) at http_core.c:251 #14 0x080b8b02 in ap_run_process_connection (c=0x9a9a360) at connection.c:43 #15 0x080ade15 in child_main (child_num_arg=Variable "child_num_arg" is not available. ) at prefork.c:610 #16 0x080ae009 in make_child (s=0x991afd0, slot=0) at prefork.c:650 #17 0x080ae0d0 in startup_children (number_to_start=5) at prefork.c:722 #18 0x080ae7a3 in ap_mpm_run (_pconf=0x99160a8, plog=0x994e188, s=0x991afd0) at prefork.c:941 #19 0x080b38a3 in main (argc=2, argv=0xbf8a2f14) at main.c:618