Re: [PHP4BETA] 4.0b3 Class/Function question.
| From: | Stephen J. Taranto | Date: | Sat, 20 Nov 1999 01:17:56 +0000 |
| Subject: | Re: [PHP4BETA] 4.0b3 Class/Function question. | ||
| References: | 1 2 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-6552@lists.php.net to get a copy of this message | ||
Fifty lashes for me... My partner put an old config back on this
morning to test an old site that had PHP 3.05 (of all things) and I
didn't realize it. I just re-tested under 4.0b3 and everything works
perfectly fine. Sorry to waste your time.
-Steve.
Andi Gutmans wrote:
>
> I can't reproduce your problem as this script works for me. Did you
> actually try and run this specific code?
>
> Andi
>
> At 03:37 PM 11/19/99 -0500, Stephen J. Taranto wrote:
> >Oops.. Sorry about the mistakes in that last email. I was interrupted
> >by the phone and hit send before proofreading. Correct version follows
> >....
> >
> >Hi All -- I know this borders on a FAQ/RTFM, but I'll be damned if I
> >can find the answer. Is the following a bug or a dumb programmer?
> >
> >/* Simplified psuedo code. */
> ><?php
> >class _Query {
> > function Query($q) {
> > echo "And the query is $q";
> > }
> >}
> >
> >class Xyz extends _Query {
> > function Xyz ($val) {
> > echo "In Xyz($val) function...";
> > $this->Query("From Xyz()"); // Line 9 in the msg below
> > }
> >}
> >
> >$x = new Xyz("steve");
> >/* This will produce the error message "Fatal error: Function call to a
> >non-function (query) in class_team.mfls on line 9". I haven't got it
> >quite nailed down but I'm beginning to suspect that calling a
> >function in the parent class from the "contructor" function of the child
> >is at least part of the problem. Not sure though. I don't have access
> >to all my source right now, but I'm pretty sure I did this succesfully
> >using 4.0b2.
> >
> >Additional system info -- Apache 1.3.9, 4.0b3 module, RedHat 6.1 (kernel
> >2.0.32?).
> >*/
> >?>
> >
> >Any ideas? Thanks in advance,
> >-Steve.
> >
> >
> >--
> >PHP 4.0 Beta Mailing List
> ><http://www.php.net/version4/>
> >To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net
> >For additional commands, e-mail: php4beta-help@lists.php.net
> >To contact the list administrators, e-mail: php4beta-admin@lists.php.net
>
> ---
> Andi Gutmans <andi@zend.com>
> http://www.zend.com/
>
> --
> PHP 4.0 Beta Mailing List <http://www.php.net/version4/>
> To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net
> For additional commands, e-mail: php4beta-help@lists.php.net
> To contact the list administrators, e-mail: php4beta-admin@lists.php.net