#37914 [Opn->Fbk]: get_include_path() doesn't whine about passing a parameter to it

From: Date: Mon, 26 Jun 2006 10:16:22 +0000
Subject: #37914 [Opn->Fbk]: get_include_path() doesn't whine about passing a parameter to it
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-98768@lists.php.net to get a copy of this message
ID: 37914 Updated by: tony2001@php.net 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

« previous php.bugs (#98768) next »