Re: [PHP-DEV] Fatal error: Call to a member function on a non-object

2008-11-17 Thread Paweł Stradomski
W liście Christopher Vogt z dnia poniedziałek 17 listopada 2008: > I have a good understanding of OOP. This is not a start for me. I am > just refactoring existing PHP code to be object-oriented. You say there > are plenty of reasons for a Fatal error, so please tell me a few, so I > understand th

Re: [PHP-DEV] Fatal error: Call to a member function on a non-object

2008-11-17 Thread Christopher Vogt
Hi Kalle, > I personally don't really mind it, as you got the instanceof and > typehinting to check for whenever a variable is an object, so I would > say its more of a user design issue. Fatal errors just requires you to > refactor your code so your code shouldn't emit such things which I'm > alr

Re: [PHP-DEV] Fatal error: Call to a member function on a non-object

2008-11-17 Thread Christopher Vogt
Hej Jochem, I understand there are many PHP beginners flooding the wrong lists with the wrong questions, so I don't mind your harsh response. But I am not one of them. > please don't post this kind of question to internals. use [EMAIL PROTECTED] This was/is a question if something is worth a cha

Re: [PHP-DEV] Fatal error: Call to a member function on a non-object

2008-11-17 Thread Kalle Sommer Nielsen
Hi 2008/11/17 Christopher Vogt <[EMAIL PROTECTED]>: > Hej, > > I use PHP 5.2.6. I am refactoring some code to use more > object-orientation. I encounter a problem, where the new object-oriented > version results in a fatal error, where the old array-oriented version > didn't. > > I fetch records a