From:             alastair at propcom dot co dot uk
Operating system: 
PHP version:      Irrelevant
Package:          *General Issues
Bug Type:         Feature/Change Request
Bug description:Make it easier to supply include paths on the CLI

Description:
------------
C standard is to use -I to add an include path for header files. There are
also the environment variables CPATH, C_INCLUDE_PATH and
CPLUS_INCLUDE_PATH.

Other languages follow suit. Python uses the PYTHONPATH environment
variable. Perl uses PERL5LIB *and* -I, and also has a runtime 'use lib'
too.

PHP's current only way of doing it is to set the config itself (I didn't
see anything about environment variables in the docs on include_path),
which usually involves getting the config and manually merging the extras.


Setting include paths is a much more common operation than the procedure to
do so would suggest; it would be very helpful for this boilerplate code
(get, merge, set) to be performed by PHP itself as a result of an option.
-I is a good idea because it's established by C already, and hence
maintains consistency. It would also be useful to honour an environment
variable and possibly also a runtime function, just to make it easier.




-- 
Edit bug report at https://bugs.php.net/bug.php?id=63685&edit=1
-- 
Try a snapshot (PHP 5.4):   
https://bugs.php.net/fix.php?id=63685&r=trysnapshot54
Try a snapshot (PHP 5.3):   
https://bugs.php.net/fix.php?id=63685&r=trysnapshot53
Try a snapshot (trunk):     
https://bugs.php.net/fix.php?id=63685&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=63685&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=63685&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=63685&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=63685&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=63685&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=63685&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=63685&r=notwrong
Not enough info:            
https://bugs.php.net/fix.php?id=63685&r=notenoughinfo
Submitted twice:            
https://bugs.php.net/fix.php?id=63685&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=63685&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63685&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=63685&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=63685&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=63685&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=63685&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=63685&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=63685&r=mysqlcfg

Reply via email to