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

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,

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 names be in 4.0.5?

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

2001-02-27 Thread Marten Gustafsson
?php function my_func($a) { echo 'a'; } my_func(); ? 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 http://www.php.net/ To unsubscribe, e-mail:

[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 http://www.php.net/ 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