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

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to