Re: [PHP4BETA] Undocumented behavior of PHP 3.0

From: Date: Mon, 17 May 1999 22:48:42 +0000
Subject: Re: [PHP4BETA] Undocumented behavior of PHP 3.0
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-887@lists.php.net to get a copy of this message
At 11:39 17/05/99 , Kristian Köhntopp wrote:
Zeev Suraski wrote: Not that my question is relevant anymore (since I already improved Zend to support this:), but just so you'd know what I'm talking about: function declare_foo() {
        function foo()
        {
                ...code...
        }
} if ($foo_needed) {
        declare_foo();
        foo();
} was what I was asking about. Does this work from inside object member functions, too? And with objects/classes?
Yes, but not in class context (i.e., it always declares global functions, not methods). Zeev -- Zeev Suraski <zeev@zend.com> http://www.zend.com/ For a PGP public key, finger bourbon@netvision.net.il -- PHP 4 Beta

« previous php.version4 (#887) next »