- remove a test for php versions lower than 5.0
authorggiunta <ggiunta@013ecfd8-0664-425d-a759-9c98391dc3f9>
Wed, 19 Jan 2011 21:57:55 +0000 (21:57 +0000)
committerggiunta <ggiunta@013ecfd8-0664-425d-a759-9c98391dc3f9>
Wed, 19 Jan 2011 21:57:55 +0000 (21:57 +0000)
git-svn-id: https://svn.code.sf.net/p/phpxmlrpc/code/trunk/xmlrpc@81 013ecfd8-0664-425d-a759-9c98391dc3f9

lib/xmlrpcs.inc

index 2fafdae..97035e4 100644 (file)
                        if ($data === null)\r
                        {\r
                                // workaround for a known bug in php ver. 5.2.2 that broke $HTTP_RAW_POST_DATA\r
-                               $ver = phpversion();\r
-                               if ($ver[0] >= 5)\r
-                               {\r
-                                       $data = file_get_contents('php://input');\r
-                               }\r
-                               else\r
-                               {\r
-                                       $data = isset($GLOBALS['HTTP_RAW_POST_DATA']) ? $GLOBALS['HTTP_RAW_POST_DATA'] : '';\r
-                               }\r
+                $data = file_get_contents('php://input');\r
                        }\r
                        $raw_data = $data;\r
 \r