From:             killgec at gmail dot com
Operating system: winXP
PHP version:      5.2.3
PHP Bug Type:     SPL related
Bug description:  ArrayObject::exchangeArray hangs Apache

Description:
------------
I use a descendant of ArrayObject to have public properties quickly
transformed to and back an array. So this object is an ArrayObject
initiated with itself. Then Apache hangs when I try to load an array into
the props by exchangeArray().

Apache says "child process exited with status 3221225477 -- Restarting."

Maybe I'm misusing ArrayObject, but I think it shouldn't hang Apache in
any case. (Anyway, is there any howto or sg for ArrayObject beyond the
reference?)

THX!

Reproduce code:
---------------
                class A extends ArrayObject {
                        public function __construct($dummy, $flags) {
                                parent::__construct($this, $flags);
                        }
                        public $a;
                        public $b;
                        public $c;
                }
                
                $a = new A(null, ArrayObject::ARRAY_AS_PROPS );
                $a->exchangeArray(array('a'=>1,'b'=>1,'c'=>1));


Expected result:
----------------
Array loaded or error or exception.

Actual result:
--------------
Apache restarts.

-- 
Edit bug report at http://bugs.php.net/?id=41691&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=41691&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=41691&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=41691&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=41691&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=41691&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=41691&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=41691&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=41691&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=41691&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=41691&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=41691&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=41691&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=41691&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=41691&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=41691&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=41691&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=41691&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=41691&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=41691&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=41691&r=mysqlcfg

Reply via email to