ID:               42666
 Comment by:       s dot clover at gmail dot com
 Reported By:      per dot jessen at enidan dot com
 Status:           Open
 Bug Type:         Apache2 related
 Operating System: Linux
 PHP Version:      5.2.4
 New Comment:

Similar issue running PHP 5.2.4 as a module with Apache 2.2.6 on a Win
XP box. Three files:

---

test.php:
<?php
virtual ('/test.html');
echo $bad;?>

test.html:
<!--#include virtual="test2.php" -->

test2.php:
<?php

?>

---
This is running with display_errors=On. It also segfaults, but in
different ways, with display_errors=Off, or depending on the exact
amount of bytes/calls in various files will simply print out a notice
with a corrupted linenumber.

It looks like the issue is that the php-within-php virtual nesting
somehow corrupts php's ability to tell the difference between
uninitialized/unset variables and valid ones, leading to memory access
exceptions of various sorts.


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

[2007-10-23 10:41:13] per dot jessen at enidan dot com

Sure. 

problem.phtlm.en:

<?php
        virtual("problem-include.phtml.en");
        klop
?>

problem-include.phtml.en:

<?php
?>

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

[2007-10-23 09:45:27] [EMAIL PROTECTED]

So you should be able to now provide the reproducing script here
instead of the tar package?

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

[2007-10-23 06:19:35] per dot jessen at enidan dot com

Sorry, forgot to mention that - yes, I've removed the XSL calls, and
added a plain syntax error. The segfault still happens.

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

[2007-10-22 19:24:10] [EMAIL PROTECTED]

And does the problem occur without XSL (by causing some other error) ?
(I can't check the tar package right now)

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

[2007-10-22 11:35:37] per dot jessen at enidan dot com

My apache config is nothing particularly fancy, I just do plain
language negotiation. Still, I've updated the reproduce code:

http://jessen.ch/files/php-bug42666-oct2007.tar.gz

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

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/42666

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

Reply via email to