|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-07-22 18:57 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 08 03:00:02 2026 UTC |
Description: ------------ Cannot call local method from the classes constructor. I might be wrong in thinking this is a problem. (long day) Configure line : ./configure \ --with-apxs=/usr/bin/apxs \ --with-libxml-dir=/usr/lib \ --with-curl=/usr/lib \ --with-curlwrappers \ --with-mysql=/usr/lib \ --with-libxml-dir=/usr/lib \ --with-pear=/usr/lib/php \ --with-imap=/usr/include/imap-uw Reproduce code: --------------- class foo{ function __construct(){ bar(); } function bar(){} } $example = new foo(); Expected result: ---------------- none. just no error. Actual result: -------------- Fatal error: Call to undefined function bar()