@@ -91,36 +91,6 @@ PHP_INI_END()
9191*/
9292/* }}} */
9393
94- /* Remove the following function when you have successfully modified config.m4
95- so that your module can be compiled into PHP, it exists only for testing
96- purposes. */
97-
98- // TODO: remove this function and other stub data
99- /* Every user-visible function in PHP should document itself in the source */
100- /* {{{ proto string confirm_v8_compiled(string arg)
101- Return a string to confirm that the module is compiled in */
102- PHP_FUNCTION (confirm_v8_compiled)
103- {
104- char *arg = NULL ;
105- size_t arg_len, len;
106- char *strg;
107-
108- if (zend_parse_parameters (ZEND_NUM_ARGS (), " s" , &arg, &arg_len) == FAILURE) {
109- return ;
110- }
111-
112- len = spprintf (&strg, 0 , " Congratulations! You have successfully modified ext/%.78s/config.m4. Module %.78s is now compiled into PHP." , " v8" , arg);
113-
114- RETVAL_STRINGL (strg, len);
115- efree (strg);
116- }
117- /* }}} */
118- /* The previous line is meant for vim and emacs, so it can correctly fold and
119- unfold functions in source code. See the corresponding marks just before
120- function definition, where the functions purpose is also documented. Please
121- follow this convention for the convenience of others editing your code.
122- */
123-
12494
12595/* {{{ PHP_MINIT_FUNCTION
12696 */
@@ -233,7 +203,7 @@ PHP_MINFO_FUNCTION(v8)
233203 php_info_print_table_end ();
234204
235205 php_info_print_table_start ();
236- php_info_print_table_row (2 , " V8 Engine Compiled Version" , VERSION_STRING );
206+ php_info_print_table_row (2 , " V8 Engine Compiled Version" , PHP_V8_LIBV8_VERSION );
237207 php_info_print_table_row (2 , " V8 Engine Linked Version" , v8::V8::GetVersion ());
238208 php_info_print_table_end ();
239209
@@ -269,7 +239,6 @@ static PHP_GSHUTDOWN_FUNCTION(v8)
269239 * Every user visible function must have an entry in php_v8_functions[].
270240 */
271241const zend_function_entry php_v8_functions[] = {
272- PHP_FE (confirm_v8_compiled, NULL ) /* For testing, remove later. */
273242 PHP_FE_END /* Must be the last line in php_v8_functions[] */
274243};
275244/* }}} */
0 commit comments