@@ -234,6 +234,8 @@ SAPI_API double sapi_get_request_time(void);
234234SAPI_API void sapi_terminate_process (void );
235235END_EXTERN_C ()
236236
237+ #define SAPI_MODULE_FLAG_ISOLATE_SYMBOLS (1<<0)
238+
237239struct _sapi_module_struct {
238240 char * name ;
239241 char * pretty_name ;
@@ -288,7 +290,7 @@ struct _sapi_module_struct {
288290 const zend_function_entry * additional_functions ;
289291 unsigned int (* input_filter_init )(void );
290292
291- bool isolate_symbols ;
293+ unsigned int flags ;
292294};
293295
294296struct _sapi_post_entry {
@@ -323,23 +325,25 @@ SAPI_API SAPI_TREAT_DATA_FUNC(php_default_treat_data);
323325SAPI_API SAPI_INPUT_FILTER_FUNC (php_default_input_filter );
324326END_EXTERN_C ()
325327
326- #define STANDARD_SAPI_MODULE_PROPERTIES \
327- NULL , /* php_ini_path_override */ \
328- NULL , /* default_post_reader */ \
329- NULL , /* treat_data */ \
330- NULL , /* executable_location */ \
331- 0 , /* php_ini_ignore */ \
332- 0 , /* php_ini_ignore_cwd */ \
333- NULL , /* get_fd */ \
334- NULL , /* force_http_10 */ \
335- NULL , /* get_target_uid */ \
336- NULL , /* get_target_gid */ \
337- NULL , /* input_filter */ \
338- NULL , /* ini_defaults */ \
339- 0 , /* phpinfo_as_text; */ \
340- NULL , /* ini_entries; */ \
341- NULL , /* additional_functions */ \
342- NULL , /* input_filter_init */ \
343- false /* isolate_symbols */
328+ #define STANDARD_SAPI_MODULE_PROPERTIES STANDARD_SAPI_MODULE_PROPERTIES_WITH_FLAGS(0)
329+
330+ #define STANDARD_SAPI_MODULE_PROPERTIES_WITH_FLAGS (_flags ) \
331+ NULL, /* php_ini_path_override */ \
332+ NULL , /* default_post_reader */ \
333+ NULL , /* treat_data */ \
334+ NULL , /* executable_location */ \
335+ 0 , /* php_ini_ignore */ \
336+ 0 , /* php_ini_ignore_cwd */ \
337+ NULL , /* get_fd */ \
338+ NULL , /* force_http_10 */ \
339+ NULL , /* get_target_uid */ \
340+ NULL , /* get_target_gid */ \
341+ NULL , /* input_filter */ \
342+ NULL , /* ini_defaults */ \
343+ 0 , /* phpinfo_as_text; */ \
344+ NULL , /* ini_entries; */ \
345+ NULL , /* additional_functions */ \
346+ NULL , /* input_filter_init */ \
347+ (_flags ) /* flags */
344348
345349#endif /* SAPI_H */
0 commit comments