Edit report at https://bugs.php.net/bug.php?id=60369&edit=1

 ID:                 60369
 Comment by:         vr...@php.net
 Reported by:        vr...@php.net
 Summary:            Crash with static property in trait
 Status:             Verified
 Type:               Bug
 Package:            Class/Object related
 Operating System:   Windows 7
 PHP Version:        5.4.0RC1
 Assigned To:        gron
 Block user comment: N
 Private report:     N

 New Comment:

Backtrace:

Entry point   php!mainCRTStartup 
Create time   11/23/2011 12:31:14 PM 
Time spent in user mode   0 Days 0:0:0.15 
Time spent in kernel mode   0 Days 0:0:0.0 

Function     Arg 1     Arg 2     Arg 3   Source 
ntdll!ZwRaiseException+12     009ce3c4     009ce414     00000000    
ntdll!KiUserExceptionDispatcher+2a     00000023     009cfb08     0000002b    
php5!_php_import_environment_variables+39f     00000023     009cfb08     
0000002b    
php5!_php_import_environment_variables+39f     00000000     00000000     
00000000    

PHP5!ZEND_DO_BEGIN_CATCH+244In 
php__PID__8020__Date__11_23_2011__Time_12_31_24PM__22__Second_Chance_Exception_C0000005.dmp
 the assembly instruction at php5!zend_do_begin_catch+244 in C:\Program Files 
(x86)\PHP 5.4\php5.dll from The PHP Group has caused an access violation 
exception (0xC0000005) when trying to read from memory location 0x00000000 on 
thread 0


Previous Comments:
------------------------------------------------------------------------
[2011-11-23 20:35:18] vr...@php.net

Description:
------------
PHP crashes when there is a static property defined in a trait plus there is a 
normal property of the same name in a class using this trait.

Test script:
---------------
<?php
trait PropertiesTrait {
    static $same = true;
}

class Properties {
    use PropertiesTrait;
    public $same = true;
}
?>


Expected result:
----------------
Exit code: 0

Actual result:
--------------
Exit code: -1073741819


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



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

Reply via email to