Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 74f4b772aa
Fetching contributors…

Cannot retrieve contributors at this time

29 lines (23 sloc) 0.527 kb
--TEST--
add old-style parent ctor by importing
--SKIPIF--
<?php if(!extension_loaded("runkit") || !RUNKIT_FEATURE_MANIPULATION) print "skip"; ?>
--FILE--
<?php
class Test {
}
class FOO_test extends test {
}
class FOO_test_Child extends FOO_test {
}
runkit_import("runkit_add_old_style_ctor_by_importing.inc", RUNKIT_IMPORT_CLASSES);
$a = new test;
$a = new foo_test;
$a = new FOO_test_Child;
echo "==DONE==\n";
?>
--EXPECT--
string(15) "new constructor"
string(15) "new constructor"
string(15) "new constructor"
==DONE==
Jump to Line
Something went wrong with that request. Please try again.