diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-01-08 11:28:34 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-01-08 11:28:34 +0000 |
commit | 24fd814c326e282c4321965c31f341dad77e270d (patch) | |
tree | 033d63b33c21a3209964ab56005bb9bdd523630d /dev-php/geos-php/files/1.0.0/0002-fix-error-message-with-php-7-Wformat-warnings-raised.patch | |
parent | 129160ec854dca4c3fedb5bcfbcb56930371da0f (diff) |
gentoo resync : 08.01.2021
Diffstat (limited to 'dev-php/geos-php/files/1.0.0/0002-fix-error-message-with-php-7-Wformat-warnings-raised.patch')
-rw-r--r-- | dev-php/geos-php/files/1.0.0/0002-fix-error-message-with-php-7-Wformat-warnings-raised.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/dev-php/geos-php/files/1.0.0/0002-fix-error-message-with-php-7-Wformat-warnings-raised.patch b/dev-php/geos-php/files/1.0.0/0002-fix-error-message-with-php-7-Wformat-warnings-raised.patch new file mode 100644 index 000000000000..78509b766224 --- /dev/null +++ b/dev-php/geos-php/files/1.0.0/0002-fix-error-message-with-php-7-Wformat-warnings-raised.patch @@ -0,0 +1,37 @@ +From f881f614f11472090394538d4424f408cb61d581 Mon Sep 17 00:00:00 2001 +From: Remi Collet <remi@remirepo.net> +Date: Fri, 22 Jun 2018 11:44:27 +0200 +Subject: [PATCH 2/2] fix error message with php 7+ (-Wformat warnings raised + by 7.3) + +--- + geos.c | 8 ++++++++ + 1 file changed, 8 insertions(+) + +diff --git a/geos.c b/geos.c +index 2c81428..fc679e8 100755 +--- a/geos.c ++++ b/geos.c +@@ -189,11 +189,19 @@ getRelay(zval* val, zend_class_entry* ce) { + + if ( proxy->std.ce != ce ) { + php_error_docref(NULL TSRMLS_CC, E_ERROR, ++#if PHP_VERSION_ID >= 70000 ++ "Relay object is not an %s", ZSTR_VAL(ce->name)); ++#else + "Relay object is not an %s", ce->name); ++#endif + } + if ( ! proxy->relay ) { + php_error_docref(NULL TSRMLS_CC, E_ERROR, ++#if PHP_VERSION_ID >= 70000 ++ "Relay object for object of type %s is not set", ZSTR_VAL(ce->name)); ++#else + "Relay object for object of type %s is not set", ce->name); ++#endif + } + return proxy->relay; + } +-- +2.14.4 + |