Tangential Topic: MacPorts PHP code broken by OS X update?

Ryan Schmidt ryandesign at macports.org
Tue Aug 17 12:54:06 PDT 2010

On Aug 17, 2010, at 11:54, John Korchok wrote:

> I am unable to find a forum that can answer this question, please let me know where I might find an answer.
> I am using MacPorts PHP 5.3 on Leopard. I have lots of code that was working perfectly fine until I applied the 2010-004 security update (among others) this past weekend. Now I am getting:
> "Fatal error: Cannot redeclare class EmployeeTable in /Library/WebServer/Documents/profile/EmployeeTable.php on line 4"
> after signing in. None of the PHP has been changed.
> - "which php" answers "/opt/local/bin/php", so that hasn't changed.
> - We only upgraded the OS, none of the ports, so the version of PHP hasn't changed.
> Ever since upgrading to PHP 5.3, I've seen way more of these "cannot redeclare" errors on code that otherwise seems fine. Googling the term just gets me pages of people who have accidentally declared a class twice. I can't find anything on what could cause previously good code to suddenly generate this error. Thanks for any help or redirection to a more appropriate forum.

Can't imagine why a security update would have caused anything like this, so let's assume it didn't. Are you sure you're not including EmployeeTable.php twice?

More information about the macports-users mailing list