ID:               47730
 Updated by:       j...@php.net
 Reported By:      berblinger at krumedia dot de
-Status:           Open
+Status:           Feedback
 Bug Type:         Reproducible crash
 Operating System: Linux
 PHP Version:      5.2.9
 New Comment:

I can't reproduce it on Linux 64-bit. Can you reproduce this on some 
other machine with same OS?



Previous Comments:
------------------------------------------------------------------------

[2009-03-21 11:03:15] berblinger at krumedia dot de

It seems, that this crash is only reproducible under a Linux 64bit
environment. I just tried to reproduce it using Vista x64 and PHP 5.2.9,
but everything worked fine.

Can i provide any further informations to help you fixing this problem?
Please tell me, if there's anything i could do.

------------------------------------------------------------------------

[2009-03-21 00:40:27] fel...@php.net

I can't reproduce it on Linux 32-bit.

------------------------------------------------------------------------

[2009-03-20 16:52:31] berblinger at krumedia dot de

generated backtrace, i hope this will help you finding a proper
solution for this bug.

#0  zend_do_fcall_common_helper_SPEC (execute_data=0x7fff88d8dd20, 
tsrm_ls=0x1051090) at /software/php-5.2.9/Zend/zend_vm_execute.h:289
#1  0x0000000000767097 in execute (op_array=0x12abef0, 
tsrm_ls=0x1051090) at /software/php-5.2.9/Zend/zend_vm_execute.h:92
#2  0x000000000073f2e2 in zend_execute_scripts (type=8, 
tsrm_ls=0x1051090, retval=<value optimized out>, file_count=3) at 
/software/php-5.2.9/Zend/zend.c:1134
#3  0x00000000006f20d6 in php_execute_script 
(primary_file=0x7fff88d90400, tsrm_ls=0x1051090) at 
/software/php-5.2.9/main/main.c:2023
#4  0x00000000007bdd37 in main (argc=2, argv=0x7fff88d905e8) at 
/software/php-5.2.9/sapi/cli/php_cli.c:1133

------------------------------------------------------------------------

[2009-03-20 13:31:16] paj...@php.net

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.



------------------------------------------------------------------------

[2009-03-20 13:04:45] berblinger at krumedia dot de

Description:
------------
Looks like this bug is related to the fixed bug #45805 in PHP version
5.2.8.

php still crashes, when the source of the defective expression is
called within a function-call. See reproduce code and comments inside
for further details.

Reproduce code:
---------------
<?php
function errorHandler($errno, $errstr, $errfile, $errline){
                throw new Exception('test');    
}
set_error_handler('errorHandler');
error_reporting( E_ALL | E_STRICT);
class Foo{
        private $crashHelper = null;
        public function test(){
                $bar = new Bar;
                /* Crashes */
                //$bar->someFunction($this->crashHelper->notDefined);
                
                /* this works */
                $tmp = $this->crashHelper->notDefined;
                $bar->someFunction($tmp);
        }
}

class Bar{
        public function someFunction($tmp){     }
}

$foo = new Foo;
$foo->test();
?>

Expected result:
----------------
Fatal error: Uncaught exception 'Exception' with message 'test' [...]
thrown in /htdocs/test/pub/eerrorHandlerTest.php on line 3

Actual result:
--------------
nothing. php crashes.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=47730&edit=1

Reply via email to