Hi,
I hit a problem with Apache2 on Squeeze which I had to abandon and work
around, however it is of a character that makes me unhappy just to leave
it, and I don't have a reproducible case I can share yet to file a bug
report.
I had a PHP website that included a file include/textblock.php which
you could access http://example.com/include/textblock?name=test; and it
queried a database and spat out a piece of text from a database with
some HTML formatting.
I decided to try and include this using SSI into another page of the
same website (specifically /test.php ).
So I did a Options +Multiview +Include and
AddOutputFilter INCLUDES .php on virtual host.
Added a line;
!--#include virtual=include/textblock.php?name=test --
At this point the retrieval of the page fell over at the end of the
first PHP loop after the SSI include of PHP code.
Inspection of where it fell down suggested it was something to do with a
style statement with background-color in it, but I couldn't get
consistent sensible behaviour.
Not sure that this configuration is suppose to work but it seemed worth
trying, since it would save rewriting the include as a PHP function or
similar.
The SSI documentation implies QUERY_STRING may not be what I expect.
I could have working page, and no include, or segfault and half a page
returned by toggling mod_include with a2enmod.
Am I simply corrupting the PHP runtime environment by invoking it this
way? No errors or warnings except for the segfault.
[notice] child pid 15811 exit signal Segmentation fault (11)
I wrote a PHP function after scratching head a little.
ii apache22.2.16-6+squeeze7
Apache HTTP Server metapackage
ii apache2-doc2.2.16-6+squeeze7
Apache HTTP Server documentation
ii apache2-mpm-prefork2.2.16-6+squeeze7
Apache HTTP Server - traditional non-threaded model
ii apache2-utils 2.2.16-6+squeeze7
utility programs for webservers
ii apache2.2-bin 2.2.16-6+squeeze7
Apache HTTP Server common binary files
ii apache2.2-common 2.2.16-6+squeeze7
Apache HTTP Server common files
ii libapache2-mod-auth-pgsql 2.0.3-5
Module for Apache2 which provides pgsql authentication
ii libapache2-mod-fcgid 1:2.3.6-1+squeeze1
an alternative module compat with mod_fastcgi
ii libapache2-mod-fcgid-dbg 1:2.3.6-1+squeeze1
debugging symbols for mod_fcgid
ii libapache2-mod-php55.3.3-7+squeeze8
server-side, HTML-embedded scripting language (Apache 2
module)
--
To UNSUBSCRIBE, email to debian-apache-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4f9ea99d.4030...@zynet.net