From:             loic dot hoguin at diplomatie dot gouv dot fr
Operating system: NetBSD 4.0.2_BETA2
PHP version:      5.2.1
PHP Bug Type:     Gettext related
Bug description:  gettext crash with an old (from php5.1.4/netbsd3) .mo file

Description:
------------
Apache child process crashed when using a messages.mo file which was
generated on november 2006. Rebuilding the file fixed the problem, so
maybe the file was malformed ; however, gettext should not crash the
process if the file is bad.

NetBSD 4.0_BETA2
Apache 2.0.59
PHP 5.2.1

It was on a fresh install on a new server.

The php.ini had just the extensions added and the error messages display
deactivated.


[PHP Modules]
ctype, curl, date, filter, gd, gettext, hash, libxml, mbstring, mysql,
openssl, pcre, pgsql, Reflection, session, SimpleXML, SPL, standard,
tokenizer, xml, xmlreader, xmlwriter, zlib

configure: --with-regex=system --without-mysql --without-sqlite
--without-iconv --disable-posix --disable-dom --disable-pdo --disable-json
--enable-xml

I also have a messages.mo which crash the process.

Expected result:
----------------
An error instead of a crash.


-- 
Edit bug report at http://bugs.php.net/?id=40817&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=40817&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=40817&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=40817&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=40817&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=40817&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=40817&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=40817&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=40817&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=40817&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=40817&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=40817&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=40817&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=40817&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=40817&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=40817&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=40817&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=40817&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=40817&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=40817&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=40817&r=mysqlcfg

Reply via email to