ID: 37914
Updated by: [EMAIL PROTECTED]
Reported By: ler at lerctr dot org
-Status: Open
+Status: Feedback
Bug Type: PHP options/info functions
Operating System: FreeBSD 6.1/amd64
PHP Version: 5.1.4
New Comment:
What are you talking about?
# php -r 'get_include_path("");'
Warning: Wrong parameter count for get_include_path() in Command line
code on line 1
Previous Comments:
------------------------------------------------------------------------
[2006-06-26 10:04:16] ler at lerctr dot org
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 this bug report at http://bugs.php.net/?id=37914&edit=1