Bug #8882 Updated: Additional argument in funtion file($a, $b)
| From: | sniper@php.net | Date: | Wed, 10 Apr 2002 22:07:07 +0000 |
| Subject: | Bug #8882 Updated: Additional argument in funtion file($a, $b) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-4564@lists.php.net to get a copy of this message | ||
ID: 8882
Updated by: sniper@php.net
Reported By: urs@circle.ch
-Status: Duplicate
+Status: Closed
Bug Type: Feature/Change Request
PHP Version: 4.0.4pl1
New Comment:
Added in PHP 4.3.0 (current CVS HEAD):
http://www.php.net/manual/en/function.file-get-contents.php
Previous Comments:
------------------------------------------------------------------------
[2002-02-09 23:22:05] jimw@php.net
this is a duplicate of #5008. (same problem, slightly different
proposed solution.)
------------------------------------------------------------------------
[2001-01-24 07:49:41] urs@circle.ch
dear all
very often the following expression is being used in applications using
file manipulation (specially treating XML contents):
$cont = join ("", file ("test.xml"));
... i would like to propose an addtional attribute in the argument list
of the function file().
lets consider that:
$cont = file ("test.xml", FALSE) or $cont = file ("test.xml")
would be equivalent to:
$cont = file ("test.xml")
and on the other hand:
$cont = file ("test.xml", TRUE)
would be equivalent to:
$cont = join ("", file ("test.xml"))
the second argument would therefore represent an attribute, which let
one specify not only to return an ARRAY (attribute=FALSE, default) but
also a STRING (attribute=TRUE). adding this argument would not affect
older or current implementations or usage of the function file().
what do you think about this?
best regards, urs
--
Urs Gehrig <urs@circle.ch>
http://www.circle.ch
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=8882&edit=1