[TYPO3-core] RFC #9994: Bug: ereg_replace is deprecated in PHP 5.3 alpha3
Karsten Dambekalns
karsten at typo3.org
Mon Feb 9 10:15:52 CET 2009
Hi Niels.
On 08.02.2009, at 15:44, Niels Pardon wrote:
> I get a parse error in the extension manager with this patch:
...
> The problem is this part:
>
> @@ -2024,7 +2027,7 @@
> function soap_transport_http($url){
> parent::nusoap_base();
> $this->setURL($url);
> - ereg('\$Revisio' . 'n: ([^ ]+)', $this->revision, $rev);
> + preg_match('/\$Revision$this->revision, $rev);
> $this->outgoing_headers['User-Agent'] =
> $this->title.'/'.$this->version.' ('.$rev[1].')';
> $this->debug('set User-Agent: ' . $this->outgoing_headers['User-
> Agent']);
> }
Oops. Should obviously be
function soap_transport_http($url){
parent::nusoap_base();
$this->setURL($url);
- ereg('\$Revisio' . 'n: ([^ ]+)', $this->revision, $rev);
+ preg_match('/\$Revision: ([^ ]+)/', $rev);
$this->outgoing_headers['User-Agent'] = $this->title.'/'.$this-
>version.' ('.$rev[1].')';
$this->debug('set User-Agent: ' . $this->outgoing_headers['User-
Agent']);
}
I uploaded a new patch to the BT.
Regards,
Karsten
--
Karsten Dambekalns
Gimme Five!
http://typo3.org/gimmefive
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 312 bytes
Desc: This is a digitally signed message part
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20090209/2d000bc0/attachment.pgp
More information about the TYPO3-team-core
mailing list