|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-07-09 09:16 UTC] brianlmoon@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 13:00:01 2025 UTC |
Calling a parent class's constructor from a child's method does not work without the parent:: operator, although the parent's constructor is listed in the child's list of method as reported by get_class_methods(). Example script: <?PHP class A { function A() { } } class B extends A { function foo() { A(); } } $obj = new B; $obj->foo(); ?>