ID: 24666
Updated by: [email][/email]
Reported By: dhunter at uta dot edu
Status: Feedback
Bug Type: Apache related
Operating System: Solaris 8
PHP Version: 4.3.2
New Comment:

Oopps, made a slight mistake, run it like:

# gdb httpd
(gdb) run -X -DSSL

Previous Comments:

[2003-07-16 21:01:24] [email][/email]

Could you try if you can reproduce this when you run apache like this:

# gdb httpd -X

(if you need SSL, add -DSSL there)

You should test the snapshot on separate instance/machine.
e.g. have another apache with PHP build from the snapshot
running in other port. (separate development server would be best
choice though :)


[2003-07-16 15:56:42] dhunter at uta dot edu

I'll try the latest snapshot. I'll also try to cut down the
configuration, but we use most of the options.

Answers to your questions:
- output buffering is on
- i'm using the php.ini-recommended that comes with 4.3.2. no
differences except that i have safe mode on.
- i don't set any php.ini settings in .htaccess or httpd.conf.
- exactly right, any script randomly produces output and randomly
produces no output as evidenced by observation and as recorded in the
apache access log.

I downgraded to 4.3.1 to correct the problem for now.


[2003-07-15 22:10:51] [email][/email]

Please try using this CVS snapshot:


For Windows:


and cut down your configure line to bare minimum that you need for your
pages to work.

Are you using output buffering features? (php.ini)
What is the diff between your php.ini and the php.ini-dist
in the 4.3.2 release? (diff -u)
Do you set any php.ini settings in httpd.conf / .htaccess
parts that might affect the pages involved?
Are you sure it's any script? Even plain <?php echo "foo"; ?> style


[2003-07-15 10:31:06] dhunter at uta dot edu

Pages that worked in 4.3.1 randomly print blank pages in version 4.3.2.
There isn't any specific code that produces this quirk. A simple call
to the header function to redirect a browser will produce a blank page.
Also note the following:

1) error reporting is turned on
2) Using Apache 1.3.27
3) Apache does not segfault, no segfault occurs and child process does
not die
4) no errors are reported in apache logs

Although the PHP engine and Apache do not report errors, the access log
reports a 5 byte file size when a blank page is printed. For example, a
page that is normally reported in the access log as 10,000 bytes is
reported as 5 bytes when the PHP engine fails.

'./configure' '--prefix=/usr/local/apache_1327/php-4.3.1'
'--with-apxs=/usr/local/apache_1327/bin/apxs' '--enable-sigchild'
'--enable-magic-quotes' '--with-openssl=/usr/local/openssl'
'--with-zlib=/usr/local' '--enable-bcmath' '--enable-calendar'
'--with-db3=/usr/local/BerkeleyDB.3.3' '--enable-dbase' '--enable-dbx'
'--enable-dio' '--enable-exif' '--enable-ftp' '--with-gd'
'--with-jpeg-dir=/usr/local' '--with-png-dir=/usr/local'
'--with-zlib-dir=/usr/local' '--with-ttf' '--enable-gd-native-ttf'
'--with-java=/usr/java1.2' '--with-ldap=/usr' '--enable-mbstring'
'--enable-mbregex' '--with-mssql=/usr/local/freetds'
'--with-zlib-dir=/usr/local' '--with-mm=/usr/local' '--enable-sockets'
'--enable-wddx' '--enable-xslt' '--with-xslt-sablot=/usr/local'
'--enable-memory-limit=yes' '--with-gnu-ld'

Reproduce code:
No specific code produces the bug. All pages are randomly printed
nothing, blank.

Expected result:

Actual result:
no output


Edit this bug report at [url][/url]