[PATCH] Net_Ping PHP5 bug fix

From: Date: Sun, 19 Sep 2004 16:41:42 +0000
Subject: [PATCH] Net_Ping PHP5 bug fix
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-33451@lists.php.net to get a copy of this message
Hi, I've put together this patch to fix a pear error being returned instead of Net_Ping_Result when Net_Ping is used in PHP5 (see bug 2314 http://pear.php.net/bugs/bug.php?id=2314) Index: Ping.php =================================================================== RCS file: /repository/pear/Net_Ping/Ping.php,v retrieving revision 1.38 diff -u -r1.38 Ping.php --- Ping.php 21 Jul 2004 14:27:25 -0000 1.38 +++ Ping.php 19 Sep 2004 12:47:46 -0000 @@ -633,7 +633,7 @@ */ 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() */ Cheers, Andy.

« previous php.pear.dev (#33451) next »