At 16:00 14/5/2001, Andrei Zmievski wrote:
>It doesn't seem that efree() is equivalent to free() as far operating on
>NULL pointers. If ptr == NULL, free(ptr) is a no-op, but efree() will
>probably barf on it.. Can we make them equivalent?

We could, but PHP is currently written in a way that already takes this 
assumption.  I think that efree() crashing on NULL pointers actually helps 
weed out bugs (bugs that could go unnoticed because they'd have no symptoms 
if it silently ignores NULLs).


PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to