From:             Peter dot Albertsson at spray dot se
Operating system: SuSE 9
PHP version:      5.0.4
PHP Bug Type:     Unknown/Other Function
Bug description:  runkit_method_copy() causes seg fault

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 bug report at http://bugs.php.net/?id=34201&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=34201&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=34201&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=34201&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=34201&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=34201&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=34201&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=34201&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=34201&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=34201&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=34201&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=34201&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=34201&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=34201&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=34201&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=34201&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=34201&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=34201&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=34201&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=34201&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=34201&r=mysqlcfg

Reply via email to