111 Commits

Author SHA1 Message Date
Gregory Oschwald
ea35c4fa9a Bumped version to 1.13.1 2025-11-21 14:21:26 -08:00
Gregory Oschwald
b298986c4f Bumped version to 1.13.0 2025-11-20 10:37:57 -08:00
Gregory Oschwald
815939e006 Bumped version to 1.12.1 2025-05-05 13:56:32 -07:00
Gregory Oschwald
a5f6f69c0b Check MMDB_get_metadata_as_entry_data_list return value 2025-01-23 15:17:21 -08:00
Gregory Oschwald
5b2d7a721d Bumped version to 1.12.0 2024-11-14 14:43:47 -08:00
Gregory Oschwald
1e66f73ffc Bumped version to 1.11.1 2023-12-01 16:09:23 -08:00
William Storey
6fa8121017 Fix -Wcast-qual warnings 2021-12-21 15:30:29 -08:00
William Storey
4cfb06d41c Fix -Wimplicit-int-conversion warning 2021-12-21 15:25:52 -08:00
William Storey
46ecb53f4b Fix typo 2021-12-06 17:09:38 -08:00
Gregory Oschwald
f7cc1a1472 Bumped version to 1.11.0 2021-10-18 08:45:00 -07:00
Gregory Oschwald
05bfccec48 Use ZEND_THIS instead of getThis()
getThis() calls ZEND_THIS and returns NULL if it is not an object.
We know that it is an object and if a NULL was returned, we'd be
dereferencing NULL.
2021-09-15 07:10:39 -07:00
Gregory Oschwald
569bd44d97 Bumped version to 1.10.1 2021-04-14 10:49:35 -07:00
Gregory Oschwald
07f84d969c Bumped version to 1.10.0 2021-02-09 09:52:47 -08:00
Gregory Oschwald
9ee9ba9ee2 Bumped version to 1.9.0 2021-01-07 13:15:29 -08:00
Jan-E
4bffde00dd [config.w32] make the 'skipping' warning clearer 2020-12-26 14:55:26 +01:00
Jan-E
eb2e004db5 Replace uint by uint32_t 2020-12-26 14:33:57 +01:00
Jan-E
03c7b2f2cc Add config.w32 to package.xml 2020-12-26 14:31:19 +01:00
Jan-E
8441a74dd3 Add config.w32 for building on Windows 2020-12-25 13:21:51 +01:00
Gregory Oschwald
b566d429ac Bumped version to 1.8.0 2020-10-01 10:30:21 -07:00
Remi Collet
90cf75d964 fix for 8.0.0beta3 2020-09-02 12:24:37 -07:00
Gregory Oschwald
942553da23 Bumped version to 1.7.0 2020-08-07 15:10:05 -07:00
Gregory Oschwald
4d0c0a6847 Do not use C++ style comments 2020-07-22 13:06:58 -07:00
Gregory Oschwald
8f9e3b1755 Use named return values in get_record 2020-07-22 12:47:59 -07:00
Gregory Oschwald
7704fb99a0 Format methods by hand for improved readability 2020-07-10 10:33:59 -07:00
Gregory Oschwald
314d13065c Do not bother to look up metadata class
Now that the extension defines the class, we already have the class
entry.
2020-07-08 12:28:21 -07:00
Gregory Oschwald
eefbc7cf07 Use ArgumentCountError where appropriate 2020-07-08 11:59:24 -07:00
Gregory Oschwald
65ee37c34e Add metadata class to extension 2020-07-08 11:59:23 -07:00
Gregory Oschwald
1d6d68ca9b Add type hints where appropriate 2020-07-08 11:58:41 -07:00
Gregory Oschwald
be1f1c0d26 Don't look up extension class when throwing 2020-07-02 15:09:38 -07:00
Gregory Oschwald
424a774a23 Don't rely on pure PHP extension class 2020-07-02 15:02:49 -07:00
Gregory Oschwald
021acbc435 Be more careful about checking return values
Previously we safeguarded against anything too bad from happening by
setting the zval to null (in PHP). However, it is better to just not use
the zval if there was an error and return early.
2020-06-24 12:02:26 -07:00
Gregory Oschwald
baf5634217 Simplify extension code after removing 5.x support 2020-06-24 10:21:23 -07:00
Gregory Oschwald
34fbc79487 Remove extension code for PHP 5.x support 2020-06-24 10:12:05 -07:00
Gregory Oschwald
febd4920bf Bumped version to 1.6.0 2019-12-19 14:59:03 -08:00
Gregory Oschwald
06536828e5 Use ecalloc rather than emalloc 2019-12-18 14:05:51 -08:00
Gregory Oschwald
5b373ae071 Do not create return array if there has been an exception. Closes #96 2019-12-18 14:05:11 -08:00
Gregory Oschwald
f096bbe4d3 Bumped version to 1.5.1 2019-12-12 10:32:55 -08:00
Remi Collet
49809baebf expose MMDB_LIB_VERSION to userland 2019-10-01 07:30:31 -07:00
Gregory Oschwald
bd436094fc Bumped version to 1.5.0 2019-09-30 15:56:38 -07:00
Gregory Oschwald
255fe31e9c Fix incorrect logic in addresses check 2019-09-30 09:34:01 -07:00
Gregory Oschwald
6e807d4fdd Normalize IPv4 prefix lengths 2019-09-27 08:54:12 -07:00
Gregory Oschwald
8f339d0851 Add getWithPrefixLen to C extension
This still needs to normalize the prefix lengths for IPv4 lookups in
IPv6 databases.
2019-09-27 08:54:12 -07:00
Gregory Oschwald
64fdb117df Add clang-format config and script
And remove uncrustify config.
2019-09-26 14:37:34 -07:00
Gregory Oschwald
f0ab0617e4 Format with clang-format 2019-09-26 14:35:29 -07:00
John Boehr
abee159e02 PHP 8 compatibility fixes
- Shim TSRMLS_* constants
- Fix for changes to zend_call_method API (zval -> zend_object)
- Shim for undefined ZEND_ACC_CTOR
2019-05-27 19:45:02 -07:00
Gregory Oschwald
eb83d0ee1c Bumped version to 1.4.1 2019-01-04 11:55:56 -08:00
Gregory Oschwald
04d2fab5e7 Fix extension for large uint32 values on 32 bit machines
This also updates the extension to return an integer for uint64 values that are
less than LONG_MAX.

Closes #79.
2019-01-03 14:19:24 -08:00
Gregory Oschwald
2f1086e389 Bumped version to 1.4.0 2018-11-20 08:04:10 -08:00
Gregory Oschwald
d14b80b392 Merge pull request #73 from remicollet/issue-pkgconfig
retrieve build options from pkg-config
2018-11-07 11:04:40 -08:00
Gregory Oschwald
0bc057f663 Merge pull request #74 from remicollet/issue-phpinfo
add MINFO method, and display both extension and library versions
2018-11-07 10:34:41 -08:00