Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions ext/kernel/memory.h
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,6 @@ extern void PHALCON_FASTCALL phalcon_copy_ctor(zval *destiny, zval *origin);
#define PHALCON_ALLOC_ZVAL(z) \
ALLOC_ZVAL(z); INIT_PZVAL(z); ZVAL_NULL(z);

#define PHALCON_INIT_VAR_OLD(z) \
PHALCON_ALLOC_ZVAL(z); \
phalcon_memory_observe(&z TSRMLS_CC);

#define PHALCON_INIT_VAR(z) \
phalcon_memory_alloc(&z TSRMLS_CC);

Expand Down
2 changes: 1 addition & 1 deletion ext/kernel/string.c
Original file line number Diff line number Diff line change
Expand Up @@ -1095,7 +1095,7 @@ zval *phalcon_eol(int eol TSRMLS_DC) {
if (eol) {
ZVAL_STRING(local_eol, PHP_EOL, 1);
} else {
ZVAL_STRING(local_eol, "", 1);
ZVAL_EMPTY_STRING(local_eol);
}

return local_eol;
Expand Down
4 changes: 0 additions & 4 deletions ext/kernel/variables.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ void phalcon_serialize(zval *return_value, zval **var TSRMLS_DC) {
php_serialize_data_t var_hash;
smart_str buf = {0};

Z_TYPE_P(return_value) = IS_STRING;
Z_STRVAL_P(return_value) = NULL;
Z_STRLEN_P(return_value) = 0;

PHP_VAR_SERIALIZE_INIT(var_hash);
php_var_serialize(&buf, var, &var_hash TSRMLS_CC);
PHP_VAR_SERIALIZE_DESTROY(var_hash);
Expand Down