mysql_unserialize_php
mysql_unserialize_php copied to clipboard
is not compiled under PHP7
aim-server[~/tmp/mysql_unserialize_php]$ gitdiff .
diff --git a/Makefile b/Makefile
index 085405f..a46789e 100644
--- a/Makefile
+++ b/Makefile
@@ -2,10 +2,11 @@ BASE =
CC = g++
STRIP = strip
CFLAGS = -Wall -g -fPIC \
- -I$(BASE)/usr/include/php5 \
- -I$(BASE)/usr/include/php5/main \
- -I$(BASE)/usr/include/php5/Zend \
- -I$(BASE)/usr/include/php5/TSRM \
+ -I$(BASE)/usr/include/php \
+ -I$(BASE)/usr/include/php/main \
+ -I$(BASE)/usr/include/php/Zend \
+ -I$(BASE)/usr/include/php/TSRM \
+ -I$(BASE)/usr/include/php/sapi/embed \
-I$(BASE)/usr/include/mysql
LFLAGS = -lresolv -lcrypt -ldl -L$(BASE)/usr/lib -lphp5embedded -fPIC
aim-server[~/tmp/mysql_unserialize_php]$ make
g++ -Wall -g -fPIC -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM -I/usr/include/php/sapi/embed -I/usr/include/mysql -c unserialize_php.cc -o unserialize_php.o
g++ -Wall -g -fPIC -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM -I/usr/include/php/sapi/embed -I/usr/include/mysql -c pfc.cc -o pfc.o
pfc.cc:18:50: error: macro "ZVAL_STRINGL" passed 4 arguments, but takes just 3
ZVAL_STRINGL(var, (char *)value, value_len, 1);
^
pfc.cc:22:54: error: macro "zend_hash_update" passed 6 arguments, but takes just 3
&var, sizeof(zval *), NULL);
^
pfc.cc: In function ‘void pfc_set_string(const char*, const char*, size_t, size_t)’:
pfc.cc:17:22: error: ‘MAKE_STD_ZVAL’ was not declared in this scope
MAKE_STD_ZVAL(var);
^
pfc.cc:18:5: error: ‘ZVAL_STRINGL’ was not declared in this scope
ZVAL_STRINGL(var, (char *)value, value_len, 1);
^
pfc.cc:21:11: error: ‘zend_hash_update’ was not declared in this scope
(void)zend_hash_update(&EG(symbol_table), (char *)name, name_len,
^
pfc.cc: In function ‘bool pfc_get_string(const char*, std::__cxx11::string*, size_t)’:
pfc.cc:35:31: error: cannot convert ‘char*’ to ‘zend_string* {aka _zend_string*}’ for argument ‘2’ to ‘zval* zend_hash_find(const HashTable*, zend_string*)’
(void **)&data) == FAILURE) {
^
pfc.cc: At global scope:
pfc.cc:139:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
};
^
pfc.cc:139:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
pfc.cc:139:1: error: invalid conversion from ‘int (*)(const char*, uint) {aka int (*)(const char*, unsigned int)}’ to ‘size_t (*)(const char*, size_t) {aka long unsigned int (*)(const char*, long unsigned int)}’ [-fpermissive]
pfc.cc: In function ‘bool pfc_initialize()’:
pfc.cc:187:58: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
php_register_variable("PHP_SELF", "-", NULL TSRMLS_CC);
^
pfc.cc:187:58: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
Makefile:14: recipe for target 'pfc.o' failed
make: *** [pfc.o] Error 1
aim-server[~/tmp/mysql_unserialize_php]$ /usr/bin/php -v
PHP 7.0.4 (cli) (built: Mar 2 2016 18:46:30) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
with Xdebug v2.4.0RC4, Copyright (c) 2002-2016, by Derick Rethans
aim-server[~/tmp/mysql_unserialize_php]$
under /opt/phpfarm/inst/php-5.3.29
aim-server[~/tmp/mysql_unserialize_php]$ gitdiff .
diff --git a/Makefile b/Makefile
index 085405f..79c8a1e 100644
--- a/Makefile
+++ b/Makefile
@@ -2,10 +2,11 @@ BASE =
CC = g++
STRIP = strip
CFLAGS = -Wall -g -fPIC \
- -I$(BASE)/usr/include/php5 \
- -I$(BASE)/usr/include/php5/main \
- -I$(BASE)/usr/include/php5/Zend \
- -I$(BASE)/usr/include/php5/TSRM \
+ -I$(BASE)/opt/phpfarm/inst/php-5.3.29/include/php \
+ -I$(BASE)/opt/phpfarm/inst/php-5.3.29/include/php/main \
+ -I$(BASE)/opt/phpfarm/inst/php-5.3.29/include/php/Zend \
+ -I$(BASE)/opt/phpfarm/inst/php-5.3.29/include/php/TSRM \
+ -I$(BASE)/usr/include/php/sapi/embed \
-I$(BASE)/usr/include/mysql
LFLAGS = -lresolv -lcrypt -ldl -L$(BASE)/usr/lib -lphp5embedded -fPIC
aim-server[~/tmp/mysql_unserialize_php]$ make
g++ -Wall -g -fPIC -I/opt/phpfarm/inst/php-5.3.29/include/php -I/opt/phpfarm/inst/php-5.3.29/include/php/main -I/opt/phpfarm/inst/php-5.3.29/include/php/Zend -I/opt/phpfarm/inst/php-5.3.29/include/php/TSRM -I/usr/include/php/sapi/embed -I/usr/include/mysql -c unserialize_php.cc -o unserialize_php.o
In file included from /opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend.h:270:0,
from /opt/phpfarm/inst/php-5.3.29/include/php/main/php.h:34,
from /usr/include/php/sapi/embed/php_embed.h:23,
from unserialize_php.cc:12:
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_hash.h: In function ‘int zend_symtable_update(HashTable*, const char*, uint, void*, uint, void**)’:
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_hash.h:121:103: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
_zend_hash_index_update_or_next_insert(ht, h, pData, nDataSize, pDest, HASH_UPDATE ZEND_FILE_LINE_CC)
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_hash.h:338:11: note: in definition of macro ‘ZEND_HANDLE_NUMERIC’
return func; \
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_hash.h:345:41: note: in expansion of macro ‘zend_hash_index_update’
ZEND_HANDLE_NUMERIC(arKey, nKeyLength, zend_hash_index_update(ht, idx, pData, nDataSize, pDest));
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_hash.h:109:105: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
_zend_hash_add_or_update(ht, arKey, nKeyLength, pData, nDataSize, pDest, HASH_UPDATE ZEND_FILE_LINE_CC)
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_hash.h:346:9: note: in expansion of macro ‘zend_hash_update’
return zend_hash_update(ht, arKey, nKeyLength, pData, nDataSize, pDest);
^
In file included from /opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend.h:237:0,
from /opt/phpfarm/inst/php-5.3.29/include/php/main/php.h:34,
from /usr/include/php/sapi/embed/php_embed.h:23,
from unserialize_php.cc:12:
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_ptr_stack.h: In function ‘void zend_ptr_stack_3_push(zend_ptr_stack*, void*, void*, void*)’:
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_alloc.h:74:101: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
#define erealloc(ptr, size) _erealloc((ptr), (size), 0 ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_alloc.h:126:86: note: in expansion of macro ‘erealloc’
#define perealloc(ptr, size, persistent) ((persistent)?__zend_realloc((ptr), (size)):erealloc((ptr), (size)))
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_ptr_stack.h:51:31: note: in expansion of macro ‘perealloc’
stack->elements = (void **) perealloc(stack->elements, (sizeof(void *) * (stack->max)), stack->persistent); \
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_ptr_stack.h:61:2: note: in expansion of macro ‘ZEND_PTR_STACK_RESIZE_IF_NEEDED’
ZEND_PTR_STACK_RESIZE_IF_NEEDED(stack, ZEND_PTR_STACK_NUM_ARGS)
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_ptr_stack.h: In function ‘void zend_ptr_stack_2_push(zend_ptr_stack*, void*, void*)’:
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_alloc.h:74:101: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
#define erealloc(ptr, size) _erealloc((ptr), (size), 0 ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_alloc.h:126:86: note: in expansion of macro ‘erealloc’
#define perealloc(ptr, size, persistent) ((persistent)?__zend_realloc((ptr), (size)):erealloc((ptr), (size)))
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_ptr_stack.h:51:31: note: in expansion of macro ‘perealloc’
stack->elements = (void **) perealloc(stack->elements, (sizeof(void *) * (stack->max)), stack->persistent); \
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_ptr_stack.h:75:2: note: in expansion of macro ‘ZEND_PTR_STACK_RESIZE_IF_NEEDED’
ZEND_PTR_STACK_RESIZE_IF_NEEDED(stack, ZEND_PTR_STACK_NUM_ARGS)
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_ptr_stack.h: In function ‘void zend_ptr_stack_push(zend_ptr_stack*, void*)’:
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_alloc.h:74:101: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
#define erealloc(ptr, size) _erealloc((ptr), (size), 0 ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_alloc.h:126:86: note: in expansion of macro ‘erealloc’
#define perealloc(ptr, size, persistent) ((persistent)?__zend_realloc((ptr), (size)):erealloc((ptr), (size)))
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_ptr_stack.h:51:31: note: in expansion of macro ‘perealloc’
stack->elements = (void **) perealloc(stack->elements, (sizeof(void *) * (stack->max)), stack->persistent); \
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_ptr_stack.h:101:2: note: in expansion of macro ‘ZEND_PTR_STACK_RESIZE_IF_NEEDED’
ZEND_PTR_STACK_RESIZE_IF_NEEDED(stack, 1)
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_execute.h: In function ‘void safe_free_zval_ptr_rel(zval*, char*, uint, char*, uint)’:
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_alloc.h:84:84: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
#define efree_rel(ptr) _efree((ptr) ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_CC)
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_gc.h:228:3: note: in expansion of macro ‘efree_rel’
efree_rel(z); \
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_execute.h:70:3: note: in expansion of macro ‘FREE_ZVAL_REL’
FREE_ZVAL_REL(p);
^
In file included from /opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend.h:756:0,
from /opt/phpfarm/inst/php-5.3.29/include/php/main/php.h:34,
from /usr/include/php/sapi/embed/php_embed.h:23,
from unserialize_php.cc:12:
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_execute.h: In function ‘int i_zend_is_true(zval*)’:
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_variables.h:56:76: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_execute.h:123:7: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&tmp);
^
In file included from /opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend.h:237:0,
from /opt/phpfarm/inst/php-5.3.29/include/php/main/php.h:34,
from /usr/include/php/sapi/embed/php_embed.h:23,
from unserialize_php.cc:12:
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_execute.h: In function ‘_zend_vm_stack* zend_vm_stack_new_page(int)’:
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_alloc.h:70:85: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
#define emalloc(size) _emalloc((size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_execute.h:163:38: note: in expansion of macro ‘emalloc’
zend_vm_stack page = (zend_vm_stack)emalloc(ZEND_MM_ALIGNED_SIZE(sizeof(*page)) + sizeof(void*) * count);
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_execute.h: In function ‘void zend_vm_stack_destroy()’:
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_alloc.h:72:80: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
#define efree(ptr) _efree((ptr) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_execute.h:182:3: note: in expansion of macro ‘efree’
efree(stack);
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_execute.h: In function ‘void* zend_vm_stack_pop()’:
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_alloc.h:72:80: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
#define efree(ptr) _efree((ptr) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_execute.h:217:3: note: in expansion of macro ‘efree’
efree(p);
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_execute.h: In function ‘void zend_vm_stack_free_int(void*)’:
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_alloc.h:72:80: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
#define efree(ptr) _efree((ptr) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_execute.h:257:3: note: in expansion of macro ‘efree’
efree(p);
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_execute.h: In function ‘void zend_vm_stack_free(void*)’:
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_alloc.h:72:80: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
#define efree(ptr) _efree((ptr) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_execute.h:269:3: note: in expansion of macro ‘efree’
efree(p);
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_execute.h: In function ‘void** zend_vm_stack_push_args(int)’:
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_alloc.h:72:80: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
#define efree(ptr) _efree((ptr) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_execute.h:300:5: note: in expansion of macro ‘efree’
efree(r);
^
In file included from /opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend.h:756:0,
from /opt/phpfarm/inst/php-5.3.29/include/php/main/php.h:34,
from /usr/include/php/sapi/embed/php_embed.h:23,
from unserialize_php.cc:12:
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_execute.h: In function ‘void zend_vm_stack_clear_multiple()’:
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_variables.h:56:76: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_execute.h:318:3: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&q);
^
g++ -Wall -g -fPIC -I/opt/phpfarm/inst/php-5.3.29/include/php -I/opt/phpfarm/inst/php-5.3.29/include/php/main -I/opt/phpfarm/inst/php-5.3.29/include/php/Zend -I/opt/phpfarm/inst/php-5.3.29/include/php/TSRM -I/usr/include/php/sapi/embed -I/usr/include/mysql -c pfc.cc -o pfc.o
In file included from /opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend.h:270:0,
from /opt/phpfarm/inst/php-5.3.29/include/php/main/php.h:34,
from pfc.h:4,
from pfc.cc:1:
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_hash.h: In function ‘int zend_symtable_update(HashTable*, const char*, uint, void*, uint, void**)’:
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_hash.h:121:103: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
_zend_hash_index_update_or_next_insert(ht, h, pData, nDataSize, pDest, HASH_UPDATE ZEND_FILE_LINE_CC)
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_hash.h:338:11: note: in definition of macro ‘ZEND_HANDLE_NUMERIC’
return func; \
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_hash.h:345:41: note: in expansion of macro ‘zend_hash_index_update’
ZEND_HANDLE_NUMERIC(arKey, nKeyLength, zend_hash_index_update(ht, idx, pData, nDataSize, pDest));
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_hash.h:109:105: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
_zend_hash_add_or_update(ht, arKey, nKeyLength, pData, nDataSize, pDest, HASH_UPDATE ZEND_FILE_LINE_CC)
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_hash.h:346:9: note: in expansion of macro ‘zend_hash_update’
return zend_hash_update(ht, arKey, nKeyLength, pData, nDataSize, pDest);
^
In file included from /opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend.h:237:0,
from /opt/phpfarm/inst/php-5.3.29/include/php/main/php.h:34,
from pfc.h:4,
from pfc.cc:1:
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_ptr_stack.h: In function ‘void zend_ptr_stack_3_push(zend_ptr_stack*, void*, void*, void*)’:
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_alloc.h:74:101: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
#define erealloc(ptr, size) _erealloc((ptr), (size), 0 ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_alloc.h:126:86: note: in expansion of macro ‘erealloc’
#define perealloc(ptr, size, persistent) ((persistent)?__zend_realloc((ptr), (size)):erealloc((ptr), (size)))
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_ptr_stack.h:51:31: note: in expansion of macro ‘perealloc’
stack->elements = (void **) perealloc(stack->elements, (sizeof(void *) * (stack->max)), stack->persistent); \
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_ptr_stack.h:61:2: note: in expansion of macro ‘ZEND_PTR_STACK_RESIZE_IF_NEEDED’
ZEND_PTR_STACK_RESIZE_IF_NEEDED(stack, ZEND_PTR_STACK_NUM_ARGS)
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_ptr_stack.h: In function ‘void zend_ptr_stack_2_push(zend_ptr_stack*, void*, void*)’:
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_alloc.h:74:101: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
#define erealloc(ptr, size) _erealloc((ptr), (size), 0 ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_alloc.h:126:86: note: in expansion of macro ‘erealloc’
#define perealloc(ptr, size, persistent) ((persistent)?__zend_realloc((ptr), (size)):erealloc((ptr), (size)))
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_ptr_stack.h:51:31: note: in expansion of macro ‘perealloc’
stack->elements = (void **) perealloc(stack->elements, (sizeof(void *) * (stack->max)), stack->persistent); \
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_ptr_stack.h:75:2: note: in expansion of macro ‘ZEND_PTR_STACK_RESIZE_IF_NEEDED’
ZEND_PTR_STACK_RESIZE_IF_NEEDED(stack, ZEND_PTR_STACK_NUM_ARGS)
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_ptr_stack.h: In function ‘void zend_ptr_stack_push(zend_ptr_stack*, void*)’:
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_alloc.h:74:101: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
#define erealloc(ptr, size) _erealloc((ptr), (size), 0 ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_alloc.h:126:86: note: in expansion of macro ‘erealloc’
#define perealloc(ptr, size, persistent) ((persistent)?__zend_realloc((ptr), (size)):erealloc((ptr), (size)))
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_ptr_stack.h:51:31: note: in expansion of macro ‘perealloc’
stack->elements = (void **) perealloc(stack->elements, (sizeof(void *) * (stack->max)), stack->persistent); \
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_ptr_stack.h:101:2: note: in expansion of macro ‘ZEND_PTR_STACK_RESIZE_IF_NEEDED’
ZEND_PTR_STACK_RESIZE_IF_NEEDED(stack, 1)
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_execute.h: In function ‘void safe_free_zval_ptr_rel(zval*, char*, uint, char*, uint)’:
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_alloc.h:84:84: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
#define efree_rel(ptr) _efree((ptr) ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_CC)
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_gc.h:228:3: note: in expansion of macro ‘efree_rel’
efree_rel(z); \
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_execute.h:70:3: note: in expansion of macro ‘FREE_ZVAL_REL’
FREE_ZVAL_REL(p);
^
In file included from /opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend.h:756:0,
from /opt/phpfarm/inst/php-5.3.29/include/php/main/php.h:34,
from pfc.h:4,
from pfc.cc:1:
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_execute.h: In function ‘int i_zend_is_true(zval*)’:
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_variables.h:56:76: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_execute.h:123:7: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&tmp);
^
In file included from /opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend.h:237:0,
from /opt/phpfarm/inst/php-5.3.29/include/php/main/php.h:34,
from pfc.h:4,
from pfc.cc:1:
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_execute.h: In function ‘_zend_vm_stack* zend_vm_stack_new_page(int)’:
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_alloc.h:70:85: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
#define emalloc(size) _emalloc((size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_execute.h:163:38: note: in expansion of macro ‘emalloc’
zend_vm_stack page = (zend_vm_stack)emalloc(ZEND_MM_ALIGNED_SIZE(sizeof(*page)) + sizeof(void*) * count);
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_execute.h: In function ‘void zend_vm_stack_destroy()’:
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_alloc.h:72:80: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
#define efree(ptr) _efree((ptr) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_execute.h:182:3: note: in expansion of macro ‘efree’
efree(stack);
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_execute.h: In function ‘void* zend_vm_stack_pop()’:
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_alloc.h:72:80: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
#define efree(ptr) _efree((ptr) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_execute.h:217:3: note: in expansion of macro ‘efree’
efree(p);
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_execute.h: In function ‘void zend_vm_stack_free_int(void*)’:
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_alloc.h:72:80: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
#define efree(ptr) _efree((ptr) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_execute.h:257:3: note: in expansion of macro ‘efree’
efree(p);
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_execute.h: In function ‘void zend_vm_stack_free(void*)’:
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_alloc.h:72:80: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
#define efree(ptr) _efree((ptr) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_execute.h:269:3: note: in expansion of macro ‘efree’
efree(p);
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_execute.h: In function ‘void** zend_vm_stack_push_args(int)’:
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_alloc.h:72:80: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
#define efree(ptr) _efree((ptr) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_execute.h:300:5: note: in expansion of macro ‘efree’
efree(r);
^
In file included from /opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend.h:756:0,
from /opt/phpfarm/inst/php-5.3.29/include/php/main/php.h:34,
from pfc.h:4,
from pfc.cc:1:
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_execute.h: In function ‘void zend_vm_stack_clear_multiple()’:
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_variables.h:56:76: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_execute.h:318:3: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&q);
^
In file included from /opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend.h:237:0,
from /opt/phpfarm/inst/php-5.3.29/include/php/main/php.h:34,
from pfc.h:4,
from pfc.cc:1:
pfc.cc: In function ‘void pfc_set_string(const char*, const char*, size_t, size_t)’:
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_alloc.h:70:85: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
#define emalloc(size) _emalloc((size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_gc.h:206:16: note: in expansion of macro ‘emalloc’
(z) = (zval*)emalloc(sizeof(zval_gc_info)); \
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend.h:674:2: note: in expansion of macro ‘ALLOC_ZVAL’
ALLOC_ZVAL(zv); \
^
pfc.cc:17:5: note: in expansion of macro ‘MAKE_STD_ZVAL’
MAKE_STD_ZVAL(var);
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_alloc.h:78:98: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
#define estrndup(s, length) _estrndup((s), (length) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
^
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_API.h:554:30: note: in expansion of macro ‘estrndup’
Z_STRVAL_P(z) = (duplicate?estrndup(__s, __l):(char*)__s);\
^
pfc.cc:18:5: note: in expansion of macro ‘ZVAL_STRINGL’
ZVAL_STRINGL(var, (char *)value, value_len, 1);
^
In file included from /opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend.h:270:0,
from /opt/phpfarm/inst/php-5.3.29/include/php/main/php.h:34,
from pfc.h:4,
from pfc.cc:1:
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_hash.h:109:105: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
_zend_hash_add_or_update(ht, arKey, nKeyLength, pData, nDataSize, pDest, HASH_UPDATE ZEND_FILE_LINE_CC)
^
pfc.cc:21:11: note: in expansion of macro ‘zend_hash_update’
(void)zend_hash_update(&EG(symbol_table), (char *)name, name_len,
^
In file included from /opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend.h:755:0,
from /opt/phpfarm/inst/php-5.3.29/include/php/main/php.h:34,
from pfc.h:4,
from pfc.cc:1:
pfc.cc: In function ‘bool pfc_get_string(const char*, std::__cxx11::string*, size_t)’:
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_operators.h:294:103: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
#define convert_to_string(op) if ((op)->type != IS_STRING) { _convert_to_string((op) ZEND_FILE_LINE_CC); }
^
pfc.cc:45:5: note: in expansion of macro ‘convert_to_string’
convert_to_string(*data);
^
In file included from /opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend.h:237:0,
from /opt/phpfarm/inst/php-5.3.29/include/php/main/php.h:34,
from pfc.h:4,
from pfc.cc:1:
pfc.cc: In function ‘bool pfc_evalf(const char*, const char*, ...)’:
/opt/phpfarm/inst/php-5.3.29/include/php/Zend/zend_alloc.h:72:80: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
#define efree(ptr) _efree((ptr) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
^
pfc.cc:76:9: note: in expansion of macro ‘efree’
efree(data);
^
pfc.cc: At global scope:
pfc.cc:139:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
};
^
pfc.cc:139:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
pfc.cc: In function ‘bool pfc_initialize()’:
pfc.cc:187:58: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
php_register_variable("PHP_SELF", "-", NULL TSRMLS_CC);
^
pfc.cc:187:58: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
g++ -lresolv -lcrypt -ldl -L/usr/lib -lphp5embedded -fPIC -Wall -fPIC -shared -o unserialize_php.so unserialize_php.o pfc.o
/usr/bin/ld: cannot find -lphp5embedded
collect2: error: ld returned 1 exit status
Makefile:17: recipe for target 'unserialize_php.so' failed
make: *** [unserialize_php.so] Error 1
aim-server[~/tmp/mysql_unserialize_php]$