Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I have a class with the following structure.

abstract class ABS {}

interface INT {}

class SomeClass extends ABS implements INT
{
 //class implementation...
}

I'm working on my development environment with PHP 5.3 But when I uploaded to live (PHP 5.2.17) it just doesn't go to the end of declaration of the class SomeClass. Just stops there, no error, nothing. When i tested with some echo statements (in the begining of the class (before declaration) and in the end of the class(after declaration)) the echo statement that was in the end of the class declaration did not appear on the screen. When I remove either the extends or implements statement it reaches the end. Can you help me?

share|improve this question
    
Any particular reason you're not migrating to 5.4 instead? Of better, could you describe why you can't update your server to >= your development PHP version? –  Cory Carson May 6 '12 at 17:46
    
I just switched to 5.3 in live and I'm waiting for the changes to take effect. I hope this will solve my problem. –  Alexander Beninski May 6 '12 at 17:47
1  
Did you check the error logs? Is error reporting turned on? –  Mārtiņš Briedis May 6 '12 at 18:32
    
update to 5.3 worked perfect. Thank you. –  Alexander Beninski May 6 '12 at 19:05

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.