RE: [PHP-DEV] nested functions

2001-02-02 Thread Marten Gustafsson
Is there a need for nested funcitons? I don?t think so. -Marten. Icq# 38863127 -Original Message- From: Andrei Zmievski [mailto:[EMAIL PROTECTED]] Sent: Friday, February 02, 2001 3:22 PM To: Hartmut Holzgraefe Cc: [EMAIL PROTECTED] Subject: Re: [PHP-DEV] nested functions On Fri, 02

RE: [PHP-DEV] wrong implementation of isset()?

2001-02-06 Thread Marten Gustafsson
I have always (although I know this wasn?t the case prior to PHP 4) thought that unset() removed the variable from memory. Clearly this can?t be the case if it has a value of NULL. But if this is the way things work then is_null() ought to be an alias of isset(). -Marten. Icq# 38863127 -

Re: [PHP-DEV] ctype function (re?)naming

2001-02-26 Thread Marten Gustafsson
> > -Original Message- > > From: Stanislav Malyshev [mailto:[EMAIL PROTECTED]] > > Sent: 26 February 2001 09:52 > > To: Hartmut Holzgraefe > > Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] > > Subject: [PHP-QA] Re: [PHP-DEV] ctype function (re?)naming > > > > > > HH>> RFC: what should their nam

[PHP-DEV] Functions still execure when arguments are omitted

2001-02-27 Thread Marten Gustafsson
The above code snippet will result in "a" being printed, is there a reason why functions execute even when arguments are omitted? -Marten. Icq# 38863127 -- PHP Development Mailing List To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PR

[PHP-DEV] Read a file into a string (RE: [PHP-DEV] Sablotron leaks)

2001-06-24 Thread Marten Gustafsson
> Blah... I see this a lot. We should probably just relent and make a > function that reads an entire file into a string. Yes, please do :) Regards, Marten. ps. This has been requested in #5008, #7213 and #8882. -- PHP Development Mailing List To unsubscribe, e-mail: [

RE: [PHP-DEV] error handler callback gets silenced errors

2002-04-09 Thread Marten Gustafsson
I think the current behaviour is fine. The user defined error handler should get silenced errors as well, then it?s up to the developer to decide wether to ignore them or not. Marten. > -Original Message- > From: Zeev Suraski [mailto:[EMAIL PROTECTED]] > Sent: Sunday, March 31, 2002

RE: [PHP-DEV] Additional argument in funtion file($a, $b)

2001-01-24 Thread Marten Gustafsson
I?ve also thought about this and think there should be funciton wich returns the contents of a file as a string. Especially since implode("", file($filename)) is or is at least said to be much slower than; $content = fread(fopen($filename, 'r'), filesize($filename)); -Marten. -Original Mes