#95 Failing to call parent constructors with PHP5

open
nobody
None
5
2004-05-05
2004-05-05
Kelvin Westlake
No

calling a base class constructor (parent::thatFunction
() ) causes segmentation errors. The debug output from
mmCache is -

[5281] MMCACHE
hit: "/home/intranet/public_html/inc_test.php"
[5281] MMCACHE
hit: "/home/intranet/public_html/SQLObject.class.php"
[5281] MMCACHE
hit: "/home/intranet/public_html/Action.class.php"
[5281] MMCACHE: PHP crashed on opline 4 of taction()
at /home/intranet/public_html/Action.class.php:9

I've included the scripts that I tested it with, there are
2 classes TAction and TSQLObject. TAction inherits
from the latter, and when it calls parent::TSQLObject()
it causes segmentation faults.

The test.php includes boths class files, and initialises a
TAction object, so running this should give you the
results..

Discussion

  • Code to show the failure, consists of 2 classes and a test script

     
    Attachments