- Moved extensions to PECL (http://pear.php.net/): (James, Derick)
. ext/vpopmail
. ext/cybermut
+- Fixed bug #19566 (get_declared_classes() segfaults). (Moriyoshi, Marcus, Andi)
+- Fixed bug #20381 (array_merge_recursive mangles input arrays). (Moriyoshi)
- Added -n command switch to cli and cgi version which allows to skip php.ini
parsing at startup. (Marcus, Wez)
- Fixed bug #19689 (absolute paths like /test/dir/ not working correctly).
return;
}
+ if ((int) conf->magic == -1) {
+ php_error(E_ERROR, MODNAME " could not be initialized, magic file %s is not avaliable", conf->magicfile);
+ RETURN_FALSE;
+ }
+
if(!conf->magic) {
php_error(E_WARNING, MODNAME " not initialized");
RETURN_FALSE;
magic_server_config_rec *conf = &mime_global;
fname = conf->magicfile; /* todo cwd? */
- f = fopen(fname, "r");
+ f = fopen(fname, "rb");
if (f == NULL) {
- php_error(E_WARNING,
- MODNAME ": can't read magic file %s", fname);
+ (int) conf->magic = -1;
return -1;
}