ID: 35059 Updated by: [EMAIL PROTECTED] Reported By: free4cd at yahoo dot de -Status: Feedback +Status: Closed Bug Type: Apache2 related Operating System: SuSE 9.3 PHP Version: 4.4.1RC1 New Comment:
This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2005-11-02 16:36:44] patpro at patpro dot net Hello, FreeBSD 5.4, Apache 2.0.55 + mod_rewrite sample rule : RewriteRule ^affiche/([0-9]+)/$ index.php? op=affiche&origine=$1 [L] same problem experienced, but I've got php error logs. What can be said from those logs is that : php 4.4.1 won't be able to include files if the URL goes thru the mod_rewrite: [02-Nov-2005 15:26:02] PHP Warning: main(): Unable to access ./fonctions.php in /www/.../index.php on line 103 [02-Nov-2005 15:26:02] PHP Warning: main(./fonctions.php): failed to open stream: No such file or directory in / www/.../index.php on line 103 [02-Nov-2005 15:26:02] PHP Warning: main(): Failed opening './fonctions.php' for inclusion (include_path='.:') in / www/.../index.php on line 103 php 4.4.1 will sometime include the file (after apache restart AND direct request to the "offending" url) but will fail with fatal error : [02-Nov-2005 14:53:42] PHP Fatal error: Cannot redeclare listeentrees() (previously declared in /www/.../ fonctions.php:28) in /www/.../fonctions.php on line 28 ------------------------------------------------------------------------ [2005-11-02 16:03:54] hujer at bazmek dot net Hi there, we're experiencing the same problem. Been playing with mod_rewrite at RewriteLogLevel 9 and found nothing. Then I tried this simple test: (.htaccess file) RewriteEngine On RewriteRule ^test-html$ test.html [L] RewriteRule ^test-php$ test.php [L] While the first rule matches and works well, the second one actually matches properly, too (verified in mod_rewrite log) but the script never gets executed and I get empty document (<html><body></body></html>) as output. No errors in logs whatsoever. It seems like when PHP script as a target of RewriteRule causes the problems. Static content works all well. Apache/[EMAIL PROTECTED], PHP 4.1.1. I'm sorry, can't try out PHP5 snapshot ATM. ------------------------------------------------------------------------ [2005-11-02 14:20:05] [EMAIL PROTECTED] Give feedback when you have it. We're not interested what you do in between. ------------------------------------------------------------------------ [2005-11-01 23:09:50] free4cd at yahoo dot de OK, I try the PHP5 snapshot. I post the result tomorrow when I've finished the tests if it works. ------------------------------------------------------------------------ [2005-11-01 22:24:00] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip ------------------------------------------------------------------------ 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/35059 -- Edit this bug report at http://bugs.php.net/?id=35059&edit=1