Exemple 1. Exemple avec runkit_class_emancipate()
<?php class myParent { function parentFunc () { echo "Sortie Fonction Parente\n"; } } class myChild extends myParent { }
myChild::parentFunc(); runkit_class_emancipate('myChild'); myChild::parentFunc(); ?>
|
L'exemple ci-dessus va afficher :
Sortie Fonction Parente
Fatal error: Call to undefined function: parentFunc() in example.php on line 12 |