Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

itsmeaf

macrumors newbie
Original poster
Jun 21, 2011
4
0
Australia
Hi,

Having a little trouble developing with PhP on my MacBook Pro OS 10.6.7, using the native PhP and Apache.

The error reporting is a bit funny, some errors appear OK, such as:
PHP:
$i = 9/0;
## Division by Zero

However function/class errors seem to be cause the server to crash since both Safari and Chrome bomb and throw back the Error 500.

The Chrome error:
HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.

An example which causes this error is:
PHP:
parent:someMethod(); // Missing a ':'
/**
 * Should be
 * parent::someMethod();
 */


I have searched for a solution but haven't found one, maybe I haven't look hard enough or in the correct spot.

Any help would be welcome since I like PhP telling me where and what the problem is.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.