Re: PDBPLUS: cannot redefine g()
| From: | CHAILLAN Nicolas | Date: | Thu, 31 Jul 2003 19:15:14 +0000 |
| Subject: | Re: PDBPLUS: cannot redefine g() | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-19069@lists.php.net to get a copy of this message | ||
"Ondrej Jombik" <nepto@pobox.sk> a écrit dans le message de
news:Pine.LNX.4.44.0307312105480.9844-100000@pauli.fmph.uniba.sk...
> PDBPLUS gives me this strange error:
>
> ondrej@Apolon:~$ pdbplus.php
> <br />
> <b>Fatal error</b>: Cannot redeclare g() in
> <b>/home/ondrej/prog/CVS-others/pear/PDBPLUS/class.commands.php</b> on
> line <b>351</b><br />
> ondrej@Apolon:~$
>
> Looking at the code:
>
> function g()
> {
> global $partial;
> $this->query($partial . '\\g');
> $partial = '';
> $this->setPrompt();
> }
>
> function G()
> {
> global $partial;
> $this->query($partial . '\\G');
> $partial = '';
> $this->setPrompt();
> }
>
> I thought that PHP functions are case sensitive. This code works well in
> PHP/4.2.3 however it does not work in PHP/4.3.2.
>
> Should I rename G() to something different?
>
Yes and anyway you should NOT have this kind of name. You need REAL name of
functions.
G means really NOTHING.
> --
> _/| Ondrej Jombik - nepto@php.net - http://www.nepto.sk -
> OJ812-RIPE
> <_ \ Platon SDG - open source software development -
> http://platon.sk
> `\| This message was written with Pine, the fastest IMAP mail client
> '`
>