Browse Source

- Fixed crash in serialize() + classes. (64bit only)

PHP-5.1
foobar 21 years ago
parent
commit
887f44a9dd
  1. 4
      ext/standard/incomplete_class.c
  2. 6
      ext/standard/php_incomplete_class.h

4
ext/standard/incomplete_class.c

@ -122,7 +122,7 @@ zend_class_entry *php_create_incomplete_class(TSRMLS_D)
/* {{{ php_lookup_class_name
*/
char *php_lookup_class_name(zval *object, size_t *nlen)
char *php_lookup_class_name(zval *object, zend_uint *nlen)
{
zval **val;
char *retval = NULL;
@ -144,7 +144,7 @@ char *php_lookup_class_name(zval *object, size_t *nlen)
/* {{{ php_store_class_name
*/
void php_store_class_name(zval *object, const char *name, size_t len)
void php_store_class_name(zval *object, const char *name, zend_uint len)
{
zval *val;
TSRMLS_FETCH();

6
ext/standard/php_incomplete_class.h

@ -42,7 +42,7 @@
#define PHP_CLASS_ATTRIBUTES \
char *class_name; \
size_t name_len; \
zend_uint name_len; \
zend_bool free_class_name = 0; \
zend_bool incomplete_class = 0
@ -55,8 +55,8 @@ extern "C" {
zend_class_entry *php_create_incomplete_class(TSRMLS_D);
char *php_lookup_class_name(zval *object, size_t *nlen);
void php_store_class_name(zval *object, const char *name, size_t len);
char *php_lookup_class_name(zval *object, zend_uint *nlen);
void php_store_class_name(zval *object, const char *name, zend_uint len);
#ifdef __cplusplus
};

Loading…
Cancel
Save