- remove another warning with php 5.3 (ereg*)
authorggiunta <ggiunta@013ecfd8-0664-425d-a759-9c98391dc3f9>
Sun, 26 Jul 2009 20:37:10 +0000 (20:37 +0000)
committerggiunta <ggiunta@013ecfd8-0664-425d-a759-9c98391dc3f9>
Sun, 26 Jul 2009 20:37:10 +0000 (20:37 +0000)
git-svn-id: https://svn.code.sf.net/p/phpxmlrpc/code/trunk/xmlrpc@27 013ecfd8-0664-425d-a759-9c98391dc3f9

demo/server/server.php

index 3a42ad3..95c2b49 100644 (file)
@@ -227,8 +227,8 @@ in an alphabetic order.';
 
                // don't even ask me _why_ these come padded with
                // hyphens, I couldn't tell you :p
-               $a=ereg_replace("-", "", $a);
-               $b=ereg_replace("-", "", $b);
+               $a=str_replace("-", "", $a);
+               $b=str_replace("-", "", $b);
 
                if ($agesorter_arr[$a]==$agesorter[$b])
                {