@@ -98,82 +98,82 @@ PHP_INI_END()
98
98
*/
99
99
PHP_MINIT_FUNCTION (v8)
100
100
{
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;
166
166
}
167
167
/* }}} */
168
168
169
169
/* {{{ PHP_MSHUTDOWN_FUNCTION
170
170
*/
171
171
PHP_MSHUTDOWN_FUNCTION (v8)
172
172
{
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;
177
177
}
178
178
/* }}} */
179
179
@@ -182,7 +182,7 @@ PHP_MSHUTDOWN_FUNCTION(v8)
182
182
*/
183
183
PHP_RINIT_FUNCTION (v8)
184
184
{
185
- return SUCCESS;
185
+ return SUCCESS;
186
186
}
187
187
/* }}} */
188
188
@@ -191,29 +191,29 @@ PHP_RINIT_FUNCTION(v8)
191
191
*/
192
192
PHP_RSHUTDOWN_FUNCTION (v8)
193
193
{
194
- return SUCCESS;
194
+ return SUCCESS;
195
195
}
196
196
/* }}} */
197
197
198
198
/* {{{ PHP_MINFO_FUNCTION
199
199
*/
200
200
PHP_MINFO_FUNCTION (v8)
201
201
{
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
+ */
217
217
}
218
218
/* }}} */
219
219
@@ -223,9 +223,9 @@ PHP_MINFO_FUNCTION(v8)
223
223
static PHP_GINIT_FUNCTION (v8)
224
224
{
225
225
#if defined(COMPILE_DL_V8) && defined(ZTS)
226
- ZEND_TSRMLS_CACHE_UPDATE ();
226
+ ZEND_TSRMLS_CACHE_UPDATE ();
227
227
#endif
228
- v8_globals->v8_initialized = false ;
228
+ v8_globals->v8_initialized = false ;
229
229
}
230
230
/* }}} */
231
231
@@ -243,27 +243,27 @@ static PHP_GSHUTDOWN_FUNCTION(v8)
243
243
* Every user visible function must have an entry in php_v8_functions[].
244
244
*/
245
245
const 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[] */
247
247
};
248
248
/* }}} */
249
249
250
250
/* {{{ php_v8_module_entry
251
251
*/
252
252
zend_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
267
267
268
268
};
269
269
/* }}} */
0 commit comments