From:             alexander dot moldova at gmail dot com
Operating system: Fedora 18
PHP version:      5.4.17
Package:          SPL related
Bug Type:         Bug
Bug description:Segfault when getting SplStack object Value

Description:
------------
- Getting segfault when trying to read assigned class in array or even
splStack.

- Using GDB i'm getting one that may help(excluding some echos and dumps)
Program received signal SIGSEGV, Segmentation fault.
0x00000000005e69d8 in zend_std_object_get_class ()


Test script:
---------------
https://gist.github.com/AlexanderC/6075141

This gist is the script that would reproduce the bug

Expected result:
----------------
object(Node)#4 (7) {
  ["children":protected]=>
  array(0) {
  }
  ["parent":protected]=>
  object(Node)#3 (7) {
    ["children":protected]=>
    array(1) {
      [0]=>
      *RECURSION*
    }
    ["parent":protected]=>
    object(Node)#2 (7) {
      ["children":protected]=>
      array(1) {
        [0]=>
        *RECURSION*
      }
      ["parent":protected]=>
      NULL
      ["data":protected]=>
      string(4) "HEAD"
      ["uid":protected]=>
      string(63) 
"a8c3048459faa2d4b4f41acb5a3827675196e96b51f053692308c5.92526655"
      ["index":protected]=>
      int(0)
      ["assureUnique":protected]=>
      bool(false)
      ["storage":"ArrayIterator":private]=>
      array(0) {
      }
    }
    ["data":protected]=>
    string(6) "value1"
    ["uid":protected]=>
    int(1)
    ["index":protected]=>
    int(0)
    ["assureUnique":protected]=>
    bool(false)
    ["storage":"ArrayIterator":private]=>
    array(0) {
    }
  }
  ["data":protected]=>
  string(6) "value2"
  ["uid":protected]=>
  int(2)
  ["index":protected]=>
  int(0)
  ["assureUnique":protected]=>
  bool(false)
  ["storage":"ArrayIterator":private]=>
  array(0) {
  }
}

Actual result:
--------------
Process finished with exit code 139

-- 
Edit bug report at https://bugs.php.net/bug.php?id=65328&edit=1
-- 
Try a snapshot (PHP 5.4):   
https://bugs.php.net/fix.php?id=65328&r=trysnapshot54
Try a snapshot (PHP 5.3):   
https://bugs.php.net/fix.php?id=65328&r=trysnapshot53
Try a snapshot (trunk):     
https://bugs.php.net/fix.php?id=65328&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=65328&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=65328&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=65328&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=65328&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=65328&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=65328&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=65328&r=notwrong
Not enough info:            
https://bugs.php.net/fix.php?id=65328&r=notenoughinfo
Submitted twice:            
https://bugs.php.net/fix.php?id=65328&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=65328&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=65328&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=65328&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=65328&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=65328&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=65328&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=65328&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=65328&r=mysqlcfg

Reply via email to