ID:               35199
 User updated by:  choover at rdg dot com
 Reported By:      choover at rdg dot com
 Status:           Open
 Bug Type:         Apache2 related
 Operating System: Linux  2.6.9-22.0.1
 PHP Version:      4.4.1
 New Comment:

This is getting VERY frusterating!  We have found that if we add
ob_end_flush(); to the bottom of the phpx.php page, the page will then
execute; but there is no ob_start()  in our code.  Also, require() and
require_once() do not work but include() does.  But include only works
when it wants.  The first file we include is a custom error handler.
Once the file is executed the first time, we have to rename the actual
error handler function call to get the file to load again. Something
with the buffering is really screwed up.


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

[2005-11-16 14:35:43] choover at rdg dot com

Installed latest CVS 4.4.2-dev and still have no results.

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

[2005-11-12 15:50:40] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip



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

[2005-11-12 15:12:55] choover at rdg dot com

Description:
------------
A script under Apache2 using PHP 4.3.11 as an Apache 2 Handler that was
called from a .htaccess file using the AddHandler and Action statements
worked fine.  The 4.4.1 version of PHP with the same configuration no
longer executes the page and gives no errors.  We changed the php.ini
with cgi.fix_pathinfo=1 and made the appropriate modifications to
httpd.conf to fix the issue.  Still no luck.  

Reproduce code:
---------------
#.htaccess file
Addtype text/xml .phpx
AddHandler phpx-file-handler .phpx
Action phpx-file-handler /lib/phpx.php
DirectoryIndex index.phpx index.php



Create the phpx.php file:

<?

session_start();

echo "Passed Path :".$_SERVER["PATH_INFO"];

session_write_close();
?> 


Create a file with .phpx as extension:

<?xml version="1.0"?>
<Document>
</Document>

Expected result:
----------------
This url represents the expected
result:http://emd11.medianext.com/quango/websites/rdg/index.phpx

Apache redirects the .phpx file to the /lib/phpx.php page for
processing and outputs results.

Actual result:
--------------
This is the non-working one:
http://quangoweb.medianext.com/websites/rdg/index.phpx

There are NO errors in our logs:

/var/log/httpd/error_log
/var/log/error_php

And no $_SERVER variables are being set on the phpx.php page. However,
calling the page by itself:

http://quangoweb.medianext.com/lib/phpx.php

Show that it does run.


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


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

Reply via email to