Bug #8577 Updated: i would kill for the ability to undefine()
| From: | mfischer@php.net | Date: | Sat, 27 Apr 2002 22:12:24 +0000 |
| Subject: | Bug #8577 Updated: i would kill for the ability to undefine() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-6308@lists.php.net to get a copy of this message | ||
ID: 8577
Updated by: mfischer@php.net
Reported By: voudras@nospam.swiftslayer.org
Status: Closed
Bug Type: Feature/Change Request
Operating System: N/A
PHP Version: 4.0.4
New Comment:
You're on the wrong track comparing C #defines and define() in PHP. C
is about compiling and running executables whereas PHP is about
interpreting.
Previous Comments:
------------------------------------------------------------------------
[2002-04-27 15:24:12] voudras@nospam.swiftslayer.org
I have to admit that the above comment comes off as an
insulting wisecrack. like im a moron for suggesting such
a feature. what would K&R say to that?
Anyway - i found a way around this PHP deficiency for now,
and i did that by creating a set of functions which maintain
an array of defined variables and respond accordinly to my
own undefine, ifdefine, constant and define functions.
cd /web/src/php4; grep -nir "undef" *;
hmm, looks like the php developers found it useful in C
------------------------------------------------------------------------
[2002-04-27 14:15:52] jimw@php.net
if you could undefine, it wouldn't be constant.
------------------------------------------------------------------------
[2001-01-07 13:22:50] voudras@nospam.swiftslayer.org
I don't know if this is impossible or extremely difficult (I assume its
one of the two because this doesn't exist at the moment), but it would
be very handy.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=8577&edit=1