Re: Class Struggle
| From: | Andrei Zmievski | Date: | Tue, 27 Nov 2001 14:21:56 +0000 |
| Subject: | Re: Class Struggle | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-71792@lists.php.net to get a copy of this message | ||
On Tue, 27 Nov 2001, l0t3k wrote:
>
> im having a tough time getting PHP to execute a method of a function defined
> in an extension. the extension compiles fine, shows up in phpinfo(), and
> calling get_declared_classes() returns the class names as expected.
>
> in addition, calling get_class_methods("class_name") lists the method im
> interested in calling. the error i get is
>
> Fatal error: Call to undefined function: bar() in
> C:\Inetpub\wwwroot\php\fubar.php on line 26
>
> the function call is static, e.g $barbara = foo::bar($baz)
>
> i was able to track the message to zend_execute.c in the switch tag to
> handle ZEND_INIT_FCALL_BY_NAME.
>
> im stumped as to why get_class_methods can find the function but zend can't.
>
> do i get to wear the dunce cap, or should i file a bug report ?
Did you name all your classes and methods as lowercase ones when
declaring them?
-Andrei
The main reason Santa is so jolly is because he knows where
all the bad girls live. -- George Carlin