[phpldapadmin] [ phpldapadmin-Bugs-2777037 ] PHP 5.3 deprecated functions

"SourceForge.net" <[email protected]>
Newsgroups gmane.comp.ldap.davedap
Message-ID <[email protected]>
Bugs item #2777037, was opened at 2009-04-21 14:23
Message generated for change (Comment added) made by wurley
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=498546&aid=2777037&group_id=61828

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Johan Cwiklinski (trashy_jo)
Assigned to: Nobody/Anonymous (nobody)
Summary: PHP 5.3 deprecated functions

Initial Comment:
Hello,

Some functions used in the code has been deprecated in php 5.3 (mostly ereg functions : http://wiki.php.net/doc/scratchpad/upgrade/53#deprecated).

I'm using php-5.3 RC1, and phpldapadmin 1.1.0.7 crashes with the following stacktrace :
Unrecognized error number: 8192: Function eregi() is deprecated
PHP Debug Backtrace
File	/usr/share/phpldapadmin/lib/functions.php (161)
 	Function	error (a:5:{i:0;s:63:"Unrecognized error number: 8192: Fu...<TRUNCATED>)
File	/usr/share/phpldapadmin/lib/functions.php ()
 	Function	pla_error_handler (a:5:{i:0;i:8192;i:1;s:30:"Function eregi() is depr...<TRUNCATED>)
File	/usr/share/phpldapadmin/lib/hooks.php (171)
 	Function	eregi
File	/usr/share/phpldapadmin/lib/common.php (138)
 	Function	require_once (a:1:{i:0;s:37:"/usr/share/phpldapadmin/lib/hooks.p...<TRUNCATED>)
File	/usr/share/phpldapadmin/htdocs/common.php (11)
 	Function	require_once (a:1:{i:0;s:38:"/usr/share/phpldapadmin/lib/common....<TRUNCATED>)
File	/usr/share/phpldapadmin/htdocs/cmd.php (8)
 	Function	require_once (a:1:{i:0;s:41:"/usr/share/phpldapadmin/htdocs/comm...<TRUNCATED>)

Hope that'll be helpfull :-)

----------------------------------------------------------------------

>Comment By: Deon George (wurley)
Date: 2009-05-22 17:25

Message:
Thanks,

I've removed all the eregi functions (except in the hooks calls - which
will be updated in due course).

The updates are available in WIP-090522 drop.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=498546&aid=2777037&group_id=61828

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
______________________________________
phpLDAPadmin development mailing list.
To unsbuscribe: https://lists.sourceforge.net/lists/listinfo/phpldapadmin-devel
http://phpldapadmin.sourceforge.net/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.