ID: 28487
Comment by: fonya at fatav dot hu
Reported By: tomas dot matousek at matfyz dot cz
Status: No Feedback
Bug Type: Scripting Engine problem
Operating System: WinXP
PHP Version: 5.0.0RC2
New Comment:
I have the similar problem with this.
In cli interface everything work right, but the apache web server is
segfaults. The code working with php 4.3.8
apache: 2.0.53
php: 5.0.3
The system is Linux/FC3, and FC test /prepre4 :)/
The code:
<?
$mi=1;
switch ($mi) {
case 1:
function Lufi() {
global $cucc;
return(666);
}
break;
}
echo microtime()."<br>";
echo Lufi();
?>
--
Fonya
Previous Comments:
------------------------------------------------------------------------
[2004-09-06 01:00:05] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2004-08-29 12:59:30] [EMAIL PROTECTED]
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
Seems to be fixed. Please, test it again.
------------------------------------------------------------------------
[2004-07-29 09:59:44] stefan at hotpaenz dot de
I experienced this crash on Linux 2.6.3 with PHP 4.3.3 and
PHP 5.1.0-dev snapshot 200407271430. Perhaps somebody
should set the category to "reproducible crash".
This is the PHP 5.1.0-dev backtrace:
#0 0x08271843 in zend_switch_free_handler
(execute_data=0xbfffd5a0, opline=0x8726fe4,
op_array=0x8721970, tsrm_ls=0x8430018)
at /root/php/200407271430/php5-5.0.0/Zend/zend_execute.c:200
200 if (!T(opline->op1.u.var).var.ptr_ptr) {
(gdb) bt
#0 0x08271843 in zend_switch_free_handler
(execute_data=0xbfffd5a0, opline=0x8726fe4,
op_array=0x8721970, tsrm_ls=0x8430018)
at /root/php/200407271430/php5-5.0.0/Zend/zend_execute.c:200
#1 0x0826c0b5 in execute (op_array=0x8721970,
tsrm_ls=0x8430018)
at /root/php/200407271430/php5-5.0.0/Zend/zend_execute.c:1391
#2 0x0826fe63 in zend_do_fcall_common_helper
(execute_data=0xbfffd670, opline=0x8725ecc,
op_array=0x8721b94, tsrm_ls=0x8430018)
at /root/php/200407271430/php5-5.0.0/Zend/zend_execute.c:2728
#3 0x0826c0b5 in execute (op_array=0x8721b94,
tsrm_ls=0x8430018)
at /root/php/200407271430/php5-5.0.0/Zend/zend_execute.c:1391
#4 0x0824ce31 in zend_execute_scripts (type=8,
tsrm_ls=0x8430018, retval=0x0, file_count=3)
at /root/php/200407271430/php5-5.0.0/Zend/zend.c:1068
#5 0x08210044 in php_execute_script
(primary_file=0xbffffa40, tsrm_ls=0x8430018)
at /root/php/200407271430/php5-5.0.0/main/main.c:1631
#6 0x08278bfc in main (argc=2, argv=0xbffffb04)
at /root/php/200407271430/php5-5.0.0/sapi/cgi/cgi_main.c:1568
------------------------------------------------------------------------
[2004-07-24 21:22:29] Jared dot Williams1 at ntworld dot com
Just discovered this one with
PHP Version 5.1.0-dev
System Windows NT WIN2KS 5.0 build 2195
Build Date Jul 23 2004 16:22:08
and
PHP Version 5.1.0-dev
System Windows NT WIN2KS 5.0 build 2195
Build Date Jul 24 2004 20:15:28
------------------------------------------------------------------------
[2004-07-20 16:35:29] jb-php at microbasic dot net
I have the same problem, example :
<?
$somecode=1;
switch($somecode){
case 1:
function test(){
echo "success";
}
test();
break;
}
?>
With php5 final, this code was working with php 4.3.7
------------------------------------------------------------------------
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/28487
--
Edit this bug report at http://bugs.php.net/?id=28487&edit=1