From: alina dot sch61 at gmail dot com
Operating system: Linux
PHP version: 5.4.18
Package: FPM related
Bug Type: Bug
Bug description:debug_backtrace doesn't identify file name when config contains
invalid comment
Description:
------------
If php-fpm.conf contains not correctly commented string (commented with "#"
symbol instead of semicolon), debug_backtrace() function
doesn't return in message name of file and line where this mistake was
done:
[args] => Array(
[0] => ErrorException Object(
[message:protected] => Comments starting with '#' are deprecated in
Unknown
on line 1
[string:Exception:private] =>
[code:protected] => 8192
[file:protected] => Unknown
[line:protected] => 0
[trace:Exception:private] => Array(
[0] => Array(
[function] => shutdownHandler
[class] => Shared\Error\ErrorHandler
[type] => ->
[args] => Array()
)
)
[previous:Exception:private] =>
[severity:protected] => 0
)
)
But if such comment is made in config of one of the extensions (e.g.
mysql.ini)
name of file will be successfully identified for message.
[args] => Array(
[0] => ErrorException Object(
[message:protected] => Comments starting with '#' are deprecated in
/etc/php5/fpm/conf.d/20-mysql.ini on line 2
[string:Exception:private] =>
[code:protected] => 8192
[file:protected] => Unknown
[line:protected] => 0
[trace:Exception:private] => Array(
[0] => Array(
[function] => shutdownHandler
[class] => Shared\Error\ErrorHandler
[type] => ->
[args] => Array()
)
)
[previous:Exception:private] =>
[severity:protected] => 0
)
)
Expected result:
----------------
If not correct comment is in php-fpm.conf message doesn't contain file
name:
[message:protected] => Comments starting with '#' are deprecated in
/etc/php5/fpm/php-fpm.conf on line 7
Actual result:
--------------
If not correct comment is in php-fpm.conf message doesn't contain file
name:
[message:protected] => Comments starting with '#' are deprecated in Unknown
on
line 1
--
Edit bug report at https://bugs.php.net/bug.php?id=65500&edit=1
--
Try a snapshot (PHP 5.4):
https://bugs.php.net/fix.php?id=65500&r=trysnapshot54
Try a snapshot (PHP 5.3):
https://bugs.php.net/fix.php?id=65500&r=trysnapshot53
Try a snapshot (trunk):
https://bugs.php.net/fix.php?id=65500&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=65500&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=65500&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=65500&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=65500&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=65500&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=65500&r=support
Expected behavior: https://bugs.php.net/fix.php?id=65500&r=notwrong
Not enough info:
https://bugs.php.net/fix.php?id=65500&r=notenoughinfo
Submitted twice:
https://bugs.php.net/fix.php?id=65500&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=65500&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=65500&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=65500&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=65500&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=65500&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=65500&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=65500&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=65500&r=mysqlcfg