cvs: pear /SOAP Base.php package.xml
| From: | Jan Schneider | Date: | Thu, 25 Jan 2007 23:04:51 +0000 |
| Subject: | cvs: pear /SOAP Base.php package.xml | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-44383@lists.php.net to get a copy of this message | ||
yunosh Thu Jan 25 23:04:51 2007 UTC
Modified files:
/pear/SOAP package.xml Base.php
Log:
Remove automatic soap type detection completely.
http://cvs.php.net/viewvc.cgi/pear/SOAP/package.xml?r1=1.108&r2=1.109&diff_format=u
Index: pear/SOAP/package.xml
diff -u pear/SOAP/package.xml:1.108 pear/SOAP/package.xml:1.109
--- pear/SOAP/package.xml:1.108 Thu Jan 25 23:01:53 2007
+++ pear/SOAP/package.xml Thu Jan 25 23:04:51 2007
@@ -41,14 +41,14 @@
<date>2007-01-23</date>
<version>
<release>0.10.2</release>
- <api>0.10.0</api>
+ <api>0.10.1</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<license uri="http://www.php.net/license">PHP
License</license>
- <notes>* Remove unreliable automatic base64 detection (Bug #9840).</notes>
+ <notes>* Remove SOAP_RAW_CONVERT setting.</notes>
<contents>
<dir baseinstalldir="SOAP" name="/">
<dir name="example">
http://cvs.php.net/viewvc.cgi/pear/SOAP/Base.php?r1=1.72&r2=1.73&diff_format=u
Index: pear/SOAP/Base.php
diff -u pear/SOAP/Base.php:1.72 pear/SOAP/Base.php:1.73
--- pear/SOAP/Base.php:1.72 Thu Jan 25 22:58:53 2007
+++ pear/SOAP/Base.php Thu Jan 25 23:04:51 2007
@@ -34,16 +34,6 @@
*/
$GLOBALS['SOAP_OBJECT_STRUCT'] = true;
-/**
- * SOAP_RAW_CONVERT makes PEAR::SOAP attempt to determine what SOAP type a PHP
- * string COULD be. This may result in slightly better interoperability when
- * you are not using WSDL, and are being lazy and not using SOAP_Value to
- * define types for your values.
- *
- * @global bool $GLOBALS['SOAP_RAW_CONVERT']
- */
-$GLOBALS['SOAP_RAW_CONVERT'] = false;
-
require_once 'PEAR.php';
require_once 'SOAP/Type/dateTime.php';
require_once 'SOAP/Type/hexBinary.php';
@@ -670,7 +660,7 @@
*/
function _getType(&$value)
{
- global $SOAP_OBJECT_STRUCT, $SOAP_RAW_CONVERT;
+ global $SOAP_OBJECT_STRUCT;
$type = gettype($value);
switch ($type) {
@@ -726,26 +716,6 @@
break;
case 'string':
- if ($SOAP_RAW_CONVERT) {
- if (is_numeric($value)) {
- if (strstr($value, '.')) {
- $type = 'float';
- } else {
- $type = 'int';
- }
- } else {
- if (SOAP_Type_hexBinary::is_hexbin($value)) {
- $type = 'hexBinary';
- } else {
- $dt =& new SOAP_Type_dateTime($value);
- if ($dt->toUnixtime() != -1) {
- $type = 'dateTime';
- }
- }
- }
- }
- break;
-
default:
break;
}