Permalink
Browse files

Fix classname case issue between PHP 4 and 5 (Fixes #2314)

git-svn-id: http://svn.php.net/repository/pear/packages/Net_Ping/trunk@203246 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent cebdb28 commit 580859c288b868487994c27b8cc6704ef848e9b3 Jan Lehnardt committed Dec 19, 2005
Showing with 1 addition and 1 deletion.
  1. +1 −1 Ping.php
View
@@ -633,7 +633,7 @@ function factory($result, $sysname)
*/
function _prepareParseResult($sysname)
{
- $parse_methods = array_values(get_class_methods('Net_Ping_Result'));
+ $parse_methods = array_values(array_map('strtolower', get_class_methods('Net_Ping_Result')));
return in_array('_parseresult'.$sysname, $parse_methods);
} /* function _prepareParseResult() */

0 comments on commit 580859c

Please sign in to comment.