php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #6190 Compile message for undeclared variables
Submitted: 2000-08-15 21:13 UTC Modified: 2000-08-15 21:16 UTC
From: rabbott at CalStateLA dot edu Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.0.0 OS: NT 4
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: rabbott at CalStateLA dot edu
New email:
PHP Version: OS:

 

 [2000-08-15 21:13 UTC] rabbott at CalStateLA dot edu
It would help a lot if the compiler would generate
an error message when attempting to access a variable 
that was never used.  That would sure help with 
misspellings and with variable names with the "$"
left off.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-15 21:16 UTC] waldschrott@php.net
a) it?s a feature that variables are created on-access
b) if you forget the "$" you?ll receive a parse error
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Jun 17 03:00:02 2026 UTC