ID: 37914 Updated by: [EMAIL PROTECTED] Reported By: ler at lerctr dot org -Status: Open +Status: Bogus Bug Type: PHP options/info functions Operating System: FreeBSD 6.1/amd64 PHP Version: 5.1.4 New Comment:
Of course you won't see any errors, you've turned them off: display_errors Off Off Don't use @. Not PHP problem. Previous Comments: ------------------------------------------------------------------------ [2006-06-26 10:26:57] ler at lerctr dot org Ok, 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. ------------------------------------------------------------------------ [2006-06-26 10:18:04] ler at lerctr dot org Did you actually click on the reproduce script? It clearly doesn't do that on my box. ------------------------------------------------------------------------ [2006-06-26 10:16:22] [EMAIL PROTECTED] 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 ------------------------------------------------------------------------ [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