Pierre Joye wrote:
hi,

Can you please tell use the function causing the crash? That would be helpful.

Funny thing: After about 2 days of wrestling with this issue and only when I copied and pasted the code into this reply did I notice:


function BB_CreatePropertiesLink($title, $bbaction, $extra = array(), $confirm = "", $useprops2 = false, $parentwindow = false)
        {
...
        }

...

function BB_CreateWidgetPropertiesLink($title, $bbaction, $extra = array(), $confirm = "", $useprops2 = false)
        {
                global $bb_widget;

                $extra["wid"] = $bb_widget->GetID();

return BB_CreateWidgetPropertiesLink($title, $bbaction, $extra, $confirm, $useprops2, true);
        }

...

I kept reading the function that the second function was calling as being the first function. Recursion = stack overflow = crash. While it is obvious above, there is a lot of similar code surrounding it. Huge waste of your time. Apologies.

Haven't had a crazy debugging session like this in a long time.

One thought: Has a way to track call depth been considered (perhaps _execute())? If the number of calls exceeds a certain (reasonable) number, a warning or notice could be displayed and the output buffer flushed. That way, when it crashes, there is a log of some sort for the function. Then again, I don't know Zend well enough to make that sort of judgment call and such a thing could affect performance.

BTW, my endeavor to create a Debug PHP build for Windows failed. Successfully built Apache and the PHP configuration said everything was good to go but the actual build failed (unresolved externals). I half-expected that to happen despite my best efforts. A recent *NIX PHP build of mine was a nightmare but successful (after compiling a zillion updated versions of all the libraries PHP wanted to link against). Has anyone thought about making a build system for public consumption that includes the "kitchen sink"? That is, every possible package and a build system that builds everything in one go - maybe powered by an INI file of some sort. I know the snapshots for Windows seemed to do that but that system wasn't packaged up for consumption as far as I know. Everyone I've ever encountered who has built PHP found it rather difficult because of all the dependencies. Just a thought I've had.

--
Thomas Hruska
CubicleSoft President
Ph: 517-803-4197

*NEW* MyTaskFocus 1.1
Get on task.  Stay on task.

http://www.CubicleSoft.com/MyTaskFocus/


--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to