Bug #8577 Updated: i would kill for the ability to undefine()

2002-04-27 Thread mfischer

 ID:   8577
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 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] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

if you could undefine, it wouldn't be constant.



[2001-01-07 13:22:50] [EMAIL PROTECTED]

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




Bug #8577 Updated: i would kill for the ability to undefine()

2002-04-27 Thread voudras

 ID:   8577
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Closed
 Bug Type: Feature/Change Request
 Operating System: N/A
 PHP Version:  4.0.4
 New Comment:

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


Previous Comments:


[2002-04-27 14:15:52] [EMAIL PROTECTED]

if you could undefine, it wouldn't be constant.



[2001-01-07 13:22:50] [EMAIL PROTECTED]

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




Bug #8577 Updated: i would kill for the ability to undefine()

2002-04-27 Thread jimw

 ID:   8577
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Closed
 Bug Type: Feature/Change Request
 Operating System: N/A
 PHP Version:  4.0.4
 New Comment:

if you could undefine, it wouldn't be constant.


Previous Comments:


[2001-01-07 13:22:50] [EMAIL PROTECTED]

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