Project

General

Profile

Actions

Bug #19728

closed

ereg* is deprecated in PHP 5.3 alpha3

Added by Niels Pardon almost 16 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2008-12-21
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.3
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

With current TYPO3 trunk I get a lot of PHP warnings like this one using PHP 5.3 alpha 3:

"Deprecated: Function ereg_replace() is deprecated in ..."

(issue imported from #M9994)


Files

9994_TYPO3_trunk.patch (52.9 KB) 9994_TYPO3_trunk.patch Administrator Admin, 2008-12-21 22:37
9994.KD.patch (128 KB) 9994.KD.patch Administrator Admin, 2009-01-22 18:33
9994.KD.v2.patch (128 KB) 9994.KD.v2.patch Administrator Admin, 2009-02-09 10:15
9994.KD.v3.patch (125 KB) 9994.KD.v3.patch Administrator Admin, 2009-05-15 21:24
9994.KD.v4.patch (125 KB) 9994.KD.v4.patch Administrator Admin, 2009-05-15 22:21
9994.KD.v5.patch (132 KB) 9994.KD.v5.patch Administrator Admin, 2009-05-15 23:32

Related issues 6 (0 open6 closed)

Related to TYPO3 Core - Bug #20479: Export To t3d results in Fatal Error because of wrong RegExClosedPeter Niederlag2009-05-19

Actions
Related to TYPO3 Core - Bug #20435: syntax error, unexpected ';' in class.t3lib_htmlmail.phpClosed2009-05-16

Actions
Related to TYPO3 Core - Bug #18643: TypoScript Constant Editor produces PHP Warning: ereg() Invalid preceding regular expression in class.t3lib_tsparser_ext.phpClosedOliver Hader2008-04-19

Actions
Related to TYPO3 Core - Bug #15926: DB Check: "Find Filename" gives Warning: eregi(): REG_BADRPTClosed2006-03-28

Actions
Related to TYPO3 Core - Bug #67013: felogin setting plugin.tx_felogin_pi1.redirectMode = refererDomains causes an exceptionClosed2015-05-18

Actions
Has duplicate TYPO3 Core - Bug #19729: ereg is deprecated in PHP 5.3 alpha3ClosedOliver Hader2008-12-21

Actions
Actions #1

Updated by Niels Pardon almost 16 years ago

Solution: use preg_replace().

Actions #2

Updated by Dmitry Dulepov over 15 years ago

There are three patches here. Which one should be used?

Actions #3

Updated by Karsten Dambekalns over 15 years ago

The latest one, 9994.KD.v2.patch. We talked about this one just today in Hamburg, would be cool to have this checked and committed finally! :)

Actions #4

Updated by Karsten Dambekalns over 15 years ago

Please test latest patch against trunk - thanks!

Actions #5

Updated by Karsten Dambekalns over 15 years ago

v4: One more thing - fixed wrong line in nusoap library for EM, that was already noted in mailing list earlier... remaining patch unchanged.

Actions #6

Updated by Michiel Roos over 15 years ago

Still has ereg_replace in:
tests/regularexpression_testcase.php
typo3/class.db_list_extra.inc
typo3/cli_dispatch.phpsh
typo3/sysext/cms/tslib/media/scripts/fe_adminLib.inc
typo3/sysext/cms/tslib/media/scripts/wapversionLib.inc

Still has eregi_replace in:
typo3/sysext/cms/tslib/media/scripts/plaintextLib.inc

Still has ereg in:
t3lib/class.t3lib_sqlparser.php
typo3/class.db_list.inc
typo3/sysext/adodb/adodb/drivers/adodb-sybase.inc.php

Actions #7

Updated by Karsten Dambekalns over 15 years ago

Well, the testcase obviously needs them for testing purposes. :)

I fixed the others but ignored adodb for now (sybase is probably not usable anyway...)

New v5 patch attached.

Actions #8

Updated by Karsten Dambekalns over 15 years ago

Fixed in SVN

Actions #10

Updated by Oliver Hader over 15 years ago

Due to many misbehaviours of the ereg/preg stuff, this fix needs again a full and detailed review.

Actions #11

Updated by Oliver Hader almost 15 years ago

Seems to be working now...

Actions

Also available in: Atom PDF