View Issue Details

IDProjectCategoryView StatusLast Update
0001095XdebugUncategorizedpublic2015-02-22 14:32
Reportervavra Assigned To 
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionfixed 
Platformx86OS*OS Version*
Target Version2.3.0Fixed in Version2.3.0 
Summary0001095: Crash when using a non-associate array key in a $GLOBALS element
Description

I have a simple script

global $times;
$times=array();

function recordTime($file, $line, $note='')
{
global $times;
$times[] = array(microtime(true), $file, $line, $note);
}

recordTime(FILE, LINE);
require_once('core/fs_loader.php');
recordTime(FILE, LINE);

While stepping the second time into recordTime function(.) the xdebug crashes.
fs_loader.php is based on a Nette robot loader that calls spl_autoload_register(.).

TagsNo tags attached.
Operating SystemWindows 7 x86
PHP Version5.5.15-5.5.19

Activities

vavra

2014-12-18 11:07

reporter   ~0002942

Windows Event dump:

  • System

    • Provider

    [ Name] Application Error

    • EventID 1000

    [ Qualifiers] 0

    Level 2

    Task 100

    Keywords 0x80000000000000

    • TimeCreated

    [ SystemTime] 2014-12-18T11:04:06.000000000Z

    EventRecordID 201685

    Channel Application

    Computer Vavra-PC

    Security

  • EventData

    php.exe
    5.5.19.0
    5463c521
    php_xdebug-2.2.6-5.5-vc11.dll
    2.2.6.0
    54672b10
    c0000005
    0000fce7
    1168
    01d01ab25063a865
    C:\prog\php5.5.19\php.exe
    c:\prog\php5.5.19\ext\php_xdebug-2.2.6-5.5-vc11.dll
    94eaf850-86a5-11e4-ad93-002421f3946d

derick

2014-12-27 21:33

administrator   ~0002947

Can you provide a short (or self contained) reproducing script that shows this behaviour? The whole of Nette is not too big for me to do anything about.

derick

2015-02-06 23:32

administrator   ~0002981

Ping?

derick

2015-02-16 23:14

administrator   ~0002994

Fixed for 2.2.8 and 2.3dev.