Hello there,
I am stuck. I recently installed without prublems this package in another server with ubuntu 18.04 and php 7.2 so I don't know what it is the problem.
PEAR Version: 1.10.8
PHP Version: 7.3.9-1+ubuntu18.04.1+deb.sury.org+1
Zend Engine Version: 3.3.9
Running on: 5.0.0-1032-azure #34-Ubuntu SMP Mon Feb 10 19:37:25 UTC 2020 x86_64
odbcinst -q -d -n "ODBC Driver 17 for SQL Server"
[ODBC Driver 17 for SQL Server]
Description=Microsoft ODBC Driver 17 for SQL Server
Driver=/opt/microsoft/msodbcsql17/lib64/libmsodbcsql-17.5.so.2.1
sudo pecl install sqlsrv
And the error I got.
downloading sqlsrv-5.8.0.tgz ...
Starting to download sqlsrv-5.8.0.tgz (187,897 bytes)
........................................done: 187,897 bytes
34 source files, building
running: phpize
Configuring for:
PHP Api Version: 20131106
Zend Module Api No: 20131226
Zend Extension Api No: 220131226
building in /tmp/pear/temp/pear-build-rootJiso5z/sqlsrv-5.8.0
running: /tmp/pear/temp/sqlsrv/configure --with-php-config=/usr/bin/php-config
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php/20131226 -I/usr/include/php/20131226/main -I/usr/include/php/20131226/TSRM -I/usr/include/php/20131226/Zend -I/usr/include/php/20131226/ext -I/usr/includ e/php/20131226/ext/date/lib
checking for PHP extension directory... /usr/lib/php/20131226
checking for PHP installed headers prefix... /usr/include/php/20131226
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking whether to enable sqlsrv functions... yes, shared
checking for SQLSRV headers... /tmp/pear/temp/sqlsrv/shared/
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking for gawk... (cached) gawk
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -DPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
configure: creating ./config.status
config.status: creating config.h
config.status: executing libtool commands
running: make
/bin/bash /tmp/pear/temp/pear-build-rootJiso5z/sqlsrv-5.8.0/libtool --mode=compile g++ -std=c++11 -I. -I/tmp/pear/temp/sqlsrv -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootJiso5z/sqlsrv-5.8.0/include -I/tmp/pear/temp/pear-build-rootJiso5z/sqlsrv-5.8.0/main -I/tmp/pear/temp/sqlsrv -I/usr/include/php/20131226 -I/usr/include/php/20131226/main -I/usr/include/php/20131226/TSRM -I/usr/include/php/2013122 6/Zend -I/usr/include/php/20131226/ext -I/usr/include/php/20131226/ext/date/lib -I/tmp/pear/temp/sqlsrv/shared/ -DHAVE_CONFIG_H -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /tmp/pear/tem p/sqlsrv/conn.cpp -o conn.lo
libtool: compile: g++ -std=c++11 -I. -I/tmp/pear/temp/sqlsrv -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootJiso5z/sqlsrv-5.8.0/include -I/tmp/pear/temp/pear-build-rootJiso5z/sqlsrv-5.8.0/main -I/tmp/ pear/temp/sqlsrv -I/usr/include/php/20131226 -I/usr/include/php/20131226/main -I/usr/include/php/20131226/TSRM -I/usr/include/php/20131226/Zend -I/usr/include/php/20131226/ext -I/usr/include/php/201312 26/ext/date/lib -I/tmp/pear/temp/sqlsrv/shared/ -DHAVE_CONFIG_H -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /tmp/pear/temp/sqlsrv/conn.cpp -fPIC -DPIC -o .libs/conn.o
In file included from /tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:25:0,
from /tmp/pear/temp/sqlsrv/conn.cpp:24:
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:2493:38: error: macro "ZVAL_STRINGL" requires 4 arguments, but only 3 given
ZVAL_STRINGL(value_z, str, str_len);
^
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:2540:54: error: macro "add_assoc_string" requires 4 arguments, but only 3 given
int zr = ::add_assoc_string(array_z, key, val);
^
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:2579:58: error: macro "zend_hash_get_current_data" requires 2 arguments, but only 1 given
int zr = (output_data = ::zend_hash_get_current_data(ht)) != NULL ? SUCCESS : FAILURE;
^
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:2603:70: error: macro "zend_hash_index_update" requires 5 arguments, but only 3 given
int zr = (data_z = ::zend_hash_index_update(ht, index, data_z)) != NULL ? SUCCESS : FAILURE;
^
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:2628:64: error: macro "zend_hash_next_index_insert" requires 4 arguments, but only 2 given
int zr = (data = ::zend_hash_next_index_insert(ht, data)) != NULL ? SUCCESS : FAILURE;
^
In file included from /tmp/pear/temp/sqlsrv/conn.cpp:21:0:
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:39:1: error: ‘zend_long’ does not name a type; did you mean ‘zend_ulong’?
zend_long log_severity;
^~~~~~~~~
zend_ulong
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:40:1: error: ‘zend_long’ does not name a type; did you mean ‘zend_ulong’?
zend_long log_subsystems;
^~~~~~~~~
zend_ulong
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:41:1: error: ‘zend_long’ does not name a type; did you mean ‘zend_ulong’?
zend_long current_subsystem;
^~~~~~~~~
zend_ulong
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:43:1: error: ‘zend_long’ does not name a type; did you mean ‘zend_ulong’?
zend_long buffered_query_limit;
^~~~~~~~~
zend_ulong
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:46:1: error: ‘zend_long’ does not name a type; did you mean ‘zend_ulong’?
zend_long set_locale_info;
^~~~~~~~~
zend_ulong
In file included from /tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:25:0,
from /tmp/pear/temp/sqlsrv/conn.cpp:24:
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:259:5: error: ‘zend_long’ does not name a type; did you mean ‘zend_ulong’?
zend_long value;
^~~~~~~~~
zend_ulong
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:273:5: error: ‘zend_long’ does not name a type; did you mean ‘zend_ulong’?
zend_long value;
^~~~~~~~~
zend_ulong
In file included from /usr/include/php/20131226/Zend/zend.h:850:0,
from /usr/include/php/20131226/main/php.h:36,
from /tmp/pear/temp/sqlsrv/php_sqlsrv.h:25,
from /tmp/pear/temp/sqlsrv/conn.cpp:21:
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h: In member function ‘void zval_auto_ptr::reset(zval*)’:
/usr/include/php/20131226/Zend/zend_variables.h:57:76: error: cannot convert ‘_zval_struct*’ to ‘zval** {aka _zval_struct**}’ for argument ‘1’ to ‘void _zval_ptr_dtor(zval**)’
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:743:13: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(_ptr );
^~~~~~~~~~~~~
In file included from /tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:25:0,
from /tmp/pear/temp/sqlsrv/conn.cpp:24:
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h: At global scope:
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:1526:5: error: ‘zend_long’ does not name a type; did you mean ‘zend_ulong’?
zend_long buffered_query_limit; // maximum allowed memory for a buffered query (measured in KB)
^~~~~~~~~
zend_ulong
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:1705:18: error: ‘zend_long’ does not name a type; did you mean ‘zend_ulong’?
static const zend_long BUFFERED_QUERY_LIMIT_DEFAULT = 10240; // measured in KB
^~~~~~~~~
zend_ulong
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:1706:18: error: ‘zend_long’ does not name a type; did you mean ‘zend_ulong’?
static const zend_long BUFFERED_QUERY_LIMIT_INVALID = 0;
^~~~~~~~~
zend_ulong
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h: In function ‘void core::sqlsrv_zval_stringl(zval*, const char*, std::size_t)’:
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:2487:41: error: ‘Z_STR_P’ was not declared in this scope
if (Z_TYPE_P(value_z) == IS_STRING && Z_STR_P(value_z) != NULL) {
^~~~~~~
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:2487:41: note: suggested alternative: ‘Z_AST_P’
if (Z_TYPE_P(value_z) == IS_STRING && Z_STR_P(value_z) != NULL) {
^~~~~~~
Z_AST_P
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:2488:4: error: ‘zend_string’ was not declared in this scope
zend_string* temp_zstr = zend_string_init(str, str_len, 0);
^~~~~~~~~~~
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:2488:4: note: suggested alternative: ‘zend_strip’
zend_string* temp_zstr = zend_string_init(str, str_len, 0);
^~~~~~~~~~~
zend_strip
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:2488:17: error: ‘temp_zstr’ was not declared in this scope
zend_string* temp_zstr = zend_string_init(str, str_len, 0);
^~~~~~~~~
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:2488:29: error: ‘zend_string_init’ was not declared in this scope
zend_string* temp_zstr = zend_string_init(str, str_len, 0);
^~~~~~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:2488:29: note: suggested alternative: ‘zend_stack_init’
zend_string* temp_zstr = zend_string_init(str, str_len, 0);
^~~~~~~~~~~~~~~~
zend_stack_init
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:2489:4: error: ‘zend_string_release’ was not declared in this scope
zend_string_release(Z_STR_P(value_z));
^~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:2489:4: note: suggested alternative: ‘zend_stack_base’
zend_string_release(Z_STR_P(value_z));
^~~~~~~~~~~~~~~~~~~
zend_stack_base
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:2490:4: error: ‘ZVAL_NEW_STR’ was not declared in this scope
ZVAL_NEW_STR(value_z, temp_zstr);
^~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:2490:4: note: suggested alternative: ‘ZVAL_PTR_DTOR’
ZVAL_NEW_STR(value_z, temp_zstr);
^~~~~~~~~~~~
ZVAL_PTR_DTOR
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:2493:4: error: ‘ZVAL_STRINGL’ was not declared in this scope
ZVAL_STRINGL(value_z, str, str_len);
^~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:2493:4: note: suggested alternative: ‘TOK_STRING’
ZVAL_STRINGL(value_z, str, str_len);
^~~~~~~~~~~~
TOK_STRING
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h: At global scope:
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:2530:119: error: ‘zend_long’ has not been declared
inline void sqlsrv_add_assoc_long( _Inout_ sqlsrv_context& ctx, _Inout_ zval* array_z, _In_ const char* key, _In_ zend_long val TSRMLS_DC )
^~~~~~~~~
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h: In function ‘void core::sqlsrv_add_assoc_string(sqlsrv_context&, zval*, const char*, char*, bool)’:
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:2540:20: error: ‘::add_assoc_string’ has not been declared
int zr = ::add_assoc_string(array_z, key, val);
^~~~~~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:2540:20: note: suggested alternative: ‘add_assoc_string_ex’
int zr = ::add_assoc_string(array_z, key, val);
^~~~~~~~~~~~~~~~
add_assoc_string_ex
In file included from /usr/include/php/20131226/main/php.h:399:0,
from /tmp/pear/temp/sqlsrv/php_sqlsrv.h:25,
from /tmp/pear/temp/sqlsrv/conn.cpp:21:
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h: In function ‘void core::sqlsrv_php_stream_from_zval_no_verify(sqlsrv_context&, php_stream*&, zval*)’:
/usr/include/php/20131226/main/php_streams.h:259:182: error: cannot convert ‘zval* {aka _zval_struct*}’ to ‘zval** {aka _zval_struct**}’ for argument ‘1’ to ‘void* zend_fetch_resource(zval**, int, cons t char*, int*, int, ...)’
#define php_stream_from_zval_no_verify(xstr, ppzval) (xstr) = (php_stream*)zend_fetch_resource((ppzval) TSRMLS_CC, -1, "stream", NULL, 2, php_file_le_stream(), php_file_le_pstream())
^
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:2571:9: note: in expansion of macro ‘php_stream_from_zval_no_verify’
php_stream_from_zval_no_verify( stream, stream_z );
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:25:0,
from /tmp/pear/temp/sqlsrv/conn.cpp:24:
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h: In function ‘void core::sqlsrv_zend_hash_get_current_data(sqlsrv_context&, HashTable*, zval*&)’:
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:2579:29: error: ‘::zend_hash_get_current_data’ has not been declared
int zr = (output_data = ::zend_hash_get_current_data(ht)) != NULL ? SUCCESS : FAILURE;
^~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:2579:29: note: suggested alternative: ‘zend_hash_get_current_data_ex’
int zr = (output_data = ::zend_hash_get_current_data(ht)) != NULL ? SUCCESS : FAILURE;
^~~~~~~~~~~~~~~~~~~~~~~~~~
zend_hash_get_current_data_ex
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h: In function ‘void core::sqlsrv_zend_hash_get_current_data_ptr(sqlsrv_context&, HashTable*, void*&)’:
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:2587:35: error: ‘::zend_hash_get_current_data_ptr’ has not been declared
int zr = (output_data = ::zend_hash_get_current_data_ptr(ht)) != NULL ? SUCCESS : FAILURE;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:2587:35: note: suggested alternative: ‘zend_hash_get_current_data_ex’
int zr = (output_data = ::zend_hash_get_current_data_ptr(ht)) != NULL ? SUCCESS : FAILURE;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
zend_hash_get_current_data_ex
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h: In function ‘void core::sqlsrv_zend_hash_index_update(sqlsrv_context&, HashTable*, zend_ulong, zval*)’:
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:2603:30: error: ‘::zend_hash_index_update’ has not been declared
int zr = (data_z = ::zend_hash_index_update(ht, index, data_z)) != NULL ? SUCCESS : FAILURE;
^~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:2603:30: note: suggested alternative: ‘zend_hash_index_exists’
int zr = (data_z = ::zend_hash_index_update(ht, index, data_z)) != NULL ? SUCCESS : FAILURE;
^~~~~~~~~~~~~~~~~~~~~~
zend_hash_index_exists
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h: In function ‘void core::sqlsrv_zend_hash_index_update_ptr(sqlsrv_context&, HashTable*, zend_ulong, void*)’:
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:2611:29: error: ‘::zend_hash_index_update_ptr’ has not been declared
int zr = (pData = ::zend_hash_index_update_ptr(ht, index, pData)) != NULL ? SUCCESS : FAILURE;
^~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:2611:29: note: suggested alternative: ‘zend_hash_index_update’
int zr = (pData = ::zend_hash_index_update_ptr(ht, index, pData)) != NULL ? SUCCESS : FAILURE;
^~~~~~~~~~~~~~~~~~~~~~~~~~
zend_hash_index_update
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h: In function ‘void core::sqlsrv_zend_hash_index_update_mem(sqlsrv_context&, HashTable*, zend_ulong, void*, std::size_t)’:
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:2620:23: error: ‘::zend_hash_index_update_mem’ has not been declared
int zr = (pData = ::zend_hash_index_update_mem(ht, index, pData, size)) != NULL ? SUCCESS : FAILURE;
^~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:2620:23: note: suggested alternative: ‘zend_hash_index_update’
int zr = (pData = ::zend_hash_index_update_mem(ht, index, pData, size)) != NULL ? SUCCESS : FAILURE;
^~~~~~~~~~~~~~~~~~~~~~~~~~
zend_hash_index_update
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h: In function ‘void core::sqlsrv_zend_hash_next_index_insert(sqlsrv_context&, HashTable*, zval*)’:
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:2628:28: error: ‘::zend_hash_next_index_insert’ has not been declared
int zr = (data = ::zend_hash_next_index_insert(ht, data)) != NULL ? SUCCESS : FAILURE;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:2628:28: note: suggested alternative: ‘sqlsrv_zend_hash_next_index_insert’
int zr = (data = ::zend_hash_next_index_insert(ht, data)) != NULL ? SUCCESS : FAILURE;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
sqlsrv_zend_hash_next_index_insert
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h: In function ‘void core::sqlsrv_zend_hash_next_index_insert_mem(sqlsrv_context&, HashTable*, void*, size_t)’:
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:2636:22: error: ‘::zend_hash_next_index_insert_mem’ has not been declared
int zr = (data = ::zend_hash_next_index_insert_mem(ht, data, data_size)) != NULL ? SUCCESS : FAILURE;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:2636:22: note: suggested alternative: ‘zend_hash_next_index_insert’
int zr = (data = ::zend_hash_next_index_insert_mem(ht, data, data_size)) != NULL ? SUCCESS : FAILURE;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
zend_hash_next_index_insert
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h: In function ‘void core::sqlsrv_zend_hash_next_index_insert_ptr(sqlsrv_context&, HashTable*, void*)’:
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:2644:28: error: ‘::zend_hash_next_index_insert_ptr’ has not been declared
int zr = (data = ::zend_hash_next_index_insert_ptr(ht, data)) != NULL ? SUCCESS : FAILURE;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:2644:28: note: suggested alternative: ‘zend_hash_next_index_insert’
int zr = (data = ::zend_hash_next_index_insert_ptr(ht, data)) != NULL ? SUCCESS : FAILURE;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
zend_hash_next_index_insert
In file included from /usr/include/php/20131226/main/php_ini.h:24:0,
from /usr/include/php/20131226/main/fopen_wrappers.h:26,
from /usr/include/php/20131226/main/php.h:401,
from /tmp/pear/temp/sqlsrv/php_sqlsrv.h:25,
from /tmp/pear/temp/sqlsrv/conn.cpp:21:
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h: At global scope:
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:47:85: error: ‘zend_sqlsrv_globals {aka struct _zend_sqlsrv_globals}’ has no member named ‘log_severity’
STD_PHP_INI_ENTRY( INI_PREFIX INI_LOG_SEVERITY, "0", PHP_INI_ALL, OnUpdateLong, log_severity, zend_sqlsrv_globals,
^
/usr/include/php/20131226/Zend/zend_ini.h:118:50: note: in definition of macro ‘ZEND_INI_ENTRY3_EX’
{ 0, modifiable, name, sizeof(name), on_modify, arg1, arg2, arg3, default_value, sizeof(default_value)-1, NULL, 0, 0, 0, displayer },
^~~~
/usr/include/php/20131226/Zend/zend_ini.h:127:2: note: in expansion of macro ‘ZEND_INI_ENTRY2_EX’
ZEND_INI_ENTRY2_EX(name, default_value, modifiable, on_modify, arg1, arg2, NULL)
^~~~~~~~~~~~~~~~~~
/usr/include/php/20131226/Zend/zend_ini.h:150:2: note: in expansion of macro ‘ZEND_INI_ENTRY2’
ZEND_INI_ENTRY2(name, default_value, modifiable, on_modify, (void *) XtOffsetOf(struct_type, property_name), (void *) &struct_ptr)
^~~~~~~~~~~~~~~
/usr/include/php/20131226/Zend/zend_ini.h:150:71: note: in expansion of macro ‘XtOffsetOf’
ZEND_INI_ENTRY2(name, default_value, modifiable, on_modify, (void *) XtOffsetOf(struct_type, property_name), (void *) &struct_ptr)
^~~~~~~~~~
/usr/include/php/20131226/main/php_ini.h:67:28: note: in expansion of macro ‘STD_ZEND_INI_ENTRY’
#define STD_PHP_INI_ENTRY STD_ZEND_INI_ENTRY
^~~~~~~~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:47:5: note: in expansion of macro ‘STD_PHP_INI_ENTRY’
STD_PHP_INI_ENTRY( INI_PREFIX INI_LOG_SEVERITY, "0", PHP_INI_ALL, OnUpdateLong, log_severity, zend_sqlsrv_globals,
^~~~~~~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:49:87: error: ‘zend_sqlsrv_globals {aka struct _zend_sqlsrv_globals}’ has no member named ‘log_subsystems’
STD_PHP_INI_ENTRY( INI_PREFIX INI_LOG_SUBSYSTEMS, "0", PHP_INI_ALL, OnUpdateLong, log_subsystems, zend_sqlsrv_globals,
^
/usr/include/php/20131226/Zend/zend_ini.h:118:50: note: in definition of macro ‘ZEND_INI_ENTRY3_EX’
{ 0, modifiable, name, sizeof(name), on_modify, arg1, arg2, arg3, default_value, sizeof(default_value)-1, NULL, 0, 0, 0, displayer },
^~~~
/usr/include/php/20131226/Zend/zend_ini.h:127:2: note: in expansion of macro ‘ZEND_INI_ENTRY2_EX’
ZEND_INI_ENTRY2_EX(name, default_value, modifiable, on_modify, arg1, arg2, NULL)
^~~~~~~~~~~~~~~~~~
/usr/include/php/20131226/Zend/zend_ini.h:150:2: note: in expansion of macro ‘ZEND_INI_ENTRY2’
ZEND_INI_ENTRY2(name, default_value, modifiable, on_modify, (void *) XtOffsetOf(struct_type, property_name), (void *) &struct_ptr)
^~~~~~~~~~~~~~~
/usr/include/php/20131226/Zend/zend_ini.h:150:71: note: in expansion of macro ‘XtOffsetOf’
ZEND_INI_ENTRY2(name, default_value, modifiable, on_modify, (void *) XtOffsetOf(struct_type, property_name), (void *) &struct_ptr)
^~~~~~~~~~
/usr/include/php/20131226/main/php_ini.h:67:28: note: in expansion of macro ‘STD_ZEND_INI_ENTRY’
#define STD_PHP_INI_ENTRY STD_ZEND_INI_ENTRY
^~~~~~~~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:49:5: note: in expansion of macro ‘STD_PHP_INI_ENTRY’
STD_PHP_INI_ENTRY( INI_PREFIX INI_LOG_SUBSYSTEMS, "0", PHP_INI_ALL, OnUpdateLong, log_subsystems, zend_sqlsrv_globals,
^~~~~~~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:51:122: error: ‘zend_sqlsrv_globals {aka struct _zend_sqlsrv_globals}’ has no member named ‘buffered_query_limit’
STD_PHP_INI_ENTRY( INI_PREFIX INI_BUFFERED_QUERY_LIMIT, INI_BUFFERED_QUERY_LIMIT_DEFAULT, PHP_INI_ALL, OnUpdateLong, buffered_query_limit,
^
/usr/include/php/20131226/Zend/zend_ini.h:118:50: note: in definition of macro ‘ZEND_INI_ENTRY3_EX’
{ 0, modifiable, name, sizeof(name), on_modify, arg1, arg2, arg3, default_value, sizeof(default_value)-1, NULL, 0, 0, 0, displayer },
^~~~
/usr/include/php/20131226/Zend/zend_ini.h:127:2: note: in expansion of macro ‘ZEND_INI_ENTRY2_EX’
ZEND_INI_ENTRY2_EX(name, default_value, modifiable, on_modify, arg1, arg2, NULL)
^~~~~~~~~~~~~~~~~~
/usr/include/php/20131226/Zend/zend_ini.h:150:2: note: in expansion of macro ‘ZEND_INI_ENTRY2’
ZEND_INI_ENTRY2(name, default_value, modifiable, on_modify, (void *) XtOffsetOf(struct_type, property_name), (void *) &struct_ptr)
^~~~~~~~~~~~~~~
/usr/include/php/20131226/Zend/zend_ini.h:150:71: note: in expansion of macro ‘XtOffsetOf’
ZEND_INI_ENTRY2(name, default_value, modifiable, on_modify, (void *) XtOffsetOf(struct_type, property_name), (void *) &struct_ptr)
^~~~~~~~~~
/usr/include/php/20131226/main/php_ini.h:67:28: note: in expansion of macro ‘STD_ZEND_INI_ENTRY’
#define STD_PHP_INI_ENTRY STD_ZEND_INI_ENTRY
^~~~~~~~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:51:5: note: in expansion of macro ‘STD_PHP_INI_ENTRY’
STD_PHP_INI_ENTRY( INI_PREFIX INI_BUFFERED_QUERY_LIMIT, INI_BUFFERED_QUERY_LIMIT_DEFAULT, PHP_INI_ALL, OnUpdateLong, buffered_query_limit,
^~~~~~~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:54:87: error: ‘zend_sqlsrv_globals {aka struct _zend_sqlsrv_globals}’ has no member named ‘set_locale_info’
STD_PHP_INI_ENTRY(INI_PREFIX INI_SET_LOCALE_INFO, "2", PHP_INI_ALL, OnUpdateLong, set_locale_info,
^
/usr/include/php/20131226/Zend/zend_ini.h:118:50: note: in definition of macro ‘ZEND_INI_ENTRY3_EX’
{ 0, modifiable, name, sizeof(name), on_modify, arg1, arg2, arg3, default_value, sizeof(default_value)-1, NULL, 0, 0, 0, displayer },
^~~~
/usr/include/php/20131226/Zend/zend_ini.h:127:2: note: in expansion of macro ‘ZEND_INI_ENTRY2_EX’
ZEND_INI_ENTRY2_EX(name, default_value, modifiable, on_modify, arg1, arg2, NULL)
^~~~~~~~~~~~~~~~~~
/usr/include/php/20131226/Zend/zend_ini.h:150:2: note: in expansion of macro ‘ZEND_INI_ENTRY2’
ZEND_INI_ENTRY2(name, default_value, modifiable, on_modify, (void *) XtOffsetOf(struct_type, property_name), (void *) &struct_ptr)
^~~~~~~~~~~~~~~
/usr/include/php/20131226/Zend/zend_ini.h:150:71: note: in expansion of macro ‘XtOffsetOf’
ZEND_INI_ENTRY2(name, default_value, modifiable, on_modify, (void *) XtOffsetOf(struct_type, property_name), (void *) &struct_ptr)
^~~~~~~~~~
/usr/include/php/20131226/main/php_ini.h:67:28: note: in expansion of macro ‘STD_ZEND_INI_ENTRY’
#define STD_PHP_INI_ENTRY STD_ZEND_INI_ENTRY
^~~~~~~~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:54:5: note: in expansion of macro ‘STD_PHP_INI_ENTRY’
STD_PHP_INI_ENTRY(INI_PREFIX INI_SET_LOCALE_INFO, "2", PHP_INI_ALL, OnUpdateLong, set_locale_info,
^~~~~~~~~~~~~~~~~
In file included from /tmp/pear/temp/sqlsrv/conn.cpp:24:0:
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:106:40: error: variable or field ‘sqlsrv_conn_dtor’ declared void
void __cdecl sqlsrv_conn_dtor( _Inout_ zend_resource *rsrc TSRMLS_DC );
^~~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:106:40: error: ‘zend_resource’ was not declared in this scope
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:106:40: note: suggested alternative: ‘zif_is_resource’
void __cdecl sqlsrv_conn_dtor( _Inout_ zend_resource *rsrc TSRMLS_DC );
^~~~~~~~~~~~~
zif_is_resource
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:106:55: error: ‘rsrc’ was not declared in this scope
void __cdecl sqlsrv_conn_dtor( _Inout_ zend_resource *rsrc TSRMLS_DC );
^~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:169:40: error: variable or field ‘sqlsrv_stmt_dtor’ declared void
void __cdecl sqlsrv_stmt_dtor( _Inout_ zend_resource *rsrc TSRMLS_DC );
^~~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:169:40: error: ‘zend_resource’ was not declared in this scope
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:169:40: note: suggested alternative: ‘zif_is_resource’
void __cdecl sqlsrv_stmt_dtor( _Inout_ zend_resource *rsrc TSRMLS_DC );
^~~~~~~~~~~~~
zif_is_resource
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:169:55: error: ‘rsrc’ was not declared in this scope
void __cdecl sqlsrv_stmt_dtor( _Inout_ zend_resource *rsrc TSRMLS_DC );
^~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:241:33: error: variable or field ‘sqlsrv_error_dtor’ declared void
void __cdecl sqlsrv_error_dtor( zend_resource *rsrc TSRMLS_DC );
^~~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:241:33: error: ‘zend_resource’ was not declared in this scope
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:241:33: note: suggested alternative: ‘zif_is_resource’
void __cdecl sqlsrv_error_dtor( zend_resource *rsrc TSRMLS_DC );
^~~~~~~~~~~~~
zif_is_resource
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:241:48: error: ‘rsrc’ was not declared in this scope
void __cdecl sqlsrv_error_dtor( zend_resource *rsrc TSRMLS_DC );
^~~~
In file included from /usr/include/php/20131226/Zend/zend.h:849:0,
from /usr/include/php/20131226/main/php.h:36,
from /tmp/pear/temp/sqlsrv/php_sqlsrv.h:25,
from /tmp/pear/temp/sqlsrv/conn.cpp:21:
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h: In function ‘void reset_errors()’:
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:50: error: ‘sqlsrv’ was not declared in this scope
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/usr/include/php/20131226/Zend/zend_operators.h:489:24: note: in definition of macro ‘Z_TYPE’
#define Z_TYPE(zval) (zval).type
^~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:246:17: note: in expansion of macro ‘SQLSRV_G’
if( Z_TYPE( SQLSRV_G( errors )) != IS_ARRAY && Z_TYPE( SQLSRV_G( errors )) != IS_NULL ) {
^~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:50: note: suggested alternative: ‘sqrt’
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/usr/include/php/20131226/Zend/zend_operators.h:489:24: note: in definition of macro ‘Z_TYPE’
#define Z_TYPE(zval) (zval).type
^~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:246:17: note: in expansion of macro ‘SQLSRV_G’
if( Z_TYPE( SQLSRV_G( errors )) != IS_ARRAY && Z_TYPE( SQLSRV_G( errors )) != IS_NULL ) {
^~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:246:27: error: ‘errors’ was not declared in this scope
if( Z_TYPE( SQLSRV_G( errors )) != IS_ARRAY && Z_TYPE( SQLSRV_G( errors )) != IS_NULL ) {
^
/usr/include/php/20131226/Zend/zend_operators.h:489:24: note: in definition of macro ‘Z_TYPE’
#define Z_TYPE(zval) (zval).type
^~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:246:17: note: in expansion of macro ‘SQLSRV_G’
if( Z_TYPE( SQLSRV_G( errors )) != IS_ARRAY && Z_TYPE( SQLSRV_G( errors )) != IS_NULL ) {
^~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:246:27: note: suggested alternative: ‘error_t’
if( Z_TYPE( SQLSRV_G( errors )) != IS_ARRAY && Z_TYPE( SQLSRV_G( errors )) != IS_NULL ) {
^
/usr/include/php/20131226/Zend/zend_operators.h:489:24: note: in definition of macro ‘Z_TYPE’
#define Z_TYPE(zval) (zval).type
^~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:246:17: note: in expansion of macro ‘SQLSRV_G’
if( Z_TYPE( SQLSRV_G( errors )) != IS_ARRAY && Z_TYPE( SQLSRV_G( errors )) != IS_NULL ) {
^~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:21: error: ‘ZEND_MODULE_GLOBALS_ACCESSOR’ was not declared in this scope
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/usr/include/php/20131226/Zend/zend_operators.h:489:24: note: in definition of macro ‘Z_TYPE’
#define Z_TYPE(zval) (zval).type
^~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:246:17: note: in expansion of macro ‘SQLSRV_G’
if( Z_TYPE( SQLSRV_G( errors )) != IS_ARRAY && Z_TYPE( SQLSRV_G( errors )) != IS_NULL ) {
^~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:21: note: suggested alternative: ‘ZEND_MODULE_GLOBALS_CTOR_D’
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/usr/include/php/20131226/Zend/zend_operators.h:489:24: note: in definition of macro ‘Z_TYPE’
#define Z_TYPE(zval) (zval).type
^~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:246:17: note: in expansion of macro ‘SQLSRV_G’
if( Z_TYPE( SQLSRV_G( errors )) != IS_ARRAY && Z_TYPE( SQLSRV_G( errors )) != IS_NULL ) {
^~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:50: error: ‘sqlsrv’ was not declared in this scope
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/usr/include/php/20131226/Zend/zend_operators.h:489:24: note: in definition of macro ‘Z_TYPE’
#define Z_TYPE(zval) (zval).type
^~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:249:17: note: in expansion of macro ‘SQLSRV_G’
if( Z_TYPE( SQLSRV_G( warnings )) != IS_ARRAY && Z_TYPE( SQLSRV_G( warnings )) != IS_NULL ) {
^~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:50: note: suggested alternative: ‘sqrt’
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/usr/include/php/20131226/Zend/zend_operators.h:489:24: note: in definition of macro ‘Z_TYPE’
#define Z_TYPE(zval) (zval).type
^~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:249:17: note: in expansion of macro ‘SQLSRV_G’
if( Z_TYPE( SQLSRV_G( warnings )) != IS_ARRAY && Z_TYPE( SQLSRV_G( warnings )) != IS_NULL ) {
^~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:249:27: error: ‘warnings’ was not declared in this scope
if( Z_TYPE( SQLSRV_G( warnings )) != IS_ARRAY && Z_TYPE( SQLSRV_G( warnings )) != IS_NULL ) {
^
/usr/include/php/20131226/Zend/zend_operators.h:489:24: note: in definition of macro ‘Z_TYPE’
#define Z_TYPE(zval) (zval).type
^~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:249:17: note: in expansion of macro ‘SQLSRV_G’
if( Z_TYPE( SQLSRV_G( warnings )) != IS_ARRAY && Z_TYPE( SQLSRV_G( warnings )) != IS_NULL ) {
^~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:249:27: note: suggested alternative: ‘wprintf’
if( Z_TYPE( SQLSRV_G( warnings )) != IS_ARRAY && Z_TYPE( SQLSRV_G( warnings )) != IS_NULL ) {
^
/usr/include/php/20131226/Zend/zend_operators.h:489:24: note: in definition of macro ‘Z_TYPE’
#define Z_TYPE(zval) (zval).type
^~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:249:17: note: in expansion of macro ‘SQLSRV_G’
if( Z_TYPE( SQLSRV_G( warnings )) != IS_ARRAY && Z_TYPE( SQLSRV_G( warnings )) != IS_NULL ) {
^~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:21: error: ‘ZEND_MODULE_GLOBALS_ACCESSOR’ was not declared in this scope
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/usr/include/php/20131226/Zend/zend_operators.h:489:24: note: in definition of macro ‘Z_TYPE’
#define Z_TYPE(zval) (zval).type
^~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:249:17: note: in expansion of macro ‘SQLSRV_G’
if( Z_TYPE( SQLSRV_G( warnings )) != IS_ARRAY && Z_TYPE( SQLSRV_G( warnings )) != IS_NULL ) {
^~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:21: note: suggested alternative: ‘ZEND_MODULE_GLOBALS_CTOR_D’
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/usr/include/php/20131226/Zend/zend_operators.h:489:24: note: in definition of macro ‘Z_TYPE’
#define Z_TYPE(zval) (zval).type
^~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:249:17: note: in expansion of macro ‘SQLSRV_G’
if( Z_TYPE( SQLSRV_G( warnings )) != IS_ARRAY && Z_TYPE( SQLSRV_G( warnings )) != IS_NULL ) {
^~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:50: error: ‘sqlsrv’ was not declared in this scope
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/usr/include/php/20131226/Zend/zend_operators.h:489:24: note: in definition of macro ‘Z_TYPE’
#define Z_TYPE(zval) (zval).type
^~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:253:17: note: in expansion of macro ‘SQLSRV_G’
if( Z_TYPE( SQLSRV_G( errors )) == IS_ARRAY ) {
^~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:50: note: suggested alternative: ‘sqrt’
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/usr/include/php/20131226/Zend/zend_operators.h:489:24: note: in definition of macro ‘Z_TYPE’
#define Z_TYPE(zval) (zval).type
^~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:253:17: note: in expansion of macro ‘SQLSRV_G’
if( Z_TYPE( SQLSRV_G( errors )) == IS_ARRAY ) {
^~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:253:27: error: ‘errors’ was not declared in this scope
if( Z_TYPE( SQLSRV_G( errors )) == IS_ARRAY ) {
^
/usr/include/php/20131226/Zend/zend_operators.h:489:24: note: in definition of macro ‘Z_TYPE’
#define Z_TYPE(zval) (zval).type
^~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:253:17: note: in expansion of macro ‘SQLSRV_G’
if( Z_TYPE( SQLSRV_G( errors )) == IS_ARRAY ) {
^~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:253:27: note: suggested alternative: ‘error_t’
if( Z_TYPE( SQLSRV_G( errors )) == IS_ARRAY ) {
^
/usr/include/php/20131226/Zend/zend_operators.h:489:24: note: in definition of macro ‘Z_TYPE’
#define Z_TYPE(zval) (zval).type
^~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:253:17: note: in expansion of macro ‘SQLSRV_G’
if( Z_TYPE( SQLSRV_G( errors )) == IS_ARRAY ) {
^~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:21: error: ‘ZEND_MODULE_GLOBALS_ACCESSOR’ was not declared in this scope
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/usr/include/php/20131226/Zend/zend_operators.h:489:24: note: in definition of macro ‘Z_TYPE’
#define Z_TYPE(zval) (zval).type
^~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:253:17: note: in expansion of macro ‘SQLSRV_G’
if( Z_TYPE( SQLSRV_G( errors )) == IS_ARRAY ) {
^~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:21: note: suggested alternative: ‘ZEND_MODULE_GLOBALS_CTOR_D’
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/usr/include/php/20131226/Zend/zend_operators.h:489:24: note: in definition of macro ‘Z_TYPE’
#define Z_TYPE(zval) (zval).type
^~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:253:17: note: in expansion of macro ‘SQLSRV_G’
if( Z_TYPE( SQLSRV_G( errors )) == IS_ARRAY ) {
^~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:50: error: ‘sqlsrv’ was not declared in this scope
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/usr/include/php/20131226/Zend/zend_operators.h:489:24: note: in definition of macro ‘Z_TYPE’
#define Z_TYPE(zval) (zval).type
^~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:257:17: note: in expansion of macro ‘SQLSRV_G’
if( Z_TYPE( SQLSRV_G( warnings )) == IS_ARRAY ) {
^~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:50: note: suggested alternative: ‘sqrt’
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/usr/include/php/20131226/Zend/zend_operators.h:489:24: note: in definition of macro ‘Z_TYPE’
#define Z_TYPE(zval) (zval).type
^~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:257:17: note: in expansion of macro ‘SQLSRV_G’
if( Z_TYPE( SQLSRV_G( warnings )) == IS_ARRAY ) {
^~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:257:27: error: ‘warnings’ was not declared in this scope
if( Z_TYPE( SQLSRV_G( warnings )) == IS_ARRAY ) {
^
/usr/include/php/20131226/Zend/zend_operators.h:489:24: note: in definition of macro ‘Z_TYPE’
#define Z_TYPE(zval) (zval).type
^~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:257:17: note: in expansion of macro ‘SQLSRV_G’
if( Z_TYPE( SQLSRV_G( warnings )) == IS_ARRAY ) {
^~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:257:27: note: suggested alternative: ‘wprintf’
if( Z_TYPE( SQLSRV_G( warnings )) == IS_ARRAY ) {
^
/usr/include/php/20131226/Zend/zend_operators.h:489:24: note: in definition of macro ‘Z_TYPE’
#define Z_TYPE(zval) (zval).type
^~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:257:17: note: in expansion of macro ‘SQLSRV_G’
if( Z_TYPE( SQLSRV_G( warnings )) == IS_ARRAY ) {
^~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:21: error: ‘ZEND_MODULE_GLOBALS_ACCESSOR’ was not declared in this scope
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/usr/include/php/20131226/Zend/zend_operators.h:489:24: note: in definition of macro ‘Z_TYPE’
#define Z_TYPE(zval) (zval).type
^~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:257:17: note: in expansion of macro ‘SQLSRV_G’
if( Z_TYPE( SQLSRV_G( warnings )) == IS_ARRAY ) {
^~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:21: note: suggested alternative: ‘ZEND_MODULE_GLOBALS_CTOR_D’
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/usr/include/php/20131226/Zend/zend_operators.h:489:24: note: in definition of macro ‘Z_TYPE’
#define Z_TYPE(zval) (zval).type
^~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:257:17: note: in expansion of macro ‘SQLSRV_G’
if( Z_TYPE( SQLSRV_G( warnings )) == IS_ARRAY ) {
^~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:50: error: ‘sqlsrv’ was not declared in this scope
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/usr/include/php/20131226/Zend/zend_operators.h:489:24: note: in definition of macro ‘Z_TYPE’
#define Z_TYPE(zval) (zval).type
^~~~
/usr/include/php/20131226/Zend/zend_API.h:563:3: note: in expansion of macro ‘Z_TYPE_P’
Z_TYPE_P(z) = IS_NULL; \
^~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:262:5: note: in expansion of macro ‘ZVAL_NULL’
ZVAL_NULL( &SQLSRV_G( errors ));
^~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:262:17: note: in expansion of macro ‘SQLSRV_G’
ZVAL_NULL( &SQLSRV_G( errors ));
^~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:50: note: suggested alternative: ‘sqrt’
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/usr/include/php/20131226/Zend/zend_operators.h:489:24: note: in definition of macro ‘Z_TYPE’
#define Z_TYPE(zval) (zval).type
^~~~
/usr/include/php/20131226/Zend/zend_API.h:563:3: note: in expansion of macro ‘Z_TYPE_P’
Z_TYPE_P(z) = IS_NULL; \
^~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:262:5: note: in expansion of macro ‘ZVAL_NULL’
ZVAL_NULL( &SQLSRV_G( errors ));
^~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:262:17: note: in expansion of macro ‘SQLSRV_G’
ZVAL_NULL( &SQLSRV_G( errors ));
^~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:262:27: error: ‘errors’ was not declared in this scope
ZVAL_NULL( &SQLSRV_G( errors ));
^
/usr/include/php/20131226/Zend/zend_operators.h:489:24: note: in definition of macro ‘Z_TYPE’
#define Z_TYPE(zval) (zval).type
^~~~
/usr/include/php/20131226/Zend/zend_API.h:563:3: note: in expansion of macro ‘Z_TYPE_P’
Z_TYPE_P(z) = IS_NULL; \
^~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:262:5: note: in expansion of macro ‘ZVAL_NULL’
ZVAL_NULL( &SQLSRV_G( errors ));
^~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:262:17: note: in expansion of macro ‘SQLSRV_G’
ZVAL_NULL( &SQLSRV_G( errors ));
^~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:262:27: note: suggested alternative: ‘error_t’
ZVAL_NULL( &SQLSRV_G( errors ));
^
/usr/include/php/20131226/Zend/zend_operators.h:489:24: note: in definition of macro ‘Z_TYPE’
#define Z_TYPE(zval) (zval).type
^~~~
/usr/include/php/20131226/Zend/zend_API.h:563:3: note: in expansion of macro ‘Z_TYPE_P’
Z_TYPE_P(z) = IS_NULL; \
^~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:262:5: note: in expansion of macro ‘ZVAL_NULL’
ZVAL_NULL( &SQLSRV_G( errors ));
^~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:262:17: note: in expansion of macro ‘SQLSRV_G’
ZVAL_NULL( &SQLSRV_G( errors ));
^~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:21: error: ‘ZEND_MODULE_GLOBALS_ACCESSOR’ was not declared in this scope
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/usr/include/php/20131226/Zend/zend_operators.h:489:24: note: in definition of macro ‘Z_TYPE’
#define Z_TYPE(zval) (zval).type
^~~~
/usr/include/php/20131226/Zend/zend_API.h:563:3: note: in expansion of macro ‘Z_TYPE_P’
Z_TYPE_P(z) = IS_NULL; \
^~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:262:5: note: in expansion of macro ‘ZVAL_NULL’
ZVAL_NULL( &SQLSRV_G( errors ));
^~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:262:17: note: in expansion of macro ‘SQLSRV_G’
ZVAL_NULL( &SQLSRV_G( errors ));
^~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:21: note: suggested alternative: ‘ZEND_MODULE_GLOBALS_CTOR_D’
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/usr/include/php/20131226/Zend/zend_operators.h:489:24: note: in definition of macro ‘Z_TYPE’
#define Z_TYPE(zval) (zval).type
^~~~
/usr/include/php/20131226/Zend/zend_API.h:563:3: note: in expansion of macro ‘Z_TYPE_P’
Z_TYPE_P(z) = IS_NULL; \
^~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:262:5: note: in expansion of macro ‘ZVAL_NULL’
ZVAL_NULL( &SQLSRV_G( errors ));
^~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:262:17: note: in expansion of macro ‘SQLSRV_G’
ZVAL_NULL( &SQLSRV_G( errors ));
^~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:50: error: ‘sqlsrv’ was not declared in this scope
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/usr/include/php/20131226/Zend/zend_operators.h:489:24: note: in definition of macro ‘Z_TYPE’
#define Z_TYPE(zval) (zval).type
^~~~
/usr/include/php/20131226/Zend/zend_API.h:563:3: note: in expansion of macro ‘Z_TYPE_P’
Z_TYPE_P(z) = IS_NULL; \
^~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:263:5: note: in expansion of macro ‘ZVAL_NULL’
ZVAL_NULL( &SQLSRV_G( warnings ));
^~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:263:17: note: in expansion of macro ‘SQLSRV_G’
ZVAL_NULL( &SQLSRV_G( warnings ));
^~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:50: note: suggested alternative: ‘sqrt’
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/usr/include/php/20131226/Zend/zend_operators.h:489:24: note: in definition of macro ‘Z_TYPE’
#define Z_TYPE(zval) (zval).type
^~~~
/usr/include/php/20131226/Zend/zend_API.h:563:3: note: in expansion of macro ‘Z_TYPE_P’
Z_TYPE_P(z) = IS_NULL; \
^~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:263:5: note: in expansion of macro ‘ZVAL_NULL’
ZVAL_NULL( &SQLSRV_G( warnings ));
^~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:263:17: note: in expansion of macro ‘SQLSRV_G’
ZVAL_NULL( &SQLSRV_G( warnings ));
^~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:263:27: error: ‘warnings’ was not declared in this scope
ZVAL_NULL( &SQLSRV_G( warnings ));
^
/usr/include/php/20131226/Zend/zend_operators.h:489:24: note: in definition of macro ‘Z_TYPE’
#define Z_TYPE(zval) (zval).type
^~~~
/usr/include/php/20131226/Zend/zend_API.h:563:3: note: in expansion of macro ‘Z_TYPE_P’
Z_TYPE_P(z) = IS_NULL; \
^~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:263:5: note: in expansion of macro ‘ZVAL_NULL’
ZVAL_NULL( &SQLSRV_G( warnings ));
^~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:263:17: note: in expansion of macro ‘SQLSRV_G’
ZVAL_NULL( &SQLSRV_G( warnings ));
^~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:263:27: note: suggested alternative: ‘wprintf’
ZVAL_NULL( &SQLSRV_G( warnings ));
^
/usr/include/php/20131226/Zend/zend_operators.h:489:24: note: in definition of macro ‘Z_TYPE’
#define Z_TYPE(zval) (zval).type
^~~~
/usr/include/php/20131226/Zend/zend_API.h:563:3: note: in expansion of macro ‘Z_TYPE_P’
Z_TYPE_P(z) = IS_NULL; \
^~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:263:5: note: in expansion of macro ‘ZVAL_NULL’
ZVAL_NULL( &SQLSRV_G( warnings ));
^~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:263:17: note: in expansion of macro ‘SQLSRV_G’
ZVAL_NULL( &SQLSRV_G( warnings ));
^~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:21: error: ‘ZEND_MODULE_GLOBALS_ACCESSOR’ was not declared in this scope
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/usr/include/php/20131226/Zend/zend_operators.h:489:24: note: in definition of macro ‘Z_TYPE’
#define Z_TYPE(zval) (zval).type
^~~~
/usr/include/php/20131226/Zend/zend_API.h:563:3: note: in expansion of macro ‘Z_TYPE_P’
Z_TYPE_P(z) = IS_NULL; \
^~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:263:5: note: in expansion of macro ‘ZVAL_NULL’
ZVAL_NULL( &SQLSRV_G( warnings ));
^~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:263:17: note: in expansion of macro ‘SQLSRV_G’
ZVAL_NULL( &SQLSRV_G( warnings ));
^~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:21: note: suggested alternative: ‘ZEND_MODULE_GLOBALS_CTOR_D’
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/usr/include/php/20131226/Zend/zend_operators.h:489:24: note: in definition of macro ‘Z_TYPE’
#define Z_TYPE(zval) (zval).type
^~~~
/usr/include/php/20131226/Zend/zend_API.h:563:3: note: in expansion of macro ‘Z_TYPE_P’
Z_TYPE_P(z) = IS_NULL; \
^~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:263:5: note: in expansion of macro ‘ZVAL_NULL’
ZVAL_NULL( &SQLSRV_G( warnings ));
^~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:263:17: note: in expansion of macro ‘SQLSRV_G’
ZVAL_NULL( &SQLSRV_G( warnings ));
^~~~~~~~
In file included from /tmp/pear/temp/sqlsrv/conn.cpp:24:0:
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h: In function ‘void ss::zend_register_resource(zval&, void*, int, const char*)’:
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:354:28: error: ‘Z_RES’ was not declared in this scope
int zr = (NULL != (Z_RES(rsrc_result) = ::zend_register_resource(rsrc_pointer, rsrc_type)) ? SUCCESS : FAILURE);
^~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:354:28: note: suggested alternative: ‘DT_REG’
int zr = (NULL != (Z_RES(rsrc_result) = ::zend_register_resource(rsrc_pointer, rsrc_type)) ? SUCCESS : FAILURE);
^~~~~
DT_REG
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:354:97: error: invalid conversion from ‘void*’ to ‘zval* {aka _zval_struct*}’ [-fpermissive]
int zr = (NULL != (Z_RES(rsrc_result) = ::zend_register_resource(rsrc_pointer, rsrc_type)) ? SUCCESS : FAILURE);
^
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:354:97: error: invalid conversion from ‘int’ to ‘void*’ [-fpermissive]
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:354:97: error: too few arguments to function ‘int zend_register_resource(zval*, void*, int)’
In file included from /usr/include/php/20131226/Zend/zend_API.h:27:0,
from /usr/include/php/20131226/main/php.h:40,
from /tmp/pear/temp/sqlsrv/php_sqlsrv.h:25,
from /tmp/pear/temp/sqlsrv/conn.cpp:21:
/usr/include/php/20131226/Zend/zend_list.h:82:14: note: declared here
ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC);
^~~~~~~~~~~~~~~~~~~~~~
In file included from /tmp/pear/temp/sqlsrv/conn.cpp:24:0:
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:359:9: error: ‘Z_TYPE_INFO’ was not declared in this scope
Z_TYPE_INFO(rsrc_result) = IS_RESOURCE_EX;
^~~~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:359:9: note: suggested alternative: ‘_TYPEINFO’
Z_TYPE_INFO(rsrc_result) = IS_RESOURCE_EX;
^~~~~~~~~~~
_TYPEINFO
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:359:36: error: ‘IS_RESOURCE_EX’ was not declared in this scope
Z_TYPE_INFO(rsrc_result) = IS_RESOURCE_EX;
^~~~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:359:36: note: suggested alternative: ‘IS_RESOURCE’
Z_TYPE_INFO(rsrc_result) = IS_RESOURCE_EX;
^~~~~~~~~~~~~~
IS_RESOURCE
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h: In function ‘H* process_params(int, zval*, zval**, zval*, int, const char*, const char*, size_t, ...)’:
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:458:50: error: there are no arguments to ‘Z_RES_P’ that depend on a template parameter, so a declaration of ‘Z_RES_P’ must be available [-fpermissive]
h = static_cast<H*>( zend_fetch_resource(Z_RES_P(rsrc) TSRMLS_CC, H::resource_name, H::descriptor ));
^~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:458:50: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/tmp/pear/temp/sqlsrv/conn.cpp: In static member function ‘static void {anonymous}::decimal_places_func::func(const connection_option*, zval*, sqlsrv_conn*, std::__cxx11::string&)’:
/tmp/pear/temp/sqlsrv/conn.cpp:82:9: error: ‘zend_long’ was not declared in this scope
zend_long decimal_places = Z_LVAL_P(value);
^~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:82:9: note: suggested alternative: ‘zend_ulong’
zend_long decimal_places = Z_LVAL_P(value);
^~~~~~~~~
zend_ulong
/tmp/pear/temp/sqlsrv/conn.cpp:83:13: error: ‘decimal_places’ was not declared in this scope
if (decimal_places < 0 || decimal_places > SQL_SERVER_MAX_MONEY_SCALE) {
^~~~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:83:13: note: suggested alternative: ‘decimal_places_func’
if (decimal_places < 0 || decimal_places > SQL_SERVER_MAX_MONEY_SCALE) {
^~~~~~~~~~~~~~
decimal_places_func
/tmp/pear/temp/sqlsrv/conn.cpp:88:54: error: ‘decimal_places’ was not declared in this scope
ss_conn->decimal_places = static_cast<short>(decimal_places);
^~~~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:88:54: note: suggested alternative: ‘decimal_places_func’
ss_conn->decimal_places = static_cast<short>(decimal_places);
^~~~~~~~~~~~~~
decimal_places_func
/tmp/pear/temp/sqlsrv/conn.cpp: In static member function ‘static void {anonymous}::conn_char_set_func::func(const connection_option*, zval*, sqlsrv_conn*, std::__cxx11::string&)’:
/tmp/pear/temp/sqlsrv/conn.cpp:101:10: error: ‘zend_string’ was not declared in this scope
zend_string* key = NULL;
^~~~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:101:10: note: suggested alternative: ‘zend_strip’
zend_string* key = NULL;
^~~~~~~~~~~
zend_strip
/tmp/pear/temp/sqlsrv/conn.cpp:101:23: error: ‘key’ was not declared in this scope
zend_string* key = NULL;
^~~
/tmp/pear/temp/sqlsrv/conn.cpp:101:23: note: suggested alternative: ‘key_t’
zend_string* key = NULL;
^~~
key_t
/tmp/pear/temp/sqlsrv/conn.cpp:104:10: error: ‘ZEND_HASH_FOREACH_KEY_PTR’ was not declared in this scope
ZEND_HASH_FOREACH_KEY_PTR( g_ss_encodings_ht, index, key, ss_encoding_temp ) {
^~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:104:10: note: suggested alternative: ‘ZEND_HASH_APPLY_KEEP’
ZEND_HASH_FOREACH_KEY_PTR( g_ss_encodings_ht, index, key, ss_encoding_temp ) {
^~~~~~~~~~~~~~~~~~~~~~~~~
ZEND_HASH_APPLY_KEEP
/tmp/pear/temp/sqlsrv/conn.cpp:116:12: error: ‘ZEND_HASH_FOREACH_END’ was not declared in this scope
} ZEND_HASH_FOREACH_END();
^~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:116:12: note: suggested alternative: ‘ZEND_EXT_FCALL_END’
} ZEND_HASH_FOREACH_END();
^~~~~~~~~~~~~~~~~~~~~
ZEND_EXT_FCALL_END
/tmp/pear/temp/sqlsrv/conn.cpp: In static member function ‘static void {anonymous}::bool_conn_attr_func<Attr>::func(const connection_option*, zval*, sqlsrv_conn*, std::__cxx11::string&)’:
/tmp/pear/temp/sqlsrv/conn.cpp:178:80: error: ‘zend_long’ was not declared in this scope
core::SQLSetConnectAttr(conn, Attr, reinterpret_cast<SQLPOINTER>((zend_long)zend_is_true(value)), SQL_IS_UINTEGER TSRMLS_CC);
^~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:178:80: note: suggested alternative: ‘zend_ulong’
core::SQLSetConnectAttr(conn, Attr, reinterpret_cast<SQLPOINTER>((zend_long)zend_is_true(value)), SQL_IS_UINTEGER TSRMLS_CC);
^~~~~~~~~
zend_ulong
/tmp/pear/temp/sqlsrv/conn.cpp:178:90: error: expected ‘)’ before ‘zend_is_true’
core::SQLSetConnectAttr(conn, Attr, reinterpret_cast<SQLPOINTER>((zend_long)zend_is_true(value)), SQL_IS_UINTEGER TSRMLS_CC);
^~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp: At global scope:
/tmp/pear/temp/sqlsrv/conn.cpp:194:61: error: ‘zend_string’ has not been declared
void add_conn_option_key( _Inout_ sqlsrv_context& ctx, _In_ zend_string* key, _In_ size_t key_len,
^~~~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:196:61: error: ‘zend_string’ has not been declared
void add_stmt_option_key( _Inout_ sqlsrv_context& ctx, _In_ zend_string* key, _In_ size_t key_len, _Inout_ HashTable* options_ht, _Inout_ zval* data TSRMLS_DC );
^~~~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:197:60: error: ‘zend_string’ has not been declared
int get_conn_option_key( _Inout_ sqlsrv_context& ctx, _In_ zend_string* key, _In_ size_t key_len, _Inout_ zval const* value_z TSRMLS_DC );
^~~~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:198:31: error: ‘zend_string’ was not declared in this scope
int get_stmt_option_key( _In_ zend_string* key, _In_ size_t key_len TSRMLS_DC );
^~~~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:198:31: note: suggested alternative: ‘zend_strip’
int get_stmt_option_key( _In_ zend_string* key, _In_ size_t key_len TSRMLS_DC );
^~~~~~~~~~~
zend_strip
/tmp/pear/temp/sqlsrv/conn.cpp:198:44: error: ‘key’ was not declared in this scope
int get_stmt_option_key( _In_ zend_string* key, _In_ size_t key_len TSRMLS_DC );
^~~
/tmp/pear/temp/sqlsrv/conn.cpp:198:44: note: suggested alternative: ‘key_t’
int get_stmt_option_key( _In_ zend_string* key, _In_ size_t key_len TSRMLS_DC );
^~~
key_t
/tmp/pear/temp/sqlsrv/conn.cpp:198:61: error: expected primary-expression before ‘key_len’
int get_stmt_option_key( _In_ zend_string* key, _In_ size_t key_len TSRMLS_DC );
^~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:198:79: error: expression list treated as compound expression in initializer [-fpermissive]
int get_stmt_option_key( _In_ zend_string* key, _In_ size_t key_len TSRMLS_DC );
^
In file included from /tmp/pear/temp/sqlsrv/conn.cpp:21:0:
/tmp/pear/temp/sqlsrv/conn.cpp: In function ‘void zif_sqlsrv_connect(int, zval*, zval**, zval*, int)’:
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:50: error: ‘sqlsrv’ was not declared in this scope
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:315:4: note: in expansion of macro ‘SQLSRV_G’
SQLSRV_G( current_subsystem ) = current_log_subsystem; \
^~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:633:5: note: in expansion of macro ‘LOG_FUNCTION’
LOG_FUNCTION( "sqlsrv_connect" );
^~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:50: note: suggested alternative: ‘sqrt’
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:315:4: note: in expansion of macro ‘SQLSRV_G’
SQLSRV_G( current_subsystem ) = current_log_subsystem; \
^~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:633:5: note: in expansion of macro ‘LOG_FUNCTION’
LOG_FUNCTION( "sqlsrv_connect" );
^~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:315:14: error: ‘current_subsystem’ was not declared in this scope
SQLSRV_G( current_subsystem ) = current_log_subsystem; \
^
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:58: note: in definition of macro ‘SQLSRV_G’
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/tmp/pear/temp/sqlsrv/conn.cpp:633:5: note: in expansion of macro ‘LOG_FUNCTION’
LOG_FUNCTION( "sqlsrv_connect" );
^~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:315:14: note: suggested alternative: ‘logging_subsystems’
SQLSRV_G( current_subsystem ) = current_log_subsystem; \
^
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:58: note: in definition of macro ‘SQLSRV_G’
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/tmp/pear/temp/sqlsrv/conn.cpp:633:5: note: in expansion of macro ‘LOG_FUNCTION’
LOG_FUNCTION( "sqlsrv_connect" );
^~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:21: error: ‘ZEND_MODULE_GLOBALS_ACCESSOR’ was not declared in this scope
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:315:4: note: in expansion of macro ‘SQLSRV_G’
SQLSRV_G( current_subsystem ) = current_log_subsystem; \
^~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:633:5: note: in expansion of macro ‘LOG_FUNCTION’
LOG_FUNCTION( "sqlsrv_connect" );
^~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:21: note: suggested alternative: ‘ZEND_MODULE_GLOBALS_CTOR_D’
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:315:4: note: in expansion of macro ‘SQLSRV_G’
SQLSRV_G( current_subsystem ) = current_log_subsystem; \
^~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:633:5: note: in expansion of macro ‘LOG_FUNCTION’
LOG_FUNCTION( "sqlsrv_connect" );
^~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:645:5: error: ‘ZVAL_UNDEF’ was not declared in this scope
ZVAL_UNDEF(&conn_z);
^~~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:645:5: note: suggested alternative: ‘ZVAL_NULL’
ZVAL_UNDEF(&conn_z);
^~~~~~~~~~
ZVAL_NULL
/tmp/pear/temp/sqlsrv/conn.cpp:686:21: error: ‘Z_RES’ was not declared in this scope
RETURN_RES( Z_RES(conn_z) );
^~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:686:21: note: suggested alternative: ‘DT_REG’
RETURN_RES( Z_RES(conn_z) );
^~~~~
DT_REG
/tmp/pear/temp/sqlsrv/conn.cpp:686:9: error: ‘RETURN_RES’ was not declared in this scope
RETURN_RES( Z_RES(conn_z) );
^~~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:686:9: note: suggested alternative: ‘RETURN_TRUE’
RETURN_RES( Z_RES(conn_z) );
^~~~~~~~~~
RETURN_TRUE
In file included from /tmp/pear/temp/sqlsrv/conn.cpp:21:0:
/tmp/pear/temp/sqlsrv/conn.cpp: In function ‘void zif_sqlsrv_begin_transaction(int, zval*, zval**, zval*, int)’:
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:50: error: ‘sqlsrv’ was not declared in this scope
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:315:4: note: in expansion of macro ‘SQLSRV_G’
SQLSRV_G( current_subsystem ) = current_log_subsystem; \
^~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:730:5: note: in expansion of macro ‘LOG_FUNCTION’
LOG_FUNCTION( "sqlsrv_begin_transaction" );
^~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:50: note: suggested alternative: ‘sqrt’
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:315:4: note: in expansion of macro ‘SQLSRV_G’
SQLSRV_G( current_subsystem ) = current_log_subsystem; \
^~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:730:5: note: in expansion of macro ‘LOG_FUNCTION’
LOG_FUNCTION( "sqlsrv_begin_transaction" );
^~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:315:14: error: ‘current_subsystem’ was not declared in this scope
SQLSRV_G( current_subsystem ) = current_log_subsystem; \
^
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:58: note: in definition of macro ‘SQLSRV_G’
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/tmp/pear/temp/sqlsrv/conn.cpp:730:5: note: in expansion of macro ‘LOG_FUNCTION’
LOG_FUNCTION( "sqlsrv_begin_transaction" );
^~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:315:14: note: suggested alternative: ‘logging_subsystems’
SQLSRV_G( current_subsystem ) = current_log_subsystem; \
^
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:58: note: in definition of macro ‘SQLSRV_G’
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/tmp/pear/temp/sqlsrv/conn.cpp:730:5: note: in expansion of macro ‘LOG_FUNCTION’
LOG_FUNCTION( "sqlsrv_begin_transaction" );
^~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:21: error: ‘ZEND_MODULE_GLOBALS_ACCESSOR’ was not declared in this scope
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:315:4: note: in expansion of macro ‘SQLSRV_G’
SQLSRV_G( current_subsystem ) = current_log_subsystem; \
^~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:730:5: note: in expansion of macro ‘LOG_FUNCTION’
LOG_FUNCTION( "sqlsrv_begin_transaction" );
^~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:21: note: suggested alternative: ‘ZEND_MODULE_GLOBALS_CTOR_D’
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:315:4: note: in expansion of macro ‘SQLSRV_G’
SQLSRV_G( current_subsystem ) = current_log_subsystem; \
^~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:730:5: note: in expansion of macro ‘LOG_FUNCTION’
LOG_FUNCTION( "sqlsrv_begin_transaction" );
^~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp: In function ‘void zif_sqlsrv_close(int, zval*, zval**, zval*, int)’:
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:50: error: ‘sqlsrv’ was not declared in this scope
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:315:4: note: in expansion of macro ‘SQLSRV_G’
SQLSRV_G( current_subsystem ) = current_log_subsystem; \
^~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:776:5: note: in expansion of macro ‘LOG_FUNCTION’
LOG_FUNCTION( "sqlsrv_close" );
^~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:50: note: suggested alternative: ‘sqrt’
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:315:4: note: in expansion of macro ‘SQLSRV_G’
SQLSRV_G( current_subsystem ) = current_log_subsystem; \
^~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:776:5: note: in expansion of macro ‘LOG_FUNCTION’
LOG_FUNCTION( "sqlsrv_close" );
^~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:315:14: error: ‘current_subsystem’ was not declared in this scope
SQLSRV_G( current_subsystem ) = current_log_subsystem; \
^
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:58: note: in definition of macro ‘SQLSRV_G’
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/tmp/pear/temp/sqlsrv/conn.cpp:776:5: note: in expansion of macro ‘LOG_FUNCTION’
LOG_FUNCTION( "sqlsrv_close" );
^~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:315:14: note: suggested alternative: ‘logging_subsystems’
SQLSRV_G( current_subsystem ) = current_log_subsystem; \
^
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:58: note: in definition of macro ‘SQLSRV_G’
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/tmp/pear/temp/sqlsrv/conn.cpp:776:5: note: in expansion of macro ‘LOG_FUNCTION’
LOG_FUNCTION( "sqlsrv_close" );
^~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:21: error: ‘ZEND_MODULE_GLOBALS_ACCESSOR’ was not declared in this scope
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:315:4: note: in expansion of macro ‘SQLSRV_G’
SQLSRV_G( current_subsystem ) = current_log_subsystem; \
^~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:776:5: note: in expansion of macro ‘LOG_FUNCTION’
LOG_FUNCTION( "sqlsrv_close" );
^~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:21: note: suggested alternative: ‘ZEND_MODULE_GLOBALS_CTOR_D’
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:315:4: note: in expansion of macro ‘SQLSRV_G’
SQLSRV_G( current_subsystem ) = current_log_subsystem; \
^~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:776:5: note: in expansion of macro ‘LOG_FUNCTION’
LOG_FUNCTION( "sqlsrv_close" );
^~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:807:67: error: ‘Z_RES_P’ was not declared in this scope
conn = static_cast<ss_sqlsrv_conn*>( zend_fetch_resource( Z_RES_P( conn_r ) TSRMLS_CC, ss_sqlsrv_conn::resource_name, ss_sqlsrv_conn::descriptor ));
^~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:807:67: note: suggested alternative: ‘Z_RESVAL’
conn = static_cast<ss_sqlsrv_conn*>( zend_fetch_resource( Z_RES_P( conn_r ) TSRMLS_CC, ss_sqlsrv_conn::resource_name, ss_sqlsrv_conn::descriptor ));
^~~~~~~
Z_RESVAL
/tmp/pear/temp/sqlsrv/conn.cpp:810:14: error: ‘Z_RES_TYPE_P’ was not declared in this scope
if ( Z_RES_TYPE_P( conn_r ) == RSRC_INVALID_TYPE) {
^~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:810:14: note: suggested alternative: ‘Z_TYPE_P’
if ( Z_RES_TYPE_P( conn_r ) == RSRC_INVALID_TYPE) {
^~~~~~~~~~~~
Z_TYPE_P
/tmp/pear/temp/sqlsrv/conn.cpp:824:13: error: ‘zend_list_close’ was not declared in this scope
if( zend_list_close( Z_RES_P( conn_r ) ) == FAILURE ) {
^~~~~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:824:13: note: suggested alternative: ‘zend_llist_copy’
if( zend_list_close( Z_RES_P( conn_r ) ) == FAILURE ) {
^~~~~~~~~~~~~~~
zend_llist_copy
In file included from /tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:25:0,
from /tmp/pear/temp/sqlsrv/conn.cpp:24:
/tmp/pear/temp/sqlsrv/conn.cpp:825:75: error: ‘Z_RES_HANDLE_P’ was not declared in this scope
LOG( SEV_ERROR, "Failed to remove connection resource %1!d!", Z_RES_HANDLE_P( conn_r ));
^
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:303:79: note: in definition of macro ‘LOG’
#define LOG( severity, msg, ...) write_to_log( severity TSRMLS_CC, msg, ## __VA_ARGS__ )
^~~~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:825:75: note: suggested alternative: ‘Z_OBJ_HANDLE_P’
LOG( SEV_ERROR, "Failed to remove connection resource %1!d!", Z_RES_HANDLE_P( conn_r ));
^
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:303:79: note: in definition of macro ‘LOG’
#define LOG( severity, msg, ...) write_to_log( severity TSRMLS_CC, msg, ## __VA_ARGS__ )
^~~~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:831:9: error: ‘Z_TRY_DELREF_P’ was not declared in this scope
Z_TRY_DELREF_P(conn_r);
^~~~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:831:9: note: suggested alternative: ‘Z_DELREF_P’
Z_TRY_DELREF_P(conn_r);
^~~~~~~~~~~~~~
Z_DELREF_P
/tmp/pear/temp/sqlsrv/conn.cpp: At global scope:
/tmp/pear/temp/sqlsrv/conn.cpp:846:40: error: variable or field ‘sqlsrv_conn_dtor’ declared void
void __cdecl sqlsrv_conn_dtor( _Inout_ zend_resource *rsrc TSRMLS_DC )
^~~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:846:40: error: ‘zend_resource’ was not declared in this scope
/tmp/pear/temp/sqlsrv/conn.cpp:846:40: note: suggested alternative: ‘zif_is_resource’
void __cdecl sqlsrv_conn_dtor( _Inout_ zend_resource *rsrc TSRMLS_DC )
^~~~~~~~~~~~~
zif_is_resource
/tmp/pear/temp/sqlsrv/conn.cpp:846:55: error: ‘rsrc’ was not declared in this scope
void __cdecl sqlsrv_conn_dtor( _Inout_ zend_resource *rsrc TSRMLS_DC )
^~~~
In file included from /tmp/pear/temp/sqlsrv/conn.cpp:21:0:
/tmp/pear/temp/sqlsrv/conn.cpp: In function ‘void zif_sqlsrv_commit(int, zval*, zval**, zval*, int)’:
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:50: error: ‘sqlsrv’ was not declared in this scope
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:315:4: note: in expansion of macro ‘SQLSRV_G’
SQLSRV_G( current_subsystem ) = current_log_subsystem; \
^~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:889:5: note: in expansion of macro ‘LOG_FUNCTION’
LOG_FUNCTION( "sqlsrv_commit" );
^~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:50: note: suggested alternative: ‘sqrt’
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:315:4: note: in expansion of macro ‘SQLSRV_G’
SQLSRV_G( current_subsystem ) = current_log_subsystem; \
^~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:889:5: note: in expansion of macro ‘LOG_FUNCTION’
LOG_FUNCTION( "sqlsrv_commit" );
^~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:315:14: error: ‘current_subsystem’ was not declared in this scope
SQLSRV_G( current_subsystem ) = current_log_subsystem; \
^
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:58: note: in definition of macro ‘SQLSRV_G’
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/tmp/pear/temp/sqlsrv/conn.cpp:889:5: note: in expansion of macro ‘LOG_FUNCTION’
LOG_FUNCTION( "sqlsrv_commit" );
^~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:315:14: note: suggested alternative: ‘logging_subsystems’
SQLSRV_G( current_subsystem ) = current_log_subsystem; \
^
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:58: note: in definition of macro ‘SQLSRV_G’
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/tmp/pear/temp/sqlsrv/conn.cpp:889:5: note: in expansion of macro ‘LOG_FUNCTION’
LOG_FUNCTION( "sqlsrv_commit" );
^~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:21: error: ‘ZEND_MODULE_GLOBALS_ACCESSOR’ was not declared in this scope
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:315:4: note: in expansion of macro ‘SQLSRV_G’
SQLSRV_G( current_subsystem ) = current_log_subsystem; \
^~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:889:5: note: in expansion of macro ‘LOG_FUNCTION’
LOG_FUNCTION( "sqlsrv_commit" );
^~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:21: note: suggested alternative: ‘ZEND_MODULE_GLOBALS_CTOR_D’
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:315:4: note: in expansion of macro ‘SQLSRV_G’
SQLSRV_G( current_subsystem ) = current_log_subsystem; \
^~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:889:5: note: in expansion of macro ‘LOG_FUNCTION’
LOG_FUNCTION( "sqlsrv_commit" );
^~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp: In function ‘void zif_sqlsrv_rollback(int, zval*, zval**, zval*, int)’:
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:50: error: ‘sqlsrv’ was not declared in this scope
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:315:4: note: in expansion of macro ‘SQLSRV_G’
SQLSRV_G( current_subsystem ) = current_log_subsystem; \
^~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:942:5: note: in expansion of macro ‘LOG_FUNCTION’
LOG_FUNCTION( "sqlsrv_rollback" );
^~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:50: note: suggested alternative: ‘sqrt’
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:315:4: note: in expansion of macro ‘SQLSRV_G’
SQLSRV_G( current_subsystem ) = current_log_subsystem; \
^~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:942:5: note: in expansion of macro ‘LOG_FUNCTION’
LOG_FUNCTION( "sqlsrv_rollback" );
^~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:315:14: error: ‘current_subsystem’ was not declared in this scope
SQLSRV_G( current_subsystem ) = current_log_subsystem; \
^
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:58: note: in definition of macro ‘SQLSRV_G’
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/tmp/pear/temp/sqlsrv/conn.cpp:942:5: note: in expansion of macro ‘LOG_FUNCTION’
LOG_FUNCTION( "sqlsrv_rollback" );
^~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:315:14: note: suggested alternative: ‘logging_subsystems’
SQLSRV_G( current_subsystem ) = current_log_subsystem; \
^
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:58: note: in definition of macro ‘SQLSRV_G’
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/tmp/pear/temp/sqlsrv/conn.cpp:942:5: note: in expansion of macro ‘LOG_FUNCTION’
LOG_FUNCTION( "sqlsrv_rollback" );
^~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:21: error: ‘ZEND_MODULE_GLOBALS_ACCESSOR’ was not declared in this scope
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:315:4: note: in expansion of macro ‘SQLSRV_G’
SQLSRV_G( current_subsystem ) = current_log_subsystem; \
^~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:942:5: note: in expansion of macro ‘LOG_FUNCTION’
LOG_FUNCTION( "sqlsrv_rollback" );
^~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:21: note: suggested alternative: ‘ZEND_MODULE_GLOBALS_CTOR_D’
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:315:4: note: in expansion of macro ‘SQLSRV_G’
SQLSRV_G( current_subsystem ) = current_log_subsystem; \
^~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:942:5: note: in expansion of macro ‘LOG_FUNCTION’
LOG_FUNCTION( "sqlsrv_rollback" );
^~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp: In function ‘void zif_sqlsrv_client_info(int, zval*, zval**, zval*, int)’:
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:50: error: ‘sqlsrv’ was not declared in this scope
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:315:4: note: in expansion of macro ‘SQLSRV_G’
SQLSRV_G( current_subsystem ) = current_log_subsystem; \
^~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:978:5: note: in expansion of macro ‘LOG_FUNCTION’
LOG_FUNCTION( "sqlsrv_client_info" );
^~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:50: note: suggested alternative: ‘sqrt’
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:315:4: note: in expansion of macro ‘SQLSRV_G’
SQLSRV_G( current_subsystem ) = current_log_subsystem; \
^~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:978:5: note: in expansion of macro ‘LOG_FUNCTION’
LOG_FUNCTION( "sqlsrv_client_info" );
^~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:315:14: error: ‘current_subsystem’ was not declared in this scope
SQLSRV_G( current_subsystem ) = current_log_subsystem; \
^
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:58: note: in definition of macro ‘SQLSRV_G’
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/tmp/pear/temp/sqlsrv/conn.cpp:978:5: note: in expansion of macro ‘LOG_FUNCTION’
LOG_FUNCTION( "sqlsrv_client_info" );
^~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:315:14: note: suggested alternative: ‘logging_subsystems’
SQLSRV_G( current_subsystem ) = current_log_subsystem; \
^
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:58: note: in definition of macro ‘SQLSRV_G’
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/tmp/pear/temp/sqlsrv/conn.cpp:978:5: note: in expansion of macro ‘LOG_FUNCTION’
LOG_FUNCTION( "sqlsrv_client_info" );
^~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:21: error: ‘ZEND_MODULE_GLOBALS_ACCESSOR’ was not declared in this scope
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:315:4: note: in expansion of macro ‘SQLSRV_G’
SQLSRV_G( current_subsystem ) = current_log_subsystem; \
^~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:978:5: note: in expansion of macro ‘LOG_FUNCTION’
LOG_FUNCTION( "sqlsrv_client_info" );
^~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:21: note: suggested alternative: ‘ZEND_MODULE_GLOBALS_CTOR_D’
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:315:4: note: in expansion of macro ‘SQLSRV_G’
SQLSRV_G( current_subsystem ) = current_log_subsystem; \
^~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:978:5: note: in expansion of macro ‘LOG_FUNCTION’
LOG_FUNCTION( "sqlsrv_client_info" );
^~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp: In function ‘void zif_sqlsrv_server_info(int, zval*, zval**, zval*, int)’:
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:50: error: ‘sqlsrv’ was not declared in this scope
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:315:4: note: in expansion of macro ‘SQLSRV_G’
SQLSRV_G( current_subsystem ) = current_log_subsystem; \
^~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:1022:9: note: in expansion of macro ‘LOG_FUNCTION’
LOG_FUNCTION( "sqlsrv_server_info" );
^~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:50: note: suggested alternative: ‘sqrt’
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:315:4: note: in expansion of macro ‘SQLSRV_G’
SQLSRV_G( current_subsystem ) = current_log_subsystem; \
^~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:1022:9: note: in expansion of macro ‘LOG_FUNCTION’
LOG_FUNCTION( "sqlsrv_server_info" );
^~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:315:14: error: ‘current_subsystem’ was not declared in this scope
SQLSRV_G( current_subsystem ) = current_log_subsystem; \
^
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:58: note: in definition of macro ‘SQLSRV_G’
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/tmp/pear/temp/sqlsrv/conn.cpp:1022:9: note: in expansion of macro ‘LOG_FUNCTION’
LOG_FUNCTION( "sqlsrv_server_info" );
^~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:315:14: note: suggested alternative: ‘logging_subsystems’
SQLSRV_G( current_subsystem ) = current_log_subsystem; \
^
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:58: note: in definition of macro ‘SQLSRV_G’
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/tmp/pear/temp/sqlsrv/conn.cpp:1022:9: note: in expansion of macro ‘LOG_FUNCTION’
LOG_FUNCTION( "sqlsrv_server_info" );
^~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:21: error: ‘ZEND_MODULE_GLOBALS_ACCESSOR’ was not declared in this scope
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:315:4: note: in expansion of macro ‘SQLSRV_G’
SQLSRV_G( current_subsystem ) = current_log_subsystem; \
^~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:1022:9: note: in expansion of macro ‘LOG_FUNCTION’
LOG_FUNCTION( "sqlsrv_server_info" );
^~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:21: note: suggested alternative: ‘ZEND_MODULE_GLOBALS_CTOR_D’
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:315:4: note: in expansion of macro ‘SQLSRV_G’
SQLSRV_G( current_subsystem ) = current_log_subsystem; \
^~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:1022:9: note: in expansion of macro ‘LOG_FUNCTION’
LOG_FUNCTION( "sqlsrv_server_info" );
^~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp: In function ‘void zif_sqlsrv_prepare(int, zval*, zval**, zval*, int)’:
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:50: error: ‘sqlsrv’ was not declared in this scope
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:315:4: note: in expansion of macro ‘SQLSRV_G’
SQLSRV_G( current_subsystem ) = current_log_subsystem; \
^~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:1074:5: note: in expansion of macro ‘LOG_FUNCTION’
LOG_FUNCTION( "sqlsrv_prepare" );
^~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:50: note: suggested alternative: ‘sqrt’
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:315:4: note: in expansion of macro ‘SQLSRV_G’
SQLSRV_G( current_subsystem ) = current_log_subsystem; \
^~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:1074:5: note: in expansion of macro ‘LOG_FUNCTION’
LOG_FUNCTION( "sqlsrv_prepare" );
^~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:315:14: error: ‘current_subsystem’ was not declared in this scope
SQLSRV_G( current_subsystem ) = current_log_subsystem; \
^
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:58: note: in definition of macro ‘SQLSRV_G’
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/tmp/pear/temp/sqlsrv/conn.cpp:1074:5: note: in expansion of macro ‘LOG_FUNCTION’
LOG_FUNCTION( "sqlsrv_prepare" );
^~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:315:14: note: suggested alternative: ‘logging_subsystems’
SQLSRV_G( current_subsystem ) = current_log_subsystem; \
^
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:58: note: in definition of macro ‘SQLSRV_G’
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/tmp/pear/temp/sqlsrv/conn.cpp:1074:5: note: in expansion of macro ‘LOG_FUNCTION’
LOG_FUNCTION( "sqlsrv_prepare" );
^~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:21: error: ‘ZEND_MODULE_GLOBALS_ACCESSOR’ was not declared in this scope
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:315:4: note: in expansion of macro ‘SQLSRV_G’
SQLSRV_G( current_subsystem ) = current_log_subsystem; \
^~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:1074:5: note: in expansion of macro ‘LOG_FUNCTION’
LOG_FUNCTION( "sqlsrv_prepare" );
^~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:21: note: suggested alternative: ‘ZEND_MODULE_GLOBALS_CTOR_D’
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:315:4: note: in expansion of macro ‘SQLSRV_G’
SQLSRV_G( current_subsystem ) = current_log_subsystem; \
^~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:1074:5: note: in expansion of macro ‘LOG_FUNCTION’
LOG_FUNCTION( "sqlsrv_prepare" );
^~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:1079:5: error: ‘zend_long’ was not declared in this scope
zend_long sql_len = 0;
^~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:1079:5: note: suggested alternative: ‘zend_ulong’
zend_long sql_len = 0;
^~~~~~~~~
zend_ulong
/tmp/pear/temp/sqlsrv/conn.cpp:1084:5: error: ‘ZVAL_UNDEF’ was not declared in this scope
ZVAL_UNDEF(&stmt_z);
^~~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:1084:5: note: suggested alternative: ‘ZVAL_NULL’
ZVAL_UNDEF(&stmt_z);
^~~~~~~~~~
ZVAL_NULL
/tmp/pear/temp/sqlsrv/conn.cpp:1086:54: error: ‘sql_len’ was not declared in this scope
PROCESS_PARAMS( conn, "rs|a!a!", _FN_, 4, &sql, &sql_len, ¶ms_z, &options_z );
^
/tmp/pear/temp/sqlsrv/conn.cpp:209:119: note: in definition of macro ‘PROCESS_PARAMS’
rsrc = process_params<ss_sqlsrv_conn>( INTERNAL_FUNCTION_PARAM_PASSTHRU, param_spec, calling_func, param_count, ##__VA_ARGS__ );\
^~~~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:1086:54: note: suggested alternative: ‘strnlen’
PROCESS_PARAMS( conn, "rs|a!a!", _FN_, 4, &sql, &sql_len, ¶ms_z, &options_z );
^
/tmp/pear/temp/sqlsrv/conn.cpp:209:119: note: in definition of macro ‘PROCESS_PARAMS’
rsrc = process_params<ss_sqlsrv_conn>( INTERNAL_FUNCTION_PARAM_PASSTHRU, param_spec, calling_func, param_count, ##__VA_ARGS__ );\
^~~~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:1122:13: error: ‘ZVAL_COPY’ was not declared in this scope
ZVAL_COPY(stmt->params_z, params_z);
^~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:1122:13: note: suggested alternative: ‘ZVAL_LONG’
ZVAL_COPY(stmt->params_z, params_z);
^~~~~~~~~
ZVAL_LONG
/tmp/pear/temp/sqlsrv/conn.cpp:1132:19: error: expected ‘;’ before ‘next_index’
zend_long next_index = zend_hash_next_free_element( conn->stmts );
^~~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:1134:65: error: ‘next_index’ was not declared in this scope
core::sqlsrv_zend_hash_index_update(*conn, conn->stmts, next_index, &stmt_z TSRMLS_CC);
^~~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:1134:65: note: suggested alternative: ‘getline’
core::sqlsrv_zend_hash_index_update(*conn, conn->stmts, next_index, &stmt_z TSRMLS_CC);
^~~~~~~~~~
getline
/tmp/pear/temp/sqlsrv/conn.cpp:1141:20: error: ‘Z_RES’ was not declared in this scope
RETURN_RES(Z_RES(stmt_z));
^~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:1141:20: note: suggested alternative: ‘DT_REG’
RETURN_RES(Z_RES(stmt_z));
^~~~~
DT_REG
/tmp/pear/temp/sqlsrv/conn.cpp:1141:9: error: ‘RETURN_RES’ was not declared in this scope
RETURN_RES(Z_RES(stmt_z));
^~~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:1141:9: note: suggested alternative: ‘RETURN_TRUE’
RETURN_RES(Z_RES(stmt_z));
^~~~~~~~~~
RETURN_TRUE
/tmp/pear/temp/sqlsrv/conn.cpp:1151:14: error: ‘Z_ISUNDEF’ was not declared in this scope
if (!Z_ISUNDEF(stmt_z)) {
^~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:1151:14: note: suggested alternative: ‘Z_ISREF’
if (!Z_ISUNDEF(stmt_z)) {
^~~~~~~~~
Z_ISREF
In file included from /tmp/pear/temp/sqlsrv/conn.cpp:21:0:
/tmp/pear/temp/sqlsrv/conn.cpp: In function ‘void zif_sqlsrv_query(int, zval*, zval**, zval*, int)’:
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:50: error: ‘sqlsrv’ was not declared in this scope
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:315:4: note: in expansion of macro ‘SQLSRV_G’
SQLSRV_G( current_subsystem ) = current_log_subsystem; \
^~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:1196:5: note: in expansion of macro ‘LOG_FUNCTION’
LOG_FUNCTION( "sqlsrv_query" );
^~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:50: note: suggested alternative: ‘sqrt’
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:315:4: note: in expansion of macro ‘SQLSRV_G’
SQLSRV_G( current_subsystem ) = current_log_subsystem; \
^~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:1196:5: note: in expansion of macro ‘LOG_FUNCTION’
LOG_FUNCTION( "sqlsrv_query" );
^~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:315:14: error: ‘current_subsystem’ was not declared in this scope
SQLSRV_G( current_subsystem ) = current_log_subsystem; \
^
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:58: note: in definition of macro ‘SQLSRV_G’
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/tmp/pear/temp/sqlsrv/conn.cpp:1196:5: note: in expansion of macro ‘LOG_FUNCTION’
LOG_FUNCTION( "sqlsrv_query" );
^~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:315:14: note: suggested alternative: ‘logging_subsystems’
SQLSRV_G( current_subsystem ) = current_log_subsystem; \
^
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:58: note: in definition of macro ‘SQLSRV_G’
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/tmp/pear/temp/sqlsrv/conn.cpp:1196:5: note: in expansion of macro ‘LOG_FUNCTION’
LOG_FUNCTION( "sqlsrv_query" );
^~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:21: error: ‘ZEND_MODULE_GLOBALS_ACCESSOR’ was not declared in this scope
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:315:4: note: in expansion of macro ‘SQLSRV_G’
SQLSRV_G( current_subsystem ) = current_log_subsystem; \
^~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:1196:5: note: in expansion of macro ‘LOG_FUNCTION’
LOG_FUNCTION( "sqlsrv_query" );
^~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv.h:54:21: note: suggested alternative: ‘ZEND_MODULE_GLOBALS_CTOR_D’
#define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
^
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:315:4: note: in expansion of macro ‘SQLSRV_G’
SQLSRV_G( current_subsystem ) = current_log_subsystem; \
^~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:1196:5: note: in expansion of macro ‘LOG_FUNCTION’
LOG_FUNCTION( "sqlsrv_query" );
^~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:1206:5: error: ‘ZVAL_UNDEF’ was not declared in this scope
ZVAL_UNDEF(&stmt_z);
^~~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:1206:5: note: suggested alternative: ‘ZVAL_NULL’
ZVAL_UNDEF(&stmt_z);
^~~~~~~~~~
ZVAL_NULL
/tmp/pear/temp/sqlsrv/conn.cpp:1242:13: error: ‘ZVAL_COPY’ was not declared in this scope
ZVAL_COPY(stmt->params_z, params_z);
^~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:1242:13: note: suggested alternative: ‘ZVAL_LONG’
ZVAL_COPY(stmt->params_z, params_z);
^~~~~~~~~
ZVAL_LONG
/tmp/pear/temp/sqlsrv/conn.cpp:1262:20: error: ‘Z_RES’ was not declared in this scope
RETURN_RES(Z_RES(stmt_z));
^~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:1262:20: note: suggested alternative: ‘DT_REG’
RETURN_RES(Z_RES(stmt_z));
^~~~~
DT_REG
/tmp/pear/temp/sqlsrv/conn.cpp:1262:9: error: ‘RETURN_RES’ was not declared in this scope
RETURN_RES(Z_RES(stmt_z));
^~~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:1262:9: note: suggested alternative: ‘RETURN_TRUE’
RETURN_RES(Z_RES(stmt_z));
^~~~~~~~~~
RETURN_TRUE
/tmp/pear/temp/sqlsrv/conn.cpp:1272:14: error: ‘Z_ISUNDEF’ was not declared in this scope
if (!Z_ISUNDEF(stmt_z)) {
^~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:1272:14: note: suggested alternative: ‘Z_ISREF’
if (!Z_ISUNDEF(stmt_z)) {
^~~~~~~~~
Z_ISREF
/tmp/pear/temp/sqlsrv/conn.cpp: In function ‘void free_stmt_resource(zval*)’:
/tmp/pear/temp/sqlsrv/conn.cpp:1286:37: error: ‘Z_RES_P’ was not declared in this scope
if( FAILURE == zend_list_close( Z_RES_P( stmt_z ))) {
^~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:1286:37: note: suggested alternative: ‘Z_RESVAL’
if( FAILURE == zend_list_close( Z_RES_P( stmt_z ))) {
^~~~~~~
Z_RESVAL
/tmp/pear/temp/sqlsrv/conn.cpp:1286:20: error: ‘zend_list_close’ was not declared in this scope
if( FAILURE == zend_list_close( Z_RES_P( stmt_z ))) {
^~~~~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:1286:20: note: suggested alternative: ‘zend_llist_copy’
if( FAILURE == zend_list_close( Z_RES_P( stmt_z ))) {
^~~~~~~~~~~~~~~
zend_llist_copy
In file included from /tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:25:0,
from /tmp/pear/temp/sqlsrv/conn.cpp:24:
/tmp/pear/temp/sqlsrv/conn.cpp:1287:64: error: ‘Z_RES_HANDLE_P’ was not declared in this scope
LOG(SEV_ERROR, "Failed to remove stmt resource %1!d!", Z_RES_HANDLE_P(stmt_z));
^
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:303:79: note: in definition of macro ‘LOG’
#define LOG( severity, msg, ...) write_to_log( severity TSRMLS_CC, msg, ## __VA_ARGS__ )
^~~~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:1287:64: note: suggested alternative: ‘Z_OBJ_HANDLE_P’
LOG(SEV_ERROR, "Failed to remove stmt resource %1!d!", Z_RES_HANDLE_P(stmt_z));
^
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:303:79: note: in definition of macro ‘LOG’
#define LOG( severity, msg, ...) write_to_log( severity TSRMLS_CC, msg, ## __VA_ARGS__ )
^~~~~~~~~~~
In file included from /usr/include/php/20131226/Zend/zend.h:850:0,
from /usr/include/php/20131226/main/php.h:36,
from /tmp/pear/temp/sqlsrv/php_sqlsrv.h:25,
from /tmp/pear/temp/sqlsrv/conn.cpp:21:
/usr/include/php/20131226/Zend/zend_variables.h:57:76: error: cannot convert ‘zval* {aka _zval_struct*}’ to ‘zval** {aka _zval_struct**}’ for argument ‘1’ to ‘void _zval_ptr_dtor(zval**)’
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/pear/temp/sqlsrv/conn.cpp:1290:5: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(stmt_z);
^~~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp: In function ‘void {anonymous}::sqlsrv_conn_close_stmts(ss_sqlsrv_conn*)’:
/tmp/pear/temp/sqlsrv/conn.cpp:1311:5: error: ‘ZEND_HASH_FOREACH_VAL’ was not declared in this scope
ZEND_HASH_FOREACH_VAL( conn->stmts, rsrc_ptr ) {
^~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:1311:5: note: suggested alternative: ‘ZEND_SEND_VAL’
ZEND_HASH_FOREACH_VAL( conn->stmts, rsrc_ptr ) {
^~~~~~~~~~~~~~~~~~~~~
ZEND_SEND_VAL
/tmp/pear/temp/sqlsrv/conn.cpp:1341:7: error: ‘ZEND_HASH_FOREACH_END’ was not declared in this scope
} ZEND_HASH_FOREACH_END();
^~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:1341:7: note: suggested alternative: ‘ZEND_EXT_FCALL_END’
} ZEND_HASH_FOREACH_END();
^~~~~~~~~~~~~~~~~~~~~
ZEND_EXT_FCALL_END
/tmp/pear/temp/sqlsrv/conn.cpp: At global scope:
/tmp/pear/temp/sqlsrv/conn.cpp:1348:60: error: ‘zend_string’ has not been declared
int get_conn_option_key( _Inout_ sqlsrv_context& ctx, _In_ zend_string* key, _In_ size_t key_len, _Inout_ zval const* value_z TSRMLS_DC )
^~~~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp: In function ‘int {anonymous}::get_conn_option_key(sqlsrv_context&, int*, size_t, const zval*)’:
/tmp/pear/temp/sqlsrv/conn.cpp:1352:64: error: ‘ZSTR_VAL’ was not declared in this scope
if( key_len == SS_CONN_OPTS[i].sqlsrv_len && !stricmp( ZSTR_VAL( key ), SS_CONN_OPTS[i].sqlsrv_name )) {
^~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:1352:64: note: suggested alternative: ‘Z_STRVAL’
if( key_len == SS_CONN_OPTS[i].sqlsrv_len && !stricmp( ZSTR_VAL( key ), SS_CONN_OPTS[i].sqlsrv_name )) {
^~~~~~~~
Z_STRVAL
/tmp/pear/temp/sqlsrv/conn.cpp: At global scope:
/tmp/pear/temp/sqlsrv/conn.cpp:1409:31: error: redefinition of ‘int {anonymous}::get_stmt_option_key’
int get_stmt_option_key( _In_ zend_string* key, _In_ size_t key_len TSRMLS_DC )
^~~~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:198:5: note: ‘int {anonymous}::get_stmt_option_key’ previously defined here
int get_stmt_option_key( _In_ zend_string* key, _In_ size_t key_len TSRMLS_DC );
^~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:1409:31: error: ‘zend_string’ was not declared in this scope
int get_stmt_option_key( _In_ zend_string* key, _In_ size_t key_len TSRMLS_DC )
^~~~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:1409:31: note: suggested alternative: ‘zend_strip’
int get_stmt_option_key( _In_ zend_string* key, _In_ size_t key_len TSRMLS_DC )
^~~~~~~~~~~
zend_strip
/tmp/pear/temp/sqlsrv/conn.cpp:1409:44: error: ‘key’ was not declared in this scope
int get_stmt_option_key( _In_ zend_string* key, _In_ size_t key_len TSRMLS_DC )
^~~
/tmp/pear/temp/sqlsrv/conn.cpp:1409:44: note: suggested alternative: ‘key_t’
int get_stmt_option_key( _In_ zend_string* key, _In_ size_t key_len TSRMLS_DC )
^~~
key_t
/tmp/pear/temp/sqlsrv/conn.cpp:1409:61: error: expected primary-expression before ‘key_len’
int get_stmt_option_key( _In_ zend_string* key, _In_ size_t key_len TSRMLS_DC )
^~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:1420:61: error: ‘zend_string’ has not been declared
void add_stmt_option_key( _Inout_ sqlsrv_context& ctx, _In_ zend_string* key, _In_ size_t key_len,
^~~~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp: In function ‘void {anonymous}::add_stmt_option_key(sqlsrv_context&, int*, size_t, HashTable*, zval*)’:
/tmp/pear/temp/sqlsrv/conn.cpp:1423:68: error: ‘{anonymous}::get_stmt_option_key’ cannot be used as a function
int option_key = ::get_stmt_option_key( key, key_len TSRMLS_CC );
^
In file included from /tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:25:0,
from /tmp/pear/temp/sqlsrv/conn.cpp:24:
/tmp/pear/temp/sqlsrv/conn.cpp:1425:107: error: ‘ZSTR_VAL’ was not declared in this scope
CHECK_CUSTOM_ERROR((option_key == SQLSRV_STMT_OPTION_INVALID ), ctx, SQLSRV_ERROR_INVALID_OPTION_KEY, ZSTR_VAL( key ) ) {
^
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:1982:94: note: in definition of macro ‘CHECK_ERROR_EX’
ignored##unique = call_error_handler( context, ssphp TSRMLS_CC, /*warning*/false, ## __VA_ARGS__ ); \
^~~~~~~~~~~
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:1993:5: note: in expansion of macro ‘CHECK_ERROR_UNIQUE’
CHECK_ERROR_UNIQUE( __COUNTER__, condition, context, ssphp, ## __VA_ARGS__ )
^~~~~~~~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:1425:5: note: in expansion of macro ‘CHECK_CUSTOM_ERROR’
CHECK_CUSTOM_ERROR((option_key == SQLSRV_STMT_OPTION_INVALID ), ctx, SQLSRV_ERROR_INVALID_OPTION_KEY, ZSTR_VAL( key ) ) {
^~~~~~~~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:1425:107: note: suggested alternative: ‘Z_STRVAL’
CHECK_CUSTOM_ERROR((option_key == SQLSRV_STMT_OPTION_INVALID ), ctx, SQLSRV_ERROR_INVALID_OPTION_KEY, ZSTR_VAL( key ) ) {
^
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:1982:94: note: in definition of macro ‘CHECK_ERROR_EX’
ignored##unique = call_error_handler( context, ssphp TSRMLS_CC, /*warning*/false, ## __VA_ARGS__ ); \
^~~~~~~~~~~
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:1993:5: note: in expansion of macro ‘CHECK_ERROR_UNIQUE’
CHECK_ERROR_UNIQUE( __COUNTER__, condition, context, ssphp, ## __VA_ARGS__ )
^~~~~~~~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:1425:5: note: in expansion of macro ‘CHECK_CUSTOM_ERROR’
CHECK_CUSTOM_ERROR((option_key == SQLSRV_STMT_OPTION_INVALID ), ctx, SQLSRV_ERROR_INVALID_OPTION_KEY, ZSTR_VAL( key ) ) {
^~~~~~~~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:1430:5: error: ‘Z_TRY_ADDREF_P’ was not declared in this scope
Z_TRY_ADDREF_P(data); // inc the ref count since this is going into the options_ht too.
^~~~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:1430:5: note: suggested alternative: ‘Z_ADDREF_P’
Z_TRY_ADDREF_P(data); // inc the ref count since this is going into the options_ht too.
^~~~~~~~~~~~~~
Z_ADDREF_P
/tmp/pear/temp/sqlsrv/conn.cpp: At global scope:
/tmp/pear/temp/sqlsrv/conn.cpp:1434:61: error: ‘zend_string’ has not been declared
void add_conn_option_key( _Inout_ sqlsrv_context& ctx, _In_ zend_string* key, _In_ size_t key_len,
^~~~~~~~~~~
In file included from /tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:25:0,
from /tmp/pear/temp/sqlsrv/conn.cpp:24:
/tmp/pear/temp/sqlsrv/conn.cpp: In function ‘void {anonymous}::add_conn_option_key(sqlsrv_context&, int*, size_t, HashTable*, zval*)’:
/tmp/pear/temp/sqlsrv/conn.cpp:1438:106: error: ‘ZSTR_VAL’ was not declared in this scope
CHECK_CUSTOM_ERROR((option_key == SQLSRV_STMT_OPTION_INVALID ), ctx, SS_SQLSRV_ERROR_INVALID_OPTION, ZSTR_VAL( key ) ) {
^
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:1982:94: note: in definition of macro ‘CHECK_ERROR_EX’
ignored##unique = call_error_handler( context, ssphp TSRMLS_CC, /*warning*/false, ## __VA_ARGS__ ); \
^~~~~~~~~~~
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:1993:5: note: in expansion of macro ‘CHECK_ERROR_UNIQUE’
CHECK_ERROR_UNIQUE( __COUNTER__, condition, context, ssphp, ## __VA_ARGS__ )
^~~~~~~~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:1438:5: note: in expansion of macro ‘CHECK_CUSTOM_ERROR’
CHECK_CUSTOM_ERROR((option_key == SQLSRV_STMT_OPTION_INVALID ), ctx, SS_SQLSRV_ERROR_INVALID_OPTION, ZSTR_VAL( key ) ) {
^~~~~~~~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:1438:106: note: suggested alternative: ‘Z_STRVAL’
CHECK_CUSTOM_ERROR((option_key == SQLSRV_STMT_OPTION_INVALID ), ctx, SS_SQLSRV_ERROR_INVALID_OPTION, ZSTR_VAL( key ) ) {
^
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:1982:94: note: in definition of macro ‘CHECK_ERROR_EX’
ignored##unique = call_error_handler( context, ssphp TSRMLS_CC, /*warning*/false, ## __VA_ARGS__ ); \
^~~~~~~~~~~
/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:1993:5: note: in expansion of macro ‘CHECK_ERROR_UNIQUE’
CHECK_ERROR_UNIQUE( __COUNTER__, condition, context, ssphp, ## __VA_ARGS__ )
^~~~~~~~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:1438:5: note: in expansion of macro ‘CHECK_CUSTOM_ERROR’
CHECK_CUSTOM_ERROR((option_key == SQLSRV_STMT_OPTION_INVALID ), ctx, SS_SQLSRV_ERROR_INVALID_OPTION, ZSTR_VAL( key ) ) {
^~~~~~~~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:1443:5: error: ‘Z_TRY_ADDREF_P’ was not declared in this scope
Z_TRY_ADDREF_P(data); // inc the ref count since this is going into the options_ht too.
^~~~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:1443:5: note: suggested alternative: ‘Z_ADDREF_P’
Z_TRY_ADDREF_P(data); // inc the ref count since this is going into the options_ht too.
^~~~~~~~~~~~~~
Z_ADDREF_P
/tmp/pear/temp/sqlsrv/conn.cpp: In function ‘void {anonymous}::validate_stmt_options(sqlsrv_context&, zval*, HashTable*)’:
/tmp/pear/temp/sqlsrv/conn.cpp:1458:13: error: ‘zend_string’ was not declared in this scope
zend_string *key = NULL;
^~~~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:1458:13: note: suggested alternative: ‘zend_strip’
zend_string *key = NULL;
^~~~~~~~~~~
zend_strip
/tmp/pear/temp/sqlsrv/conn.cpp:1458:26: error: ‘key’ was not declared in this scope
zend_string *key = NULL;
^~~
/tmp/pear/temp/sqlsrv/conn.cpp:1458:26: note: suggested alternative: ‘key_t’
zend_string *key = NULL;
^~~
key_t
/tmp/pear/temp/sqlsrv/conn.cpp:1460:13: error: ‘ZEND_HASH_FOREACH_KEY_VAL’ was not declared in this scope
ZEND_HASH_FOREACH_KEY_VAL( options_ht, int_key, key, data ) {
^~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:1460:13: note: suggested alternative: ‘ZEND_SEND_BY_VAL’
ZEND_HASH_FOREACH_KEY_VAL( options_ht, int_key, key, data ) {
^~~~~~~~~~~~~~~~~~~~~~~~~
ZEND_SEND_BY_VAL
/tmp/pear/temp/sqlsrv/conn.cpp:1478:15: error: ‘ZEND_HASH_FOREACH_END’ was not declared in this scope
} ZEND_HASH_FOREACH_END();
^~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:1478:15: note: suggested alternative: ‘ZEND_EXT_FCALL_END’
} ZEND_HASH_FOREACH_END();
^~~~~~~~~~~~~~~~~~~~~
ZEND_EXT_FCALL_END
/tmp/pear/temp/sqlsrv/conn.cpp: In function ‘void {anonymous}::validate_conn_options(sqlsrv_context&, zval*, char**, char**, HashTable*)’:
/tmp/pear/temp/sqlsrv/conn.cpp:1499:13: error: ‘zend_string’ was not declared in this scope
zend_string *key = NULL;
^~~~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:1499:13: note: suggested alternative: ‘zend_strip’
zend_string *key = NULL;
^~~~~~~~~~~
zend_strip
/tmp/pear/temp/sqlsrv/conn.cpp:1499:26: error: ‘key’ was not declared in this scope
zend_string *key = NULL;
^~~
/tmp/pear/temp/sqlsrv/conn.cpp:1499:26: note: suggested alternative: ‘key_t’
zend_string *key = NULL;
^~~
key_t
/tmp/pear/temp/sqlsrv/conn.cpp:1501:13: error: ‘ZEND_HASH_FOREACH_KEY_VAL’ was not declared in this scope
ZEND_HASH_FOREACH_KEY_VAL( options_ht, int_key, key, data ) {
^~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:1501:13: note: suggested alternative: ‘ZEND_SEND_BY_VAL’
ZEND_HASH_FOREACH_KEY_VAL( options_ht, int_key, key, data ) {
^~~~~~~~~~~~~~~~~~~~~~~~~
ZEND_SEND_BY_VAL
/tmp/pear/temp/sqlsrv/conn.cpp:1532:15: error: ‘ZEND_HASH_FOREACH_END’ was not declared in this scope
} ZEND_HASH_FOREACH_END();
^~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/sqlsrv/conn.cpp:1532:15: note: suggested alternative: ‘ZEND_EXT_FCALL_END’
} ZEND_HASH_FOREACH_END();
^~~~~~~~~~~~~~~~~~~~~
ZEND_EXT_FCALL_END
In file included from /tmp/pear/temp/sqlsrv/conn.cpp:24:0:
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h: In instantiation of ‘H* process_params(int, zval*, zval**, zval*, int, const char*, const char*, size_t, ...) [with H = ss_sqlsrv_conn; zval = _zval_struct; size _t = long unsigned int]’:
/tmp/pear/temp/sqlsrv/conn.cpp:734:5: required from here
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:458:57: error: ‘Z_RES_P’ was not declared in this scope
h = static_cast<H*>( zend_fetch_resource(Z_RES_P(rsrc) TSRMLS_CC, H::resource_name, H::descriptor ));
~~~~~~~^~~~~~
/tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:458:57: note: suggested alternative: ‘Z_RESVAL’
h = static_cast<H*>( zend_fetch_resource(Z_RES_P(rsrc) TSRMLS_CC, H::resource_name, H::descriptor ));
~~~~~~~^~~~~~
Z_RESVAL
Makefile:181: recipe for target 'conn.lo' failed
make: *** [conn.lo] Error 1
ERROR:make' failed`
Hi @antoiba86 Looks like there exists an old php version in your system. From the log above I found:
/usr checking for PHP includes... -I/usr/include/php/20131226 -I/usr/include/php/20131226/main -I/usr/include/php/20131226/TSRM -I/usr/include/php/20131226/Zend -I/usr/include/php/20131226/ext -I/usr/includ e/php/20131226/ext/date/lib checking for PHP extension directory
If I'm not mistaken, that is php 5.6
@antoiba86 please check the FAQ here
Check and see the versions of phpize and php-config @antoiba86.
In our case that was the issue , you can set those with alternatives.
sudo update-alternatives --set phpize PATH
sudo update-alternatives --set php-config PATH
Hello @yitam and @ronak90 ,
thanks for your tips.
It was the version of the php-cofing that was differente from php -v.
The version of php used in the php-config was 5.6.
We reinstalled php7.3 and now everything is ok. I didn't know there was differences between php -v and php-config -v.
Thanks for your advices and thanks for helping me to fix the issue so fast.
Most helpful comment
Hello @yitam and @ronak90 ,
thanks for your tips.
It was the version of the php-cofing that was differente from php -v.
The version of php used in the php-config was 5.6.
We reinstalled php7.3 and now everything is ok. I didn't know there was differences between php -v and php-config -v.
Thanks for your advices and thanks for helping me to fix the issue so fast.