Skip to content

Commit 2e8fb4e

Browse files
committed
Win32 registry support
1 parent 593e603 commit 2e8fb4e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

main/main.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,6 +1189,9 @@ static void php3_parse(zend_file_handle *primary_file CLS_DC ELS_DC)
11891189
}
11901190
_php3_hash_environment();
11911191

1192+
#if WIN32||WINNT
1193+
UpdateIniFromRegistry(primary_file->filename);
1194+
#endif
11921195

11931196
if (PG(auto_prepend_file) && PG(auto_prepend_file)[0]) {
11941197
prepend_file.filename = PG(auto_prepend_file);

main/php3_compat.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,7 @@
7777
#define zend_print_pval zend_print_zval
7878
#define zend_print_pval_r zend_print_zval_r
7979

80+
81+
#define function_entry zend_function_entry
82+
8083
#endif /* _PHP3_COMPAT_H */

0 commit comments

Comments
 (0)