PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Web Services » SOAP » Bug #9574

bad preg_match_all() delimiter

Details

Submitted2006-12-07 15:45 UTC
Frompear at klokie dot com
Assignedyunosh
StatusClosed
PackageSOAP
PHP Version5.1.2
OSDebian 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';
}