#34201 [Opn->Bgs]: runkit_method_copy() causes seg fault

From: Date: Sun, 21 Aug 2005 10:23:28 +0000
Subject: #34201 [Opn->Bgs]: runkit_method_copy() causes seg fault
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-83842@lists.php.net to get a copy of this message
ID: 34201 Updated by: derick@php.net Reported By: Peter dot Albertsson at spray dot se -Status: Open +Status: Bogus Bug Type: Unknown/Other Function Operating System: SuSE 9 PHP Version: 5.0.4 New Comment: Do not file bugs when you have Zend extensions (zend_extension=) loaded. Examples are Zend Optimizer, Zend Debugger, Turck MM Cache, APC, Xdebug and ionCube loader. These extensions often modify engine behavior which is not related to PHP itself. . Previous Comments: ------------------------------------------------------------------------ [2005-08-21 02:26:05] Peter dot Albertsson at spray dot se Description: ------------ Running the example provided at http://www.php.net/manual/en/function.runkit-method-copy.php causes a segmentation fault. The segmentation fault appears to occur after the script has been executed. Taking the advice to turn off any Zend extensions helps. When I turn off Zend Optimizer 2.5.8 the error does not occur. Reproduce code: --------------- <?php class Foo { function example() { return "foo!\n"; } } class Bar { // initially, no methods } // copy the example() method from the Foo class to the Bar class, as baz() runkit_method_copy('Bar', 'baz', 'Foo', 'example'); // output copied function echo Bar::baz(); ?> Expected result: ---------------- foo! Actual result: -------------- foo! Segmentation fault ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=34201&edit=1

« previous php.bugs (#83842) next »