Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c3e3c98

Browse files
committedAug 25, 2014
master renames phase 1
1 parent 0cf2dbd commit c3e3c98

File tree

486 files changed

+11534
-11616
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

486 files changed

+11534
-11616
lines changed
 

‎Zend/Zend.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ int main()
130130
exit(1);
131131
}
132132
], [
133-
AC_DEFINE([ZEND_DVAL_TO_IVAL_CAST_OK], 1, [Define if double cast to long preserves least significant bits])
133+
AC_DEFINE([ZEND_DVAL_TO_LVAL_CAST_OK], 1, [Define if double cast to long preserves least significant bits])
134134
AC_MSG_RESULT(yes)
135135
], [
136136
AC_MSG_RESULT(no)

‎Zend/zend.c

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -46,22 +46,22 @@
4646

4747
/* true multithread-shared globals */
4848
ZEND_API zend_class_entry *zend_standard_class_def = NULL;
49-
ZEND_API zend_size_t (*zend_printf)(const char *format, ...);
49+
ZEND_API size_t (*zend_printf)(const char *format, ...);
5050
ZEND_API zend_write_func_t zend_write;
5151
ZEND_API FILE *(*zend_fopen)(const char *filename, char **opened_path TSRMLS_DC);
5252
ZEND_API int (*zend_stream_open_function)(const char *filename, zend_file_handle *handle TSRMLS_DC);
5353
ZEND_API void (*zend_block_interruptions)(void);
5454
ZEND_API void (*zend_unblock_interruptions)(void);
5555
ZEND_API void (*zend_ticks_function)(int ticks TSRMLS_DC);
5656
ZEND_API void (*zend_error_cb)(int type, const char *error_filename, const uint error_lineno, const char *format, va_list args);
57-
zend_size_t (*zend_vspprintf)(char **pbuf, zend_size_t max_len, const char *format, va_list ap);
57+
size_t (*zend_vspprintf)(char **pbuf, size_t max_len, const char *format, va_list ap);
5858
zend_string *(*zend_vstrpprintf)(size_t max_len, const char *format, va_list ap);
5959
ZEND_API char *(*zend_getenv)(char *name, size_t name_len TSRMLS_DC);
6060
ZEND_API char *(*zend_resolve_path)(const char *filename, int filename_len TSRMLS_DC);
6161

6262
void (*zend_on_timeout)(int seconds TSRMLS_DC);
6363

64-
static void (*zend_message_dispatcher_p)(zend_int_t message, const void *data TSRMLS_DC);
64+
static void (*zend_message_dispatcher_p)(zend_long message, const void *data TSRMLS_DC);
6565
static int (*zend_get_configuration_directive_p)(const char *name, uint name_length, zval *contents);
6666

6767
static ZEND_INI_MH(OnUpdateErrorReporting) /* {{{ */
@@ -134,7 +134,7 @@ static void print_hash(zend_write_func_t write_func, HashTable *ht, int indent,
134134
{
135135
zval *tmp;
136136
zend_string *string_key;
137-
zend_uint_t num_key;
137+
zend_ulong num_key;
138138
int i;
139139

140140
for (i = 0; i < indent; i++) {
@@ -193,7 +193,7 @@ static void print_flat_hash(HashTable *ht TSRMLS_DC) /* {{{ */
193193
{
194194
zval *tmp;
195195
zend_string *string_key;
196-
zend_uint_t num_key;
196+
zend_ulong num_key;
197197
int i = 0;
198198

199199
ZEND_HASH_FOREACH_KEY_VAL_IND(ht, num_key, string_key, tmp) {
@@ -226,23 +226,23 @@ ZEND_API int zend_make_printable_zval(zval *expr, zval *expr_copy TSRMLS_DC) /*
226226
break;
227227
case IS_TRUE:
228228
if (CG(one_char_string)['1']) {
229-
ZVAL_INT_STR(expr_copy, CG(one_char_string)['1']);
229+
ZVAL_LONG_STR(expr_copy, CG(one_char_string)['1']);
230230
} else {
231-
ZVAL_NEW_STR(expr_copy, STR_INIT("1", 1, 0));
231+
ZVAL_NEW_STR(expr_copy, zend_string_init("1", 1, 0));
232232
}
233233
break;
234234
case IS_RESOURCE: {
235-
char buf[sizeof("Resource id #") + MAX_LENGTH_OF_ZEND_INT];
235+
char buf[sizeof("Resource id #") + MAX_LENGTH_OF_LONG];
236236
int len;
237237

238238
len = snprintf(buf, sizeof(buf), "Resource id #" ZEND_INT_FMT, Z_RES_HANDLE_P(expr));
239-
ZVAL_NEW_STR(expr_copy, STR_INIT(buf, len, 0));
239+
ZVAL_NEW_STR(expr_copy, zend_string_init(buf, len, 0));
240240
}
241241
break;
242242
case IS_ARRAY:
243243
zend_error(E_NOTICE, "Array to string conversion");
244244
// TODO: use interned string ???
245-
ZVAL_NEW_STR(expr_copy, STR_INIT("Array", sizeof("Array") - 1, 0));
245+
ZVAL_NEW_STR(expr_copy, zend_string_init("Array", sizeof("Array") - 1, 0));
246246
break;
247247
case IS_OBJECT:
248248
if (Z_OBJ_HANDLER_P(expr, cast_object)) {
@@ -278,7 +278,7 @@ ZEND_API int zend_make_printable_zval(zval *expr, zval *expr_copy TSRMLS_DC) /*
278278
case IS_REFERENCE:
279279
expr = Z_REFVAL_P(expr);
280280
if (Z_TYPE_P(expr) == IS_STRING) {
281-
ZVAL_STR(expr_copy, STR_COPY(Z_STR_P(expr)));
281+
ZVAL_STR(expr_copy, zend_string_copy(Z_STR_P(expr)));
282282
return 1;
283283
}
284284
goto again;
@@ -307,7 +307,7 @@ ZEND_API int zend_print_zval_ex(zend_write_func_t write_func, zval *expr, int in
307307
write_func(str->val, len);
308308
}
309309

310-
STR_RELEASE(str);
310+
zend_string_release(str);
311311
return len;
312312
}
313313
/* }}} */
@@ -343,7 +343,7 @@ ZEND_API void zend_print_flat_zval_r(zval *expr TSRMLS_DC) /* {{{ */
343343
zend_printf("%s Object (", "Unknown Class");
344344
}
345345
if (class_name) {
346-
STR_RELEASE(class_name);
346+
zend_string_release(class_name);
347347
}
348348
if (Z_OBJ_HANDLER_P(expr, get_properties)) {
349349
properties = Z_OBJPROP_P(expr);
@@ -406,7 +406,7 @@ ZEND_API void zend_print_zval_r_ex(zend_write_func_t write_func, zval *expr, int
406406
}
407407
ZEND_PUTS_EX(" Object\n");
408408
if (class_name) {
409-
STR_RELEASE(class_name);
409+
zend_string_release(class_name);
410410
}
411411
if ((properties = Z_OBJDEBUG_P(expr, is_temp)) == NULL) {
412412
break;
@@ -739,7 +739,7 @@ int zend_startup(zend_utility_functions *utility_functions, char **extensions TS
739739
zend_interned_strings_init(TSRMLS_C);
740740
zend_startup_builtin_functions(TSRMLS_C);
741741
zend_register_standard_constants(TSRMLS_C);
742-
zend_register_auto_global(STR_INIT("GLOBALS", sizeof("GLOBALS") - 1, 1), 1, php_auto_globals_create_globals TSRMLS_CC);
742+
zend_register_auto_global(zend_string_init("GLOBALS", sizeof("GLOBALS") - 1, 1), 1, php_auto_globals_create_globals TSRMLS_CC);
743743

744744
#ifndef ZTS
745745
zend_init_rsrc_plist(TSRMLS_C);
@@ -972,7 +972,7 @@ ZEND_API void zend_deactivate(TSRMLS_D) /* {{{ */
972972
/* }}} */
973973

974974
BEGIN_EXTERN_C()
975-
ZEND_API void zend_message_dispatcher(zend_int_t message, const void *data TSRMLS_DC) /* {{{ */
975+
ZEND_API void zend_message_dispatcher(zend_long message, const void *data TSRMLS_DC) /* {{{ */
976976
{
977977
if (zend_message_dispatcher_p) {
978978
zend_message_dispatcher_p(message, data TSRMLS_CC);
@@ -1152,21 +1152,21 @@ ZEND_API void zend_error(int type, const char *format, ...) /* {{{ */
11521152
#endif
11531153
va_copy(usr_copy, args);
11541154
len = zend_vspprintf(&str, 0, format, usr_copy);
1155-
ZVAL_NEW_STR(&params[1], STR_INIT(str, len, 0));
1155+
ZVAL_NEW_STR(&params[1], zend_string_init(str, len, 0));
11561156
efree(str);
11571157
#ifdef va_copy
11581158
va_end(usr_copy);
11591159
#endif
11601160

1161-
ZVAL_INT(&params[0], type);
1161+
ZVAL_LONG(&params[0], type);
11621162

11631163
if (error_filename) {
11641164
ZVAL_STRING(&params[2], error_filename);
11651165
} else {
11661166
ZVAL_NULL(&params[2]);
11671167
}
11681168

1169-
ZVAL_INT(&params[3], error_lineno);
1169+
ZVAL_LONG(&params[3], error_lineno);
11701170

11711171
symbol_table = zend_rebuild_symbol_table(TSRMLS_C);
11721172

@@ -1293,7 +1293,7 @@ ZEND_API int zend_execute_scripts(int type TSRMLS_DC, zval *retval, int file_cou
12931293
int i;
12941294
zend_file_handle *file_handle;
12951295
zend_op_array *op_array;
1296-
zend_int_t orig_interactive = CG(interactive);
1296+
zend_long orig_interactive = CG(interactive);
12971297

12981298
va_start(files, file_count);
12991299
for (i = 0; i < file_count; i++) {
@@ -1390,7 +1390,7 @@ void free_estring(char **str_p) /* {{{ */
13901390
void free_string_zval(zval *zv) /* {{{ */
13911391
{
13921392
zend_string *str = Z_PTR_P(zv);
1393-
STR_RELEASE(str);
1393+
zend_string_release(str);
13941394
}
13951395
/* }}} */
13961396

0 commit comments

Comments
 (0)
Please sign in to comment.