#22260 [NEW]: [phpweb] php.net/ini/directive-name -> man page
From: philip at cornado dot com Operating system: all PHP version: 4.3.1 PHP Bug Type: Feature/Change Request Bug description: [phpweb] php.net/ini/directive-name -> man page This is a phpweb feature request for the following. Here's an example: php.net/ini/register-globals Which would redirect to an appropriate ini entry which would be: configuration.directives.php#ini.register-globals The idea is every documented php directive would redirect as such. One consideration is how all ini directives are currently scattered about in the manual (per module/subject) so I don't believe this is a simple one line redirect. This is related to phpdoc discussions about a page that lists all ini directives which might either link to the appropriate directive entries (index) or this page might include the definitions. Point is, this is a related feature request. Maybe php.net/ini will list them all. -- Edit bug report at http://bugs.php.net/?id=22260&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22260&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22260&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22260&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22260&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22260&r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=22260&r=support Expected behavior: http://bugs.php.net/fix.php?id=22260&r=notwrong Not enough info:http://bugs.php.net/fix.php?id=22260&r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=22260&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22260&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22260&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22260&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22260&r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=22260&r=gnused
#23913 [NEW]: rename() working across partitions
From: philip at cornado dot com Operating system: linux PHP version: 4.3.2 PHP Bug Type: Filesystem function related Bug description: rename() working across partitions Unlike copy(), rename() doesn't work across partitions and generates an error similar to: Warning: rename() failed (Cross-device link) in foo.php This works in Windows, not linux. The rename() docs do not mention anything about partitions (or that it behaves like a native rename()), so this can be seen as a bug. BC shouldn't be a concern. -- Edit bug report at http://bugs.php.net/?id=23913&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=23913&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=23913&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=23913&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=23913&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=23913&r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=23913&r=support Expected behavior: http://bugs.php.net/fix.php?id=23913&r=notwrong Not enough info:http://bugs.php.net/fix.php?id=23913&r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=23913&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=23913&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23913&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=23913&r=dst IIS Stability: http://bugs.php.net/fix.php?id=23913&r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=23913&r=gnused
#1 [NEW]: Hello World
From: philip at cornado dot com Operating system: linux PHP version: 4.3.2 PHP Bug Type: Feature/Change Request Bug description: Hello World Here is the first bug, woohoo! Hello World. -- Edit bug report at http://bugs.php.net/?id=1&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=1&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=1&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=1&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=1&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=1&r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=1&r=support Expected behavior: http://bugs.php.net/fix.php?id=1&r=notwrong Not enough info:http://bugs.php.net/fix.php?id=1&r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=1&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=1&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=1&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=1&r=dst IIS Stability: http://bugs.php.net/fix.php?id=1&r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=1&r=gnused
#2 [NEW]: Hello World
From: philip at cornado dot com Operating system: linux PHP version: 4.3.2 PHP Bug Type: Feature/Change Request Bug description: Hello World Here is the first bug, woohoo! Hello World. -- Edit bug report at http://bugs.php.net/?id=2&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=2&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=2&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=2&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=2&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=2&r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=2&r=support Expected behavior: http://bugs.php.net/fix.php?id=2&r=notwrong Not enough info:http://bugs.php.net/fix.php?id=2&r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=2&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=2&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=2&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=2&r=dst IIS Stability: http://bugs.php.net/fix.php?id=2&r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=2&r=gnused
#1 [Opn]: Hello World
ID: 1 User updated by: philip at cornado dot com Reported By: philip at cornado dot com Status: Open -Bug Type: Feature/Change Request +Bug Type: Output Control Operating System: linux PHP Version: 4.3.2 New Comment: This is a comment for this lame thing Previous Comments: [2003-05-30 18:40:19] philip at cornado dot com Here is the first bug, woohoo! Hello World. -- Edit this bug report at http://bugs.php.net/?id=1&edit=1
#1 [Opn]: Hello World
ID: 1 User updated by: philip at cornado dot com Reported By: philip at cornado dot com Status: Open Bug Type: Output Control Operating System: linux PHP Version: 4.3.2 New Comment: This is the last comment that makes no sense why this damn thing doesn't work. Previous Comments: [2003-05-30 18:43:02] philip at cornado dot com This is a comment for this lame thing [2003-05-30 18:40:19] philip at cornado dot com Here is the first bug, woohoo! Hello World. -- Edit this bug report at http://bugs.php.net/?id=1&edit=1
#23929 [NEW]: strange register_shutdown_function error for undefined functions
From: philip at cornado dot com Operating system: linux PHP version: 4.3.2 PHP Bug Type: Unknown/Other Function Bug description: strange register_shutdown_function error for undefined functions register_shutdown_function() provides a warning instead of a fatal error when calling an undefined function. Not sure if this is intentional or not but here's a test script: And next, the strange looking error. Same result for both Apache module and CLI: Hello Warning: Unknown(): Unable to call do_not_exist() - function does not exist in Unknown on line 0 A PHP5 CLI demonstrates this same error. -- Edit bug report at http://bugs.php.net/?id=23929&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=23929&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=23929&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=23929&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=23929&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=23929&r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=23929&r=support Expected behavior: http://bugs.php.net/fix.php?id=23929&r=notwrong Not enough info:http://bugs.php.net/fix.php?id=23929&r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=23929&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=23929&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23929&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=23929&r=dst IIS Stability: http://bugs.php.net/fix.php?id=23929&r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=23929&r=gnused
#8 [NEW]: A day
From: philip at cornado dot com Operating system: linux PHP version: 4.3.2 PHP Bug Type: Feature/Change Request Bug description: A day This is a simply -hooky and that's about it. Also, mysql_connect and register_globals and foo-bar -- Edit bug report at http://bugs.php.net/?id=8&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=8&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=8&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=8&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=8&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=8&r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=8&r=support Expected behavior: http://bugs.php.net/fix.php?id=8&r=notwrong Not enough info:http://bugs.php.net/fix.php?id=8&r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=8&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=8&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=8&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=8&r=dst IIS Stability: http://bugs.php.net/fix.php?id=8&r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=8&r=gnused
#24087 [NEW]: Make temporary_directory available in userland
From: philip at cornado dot com Operating system: all PHP version: 5CVS-2003-06-08 (dev) PHP Bug Type: Feature/Change Request Bug description: Make temporary_directory available in userland How about making the result from get_temporary_directory() available in user land, most likely as a constant named TEMPORARY_DIRECTORY This would be useful in that we'd know where this is, in both Windows and *nix. The code that defines the internal variable temporary_directory is here: http://lxr.php.net/source/php4/main/php_open_temporary_file.c#164 I'm not a devel guy, but the following hack seems mildly appropriate: REGISTER_STRING_CONSTANT("TEMPORARY_DIRECTORY", get_temporary_directory(), strlen(get_temporary_directory()), 0); Not sure where to put it though, or if it's fully correct (doubtful), but please consider this idea as it would be nice. One *possible* concern is security but I think it's worth it, *maybe* disable this option in safe_mode. It's not like the TEMP directory is a big secret, nor is viewing various related directives like session.save_path and upload_tmp_dir. -- Edit bug report at http://bugs.php.net/?id=24087&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=24087&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=24087&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24087&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24087&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24087&r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=24087&r=support Expected behavior: http://bugs.php.net/fix.php?id=24087&r=notwrong Not enough info:http://bugs.php.net/fix.php?id=24087&r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=24087&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24087&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24087&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24087&r=dst IIS Stability: http://bugs.php.net/fix.php?id=24087&r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=24087&r=gnused
#33291 [NEW]: An addition of consistent function name aliases
From: philip at cornado dot com Operating system: PHP version: 5CVS-2005-06-10 (dev) PHP Bug Type: Feature/Change Request Bug description: An addition of consistent function name aliases Description: Request: For PHP to add a ton of function aliases that make the naming schemes consistent. Some examples: is_set(), str_pos(), array_key()... -- Edit bug report at http://bugs.php.net/?id=33291&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33291&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33291&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33291&r=trysnapshot51 Fixed in CVS:http://bugs.php.net/fix.php?id=33291&r=fixedcvs Fixed in release:http://bugs.php.net/fix.php?id=33291&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=33291&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=33291&r=needscript Try newer version: http://bugs.php.net/fix.php?id=33291&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=33291&r=support Expected behavior: http://bugs.php.net/fix.php?id=33291&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=33291&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=33291&r=submittedtwice register_globals:http://bugs.php.net/fix.php?id=33291&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33291&r=php3 Daylight Savings:http://bugs.php.net/fix.php?id=33291&r=dst IIS Stability: http://bugs.php.net/fix.php?id=33291&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=33291&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=33291&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=33291&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=33291&r=mysqlcfg
#30123 [NEW]: sqlite_error_string() to default to last errno
From: philip at cornado dot com Operating system: Irrelevant PHP version: Irrelevant PHP Bug Type: Feature/Change Request Bug description: sqlite_error_string() to default to last errno Description: This is a feature request for sqlite_error_string() to default to the last sqlite error rather than require passing in sqlite_last_error(). In otherwords, make the error_code parameter optional. Reproduce code: --- echo sqlite_error_string(); vs echo sqlite_error_string(sqlite_last_error()); -- Edit bug report at http://bugs.php.net/?id=30123&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30123&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30123&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30123&r=trysnapshot51 Fixed in CVS:http://bugs.php.net/fix.php?id=30123&r=fixedcvs Fixed in release:http://bugs.php.net/fix.php?id=30123&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=30123&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=30123&r=needscript Try newer version: http://bugs.php.net/fix.php?id=30123&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=30123&r=support Expected behavior: http://bugs.php.net/fix.php?id=30123&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=30123&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=30123&r=submittedtwice register_globals:http://bugs.php.net/fix.php?id=30123&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30123&r=php3 Daylight Savings:http://bugs.php.net/fix.php?id=30123&r=dst IIS Stability: http://bugs.php.net/fix.php?id=30123&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30123&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30123&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30123&r=mysqlcfg
#24337 [NEW]: additional configure --with-avail, and fix --enable-all
From: philip at cornado dot com Operating system: all PHP version: 4.3.3RC1 PHP Bug Type: Feature/Change Request Bug description: additional configure --with-avail, and fix --enable-all Description: The following configure options would be nice: New features: --- --with-avail : Compiles in all --with-* extensions that are available on a system. If not available/found, they are skipped. --enable-avail : Alias to --enable-all as I assume all enables are available. Maybe not? --with-all : Attempts to compile with all --with-* extensions, available or not. Changed behavior: --- --enable-all : Attempts to compile in all --enable-* extensions. Currently this attempts to compile in --with and --enable, so can be considered "broken". There can also be --without-all and --disable-all although --disable-all currently exists, it disables everything, --with or --enable. So, this is also a request to fix --enable-all or perhaps rename it as --with-all (but even then it wouldn't be fully accurate). -- Edit bug report at http://bugs.php.net/?id=24337&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=24337&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=24337&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24337&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24337&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24337&r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=24337&r=support Expected behavior: http://bugs.php.net/fix.php?id=24337&r=notwrong Not enough info:http://bugs.php.net/fix.php?id=24337&r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=24337&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24337&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24337&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24337&r=dst IIS Stability: http://bugs.php.net/fix.php?id=24337&r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=24337&r=gnused
#24389 [NEW]: PHP 5 : Windows build needs a MySQL DLL
From: philip at cornado dot com Operating system: Windows PHP version: 5CVS-2003-06-29 (dev) PHP Bug Type: MySQL related Bug description: PHP 5 : Windows build needs a MySQL DLL Description: The Windows distribution of PHP 5 doesn't include a DLL for either ext/mysql or ext/mysqli support. Users must compile their own PHP on Windows to gain this support. This is a request to make these DLL's available. -- Edit bug report at http://bugs.php.net/?id=24389&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=24389&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=24389&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24389&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24389&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24389&r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=24389&r=support Expected behavior: http://bugs.php.net/fix.php?id=24389&r=notwrong Not enough info:http://bugs.php.net/fix.php?id=24389&r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=24389&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24389&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24389&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24389&r=dst IIS Stability: http://bugs.php.net/fix.php?id=24389&r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=24389&r=gnused
#24702 [NEW]: disable_functions + httpd.conf should not set value
From: philip at cornado dot com Operating system: linux PHP version: 4.3.3RC1 PHP Bug Type: PHP options/info functions Bug description: disable_functions + httpd.conf should not set value Description: As we all know, setting disable_functions and disable_classes is not possible in httpd.conf as they are special case PHP_INI_SYSTEM directives, but doing so still emits a local value even knowing it has no meaning. In otherwords, setting disable_* in httpd.conf should not affect the local ini value as it does currently. Note: As expected, setting via ini_set() or .htaccess does not affect the value. Reproduce code: --- In httpd.conf: php_admin_value disable_functions "mail" PHP: echo ini_get('disable_functions'); Expected result: no value Actual result: -- mail -- Edit bug report at http://bugs.php.net/?id=24702&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=24702&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=24702&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=24702&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24702&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24702&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24702&r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=24702&r=support Expected behavior: http://bugs.php.net/fix.php?id=24702&r=notwrong Not enough info:http://bugs.php.net/fix.php?id=24702&r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=24702&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24702&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24702&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24702&r=dst IIS Stability: http://bugs.php.net/fix.php?id=24702&r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=24702&r=gnused
#24784 [NEW]: str_replace count paramater only counts replacements when strlen > 1
From: philip at cornado dot com Operating system: linux PHP version: 5CVS-2003-07-23 (dev) PHP Bug Type: Strings related Bug description: str_replace count paramater only counts replacements when strlen > 1 Description: str_[i]replace() has a count parameter that returns a variable (by reference) with a count of replacements. This is not counting when the search string is one character in length. Reproduce code: --- Expected result: 2 -- Edit bug report at http://bugs.php.net/?id=24784&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=24784&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=24784&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=24784&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24784&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24784&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24784&r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=24784&r=support Expected behavior: http://bugs.php.net/fix.php?id=24784&r=notwrong Not enough info:http://bugs.php.net/fix.php?id=24784&r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=24784&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24784&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24784&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24784&r=dst IIS Stability: http://bugs.php.net/fix.php?id=24784&r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=24784&r=gnused
#29552 [NEW]: callback function for levenshtein
From: philip at cornado dot com Operating system: Irrelevant PHP version: Irrelevant PHP Bug Type: Feature/Change Request Bug description: callback function for levenshtein Description: The levenshtein() documentation goes into great detail on a third yet to be implemented parameter for a levenshtein callback function. Below are those docs which will soon be removed from the php manual until this feature is actually implemented: The third variant (which is not implemented yet) will be the most general and adaptive, but also the slowest alternative. It will call a user-supplied function that will determine the cost for every possible operation. The user-supplied function will be called with the following arguments: * operation to apply: 'I', 'R' or 'D' * actual character in string 1 * actual character in string 2 * position in string 1 * position in string 2 * remaining characters in string 1 * remaining characters in string 2 The user-supplied function has to return a positive integer describing the cost for this particular operation, but it may decide to use only some of the supplied arguments. The user-supplied function approach offers the possibility to take into account the relevance of and/or difference between certain symbols (characters) or even the context those symbols appear in to determine the cost of insert, replace and delete operations, but at the cost of losing all optimizations done regarding cpu register utilization and cache misses that have been worked into the other two variants. Attempting to use it gives us: php_error_docref(NULL TSRMLS_CC, E_WARNING, "The general Levenshtein support is not there yet"); And a return value of -1. -- Edit bug report at http://bugs.php.net/?id=29552&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29552&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29552&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=29552&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=29552&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29552&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29552&r=needscript Try newer version: http://bugs.php.net/fix.php?id=29552&r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=29552&r=support Expected behavior: http://bugs.php.net/fix.php?id=29552&r=notwrong Not enough info:http://bugs.php.net/fix.php?id=29552&r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=29552&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=29552&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29552&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=29552&r=dst IIS Stability: http://bugs.php.net/fix.php?id=29552&r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=29552&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=29552&r=float