[prev in list] [next in list] [prev in thread] [next in thread]
List: pecl-cvs
Subject: [PECL-CVS] [pecl-file_formats-yaml] php7: fix ZEND_ATOL usage
From: Remi Collet via Bryan Davis <noreply () php ! net>
Date: 2021-10-24 21:34:34
Message-ID: pPNbV6dzcAm2UlNwKdcAUCtAFSc2tFWEpCw3iQ1WP0 () main ! php ! net
[Download RAW message or body]
Author: Remi Collet (remicollet)
Committer: Bryan Davis (bd808)
Date: 2021-10-24T15:35:11-06:00
Commit: https://github.com/php/pecl-file_formats-yaml/commit/b35ef25b4b766c27b27b6293d3045e768e6ce677
Raw diff: https://github.com/php/pecl-file_formats-yaml/commit/b35ef25b4b766c27b27b6293d3045e768e6ce677.diff
fix ZEND_ATOL usage
Changed paths:
M detect.c
Diff:
diff --git a/detect.c b/detect.c
index 1d650f7..0a18aba 100644
--- a/detect.c
+++ b/detect.c
@@ -542,7 +542,11 @@ scalar_is_numeric(const char *value, size_t length, zend_long \
*lval, break;
default:
+#if PHP_VERSION_ID < 80100
ZEND_ATOL(*lval, buf);
+#else
+ *lval = ZEND_ATOL(buf);
+#endif
break;
}
--
PECL CVS Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic