|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-02-22 10:50 UTC] stas@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 12:00:01 2025 UTC |
If we have 2 classes: class A { ... // constructor function A() { // do things } ... } class B extends A { ... // constructor function B() { // do things } ... } When a B object is first created, its constructor is called but the constructor for class A is not. For things to work as expected, the constructor for class A must be called as with class C below. class C extends A { ... // constructor function C() { // do things // Manually exec the constructor for class A $this->A(); } ... } Not that it should matter, but my configure command is below: './configure' '--with-apxs=/usr/sbin/apxs' '--enable-track-vars' '--enable-magic-quotes' '--enable-sigchild' '--enable-calendar' '--enable-ftp' '--with-gd=shared' '--with-mysql=/usr/local' '--with-pdflib=shared' '--enable-wddx' '--enable-sysvmem' '--enable-sysvshm' '--with-xml' '--with-zlib' '--with-ttf' '--enable-sockets'