From: p3n4g473 at hotmail dot com
Operating system: n/a
PHP version: 5.1.5
PHP Bug Type: Feature/Change Request
Bug description: File include control system feature request
Description:
------------
I think PHP should include some sort of directive control system for
determining what portions of a file are included when using the
include()/include_once() and require()/require_once() functions from
another file. For example, a directive to prevent inclusion of a block of
code.
#NOINCLUDE
{
// some code that should not be included
}
The code inside that block would only be parsed when executing the script
file directly.
Obviously, this is not a particularly important feature. However I would
find this very useful for adding testing code to include files, so that
the includes can be called directly to test them.
:-)
--
Edit bug report at http://bugs.php.net/?id=38608&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=38608&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=38608&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=38608&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=38608&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=38608&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=38608&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=38608&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=38608&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=38608&r=support
Expected behavior: http://bugs.php.net/fix.php?id=38608&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=38608&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=38608&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=38608&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38608&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=38608&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=38608&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=38608&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=38608&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=38608&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=38608&r=mysqlcfg