@@ -323,7 +323,7 @@ typedef union _zvalue_value {
323
323
double dval ; /* double value */
324
324
struct {
325
325
char * val ;
326
- int len ;
326
+ zend_str_size_int len ;
327
327
} str ;
328
328
HashTable * ht ; /* hash table value */
329
329
zend_object_value obj ;
@@ -441,12 +441,12 @@ typedef struct _zend_unserialize_data zend_unserialize_data;
441
441
442
442
struct _zend_trait_method_reference {
443
443
const char * method_name ;
444
- unsigned int mname_len ;
444
+ zend_str_size_uint mname_len ;
445
445
446
446
zend_class_entry * ce ;
447
447
448
448
const char * class_name ;
449
- unsigned int cname_len ;
449
+ zend_str_size_uint cname_len ;
450
450
};
451
451
typedef struct _zend_trait_method_reference zend_trait_method_reference ;
452
452
@@ -464,7 +464,7 @@ struct _zend_trait_alias {
464
464
* name for method to be added
465
465
*/
466
466
const char * alias ;
467
- unsigned int alias_len ;
467
+ zend_str_size_uint alias_len ;
468
468
469
469
/**
470
470
* modifiers to be set on trait method
@@ -476,7 +476,7 @@ typedef struct _zend_trait_alias zend_trait_alias;
476
476
struct _zend_class_entry {
477
477
char type ;
478
478
const char * name ;
479
- zend_uint name_length ;
479
+ zend_str_size_uint name_length ;
480
480
struct _zend_class_entry * parent ;
481
481
int refcount ;
482
482
zend_uint ce_flags ;
@@ -509,11 +509,11 @@ struct _zend_class_entry {
509
509
zend_object_value (* create_object )(zend_class_entry * class_type TSRMLS_DC );
510
510
zend_object_iterator * (* get_iterator )(zend_class_entry * ce , zval * object , int by_ref TSRMLS_DC );
511
511
int (* interface_gets_implemented )(zend_class_entry * iface , zend_class_entry * class_type TSRMLS_DC ); /* a class implements this interface */
512
- union _zend_function * (* get_static_method )(zend_class_entry * ce , char * method , int method_len TSRMLS_DC );
512
+ union _zend_function * (* get_static_method )(zend_class_entry * ce , char * method , zend_str_size_int method_len TSRMLS_DC );
513
513
514
514
/* serializer callbacks */
515
- int (* serialize )(zval * object , unsigned char * * buffer , zend_uint * buf_len , zend_serialize_data * data TSRMLS_DC );
516
- int (* unserialize )(zval * * object , zend_class_entry * ce , const unsigned char * buf , zend_uint buf_len , zend_unserialize_data * data TSRMLS_DC );
515
+ zend_str_size_int (* serialize )(zval * object , unsigned char * * buffer , zend_str_size_uint * buf_len , zend_serialize_data * data TSRMLS_DC );
516
+ zend_str_size_int (* unserialize )(zval * * object , zend_class_entry * ce , const unsigned char * buf , zend_str_size_uint buf_len , zend_unserialize_data * data TSRMLS_DC );
517
517
518
518
zend_class_entry * * interfaces ;
519
519
zend_uint num_interfaces ;
@@ -526,10 +526,10 @@ struct _zend_class_entry {
526
526
union {
527
527
struct {
528
528
const char * filename ;
529
- zend_uint line_start ;
530
- zend_uint line_end ;
529
+ zend_str_size_uint line_start ;
530
+ zend_str_size_uint line_end ;
531
531
const char * doc_comment ;
532
- zend_uint doc_comment_len ;
532
+ zend_str_size_uint doc_comment_len ;
533
533
} user ;
534
534
struct {
535
535
const struct _zend_function_entry * builtin_functions ;
@@ -540,20 +540,20 @@ struct _zend_class_entry {
540
540
541
541
#include "zend_stream.h"
542
542
typedef struct _zend_utility_functions {
543
- void (* error_function )(int type , const char * error_filename , const uint error_lineno , const char * format , va_list args ) ZEND_ATTRIBUTE_PTR_FORMAT (printf , 4 , 0 );
544
- int (* printf_function )(const char * format , ...) ZEND_ATTRIBUTE_PTR_FORMAT (printf , 1 , 2 );
545
- int (* write_function )(const char * str , uint str_length );
543
+ void (* error_function )(int type , const char * error_filename , const zend_str_size_uint error_lineno , const char * format , va_list args ) ZEND_ATTRIBUTE_PTR_FORMAT (printf , 4 , 0 );
544
+ zend_str_size_int (* printf_function )(const char * format , ...) ZEND_ATTRIBUTE_PTR_FORMAT (printf , 1 , 2 );
545
+ zend_str_size_int (* write_function )(const char * str , zend_str_size_uint str_length );
546
546
FILE * (* fopen_function )(const char * filename , char * * opened_path TSRMLS_DC );
547
547
void (* message_handler )(long message , const void * data TSRMLS_DC );
548
548
void (* block_interruptions )(void );
549
549
void (* unblock_interruptions )(void );
550
- int (* get_configuration_directive )(const char * name , uint name_length , zval * contents );
550
+ int (* get_configuration_directive )(const char * name , zend_str_size_uint name_length , zval * contents );
551
551
void (* ticks_function )(int ticks );
552
552
void (* on_timeout )(int seconds TSRMLS_DC );
553
553
int (* stream_open_function )(const char * filename , zend_file_handle * handle TSRMLS_DC );
554
- int (* vspprintf_function )(char * * pbuf , size_t max_len , const char * format , va_list ap );
555
- char * (* getenv_function )(char * name , size_t name_len TSRMLS_DC );
556
- char * (* resolve_path_function )(const char * filename , int filename_len TSRMLS_DC );
554
+ zend_str_size_int (* vspprintf_function )(char * * pbuf , zend_str_size_size_t max_len , const char * format , va_list ap );
555
+ char * (* getenv_function )(char * name , zend_str_size_size_t name_len TSRMLS_DC );
556
+ char * (* resolve_path_function )(const char * filename , zend_str_size_int filename_len TSRMLS_DC );
557
557
} zend_utility_functions ;
558
558
559
559
typedef struct _zend_utility_values {
@@ -609,7 +609,7 @@ void zend_post_startup(TSRMLS_D);
609
609
void zend_set_utility_values (zend_utility_values * utility_values );
610
610
611
611
BEGIN_EXTERN_C ()
612
- ZEND_API void _zend_bailout (char * filename , uint lineno );
612
+ ZEND_API void _zend_bailout (char * filename , zend_str_size_uint lineno );
613
613
END_EXTERN_C ()
614
614
615
615
#define zend_bailout () _zend_bailout(__FILE__, __LINE__)
@@ -686,18 +686,18 @@ END_EXTERN_C()
686
686
#define ZEND_PUTC (c ) zend_write(&(c), 1), (c)
687
687
688
688
BEGIN_EXTERN_C ()
689
- extern ZEND_API int (* zend_printf )(const char * format , ...) ZEND_ATTRIBUTE_PTR_FORMAT (printf , 1 , 2 );
689
+ extern ZEND_API zend_str_size_int (* zend_printf )(const char * format , ...) ZEND_ATTRIBUTE_PTR_FORMAT (printf , 1 , 2 );
690
690
extern ZEND_API zend_write_func_t zend_write ;
691
691
extern ZEND_API FILE * (* zend_fopen )(const char * filename , char * * opened_path TSRMLS_DC );
692
692
extern ZEND_API void (* zend_block_interruptions )(void );
693
693
extern ZEND_API void (* zend_unblock_interruptions )(void );
694
694
extern ZEND_API void (* zend_ticks_function )(int ticks );
695
- extern ZEND_API void (* zend_error_cb )(int type , const char * error_filename , const uint error_lineno , const char * format , va_list args ) ZEND_ATTRIBUTE_PTR_FORMAT (printf , 4 , 0 );
695
+ extern ZEND_API void (* zend_error_cb )(int type , const char * error_filename , const zend_str_size_uint error_lineno , const char * format , va_list args ) ZEND_ATTRIBUTE_PTR_FORMAT (printf , 4 , 0 );
696
696
extern ZEND_API void (* zend_on_timeout )(int seconds TSRMLS_DC );
697
697
extern ZEND_API int (* zend_stream_open_function )(const char * filename , zend_file_handle * handle TSRMLS_DC );
698
- extern int (* zend_vspprintf )(char * * pbuf , size_t max_len , const char * format , va_list ap );
699
- extern ZEND_API char * (* zend_getenv )(char * name , size_t name_len TSRMLS_DC );
700
- extern ZEND_API char * (* zend_resolve_path )(const char * filename , int filename_len TSRMLS_DC );
698
+ extern zend_str_size_int (* zend_vspprintf )(char * * pbuf , zend_str_size_size_t max_len , const char * format , va_list ap );
699
+ extern ZEND_API char * (* zend_getenv )(char * name , zend_str_size_size_t name_len TSRMLS_DC );
700
+ extern ZEND_API char * (* zend_resolve_path )(const char * filename , zend_str_size_int filename_len TSRMLS_DC );
701
701
702
702
ZEND_API void zend_error (int type , const char * format , ...) ZEND_ATTRIBUTE_FORMAT (printf , 2 , 3 );
703
703
@@ -726,7 +726,7 @@ END_EXTERN_C()
726
726
BEGIN_EXTERN_C ()
727
727
ZEND_API void zend_message_dispatcher (long message , const void * data TSRMLS_DC );
728
728
729
- ZEND_API int zend_get_configuration_directive (const char * name , uint name_length , zval * contents );
729
+ ZEND_API int zend_get_configuration_directive (const char * name , zend_str_size_uint name_length , zval * contents );
730
730
END_EXTERN_C ()
731
731
732
732
/* Messages for applications of Zend */
0 commit comments