|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
  [2006-06-26 10:04 UTC] 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. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 16:00:01 2025 UTC | 
What are you talking about? # php -r 'get_include_path("");' Warning: Wrong parameter count for get_include_path() in Command line code on line 1Ok, a warning DOES make it to the apache error_log. but if you are using @get_include_path(), and pass a parameter, it basically silently fails. If you want, mark it bogus, but it was a royal pain to find the garbage code in an app that had the @get_include_path('include_path') coded.