forked from geos/php-geos
1
0
Fork 0

length argument of the 's' specifier

master
swen 2016-07-25 12:50:35 +02:00 committed by Sandro Santilli
parent ec21d01b52
commit aefab0574f
1 changed files with 14 additions and 1 deletions

15
geos.c Normal file → Executable file
View File

@ -1222,7 +1222,11 @@ PHP_METHOD(Geometry, relate)
GEOSGeometry *other;
zval *zobj;
char* pat = NULL;
#if PHP_VERSION_ID >= 70000
size_t patlen;
#else
int patlen;
#endif
int retInt;
zend_bool retBool;
char* retStr;
@ -2983,7 +2987,11 @@ PHP_METHOD(WKBReader, readHEX)
GEOSWKBReader *reader;
GEOSGeometry *geom;
unsigned char* wkb;
#if PHP_VERSION_ID >= 70000
size_t wkblen;
#else
int wkblen;
#endif
reader = (GEOSWKBReader*)getRelay(getThis(), WKBReader_ce_ptr);
@ -3225,9 +3233,14 @@ PHP_METHOD(Geometry, voronoiDiagram)
PHP_FUNCTION(GEOSRelateMatch)
{
char* mat = NULL;
int matlen;
char* pat = NULL;
#if PHP_VERSION_ID >= 70000
size_t matlen;
size_t patlen;
#else
int matlen;
int patlen;
#endif
int ret;
zend_bool retBool;