ID: 41070 Updated by: [EMAIL PROTECTED] Reported By: carpetsmoker at xs4all dot nl Status: Verified Bug Type: Documentation problem Operating System: FreeBSD 6.2 PHP Version: Irrelevant New Comment:
The problem is that the PHP_FUNCTION and {{ proto still exist in 5.2.0, 5.2.1, 5.2.2, but the function itself isn't actually registered (there's no actual PHP_FE for it). The functable script (ie, the one that figures out which versions of PHP have which functions) can't check for proper PHP_FE registration; it only finds protos and PHP_FUNCTION declarations. It would become needlessly complex if we made it check for PHP_FE (it would have to check other files, make sure that entries aren't commented or #ifdefed, etc.). This really is an edge case. I think it's very rare that we have function code that exists but doesn't get registered. I propose we add a note to this page that says something like "This function does not actually exist in PHP 5.2.x, it can be enabled (without documentation or support) by hacking on the code here: http://cvs.php.net/viewvc.cgi/php-src/ext/mbstring/mbstring.c?view=markup" S Previous Comments: ------------------------------------------------------------------------ [2007-04-14 13:26:17] carpetsmoker at xs4all dot nl Maybe an experimental note like this? http://www.php.net/manual/en/function.ncurses-putp.php ------------------------------------------------------------------------ [2007-04-13 14:50:50] [EMAIL PROTECTED] "disabled mb_list_*_names() and mb_list_encodings(arg) which are introduced in PHP 5.2.0RC to reconsider/discuss the specification." - hirokawa (http://cvs.php.net/viewvc.cgi/php-src/ext/mbstring/mbstring.c?r1=1.224.2.22.2.14&r2=1.224.2.22.2.15) Guess we should simply remove those two files, but this will be tough for our version checker to understand ------------------------------------------------------------------------ [2007-04-12 22:48:01] carpetsmoker at xs4all dot nl Description: ------------ The php documentation for mb_list_encodings_alias_names(http://www.php.net/manual/en/function.mb-list-encodings-alias-names.php) states that this function is available from php version 5.2.0 and up. I am currently using php 5.2.1, and the function is not defined in this version (I did not try 5.2.0). I assume that this is a documentation error and not an actual bug(?) Note: I have the mbstring extension loaded, other mbstring functions work fine. Reproduce code: --------------- <?php mb_list_encodings_alias_names('UTF-8'); ?> Actual result: -------------- Fatal error: Call to undefined function mb_list_encodings_alias_names() in /data/www/mailview/mailview.php on line 131 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=41070&edit=1