Re: [PHP4BETA] Php4 and warnings
| From: | Stig Bakken | Date: | Fri, 28 Jan 2000 12:56:13 +0000 |
| Subject: | Re: [PHP4BETA] Php4 and warnings | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-9510@lists.php.net to get a copy of this message | ||
On Fri, 28 Jan 2000, Turcu Mihai wrote:
| I've got some anoying warnings from time to time, and now I can't acces
| my php site at all because of them. There are something like: "Warning:
| Use of undefined constant user - assumed 'blabla' ". It works just fine
| in php3 and from time to time in php4b3. Can I disable them somehow ? I
| tried to disable warnings from php.ini but still the same. I must
| declare all variables in php4 before I use them ?
|
| I am using php4b3 and Apache 1.3.9.
It sounds like you have some unquoted strings in your code. For example:
$a = user;
It's hard to tell without having you show the code on the line that causes
this warning, though.
- Stig