Skip to content

Commit

Permalink
MFH 1.243:
Browse files Browse the repository at this point in the history
Fixed crash in php_ini_scanned_files() when no additional INI files were
actually parsed.
  • Loading branch information
jparise committed Mar 15, 2004
1 parent 31b2848 commit bb7f2e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions NEWS
@@ -1,6 +1,8 @@
PHP 4 NEWS
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
?? Feb 2004, Version 4.3.5
- Fixed crash in php_ini_scanned_files() when no additional INI files were
actually parsed. (Jon)
- Fixed possible crashes inside socket extension, due to missing check inside
allocation functions. (Ilia)
- Fixed bug #27590 (crash during shutdown when freeing persistent resources
Expand Down
2 changes: 1 addition & 1 deletion ext/standard/info.c
Expand Up @@ -974,7 +974,7 @@ PHP_FUNCTION(php_uname)
/* {{{ proto string php_ini_scanned_files(void)
Return comma-separated string of .ini files parsed from the additional ini dir */
PHP_FUNCTION(php_ini_scanned_files) {
if(strlen(PHP_CONFIG_FILE_SCAN_DIR)) {
if(strlen(PHP_CONFIG_FILE_SCAN_DIR) && php_ini_scanned_files) {
RETURN_STRING(php_ini_scanned_files,1);
} else RETURN_FALSE;
}
Expand Down

0 comments on commit bb7f2e4

Please sign in to comment.