#37914 [NEW]: get_include_path() doesn't whine about passing a parameter to it
| From: | ler at lerctr dot org | Date: | Mon, 26 Jun 2006 10:04:16 +0000 |
| Subject: | #37914 [NEW]: get_include_path() doesn't whine about passing a parameter to it | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-98767@lists.php.net to get a copy of this message | ||
From: ler at lerctr dot org
Operating system: FreeBSD 6.1/amd64
PHP version: 5.1.4
PHP Bug Type: PHP options/info functions
Bug description: get_include_path() doesn't whine about passing a parameter to it
Description:
------------
if you (by accident, copy/paste, whatever) pass an argument
to get_include_path(), the function just returns an empty string, and NO
diagnostic is issued.
i've placed the reproduce script (with also a link generated to a
phpinfo() call) at:
http://blog.lerctr.org/php_get_include_path_bug.php
the phpinfo() is at:
http://blog.lerctr.org/php.php
Reproduce code:
---------------
<?php
echo "get_include_path('include_path')=" .
get_include_path('include_path');
echo "<br>";
echo "get_include_path()=" . get_include_path();
echo "<br>";
?>
Expected result:
----------------
the bug is illustrated with the output of the first echo.
Actual result:
--------------
a diagnostic, or ignore the parameter, and return
the include_path.
--
Edit bug report at http://bugs.php.net/?id=37914&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37914&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=37914&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37914&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=37914&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=37914&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=37914&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=37914&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=37914&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=37914&r=support
Expected behavior: http://bugs.php.net/fix.php?id=37914&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=37914&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=37914&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=37914&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37914&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=37914&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=37914&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=37914&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=37914&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=37914&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=37914&r=mysqlcfg