Home » Web Services » SOAP » Bug #9574
bad preg_match_all() delimiter
Details
| Submitted | 2006-12-07 15:45 UTC |
|---|---|
| From | pear at klokie dot com |
| Assigned | yunosh |
| Status | Closed |
| Package | SOAP |
| PHP Version | 5.1.2 |
| OS | Debian Linux |
| Roadmaps | (Not assigned) |
Comments
[2006-12-07 15:45 UTC] pear at klokie dot com
Description:
------------
preg_match_all() [function.preg-match-all]: Delimiter must not be alphanumeric or backslash in SOAP/WSDL.php on line 2208
[2006-12-07 20:09 UTC] pear at klokie dot com
--- SOAP/WSDL.php~ 2006-12-07 11:23:05.000000000 +0100
+++ SOAP/WSDL.php 2006-12-07 20:47:35.000000000 +0100
@@ -2205,7 +2205,7 @@
*/
function _getTypeNs($type)
{
- preg_match_all("\{(.*)\}'sm", $type, $m);
+ preg_match_all("'\{(.*)\}'sm", $type, $m);
if (!empty($m[1][0])) {
if (!isset($this->wsdl->ns[$m[1][0]])) {
$ns_pref = 'ns' . count($this->wsdl->namespaces);
@@ -2213,7 +2213,7 @@
$this->wsdl->namespaces[$ns_pref] = $m[1][0];
}
$typens = $this->wsdl->ns[$m[1][0]];
- $type = strereg_replace($m[0][0], '', $type);
+ $type = ereg_replace($m[0][0], '', $type);
} else {
$typens = 'xsd';
}