Use the snapshot from tomorrow, I think I fixed most of the warnings.
Ralf
Boyd Duffee schrieb:
Just reporting the deprecated errors that are filling my log files Found
[2] 1
(running PHP 5.3, eGW 1.6-snapshot from 24-11-09)
[PHP Deprecated: Function magic_quotes_runtime() ] - ack!! you fixed this
with r28636 in the time that I started this email.
PHP Deprecated: Function ereg() is deprecated in
egroupware/phpgwapi/inc/class.common.inc.php on line 130, referer:
https://mercury.kis.keele.ac.uk/egroupware/index.php?menuaction=calendar.calendar_uiviews.index
I see ereg being used in function cmp_version_long and function cmp_version
and preg_match is recommended and used elsewhere in the file. I can’t seem
to reproduce this error, but the new code doesn’t crash the page. This is
the patch I’ve rolled. You should, of course, do your own testing.
— class.common.inc_old.php 2009-11-30 15:27:09.000000000 +0000
+++ class.common.inc.php 2009-11-30 15:31:41.000000000 +0000
@@ -96,8 +96,8 @@
*/
static function cmp_version($str1,$str2,$debug=False)
{
ereg("([0-9]+).([0-9]+).([0-9]+)[a-zA-Z]([0-9])",$str1,$regs);
ereg("([0-9]+).([0-9]+).([0-9]+)[a-zA-Z]([0-9])",$str2,$regs2);
+
preg_match("([0-9]+).([0-9]+).([0-9]+)[a-zA-Z]([0-9])",$str1,$regs);
+
preg_match("([0-9]+).([0-9]+).([0-9]+)[a-zA-Z]([0-9])",$str2,$regs2);
if($debug) { echo “
$regs[0] - $regs2[0]”; }
for($i=1;$i<5;$i++)
@@ -127,8 +127,8 @@
*/
static function cmp_version_long($str1,$str2,$debug=False)
{
ereg("([0-9]+).([0-9]+).([0-9]+)[a-zA-Z]([0-9]).([0-9]*)",$str1,$regs);
ereg("([0-9]+).([0-9]+).([0-9]+)[a-zA-Z]([0-9]).([0-9])",$str2,$regs2);
+
preg_match("([0-9]+).([0-9]+).([0-9]+)[a-zA-Z]([0-9]).([0-9])",$str1,$regs);
+
preg_match("([0-9]+).([0-9]+).([0-9]+)[a-zA-Z]([0-9]).([0-9]*)",$str2,$regs2);
if($debug) { echo “
$regs[0] - $regs2[0]”; }
–
Ralf Becker
Director Software Development
Stylite GmbH
[open style of IT]
Morschheimer Strasse 15
67292 Kirchheimbolanden
fon +49 (0) 6352 70629-0
fax +49 (0) 6352 70629-30
mailto: rb@stylite.de
www.stylite.de
www.egroupware.org
Geschäftsführer Andre Keller,
Gudrun MĂĽller, Ralf Becker
Registergericht Kaiserslautern HRB 30575
Umsatzsteuer-Id / VAT-Id: DE214280951
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what’s new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
eGroupWare-developers mailing list
eGroupWare-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-developers