[gdal-dev] Anyone interested in resurrecting PHP (7) bindings ?

Even Rouault even.rouault at spatialys.com
Tue Jan 10 06:15:05 PST 2017


Hi,

Seeing https://trac.osgeo.org/gdal/ticket/6770, I realized that we have in-tree 
PHP bindings...
They appear to still build with PHP 5 on an ancient distro, but they are broken 
with PHP 7.

I've tried the attached patch that attempts to use the -php7 flag available in SWIG 
3.0.11 but this still results in build failures (see attached log).

Failing to find anyone interested, we'll have to disable
./configure --with-php

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20170110/fb944fed/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: php7.patch
Type: text/x-patch
Size: 2341 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20170110/fb944fed/attachment-0001.bin>
-------------- next part --------------
gdal_wrap.cpp:4652:63: error: macro "add_assoc_string" passed 4 arguments, but takes just 3
           add_assoc_string(return_value,keyptr,(char*)valptr,1);
                                                               ^
gdal_wrap.cpp: In function ‘zval* CreateTupleFromDoubleArray(double*, unsigned int)’:
gdal_wrap.cpp:1403:22: error: ‘MAKE_STD_ZVAL’ was not declared in this scope
     MAKE_STD_ZVAL(tmp);
                      ^
gdal_wrap.cpp: In function ‘char* OGRErrMessages(int)’:
gdal_wrap.cpp:1651:12: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
     return "OGR Error 0: None";
            ^
gdal_wrap.cpp:1653:12: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
     return "OGR Error 1: Not enough data";
            ^
gdal_wrap.cpp:1655:12: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
     return "OGR Error 2: Unsupported geometry type";
            ^
gdal_wrap.cpp:1657:12: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
     return "OGR Error 3: Unsupported operation";
            ^
gdal_wrap.cpp:1659:12: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
     return "OGR Error 4: Corrupt data";
            ^
gdal_wrap.cpp:1661:12: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
     return "OGR Error 5: General Error";
            ^
gdal_wrap.cpp:1663:12: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
     return "OGR Error 6: Unsupported SRS";
            ^
gdal_wrap.cpp:1665:12: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
     return "OGR Error: Unknown";
            ^
gdal_wrap.cpp: In function ‘CPLErr GDALRasterBandShadow_GetHistogram(GDALRasterBandShadow*, double, double, int, int*, int, int, GDALProgressFunc, void*)’:
gdal_wrap.cpp:1868:18: warning: ‘CPLErr GDALGetRasterHistogram(GDALRasterBandH, double, double, int, int*, int, int, GDALProgressFunc, void*)’ is deprecated [-Wdeprecated-declarations]
     CPLErr err = GDALGetRasterHistogram( self, min, max, buckets, panHistogram,
                  ^
In file included from gdal_wrap.cpp:1134:0:
../../gcore/gdal.h:793:28: note: declared here
 CPLErr CPL_DLL CPL_STDCALL GDALGetRasterHistogram( GDALRasterBandH hBand,
                            ^
gdal_wrap.cpp:1868:18: warning: ‘CPLErr GDALGetRasterHistogram(GDALRasterBandH, double, double, int, int*, int, int, GDALProgressFunc, void*)’ is deprecated [-Wdeprecated-declarations]
     CPLErr err = GDALGetRasterHistogram( self, min, max, buckets, panHistogram,
                  ^
In file included from gdal_wrap.cpp:1134:0:
../../gcore/gdal.h:793:28: note: declared here
 CPLErr CPL_DLL CPL_STDCALL GDALGetRasterHistogram( GDALRasterBandH hBand,
                            ^
gdal_wrap.cpp:1870:66: warning: ‘CPLErr GDALGetRasterHistogram(GDALRasterBandH, double, double, int, int*, int, int, GDALProgressFunc, void*)’ is deprecated [-Wdeprecated-declarations]
                                          callback, callback_data );
                                                                  ^
In file included from gdal_wrap.cpp:1134:0:
../../gcore/gdal.h:793:28: note: declared here
 CPLErr CPL_DLL CPL_STDCALL GDALGetRasterHistogram( GDALRasterBandH hBand,
                            ^
gdal_wrap.cpp: In function ‘CPLErr GDALRasterBandShadow_GetDefaultHistogram(GDALRasterBandShadow*, double*, double*, int*, int**, int, GDALProgressFunc, void*)’:
gdal_wrap.cpp:1874:12: warning: ‘CPLErr GDALGetDefaultHistogram(GDALRasterBandH, double*, double*, int*, int**, int, GDALProgressFunc, void*)’ is deprecated [-Wdeprecated-declarations]
     return GDALGetDefaultHistogram( self, min_ret, max_ret, buckets_ret,
            ^
In file included from gdal_wrap.cpp:1134:0:
../../gcore/gdal.h:805:28: note: declared here
 CPLErr CPL_DLL CPL_STDCALL GDALGetDefaultHistogram( GDALRasterBandH hBand,
                            ^
gdal_wrap.cpp:1874:12: warning: ‘CPLErr GDALGetDefaultHistogram(GDALRasterBandH, double*, double*, int*, int**, int, GDALProgressFunc, void*)’ is deprecated [-Wdeprecated-declarations]
     return GDALGetDefaultHistogram( self, min_ret, max_ret, buckets_ret,
            ^
In file included from gdal_wrap.cpp:1134:0:
../../gcore/gdal.h:805:28: note: declared here
 CPLErr CPL_DLL CPL_STDCALL GDALGetDefaultHistogram( GDALRasterBandH hBand,
                            ^
gdal_wrap.cpp:1876:61: warning: ‘CPLErr GDALGetDefaultHistogram(GDALRasterBandH, double*, double*, int*, int**, int, GDALProgressFunc, void*)’ is deprecated [-Wdeprecated-declarations]
                                     callback, callback_data );
                                                             ^
In file included from gdal_wrap.cpp:1134:0:
../../gcore/gdal.h:805:28: note: declared here
 CPLErr CPL_DLL CPL_STDCALL GDALGetDefaultHistogram( GDALRasterBandH hBand,
                            ^
gdal_wrap.cpp: In function ‘CPLErr GDALRasterBandShadow_SetDefaultHistogram(GDALRasterBandShadow*, double, double, int, int*)’:
gdal_wrap.cpp:1879:12: warning: ‘CPLErr GDALSetDefaultHistogram(GDALRasterBandH, double, double, int, int*)’ is deprecated [-Wdeprecated-declarations]
     return GDALSetDefaultHistogram( self, min, max,
            ^
In file included from gdal_wrap.cpp:1134:0:
../../gcore/gdal.h:817:28: note: declared here
 CPLErr CPL_DLL CPL_STDCALL GDALSetDefaultHistogram( GDALRasterBandH hBand,
                            ^
gdal_wrap.cpp:1879:12: warning: ‘CPLErr GDALSetDefaultHistogram(GDALRasterBandH, double, double, int, int*)’ is deprecated [-Wdeprecated-declarations]
     return GDALSetDefaultHistogram( self, min, max,
            ^
In file included from gdal_wrap.cpp:1134:0:
../../gcore/gdal.h:817:28: note: declared here
 CPLErr CPL_DLL CPL_STDCALL GDALSetDefaultHistogram( GDALRasterBandH hBand,
                            ^
gdal_wrap.cpp:1880:44: warning: ‘CPLErr GDALSetDefaultHistogram(GDALRasterBandH, double, double, int, int*)’ is deprecated [-Wdeprecated-declarations]
                buckets_in, panHistogram_in );
                                            ^
In file included from gdal_wrap.cpp:1134:0:
../../gcore/gdal.h:817:28: note: declared here
 CPLErr CPL_DLL CPL_STDCALL GDALSetDefaultHistogram( GDALRasterBandH hBand,
                            ^
In file included from /usr/include/php/20151012/Zend/zend.h:31:0,
                 from gdal_wrap.cpp:748:
gdal_wrap.cpp: In function ‘void _wrap_EscapeString(zend_execute_data*, zval*)’:
/usr/include/php/20151012/Zend/zend_types.h:337:35: error: no match for ‘operator*’ (operand type is ‘zval {aka _zval_struct}’)
 #define Z_TYPE_P(zval_p)   Z_TYPE(*(zval_p))
                                   ^
/usr/include/php/20151012/Zend/zend_types.h:336:41: note: in definition of macro ‘Z_TYPE’
 #define Z_TYPE(zval)    zval_get_type(&(zval))
                                         ^
/usr/include/php/20151012/Zend/zend_operators.h:368:6: note: in expansion of macro ‘Z_TYPE_P’
  if (Z_TYPE_P(pzv)!=upper_type) {     \
      ^
/usr/include/php/20151012/Zend/zend_operators.h:410:35: note: in expansion of macro ‘convert_to_ex_master’
 #define convert_to_string_ex(pzv) convert_to_ex_master(pzv, string, IS_STRING)
                                   ^
gdal_wrap.cpp:3435:5: note: in expansion of macro ‘convert_to_string_ex’
     convert_to_string_ex(args[0]);
     ^
/usr/include/php/20151012/Zend/zend_types.h:337:35: error: no match for ‘operator*’ (operand type is ‘zval {aka _zval_struct}’)
 #define Z_TYPE_P(zval_p)   Z_TYPE(*(zval_p))
                                   ^
/usr/include/php/20151012/Zend/zend_types.h:336:41: note: in definition of macro ‘Z_TYPE’
 #define Z_TYPE(zval)    zval_get_type(&(zval))
                                         ^
/usr/include/php/20151012/Zend/zend_operators.h:274:35: note: in expansion of macro ‘Z_TYPE_P’
 #define convert_to_string(op) if (Z_TYPE_P(op) != IS_STRING) { _convert_to_string((op) ZEND_FILE_LINE_CC); }
                                   ^
/usr/include/php/20151012/Zend/zend_operators.h:369:3: note: in expansion of macro ‘convert_to_string’
   convert_to_##lower_type(pzv);      \
   ^
/usr/include/php/20151012/Zend/zend_operators.h:410:35: note: in expansion of macro ‘convert_to_ex_master’
 #define convert_to_string_ex(pzv) convert_to_ex_master(pzv, string, IS_STRING)
                                   ^
gdal_wrap.cpp:3435:5: note: in expansion of macro ‘convert_to_string_ex’
     convert_to_string_ex(args[0]);
     ^
In file included from /usr/include/php/20151012/Zend/zend.h:341:0,
                 from gdal_wrap.cpp:748:
/usr/include/php/20151012/Zend/zend_operators.h:274:105: error: cannot convert ‘zval {aka _zval_struct}’ to ‘zval* {aka _zval_struct*}’ for argument ‘1’ to ‘void _convert_to_string(zval*)’
 #define convert_to_string(op) if (Z_TYPE_P(op) != IS_STRING) { _convert_to_string((op) ZEND_FILE_LINE_CC); }
                                                                                                         ^
/usr/include/php/20151012/Zend/zend_operators.h:369:3: note: in expansion of macro ‘convert_to_string’
   convert_to_##lower_type(pzv);      \
   ^
/usr/include/php/20151012/Zend/zend_operators.h:410:35: note: in expansion of macro ‘convert_to_ex_master’
 #define convert_to_string_ex(pzv) convert_to_ex_master(pzv, string, IS_STRING)
                                   ^
gdal_wrap.cpp:3435:5: note: in expansion of macro ‘convert_to_string_ex’
     convert_to_string_ex(args[0]);
     ^
gdal_wrap.cpp:3436:31: error: ‘Z_STRVAL_PP’ was not declared in this scope
     arg2 = Z_STRVAL_PP(args[0]);
                               ^
gdal_wrap.cpp:3437:31: error: ‘Z_STRLEN_PP’ was not declared in this scope
     arg1 = Z_STRLEN_PP(args[0]);
                               ^
gdal_wrap.cpp: In function ‘void _wrap_MajorObject_GetMetadata_Dict(zend_execute_data*, zval*)’:
gdal_wrap.cpp:4652:11: error: ‘add_assoc_string’ was not declared in this scope
           add_assoc_string(return_value,keyptr,(char*)valptr,1);
           ^
gdal_wrap.cpp: In function ‘void _wrap_MajorObject_GetMetadata_List(zend_execute_data*, zval*)’:
gdal_wrap.cpp:4707:62: error: too many arguments to function ‘int add_next_index_string(zval*, const char*)’
         add_next_index_string( return_value, *stringarray, 1 );
                                                              ^
In file included from gdal_wrap.cpp:749:0:
/usr/include/php/20151012/Zend/zend_API.h:432:14: note: declared here
 ZEND_API int add_next_index_string(zval *arg, const char *str);
              ^
gdal_wrap.cpp: In function ‘void _wrap_GCPsToGeoTransform(zend_execute_data*, zval*)’:
gdal_wrap.cpp:6850:39: error: cannot convert ‘zval** {aka _zval_struct**}’ to ‘zval* {aka _zval_struct*}’ for argument ‘1’ to ‘void t_output_helper(zval*, zval*)’
     t_output_helper( &return_value, t );
                                       ^
gdal_wrap.cpp: In function ‘void _wrap_Dataset_GetGeoTransform(zend_execute_data*, zval*)’:
gdal_wrap.cpp:7309:39: error: cannot convert ‘zval** {aka _zval_struct**}’ to ‘zval* {aka _zval_struct*}’ for argument ‘1’ to ‘void t_output_helper(zval*, zval*)’
     t_output_helper( &return_value, t );
                                       ^
gdal_wrap.cpp: In function ‘void _wrap_Dataset_GetGCPs(zend_execute_data*, zval*)’:
gdal_wrap.cpp:7535:22: error: ‘MAKE_STD_ZVAL’ was not declared in this scope
     MAKE_STD_ZVAL(out);
                      ^
gdal_wrap.cpp: In function ‘void _wrap_Band_GetRasterCategoryNames(zend_execute_data*, zval*)’:
gdal_wrap.cpp:8364:62: error: too many arguments to function ‘int add_next_index_string(zval*, const char*)’
         add_next_index_string( return_value, *stringarray, 1 );
                                                              ^
In file included from gdal_wrap.cpp:749:0:
/usr/include/php/20151012/Zend/zend_API.h:432:14: note: declared here
 ZEND_API int add_next_index_string(zval *arg, const char *str);
              ^
In file included from /usr/include/php/20151012/Zend/zend.h:31:0,
                 from gdal_wrap.cpp:748:
gdal_wrap.cpp: In function ‘void _wrap_Band_Checksum(zend_execute_data*, zval*)’:
gdal_wrap.cpp:8965:25: error: no match for ‘operator*’ (operand type is ‘zval {aka _zval_struct}’)
       if ( ZVAL_IS_NULL(*args[3]) ) {
                         ^
/usr/include/php/20151012/Zend/zend_types.h:336:41: note: in definition of macro ‘Z_TYPE’
 #define Z_TYPE(zval)    zval_get_type(&(zval))
                                         ^
/usr/include/php/20151012/Zend/zend_API.h:647:26: note: in expansion of macro ‘Z_TYPE_P’
 #define ZVAL_IS_NULL(z) (Z_TYPE_P(z) == IS_NULL)
                          ^
gdal_wrap.cpp:8965:12: note: in expansion of macro ‘ZVAL_IS_NULL’
       if ( ZVAL_IS_NULL(*args[3]) ) {
            ^
/usr/include/php/20151012/Zend/zend_types.h:337:35: error: no match for ‘operator*’ (operand type is ‘zval {aka _zval_struct}’)
 #define Z_TYPE_P(zval_p)   Z_TYPE(*(zval_p))
                                   ^
/usr/include/php/20151012/Zend/zend_types.h:336:41: note: in definition of macro ‘Z_TYPE’
 #define Z_TYPE(zval)    zval_get_type(&(zval))
                                         ^
/usr/include/php/20151012/Zend/zend_operators.h:368:6: note: in expansion of macro ‘Z_TYPE_P’
  if (Z_TYPE_P(pzv)!=upper_type) {     \
      ^
/usr/include/php/20151012/Zend/zend_operators.h:408:34: note: in expansion of macro ‘convert_to_ex_master’
 #define convert_to_long_ex(pzv)  convert_to_ex_master(pzv, long, IS_LONG)
                                  ^
gdal_wrap.cpp:8968:7: note: in expansion of macro ‘convert_to_long_ex’
       convert_to_long_ex(args[3]);
       ^
In file included from /usr/include/php/20151012/Zend/zend.h:341:0,
                 from gdal_wrap.cpp:748:
/usr/include/php/20151012/Zend/zend_operators.h:369:30: error: cannot convert ‘zval {aka _zval_struct}’ to ‘zval* {aka _zval_struct*}’ for argument ‘1’ to ‘void convert_to_long(zval*)’
   convert_to_##lower_type(pzv);      \
                              ^
/usr/include/php/20151012/Zend/zend_operators.h:408:34: note: in expansion of macro ‘convert_to_ex_master’
 #define convert_to_long_ex(pzv)  convert_to_ex_master(pzv, long, IS_LONG)
                                  ^
gdal_wrap.cpp:8968:7: note: in expansion of macro ‘convert_to_long_ex’
       convert_to_long_ex(args[3]);
       ^
gdal_wrap.cpp:8969:39: error: ‘Z_LVAL_PP’ was not declared in this scope
       val4 = (int) Z_LVAL_PP( args[3] );
                                       ^
In file included from /usr/include/php/20151012/Zend/zend.h:31:0,
                 from gdal_wrap.cpp:748:
gdal_wrap.cpp:8976:25: error: no match for ‘operator*’ (operand type is ‘zval {aka _zval_struct}’)
       if ( ZVAL_IS_NULL(*args[4]) ) {
                         ^
/usr/include/php/20151012/Zend/zend_types.h:336:41: note: in definition of macro ‘Z_TYPE’
 #define Z_TYPE(zval)    zval_get_type(&(zval))
                                         ^
/usr/include/php/20151012/Zend/zend_API.h:647:26: note: in expansion of macro ‘Z_TYPE_P’
 #define ZVAL_IS_NULL(z) (Z_TYPE_P(z) == IS_NULL)
                          ^
gdal_wrap.cpp:8976:12: note: in expansion of macro ‘ZVAL_IS_NULL’
       if ( ZVAL_IS_NULL(*args[4]) ) {
            ^
/usr/include/php/20151012/Zend/zend_types.h:337:35: error: no match for ‘operator*’ (operand type is ‘zval {aka _zval_struct}’)
 #define Z_TYPE_P(zval_p)   Z_TYPE(*(zval_p))
                                   ^
/usr/include/php/20151012/Zend/zend_types.h:336:41: note: in definition of macro ‘Z_TYPE’
 #define Z_TYPE(zval)    zval_get_type(&(zval))
                                         ^
/usr/include/php/20151012/Zend/zend_operators.h:368:6: note: in expansion of macro ‘Z_TYPE_P’
  if (Z_TYPE_P(pzv)!=upper_type) {     \
      ^
/usr/include/php/20151012/Zend/zend_operators.h:408:34: note: in expansion of macro ‘convert_to_ex_master’
 #define convert_to_long_ex(pzv)  convert_to_ex_master(pzv, long, IS_LONG)
                                  ^
gdal_wrap.cpp:8979:7: note: in expansion of macro ‘convert_to_long_ex’
       convert_to_long_ex(args[4]);
       ^
In file included from /usr/include/php/20151012/Zend/zend.h:341:0,
                 from gdal_wrap.cpp:748:
/usr/include/php/20151012/Zend/zend_operators.h:369:30: error: cannot convert ‘zval {aka _zval_struct}’ to ‘zval* {aka _zval_struct*}’ for argument ‘1’ to ‘void convert_to_long(zval*)’
   convert_to_##lower_type(pzv);      \
                              ^
/usr/include/php/20151012/Zend/zend_operators.h:408:34: note: in expansion of macro ‘convert_to_ex_master’
 #define convert_to_long_ex(pzv)  convert_to_ex_master(pzv, long, IS_LONG)
                                  ^
gdal_wrap.cpp:8979:7: note: in expansion of macro ‘convert_to_long_ex’
       convert_to_long_ex(args[4]);
       ^
gdal_wrap.cpp:8980:39: error: ‘Z_LVAL_PP’ was not declared in this scope
       val5 = (int) Z_LVAL_PP( args[4] );
                                       ^
gdal_wrap.cpp: In function ‘void _wrap_Band_ComputeRasterMinMax(zend_execute_data*, zval*)’:
gdal_wrap.cpp:9030:39: error: cannot convert ‘zval** {aka _zval_struct**}’ to ‘zval* {aka _zval_struct*}’ for argument ‘1’ to ‘void t_output_helper(zval*, zval*)’
     t_output_helper( &return_value, t );
                                       ^
gdal_wrap.cpp: In function ‘void _wrap_Band_ComputeBandStats(zend_execute_data*, zval*)’:
gdal_wrap.cpp:9074:39: error: cannot convert ‘zval** {aka _zval_struct**}’ to ‘zval* {aka _zval_struct*}’ for argument ‘1’ to ‘void t_output_helper(zval*, zval*)’
     t_output_helper( &return_value, t );
                                       ^
gdal_wrap.cpp: In function ‘void _wrap_Band_GetCategoryNames(zend_execute_data*, zval*)’:
gdal_wrap.cpp:9694:62: error: too many arguments to function ‘int add_next_index_string(zval*, const char*)’
         add_next_index_string( return_value, *stringarray, 1 );
                                                              ^
In file included from gdal_wrap.cpp:749:0:
/usr/include/php/20151012/Zend/zend_API.h:432:14: note: declared here
 ZEND_API int add_next_index_string(zval *arg, const char *str);
              ^
In file included from /usr/include/php/20151012/Zend/zend.h:31:0,
                 from gdal_wrap.cpp:748:
gdal_wrap.cpp: In function ‘void _wrap_RasterAttributeTable_SetValueAsString(zend_execute_data*, zval*)’:
/usr/include/php/20151012/Zend/zend_types.h:337:35: error: no match for ‘operator*’ (operand type is ‘zval {aka _zval_struct}’)
 #define Z_TYPE_P(zval_p)   Z_TYPE(*(zval_p))
                                   ^
/usr/include/php/20151012/Zend/zend_types.h:336:41: note: in definition of macro ‘Z_TYPE’
 #define Z_TYPE(zval)    zval_get_type(&(zval))
                                         ^
/usr/include/php/20151012/Zend/zend_operators.h:368:6: note: in expansion of macro ‘Z_TYPE_P’
  if (Z_TYPE_P(pzv)!=upper_type) {     \
      ^
/usr/include/php/20151012/Zend/zend_operators.h:410:35: note: in expansion of macro ‘convert_to_ex_master’
 #define convert_to_string_ex(pzv) convert_to_ex_master(pzv, string, IS_STRING)
                                   ^
gdal_wrap.cpp:10464:5: note: in expansion of macro ‘convert_to_string_ex’
     convert_to_string_ex(args[3]);
     ^
/usr/include/php/20151012/Zend/zend_types.h:337:35: error: no match for ‘operator*’ (operand type is ‘zval {aka _zval_struct}’)
 #define Z_TYPE_P(zval_p)   Z_TYPE(*(zval_p))
                                   ^
/usr/include/php/20151012/Zend/zend_types.h:336:41: note: in definition of macro ‘Z_TYPE’
 #define Z_TYPE(zval)    zval_get_type(&(zval))
                                         ^
/usr/include/php/20151012/Zend/zend_operators.h:274:35: note: in expansion of macro ‘Z_TYPE_P’
 #define convert_to_string(op) if (Z_TYPE_P(op) != IS_STRING) { _convert_to_string((op) ZEND_FILE_LINE_CC); }
                                   ^
/usr/include/php/20151012/Zend/zend_operators.h:369:3: note: in expansion of macro ‘convert_to_string’
   convert_to_##lower_type(pzv);      \
   ^
/usr/include/php/20151012/Zend/zend_operators.h:410:35: note: in expansion of macro ‘convert_to_ex_master’
 #define convert_to_string_ex(pzv) convert_to_ex_master(pzv, string, IS_STRING)
                                   ^
gdal_wrap.cpp:10464:5: note: in expansion of macro ‘convert_to_string_ex’
     convert_to_string_ex(args[3]);
     ^
In file included from /usr/include/php/20151012/Zend/zend.h:341:0,
                 from gdal_wrap.cpp:748:
/usr/include/php/20151012/Zend/zend_operators.h:274:105: error: cannot convert ‘zval {aka _zval_struct}’ to ‘zval* {aka _zval_struct*}’ for argument ‘1’ to ‘void _convert_to_string(zval*)’
 #define convert_to_string(op) if (Z_TYPE_P(op) != IS_STRING) { _convert_to_string((op) ZEND_FILE_LINE_CC); }
                                                                                                         ^
/usr/include/php/20151012/Zend/zend_operators.h:369:3: note: in expansion of macro ‘convert_to_string’
   convert_to_##lower_type(pzv);      \
   ^
/usr/include/php/20151012/Zend/zend_operators.h:410:35: note: in expansion of macro ‘convert_to_ex_master’
 #define convert_to_string_ex(pzv) convert_to_ex_master(pzv, string, IS_STRING)
                                   ^
gdal_wrap.cpp:10464:5: note: in expansion of macro ‘convert_to_string_ex’
     convert_to_string_ex(args[3]);
     ^
gdal_wrap.cpp:10465:33: error: ‘Z_STRVAL_PP’ was not declared in this scope
     arg4 = Z_STRVAL_PP( args[3] );
                                 ^
gdal_wrap.cpp: In function ‘void _wrap_Transformer_TransformPoint__SWIG_0(zend_execute_data*, zval*)’:
gdal_wrap.cpp:12312:39: error: cannot convert ‘zval** {aka _zval_struct**}’ to ‘zval* {aka _zval_struct*}’ for argument ‘1’ to ‘void t_output_helper(zval*, zval*)’
     t_output_helper( &return_value, t );
                                       ^
gdal_wrap.cpp: In function ‘void _wrap_Transformer_TransformPoint__SWIG_1(zend_execute_data*, zval*)’:
gdal_wrap.cpp:12377:39: error: cannot convert ‘zval** {aka _zval_struct**}’ to ‘zval* {aka _zval_struct*}’ for argument ‘1’ to ‘void t_output_helper(zval*, zval*)’
     t_output_helper( &return_value, t );
                                       ^
gdal_wrap.cpp: In function ‘void _wrap_InvGeoTransform(zend_execute_data*, zval*)’:
gdal_wrap.cpp:12699:39: error: cannot convert ‘zval** {aka _zval_struct**}’ to ‘zval* {aka _zval_struct*}’ for argument ‘1’ to ‘void t_output_helper(zval*, zval*)’
     t_output_helper( &return_value, t );
                                       ^
gdal_wrap.cpp: In function ‘void _wrap_GeneralCmdLineProcessor(zend_execute_data*, zval*)’:
gdal_wrap.cpp:13729:62: error: too many arguments to function ‘int add_next_index_string(zval*, const char*)’
         add_next_index_string( return_value, *stringarray, 1 );
                                                              ^
In file included from gdal_wrap.cpp:749:0:
/usr/include/php/20151012/Zend/zend_API.h:432:14: note: declared here
 ZEND_API int add_next_index_string(zval *arg, const char *str);
              ^
make: *** [gdal_wrap.o] Erreur 1


More information about the gdal-dev mailing list