Bug #16567 [Com]: Deprecated: Assigning the return value & Deprecated: Function eregi()
| From: | thomas@goirand.fr | Date: | Tue, 31 Aug 2010 18:41:36 +0000 |
| Subject: | Bug #16567 [Com]: Deprecated: Assigning the return value & Deprecated: Function eregi() | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-4731@lists.php.net to get a copy of this message | ||
Edit report at http://pear.php.net/bugs/bug.php?id=16567&edit=1
ID: 16567
Comment by: thomas@goirand.fr
Reported By: n dot vignjevic at nao-company dot com
Summary: Deprecated: Assigning the return value & Deprecated:
Function eregi()
Status: Open
Type: Bug
Package: XML_Parser
Operating System: All
Package Version: 1.3.2
PHP Version: 5.3.0
Roadmap Versions:
New Comment:
A patch has been sent to this bug tracker quite a long time ago. Why
isn't it applied to the package? Please fix this issue.
Thomas
Previous Comments:
------------------------------------------------------------------------
[2010-06-10 04:47:57] zigo
FYI: I tried to get the pkg-php team involved, but it didn't work, as
you can see.
------------------------------------------------------------------------
[2010-06-01 19:12:32] caribou
@zigo, I didn't notice you wrote "if you like" in your comment. I would
very much enjoy a way of fixing this issue on debian; so if you can
contact them, please do.
------------------------------------------------------------------------
[2010-05-27 21:37:44] caribou
Correcting the erig is easy: preg_match function works in both PHP4 and
PHP 5.3. The patch I sumbitted earlier takes care of this warning.
------------------------------------------------------------------------
[2010-05-27 10:10:23] zigo
That might be correct for returning a value as reference. However,
testing against the PHP version for choosing eregi preg_match WILL work.
I will involve the Debian pkg-php-pear team if you like, so that they
can find a solution for the returning a reference issue.
------------------------------------------------------------------------
[2010-05-26 23:48:19] caribou
@zigo: I just tried the following.
file test2.php:
if (false)
$a =& new A();
file test.php:
error_reporting(E_ALL);
require_once 'test2.php';
I get a warning for deprecated return value of new.
In this case the warning is not for the function but for the use of "=&
new". So the patch I submit won't work. :-(
If you find a way, please tell me.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://pear.php.net/bugs/bug.php?id=16567
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=16567&edit=1