Commit 9e5b40b77afa3fbafe3f5e738fad9ed5f16ee7e2
1 parent
a834cfb9
WSA-90
"Remove php5 specific modifiers on functions so that web services works on both 3.4.x and 3.5.x" Fixed. Committed By: Conrad Vermeulen Reviewed By: Jalaloedien Abrahams git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@7837 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
2 additions
and
13 deletions
ktwebservice/webservice.php
| @@ -1076,17 +1076,6 @@ class KTWebService | @@ -1076,17 +1076,6 @@ class KTWebService | ||
| 1076 | } | 1076 | } |
| 1077 | } | 1077 | } |
| 1078 | 1078 | ||
| 1079 | - function get() | ||
| 1080 | - { | ||
| 1081 | - static $ws = null; | ||
| 1082 | - if (is_null($ws)) | ||
| 1083 | - { | ||
| 1084 | - $classname = KTWebService::$wsclass; | ||
| 1085 | - $ws = new $classname(); | ||
| 1086 | - } | ||
| 1087 | - return $ws; | ||
| 1088 | - } | ||
| 1089 | - | ||
| 1090 | function debug($msg, $function = null, $level=0) | 1079 | function debug($msg, $function = null, $level=0) |
| 1091 | { | 1080 | { |
| 1092 | if ($this->mustDebug === false) return; | 1081 | if ($this->mustDebug === false) return; |
| @@ -3832,7 +3821,7 @@ class KTWebService | @@ -3832,7 +3821,7 @@ class KTWebService | ||
| 3832 | */ | 3821 | */ |
| 3833 | function decodeSOAPValue($value) | 3822 | function decodeSOAPValue($value) |
| 3834 | { | 3823 | { |
| 3835 | - if ($value instanceof SOAP_Value) | 3824 | + if (is_a($value, 'SOAP_Value')) |
| 3836 | { | 3825 | { |
| 3837 | $x = new stdClass(); | 3826 | $x = new stdClass(); |
| 3838 | $v = & $value->value; | 3827 | $v = & $value->value; |
| @@ -3910,7 +3899,7 @@ class KTWebService | @@ -3910,7 +3899,7 @@ class KTWebService | ||
| 3910 | 3899 | ||
| 3911 | } | 3900 | } |
| 3912 | 3901 | ||
| 3913 | -$webservice = KTWebService::get(); | 3902 | +$webservice = new KTWebService(); |
| 3914 | $webservice->run(); | 3903 | $webservice->run(); |
| 3915 | 3904 | ||
| 3916 | ?> | 3905 | ?> |
| 3917 | \ No newline at end of file | 3906 | \ No newline at end of file |