From:             acraft at nb dot sympatico dot ca
Operating system: Fedora Core release 3
PHP version:      5.1.0RC1
PHP Bug Type:     Class/Object related
Bug description:  Segmentation fault

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

-- 
Edit bug report at http://bugs.php.net/?id=34580&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=34580&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=34580&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=34580&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=34580&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=34580&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=34580&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=34580&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=34580&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=34580&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=34580&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=34580&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=34580&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=34580&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=34580&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=34580&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=34580&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=34580&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=34580&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=34580&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=34580&r=mysqlcfg

Reply via email to