Re: parent::construct not reliable working on php5.1 b2/b3
| From: | Jochem Maas | Date: | Wed, 03 Aug 2005 10:03:44 +0000 |
| Subject: | Re: parent::construct not reliable working on php5.1 b2/b3 | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-219886@lists.php.net to get a copy of this message | ||
Meno Abels wrote:
Am 03.08.2005 um 09:22 schrieb Jochem Maas:IC.Meno Abels wrote:depends on the applicationThanks, the problem with cut an paste i have not only one of these messages i get huge amounts of these. So i stripped down to one, sorry my fault. a) usally 4-6any given class will never have a variable number of parents ;-) IMHO 6 levels deep is pushing the boat out a bit - but technically it should be no problem
its worth it - regardless of whether it works properly on 5.0 or not it strengthens any eventual bug report you may make - i.e. you can indicate in depth problem research. also try a fresh build of the latest php5.1 beta - just in case. no hurry on my account, I'm just an interested bystander :-)there are is alot of code which works as i mentioned all the code is generated. The pattern of the working code is not different to the none working. Also i have some examples where i call the same class in other scripts and they are working. So there is no write error. Also the old syntax should work without change and php 4 it works perfect.b) no c) yes, as I mentioned i tried both (old/new)again it may sound stupid but double check spelling in the file. also check for weird non-printing chars in the problem file -that will take a while to dod) never tested i jump over 5.05.1 is still beta - test it on 5.0 (consider that the mailing list equivelant of a military order ;-)
ouch. when you say random does that mean that running the exact same code will not always produce the error? what OS are you on?does the problem occur in only 1 baseclass? or in a fixed number of baseclasses? or is does it occur anywhere/everywhere.i occurs with a random pattern
we can rule that out then !are you trying to reassign $this or are you using the reference token (&) when passing objects around? (I ask because you seem to indicate that the codebase is being moved from php4 where such things are almost required to make usuable OO code - whereas in php5 it's asking for trouble)NO not used!
darn. so you're not even getting any E_STRICT errors?pump up error_reporting to full i.e. error_reporting( E_ALL | E_STRICT ) - maybe it will give you a hint.DONE, i see nothing which is seams to be helpfull
it may help you to see a pattern that is not obvious by viewing the stack trace preceeding each fatal error. just a thought - it may turn up nothing :-/also you might consider placing a call to debug_print_backtrace() in each and every constructor to help see wtf is going on.i'am not clear what is should help for.
<ring ring> (alarm bell goes off) - you have 20+ of your own extensions that are required, there is a distinct possibility that the problem lies within them ... recompling php with all the debug configure options turned on and using valgrind and/or gdb to debug maybe what you need to be doing. Side Note: you have code generators and a bunch of custom extensions - it sounds interesting to say the least! I'd love to see your stuff ... will you be going open source with it per chance? (maybe that is not even a decision you are allowed to make) rgds, Jochemlastly get a copy of Zend Studio Client/Server and set it up so that you can do step by step debugging to see _exactly_ what is going on.-:)I'm running out of ideas here ... I can only suggest now to post code - and plenty of it - if that is possible, send a link to somewhere rather than bombard everyone on the list with 1000's of lines of code.i will work to strip down you can't run the code without 20 own written c++/c extentions.
....