ID:               33063
 User updated by:  arendjr at gmail dot com
 Reported By:      arendjr at gmail dot com
-Status:           Open
+Status:           Closed
 Bug Type:         Reproducible crash
 Operating System: Linux
 PHP Version:      5.0.3
 New Comment:

Darn, I just installed PHP 5.0.4 which appears to have solved the
problem already. Nevermind...


Previous Comments:
------------------------------------------------------------------------

[2005-05-20 09:20:02] arendjr at gmail dot com

Okay, it took some effort, by I created 3 new test cases. The longest
one, the one with the crash, is 47 lines (including whitespace) and has
no includes. I got also two workarounds, the first removes the unused
references to $rootWidget after which the problem disappears. The
second one again no longer uses a function to populate the document,
after which it works again. I hope this helps.
http://www.liacs.nl/~dvbeelen/php5crash/crash.php.txt
http://www.liacs.nl/~dvbeelen/php5crash/crash-workaround1.php.txt
http://www.liacs.nl/~dvbeelen/php5crash/crash-workaround2.php.txt

------------------------------------------------------------------------

[2005-05-19 16:14:38] [EMAIL PROTECTED]

Then you need to try a bit harder creating a shorter reproducable
script.... really.

------------------------------------------------------------------------

[2005-05-19 14:27:01] arendjr at gmail dot com

Okay, but beware that including WebPage.php will include a total of 10
files. I created a simple tarball which you can untar, enter the
directory and run 'php5 index.php'. I stripped as much as I could while
still letting my code function. I left the API docs in as it might help
you to understand the code better ;)
The most important file is base/Widgets.php. If you replace it with
base/Widgets.php.safe, the crash will no longer occur as it contains a
workaround by explicitly holding references to child widgets.
index.php contains the first testcase plus a set_include_path() to get
everything to work.
You can download the tarball from
www.liacs.nl/~dvbeelen/php5crash/aukyla2-bugreport.tar.gz

------------------------------------------------------------------------

[2005-05-19 12:31:11] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.

we miss your WebPage class include file

------------------------------------------------------------------------

[2005-05-19 11:27:14] arend at auton dot nl

Sorry, the URL's in the testcases should all have .txt 
appended, so: 
http://www.liacs.nl/~dvbeelen/php5crash/works.php.txt 
http://www.liacs.nl/~dvbeelen/php5crash/crash.php.txt 
http://www.liacs.nl/~dvbeelen/php5crash/corruption.php.txt 
http://www.liacs.nl/~dvbeelen/php5crash/works2.php.txt

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/33063

-- 
Edit this bug report at http://bugs.php.net/?id=33063&edit=1

Reply via email to