Req #31499 [Opn->Wfx]: Support for including multiple files with a single include call.
| From: | nikic@php.net | Date: | Sun, 23 Sep 2012 16:45:05 +0000 |
| Subject: | Req #31499 [Opn->Wfx]: Support for including multiple files with a single include call. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-173659@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=31499&edit=1
ID: 31499
Updated by: nikic@php.net
Reported by: daniel dot schierbeck at gmail dot com
Summary: Support for including multiple files with a single
include call.
-Status: Open
+Status: Wont fix
Type: Feature/Change Request
-Package: Feature/Change Request
+Package: *General Issues
PHP Version: 5.0.3
Block user comment: N
Private report: N
New Comment:
Including several files at the same time is needed rather rarely, at least since the rise of
autoloading.
Furthermore the proposed syntax has several issues when considering that include is an expression
with a return value. What would it return? The return value of the last script? An array of return
values? What would foo(include 'a', 'b') mean? Would it be foo((include
'a', 'b') or rather foo((include 'a'), 'b')? Etc.
Previous Comments:
------------------------------------------------------------------------
[2005-02-09 16:25:15] mirabal at adinet dot com dot uy
well, i have to agree with this one... although it is not very important
------------------------------------------------------------------------
[2005-01-18 18:09:45] daniel dot schierbeck at gmail dot com
Sooooooo, no comments? Anyone?
------------------------------------------------------------------------
[2005-01-11 23:21:29] daniel dot schierbeck at gmail dot com
Description:
------------
It would be a nice feature if more than one file could be included in a single include call.
I've read the manual pages, and it doesn't look like it's possible at the moment.
(this of course also goes for include_once, require, and require_once)
Reproduce code:
---------------
// Today
include 'a.php';
include 'b.php';
include 'c.php';
// Tomorrow
include 'a.php', 'b.php', 'c.php';
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=31499&edit=1