@@ -98,82 +98,82 @@ PHP_INI_END()
9898 */
9999PHP_MINIT_FUNCTION (v8)
100100{
101- PHP_MINIT (php_v8_exceptions)(INIT_FUNC_ARGS_PASSTHRU); /* Exceptions */
102- PHP_MINIT (php_v8_ext_mem_interface)(INIT_FUNC_ARGS_PASSTHRU); /* AdjustableExternalMemoryInterface */
103-
104- PHP_MINIT (php_v8_heap_statistics)(INIT_FUNC_ARGS_PASSTHRU);
105- PHP_MINIT (php_v8_startup_data)(INIT_FUNC_ARGS_PASSTHRU);
106- PHP_MINIT (php_v8_isolate)(INIT_FUNC_ARGS_PASSTHRU);
107- PHP_MINIT (php_v8_context)(INIT_FUNC_ARGS_PASSTHRU);
108- PHP_MINIT (php_v8_script)(INIT_FUNC_ARGS_PASSTHRU);
109-
110- PHP_MINIT (php_v8_exception)(INIT_FUNC_ARGS_PASSTHRU);
111- PHP_MINIT (php_v8_try_catch)(INIT_FUNC_ARGS_PASSTHRU);
112- PHP_MINIT (php_v8_message)(INIT_FUNC_ARGS_PASSTHRU);
113- PHP_MINIT (php_v8_stack_frame)(INIT_FUNC_ARGS_PASSTHRU);
114- PHP_MINIT (php_v8_stack_trace)(INIT_FUNC_ARGS_PASSTHRU);
115- PHP_MINIT (php_v8_script_origin_options)(INIT_FUNC_ARGS_PASSTHRU);
116- PHP_MINIT (php_v8_script_origin)(INIT_FUNC_ARGS_PASSTHRU);
117-
118- PHP_MINIT (php_v8_data)(INIT_FUNC_ARGS_PASSTHRU);
119- PHP_MINIT (php_v8_value)(INIT_FUNC_ARGS_PASSTHRU);
120- PHP_MINIT (php_v8_primitive)(INIT_FUNC_ARGS_PASSTHRU);
121- PHP_MINIT (php_v8_null)(INIT_FUNC_ARGS_PASSTHRU);
122- PHP_MINIT (php_v8_boolean)(INIT_FUNC_ARGS_PASSTHRU);
123- PHP_MINIT (php_v8_name)(INIT_FUNC_ARGS_PASSTHRU);
124- PHP_MINIT (php_v8_string)(INIT_FUNC_ARGS_PASSTHRU);
125- PHP_MINIT (php_v8_symbol)(INIT_FUNC_ARGS_PASSTHRU);
126- PHP_MINIT (php_v8_number)(INIT_FUNC_ARGS_PASSTHRU);
127- PHP_MINIT (php_v8_integer)(INIT_FUNC_ARGS_PASSTHRU);
128- PHP_MINIT (php_v8_int32)(INIT_FUNC_ARGS_PASSTHRU);
129- PHP_MINIT (php_v8_uint32)(INIT_FUNC_ARGS_PASSTHRU);
130- PHP_MINIT (php_v8_integrity_level)(INIT_FUNC_ARGS_PASSTHRU);
131- PHP_MINIT (php_v8_object)(INIT_FUNC_ARGS_PASSTHRU);
132- PHP_MINIT (php_v8_function)(INIT_FUNC_ARGS_PASSTHRU);
133- PHP_MINIT (php_v8_array)(INIT_FUNC_ARGS_PASSTHRU);
134- PHP_MINIT (php_v8_date)(INIT_FUNC_ARGS_PASSTHRU);
135- PHP_MINIT (php_v8_regexp)(INIT_FUNC_ARGS_PASSTHRU);
136-
137- PHP_MINIT (php_v8_number_object)(INIT_FUNC_ARGS_PASSTHRU);
138- PHP_MINIT (php_v8_boolean_object)(INIT_FUNC_ARGS_PASSTHRU);
139- PHP_MINIT (php_v8_string_object)(INIT_FUNC_ARGS_PASSTHRU);
140- PHP_MINIT (php_v8_symbol_object)(INIT_FUNC_ARGS_PASSTHRU);
141-
142- PHP_MINIT (php_v8_template)(INIT_FUNC_ARGS_PASSTHRU);
143- PHP_MINIT (php_v8_object_template)(INIT_FUNC_ARGS_PASSTHRU);
144- PHP_MINIT (php_v8_function_template)(INIT_FUNC_ARGS_PASSTHRU);
145-
146-
147- PHP_MINIT (php_v8_property_attribute)(INIT_FUNC_ARGS_PASSTHRU); /* Helper class, holds constants for v8 internals similarity/compatibility */
148- PHP_MINIT (php_v8_access_control)(INIT_FUNC_ARGS_PASSTHRU); /* Helper class, holds constants */
149- PHP_MINIT (php_v8_return_value)(INIT_FUNC_ARGS_PASSTHRU);
150-
151- PHP_MINIT (php_v8_callback_info)(INIT_FUNC_ARGS_PASSTHRU);
152- PHP_MINIT (php_v8_property_callback_info)(INIT_FUNC_ARGS_PASSTHRU); /* PropertyCallbackInfo inherits CallbackInfo */
153- PHP_MINIT (php_v8_function_callback_info)(INIT_FUNC_ARGS_PASSTHRU); /* FunctionCallbackInfo inherits CallbackInfo */
154-
155- PHP_MINIT (php_v8_property_handler_flags)(INIT_FUNC_ARGS_PASSTHRU); /* Helper class, holds constants */
156- PHP_MINIT (php_v8_named_property_handler_configuration)(INIT_FUNC_ARGS_PASSTHRU);
157- PHP_MINIT (php_v8_indexed_property_handler_configuration)(INIT_FUNC_ARGS_PASSTHRU);
158-
159- PHP_MINIT (php_v8_access_type)(INIT_FUNC_ARGS_PASSTHRU); /* Helper class, holds constants */
160-
161- /* If you have INI entries, uncomment these lines
162- REGISTER_INI_ENTRIES();
163- */
164-
165- return SUCCESS;
101+ PHP_MINIT (php_v8_exceptions)(INIT_FUNC_ARGS_PASSTHRU); /* Exceptions */
102+ PHP_MINIT (php_v8_ext_mem_interface)(INIT_FUNC_ARGS_PASSTHRU); /* AdjustableExternalMemoryInterface */
103+
104+ PHP_MINIT (php_v8_heap_statistics)(INIT_FUNC_ARGS_PASSTHRU);
105+ PHP_MINIT (php_v8_startup_data)(INIT_FUNC_ARGS_PASSTHRU);
106+ PHP_MINIT (php_v8_isolate)(INIT_FUNC_ARGS_PASSTHRU);
107+ PHP_MINIT (php_v8_context)(INIT_FUNC_ARGS_PASSTHRU);
108+ PHP_MINIT (php_v8_script)(INIT_FUNC_ARGS_PASSTHRU);
109+
110+ PHP_MINIT (php_v8_exception)(INIT_FUNC_ARGS_PASSTHRU);
111+ PHP_MINIT (php_v8_try_catch)(INIT_FUNC_ARGS_PASSTHRU);
112+ PHP_MINIT (php_v8_message)(INIT_FUNC_ARGS_PASSTHRU);
113+ PHP_MINIT (php_v8_stack_frame)(INIT_FUNC_ARGS_PASSTHRU);
114+ PHP_MINIT (php_v8_stack_trace)(INIT_FUNC_ARGS_PASSTHRU);
115+ PHP_MINIT (php_v8_script_origin_options)(INIT_FUNC_ARGS_PASSTHRU);
116+ PHP_MINIT (php_v8_script_origin)(INIT_FUNC_ARGS_PASSTHRU);
117+
118+ PHP_MINIT (php_v8_data)(INIT_FUNC_ARGS_PASSTHRU);
119+ PHP_MINIT (php_v8_value)(INIT_FUNC_ARGS_PASSTHRU);
120+ PHP_MINIT (php_v8_primitive)(INIT_FUNC_ARGS_PASSTHRU);
121+ PHP_MINIT (php_v8_null)(INIT_FUNC_ARGS_PASSTHRU);
122+ PHP_MINIT (php_v8_boolean)(INIT_FUNC_ARGS_PASSTHRU);
123+ PHP_MINIT (php_v8_name)(INIT_FUNC_ARGS_PASSTHRU);
124+ PHP_MINIT (php_v8_string)(INIT_FUNC_ARGS_PASSTHRU);
125+ PHP_MINIT (php_v8_symbol)(INIT_FUNC_ARGS_PASSTHRU);
126+ PHP_MINIT (php_v8_number)(INIT_FUNC_ARGS_PASSTHRU);
127+ PHP_MINIT (php_v8_integer)(INIT_FUNC_ARGS_PASSTHRU);
128+ PHP_MINIT (php_v8_int32)(INIT_FUNC_ARGS_PASSTHRU);
129+ PHP_MINIT (php_v8_uint32)(INIT_FUNC_ARGS_PASSTHRU);
130+ PHP_MINIT (php_v8_integrity_level)(INIT_FUNC_ARGS_PASSTHRU);
131+ PHP_MINIT (php_v8_object)(INIT_FUNC_ARGS_PASSTHRU);
132+ PHP_MINIT (php_v8_function)(INIT_FUNC_ARGS_PASSTHRU);
133+ PHP_MINIT (php_v8_array)(INIT_FUNC_ARGS_PASSTHRU);
134+ PHP_MINIT (php_v8_date)(INIT_FUNC_ARGS_PASSTHRU);
135+ PHP_MINIT (php_v8_regexp)(INIT_FUNC_ARGS_PASSTHRU);
136+
137+ PHP_MINIT (php_v8_number_object)(INIT_FUNC_ARGS_PASSTHRU);
138+ PHP_MINIT (php_v8_boolean_object)(INIT_FUNC_ARGS_PASSTHRU);
139+ PHP_MINIT (php_v8_string_object)(INIT_FUNC_ARGS_PASSTHRU);
140+ PHP_MINIT (php_v8_symbol_object)(INIT_FUNC_ARGS_PASSTHRU);
141+
142+ PHP_MINIT (php_v8_template)(INIT_FUNC_ARGS_PASSTHRU);
143+ PHP_MINIT (php_v8_object_template)(INIT_FUNC_ARGS_PASSTHRU);
144+ PHP_MINIT (php_v8_function_template)(INIT_FUNC_ARGS_PASSTHRU);
145+
146+
147+ PHP_MINIT (php_v8_property_attribute)(INIT_FUNC_ARGS_PASSTHRU); /* Helper class, holds constants for v8 internals similarity/compatibility */
148+ PHP_MINIT (php_v8_access_control)(INIT_FUNC_ARGS_PASSTHRU); /* Helper class, holds constants */
149+ PHP_MINIT (php_v8_return_value)(INIT_FUNC_ARGS_PASSTHRU);
150+
151+ PHP_MINIT (php_v8_callback_info)(INIT_FUNC_ARGS_PASSTHRU);
152+ PHP_MINIT (php_v8_property_callback_info)(INIT_FUNC_ARGS_PASSTHRU); /* PropertyCallbackInfo inherits CallbackInfo */
153+ PHP_MINIT (php_v8_function_callback_info)(INIT_FUNC_ARGS_PASSTHRU); /* FunctionCallbackInfo inherits CallbackInfo */
154+
155+ PHP_MINIT (php_v8_property_handler_flags)(INIT_FUNC_ARGS_PASSTHRU); /* Helper class, holds constants */
156+ PHP_MINIT (php_v8_named_property_handler_configuration)(INIT_FUNC_ARGS_PASSTHRU);
157+ PHP_MINIT (php_v8_indexed_property_handler_configuration)(INIT_FUNC_ARGS_PASSTHRU);
158+
159+ PHP_MINIT (php_v8_access_type)(INIT_FUNC_ARGS_PASSTHRU); /* Helper class, holds constants */
160+
161+ /* If you have INI entries, uncomment these lines
162+ REGISTER_INI_ENTRIES();
163+ */
164+
165+ return SUCCESS;
166166}
167167/* }}} */
168168
169169/* {{{ PHP_MSHUTDOWN_FUNCTION
170170 */
171171PHP_MSHUTDOWN_FUNCTION (v8)
172172{
173- /* uncomment this line if you have INI entries
174- UNREGISTER_INI_ENTRIES();
175- */
176- return SUCCESS;
173+ /* uncomment this line if you have INI entries
174+ UNREGISTER_INI_ENTRIES();
175+ */
176+ return SUCCESS;
177177}
178178/* }}} */
179179
@@ -182,7 +182,7 @@ PHP_MSHUTDOWN_FUNCTION(v8)
182182 */
183183PHP_RINIT_FUNCTION (v8)
184184{
185- return SUCCESS;
185+ return SUCCESS;
186186}
187187/* }}} */
188188
@@ -191,29 +191,29 @@ PHP_RINIT_FUNCTION(v8)
191191 */
192192PHP_RSHUTDOWN_FUNCTION (v8)
193193{
194- return SUCCESS;
194+ return SUCCESS;
195195}
196196/* }}} */
197197
198198/* {{{ PHP_MINFO_FUNCTION
199199 */
200200PHP_MINFO_FUNCTION (v8)
201201{
202- php_info_print_table_start ();
203- php_info_print_table_header (2 , " V8 support" , " enabled" );
204- php_info_print_table_row (2 , " Version" , PHP_V8_VERSION);
205- php_info_print_table_row (2 , " Revision" , PHP_V8_REVISION);
206- php_info_print_table_row (2 , " Compiled" , __DATE__ " @ " __TIME__);
207- php_info_print_table_end ();
208-
209- php_info_print_table_start ();
210- php_info_print_table_row (2 , " V8 Engine Compiled Version" , PHP_V8_LIBV8_VERSION);
211- php_info_print_table_row (2 , " V8 Engine Linked Version" , v8::V8::GetVersion ());
212- php_info_print_table_end ();
213-
214- /* Remove comments if you have entries in php.ini
215- DISPLAY_INI_ENTRIES();
216- */
202+ php_info_print_table_start ();
203+ php_info_print_table_header (2 , " V8 support" , " enabled" );
204+ php_info_print_table_row (2 , " Version" , PHP_V8_VERSION);
205+ php_info_print_table_row (2 , " Revision" , PHP_V8_REVISION);
206+ php_info_print_table_row (2 , " Compiled" , __DATE__ " @ " __TIME__);
207+ php_info_print_table_end ();
208+
209+ php_info_print_table_start ();
210+ php_info_print_table_row (2 , " V8 Engine Compiled Version" , PHP_V8_LIBV8_VERSION);
211+ php_info_print_table_row (2 , " V8 Engine Linked Version" , v8::V8::GetVersion ());
212+ php_info_print_table_end ();
213+
214+ /* Remove comments if you have entries in php.ini
215+ DISPLAY_INI_ENTRIES();
216+ */
217217}
218218/* }}} */
219219
@@ -223,9 +223,9 @@ PHP_MINFO_FUNCTION(v8)
223223static PHP_GINIT_FUNCTION (v8)
224224{
225225#if defined(COMPILE_DL_V8) && defined(ZTS)
226- ZEND_TSRMLS_CACHE_UPDATE ();
226+ ZEND_TSRMLS_CACHE_UPDATE ();
227227#endif
228- v8_globals->v8_initialized = false ;
228+ v8_globals->v8_initialized = false ;
229229}
230230/* }}} */
231231
@@ -243,27 +243,27 @@ static PHP_GSHUTDOWN_FUNCTION(v8)
243243 * Every user visible function must have an entry in php_v8_functions[].
244244 */
245245const zend_function_entry php_v8_functions[] = {
246- PHP_FE_END /* Must be the last line in php_v8_functions[] */
246+ PHP_FE_END /* Must be the last line in php_v8_functions[] */
247247};
248248/* }}} */
249249
250250/* {{{ php_v8_module_entry
251251 */
252252zend_module_entry php_v8_module_entry = {
253- STANDARD_MODULE_HEADER,
254- " v8" ,
255- php_v8_functions,
256- PHP_MINIT (v8),
257- PHP_MSHUTDOWN (v8),
258- PHP_RINIT (v8), /* Replace with NULL if there's nothing to do at request start */
259- PHP_RSHUTDOWN (v8), /* Replace with NULL if there's nothing to do at request end */
260- PHP_MINFO (v8),
261- PHP_V8_VERSION,
262- PHP_MODULE_GLOBALS (v8),
263- PHP_GINIT (v8),
264- PHP_GSHUTDOWN (v8),
265- NULL ,
266- STANDARD_MODULE_PROPERTIES_EX
253+ STANDARD_MODULE_HEADER,
254+ " v8" ,
255+ php_v8_functions,
256+ PHP_MINIT (v8),
257+ PHP_MSHUTDOWN (v8),
258+ PHP_RINIT (v8), /* Replace with NULL if there's nothing to do at request start */
259+ PHP_RSHUTDOWN (v8), /* Replace with NULL if there's nothing to do at request end */
260+ PHP_MINFO (v8),
261+ PHP_V8_VERSION,
262+ PHP_MODULE_GLOBALS (v8),
263+ PHP_GINIT (v8),
264+ PHP_GSHUTDOWN (v8),
265+ NULL ,
266+ STANDARD_MODULE_PROPERTIES_EX
267267
268268};
269269/* }}} */
0 commit comments