Strange .ini file parsing

30 views
Skip to first unread message

Anoop Alias

unread,
Feb 3, 2013, 5:57:06 AM2/3/13
to highloa...@googlegroups.com
Hi,

I have a strange issue of php.fpm parsing a file ending in .ini whereas this .ini file doesnt have anything to do with php

*26 FastCGI sent in stderr: "PHP message: WARNING: You have errors in you INI file (/home/xxxxx/public_html/xxx/etc/xxxxx/magiczoomplus.settings.ini) on line 1!"


I renamed the file and the error was gone . 

So the question is - does php-fpm look for files ending in .ini ; if so how to disable that and does this default behavior slow down things ? 

Thanks
--
Anoop P Alias (PGP Key ID : 0x014F9953)
GNU system administrator
http://UniversalAdm.in

Przemysław Pawliczuk

unread,
Feb 5, 2013, 8:20:18 AM2/5/13
to highloa...@googlegroups.com
Don't you have the BOM in this file?

2013/2/3 Anoop Alias <anoopa...@gmail.com>

--
 
---
You received this message because you are subscribed to the Google Groups "highload-php-en" group.
To unsubscribe from this group and stop receiving emails from it, send an email to highload-php-...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Anoop Alias

unread,
Feb 5, 2013, 8:56:33 AM2/5/13
to highloa...@googlegroups.com
I think its the conf file of a magento module and it has no relation to php . 


--
Anoop P Alias 

Luck Piecuch

unread,
Apr 26, 2013, 5:48:43 AM4/26/13
to highloa...@googlegroups.com
Same here - sometimes after restart FPM will take and parse some .ini file from random user homedir instead of /usr/local/etc/php.ini
It's very hard to reproduce - but that's a serious security issue.

FreeBSD 9.1
PHP Version 5.3.24

'./configure' '--prefix=/usr/local' '--with-config-file-path=/usr/local/etc' '--with-layout=GNU' '--enable-fpm' '--with-zlib' '--with-iconv' '--with-pear' '--with-libxml-dir=/usr/local/lib' '--enable-zip' '--with-gd' '--with-jpeg-dir=/usr/local/lib' '--with-png-dir=/usr/local/lib' '--with-freetype-dir=/usr/local/lib' '--with-zlib-dir=/usr/local/lib' '--with-mysql=/usr/local' '--with-mysqli' '--with-pdo-mysql=/usr/local' '--enable-bcmath' '--enable-calendar' '--with-curl' '--enable-dba' '--enable-ftp' '--with-gettext' '--enable-magic-quotes' '--enable-mbstring' '--with-mcrypt' '--with-mhash' '--with-openssl' '--enable-sockets' '--with-imap' '--with-imap-ssl' '--with-kerberos' '--with-xsl=/usr/local/lib' '--enable-exif' '--enable-soap' '--enable-sqlite-utf8' '--with-tidy' '--with-ldap'
Reply all
Reply to author
Forward
0 new messages