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

 ID:                 53695
 Updated by:         f...@php.net
 Reported by:        szoftos at freemail dot hu
 Summary:            Bugs are not outputed  when using php-fpm
-Status:             Assigned
+Status:             Bogus
 Type:               Bug
 Package:            FPM related
 Operating System:   FreeBSD
 PHP Version:        5.3.5
 Assigned To:        fat
 Block user comment: N
 Private report:     N

 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

You must not use double (or simple) quotes arround E_ALL as constants
are 

interpreted by the php core ini parser (quotes inhibits this
conversion)



php_admin_value[error_reporting] = "E_ALL" is not well understood. 



php_admin_value[error_reporting] = E_ALL is correctely converted.


Previous Comments:
------------------------------------------------------------------------
[2011-01-10 08:16:48] f...@php.net

Are you sure it's related to php fpm ?



Here is the content of a test file:

<?php asdlk;k; ?>



Calling from CLI: nothing, white page

Calling from FPM: the same



Here is the content of another test file:

<?php nofunc(); ?>



Calling from CLI: Fatal error: Call to undefined function nofunc() in 

/html/error.php on line 1

Calling from FPM: Fatal error: Call to undefined function nofunc() in 

/html/error.php on line 1



The behaviour is the same with CLI or FPM. 



@kalle:

can you reproduce the problem ?

------------------------------------------------------------------------
[2011-01-10 01:41:19] ka...@php.net

Hmm, I wonder if php-fpm is actually parsing the error_reporting
constants with their numeric bitfields to mask it correctly, could be
wrong here. Any thoughts fat?

------------------------------------------------------------------------
[2011-01-08 13:01:47] szoftos at freemail dot hu

Description:
------------
Hi, when i was trying to see an error message because of a syntax error
(or any other error) using php-fpm, it simply won't output. Sometimes i
get nothing, and other times i get an '500 Server error'.



When i use php-cli, i get the error message.



my configure line (comes from freebsd ports): './configure'
'--with-layout=GNU' '--localstatedir=/var'
'--with-config-file-scan-dir=/usr/local/etc/php' '--disable-all'
'--enable-libxml' '--with-libxml-dir=/usr/local'
'--with-pcre-regex=/usr/local' '--with-zlib-dir=/usr'
'--program-prefix=' '--enable-fpm' '--with-fpm-user=www'
'--with-fpm-group=www' '--with-regex=php' '--with-zend-vm=CALL'
'--enable-zend-multibyte' '--prefix=/usr/local'
'--mandir=/usr/local/man' '--infodir=/usr/local/info/'
'--build=amd64-portbld-freebsd8.1' 



The following extensions are compiled in:

[root@wwwjail ~]# cat /var/db/ports/php5-extensions/options

# This file is auto-generated by 'make config'.

# No user-servicable parts inside!

# Options for php5-extensions-1.4

_OPTIONS_READ=php5-extensions-1.4

WITHOUT_BCMATH=true

WITH_BZ2=true

WITH_CALENDAR=true

WITH_CTYPE=true

WITHOUT_CURL=true

WITHOUT_DBA=true

WITH_DOM=true

WITH_EXIF=true

WITHOUT_FILEINFO=true

WITHOUT_FILTER=true

WITHOUT_FRIBIDI=true

WITH_FTP=true

WITH_GD=true

WITH_GETTEXT=true

WITH_GMP=true

WITH_HASH=true

WITH_ICONV=true

WITH_IMAP=true

WITHOUT_INTERBASE=true

WITH_JSON=true

WITHOUT_LDAP=true

WITH_MBSTRING=true

WITHOUT_MCRYPT=true

WITHOUT_MSSQL=true

WITH_MYSQL=true

WITHOUT_MYSQLI=true

WITHOUT_ODBC=true

WITH_OPENSSL=true

WITHOUT_PCNTL=true

WITH_PDF=true

WITH_PDO=true

WITH_PDO_SQLITE=true

WITHOUT_PGSQL=true

WITH_POSIX=true

WITH_PSPELL=true

WITHOUT_READLINE=true

WITHOUT_RECODE=true

WITH_SESSION=true

WITHOUT_SHMOP=true

WITH_SIMPLEXML=true

WITHOUT_SNMP=true

WITH_SOAP=true

WITHOUT_SOCKETS=true

WITH_SQLITE=true

WITHOUT_SYBASE_CT=true

WITHOUT_SYSVMSG=true

WITHOUT_SYSVSEM=true

WITHOUT_SYSVSHM=true

WITHOUT_TIDY=true

WITH_TOKENIZER=true

WITHOUT_WDDX=true

WITH_XML=true

WITH_XMLREADER=true

WITH_XMLRPC=true

WITH_XMLWRITER=true

WITHOUT_XSL=true

WITHOUT_YAZ=true

WITH_ZIP=true

WITH_ZLIB=true



The related php-fpm.conf snippet is:

php_admin_value[error_reporting] = "E_ALL"

php_admin_flag[display_errors] = On

php_admin_flag[display_startup_errors] = On



Test script:
---------------
<?php

asdlkl;k

phpinfo();

?>



Expected result:
----------------
PHP Parse error:  syntax error, unexpected T_STRING in test.php on line
3



Actual result:
--------------
Nothing, or a '500 Internal server error' result.


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



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

Reply via email to