cvs: pear /XML_RPC RPC.php

From: Date: Wed, 06 Oct 2004 19:03:35 +0000
Subject: cvs: pear /XML_RPC RPC.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-24638@lists.php.net to get a copy of this message
ssb Wed Oct 6 15:03:35 2004 EDT Modified files: /pear/XML_RPC RPC.php Log: * patch for recognizing "+1" as an integer, thanks to cl-pear at ex-parrot dot com http://cvs.php.net/diff.php/pear/XML_RPC/RPC.php?r1=1.25&r2=1.26&ty=u Index: pear/XML_RPC/RPC.php diff -u pear/XML_RPC/RPC.php:1.25 pear/XML_RPC/RPC.php:1.26 --- pear/XML_RPC/RPC.php:1.25 Mon May 31 16:10:27 2004 +++ pear/XML_RPC/RPC.php Wed Oct 6 15:03:32 2004 @@ -2,7 +2,7 @@ // /* vim: set expandtab tabstop=4 shiftwidth=4: */ // by Edd Dumbill (C) 1999-2001 // <edd@usefulinc.com> -// $Id: RPC.php,v 1.25 2004/05/31 20:10:27 pajoye Exp $ +// $Id: RPC.php,v 1.26 2004/10/06 19:03:32 ssb Exp $ // License is granted to use or modify this software ("XML-RPC for PHP") // for commercial or non-commercial use provided the copyright of the author @@ -269,7 +269,7 @@ } else { // we have an I4, INT or a DOUBLE // we must check that only 0123456789-.<space> are characters here - if (!ereg("^\-?[0123456789 \t\.]+$", $XML_RPC_xh[$parser]['ac'])) { + if (!ereg("^[+-]?[0123456789 \t\.]+$", $XML_RPC_xh[$parser]['ac'])) { PEAR::raiseError("Non-numeric value received in INT or DOUBLE", XML_RPC_ERROR_NON_NUMERIC_FOUND); $XML_RPC_xh[$parser]['st'] .= "ERROR_NON_NUMERIC_FOUND"; } else {

« previous php.pear.cvs (#24638) next »