Re: [PHP-DEV] SAPI/CGI and error_log()
At 22:24 28.08.2002, [EMAIL PROTECTED] wrote: On Wed, 28 Aug 2002, Marcus Börger wrote: Results with yesturdays sources: cgi without server: [marcus@zaphod sebastian-bergmann]$ /usr/src/php4/php error-log.php Status: 200 Content-type: text/html X-Powered-By: PHP/4.3.0-dev Building mod_php again with todays changes mod_php was not the problem, CGI without server is the prob... Derick The problem did only occur when not using ini setting error_log = filename. Therfore it took some time beeing able to reproduce this. Could you please verify my patch on cgi_main.c to fix this issue? marcus -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] SAPI/CGI and error_log()
Marcus Börger wrote: Could you please verify my patch on cgi_main.c to fix this issue? The test script I submitted works ok now. -- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/ Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] SAPI/CGI and error_log()
At 16:31 28.08.2002, Sebastian Bergmann wrote: Current HEAD causes browsers to download instead of showing scripts that call error_log() inside an output buffer, when using SAPI/CGI. Reproducing script: ?php ob_start(); error_log('test'); ? As a quick answer i tried this with sapi/mo_apache and it works as expected. marcus -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] SAPI/CGI and error_log()
On Wed, 28 Aug 2002, Marcus Börger wrote: At 16:31 28.08.2002, Sebastian Bergmann wrote: Current HEAD causes browsers to download instead of showing scripts that call error_log() inside an output buffer, when using SAPI/CGI. Reproducing script: ?php ob_start(); error_log('test'); ? As a quick answer i tried this with sapi/mo_apache and it works as expected. With latest CVS: [root@kossu php-4.3.0dev]# ./php /tmp/1 2 /tmp/2 ?php ob_start(); error_log('test'); ? [root@kossu php-4.3.0dev]# cat /tmp/1 Status: 200 X-Powered-By: PHP/4.3.0-dev Content-type: text/html as you can see there is an extra \r\n: [root@kossu php-4.3.0dev]# hexdump -c /tmp/1 000 S t a t u s : 2 0 0 \r \n X - P 010 o w e r e d - B y : P H P / 4 020 . 3 . 0 - d e v \r \n \r \n C o n t 030 e n t - t y p e : t e x t / h 040 t m l \r \n 045 regards, Derick --- Did I help you? http://www.derickrethans.nl/link.php?url=giftlist Frequent ranting: http://www.derickrethans.nl/ --- PHP: Scripting the Web - [EMAIL PROTECTED] All your branches are belong to me! SRM: Script Running Machine - www.vl-srm.net --- -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php