Skip to content

Commit fec6479

Browse files
committed
PHPC-1166: Remove inline hint to fix linking issues on Windows
1 parent a795ca4 commit fec6479

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

phongo_compat.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ void phongo_add_exception_prop(const char* prop, int prop_len, zval* value TSRML
3333
}
3434

3535
#ifdef ZEND_HASH_GET_APPLY_COUNT /* PHP 7.2 or earlier recursion protection */
36-
inline zend_bool php_phongo_zend_hash_apply_protection_begin(HashTable* ht)
36+
zend_bool php_phongo_zend_hash_apply_protection_begin(HashTable* ht)
3737
{
3838
if (!ht) {
3939
return 1;
@@ -47,7 +47,7 @@ inline zend_bool php_phongo_zend_hash_apply_protection_begin(HashTable* ht)
4747
return 1;
4848
}
4949

50-
inline zend_bool php_phongo_zend_hash_apply_protection_end(HashTable* ht)
50+
zend_bool php_phongo_zend_hash_apply_protection_end(HashTable* ht)
5151
{
5252
if (!ht) {
5353
return 1;
@@ -61,7 +61,7 @@ inline zend_bool php_phongo_zend_hash_apply_protection_end(HashTable* ht)
6161
return 1;
6262
}
6363
#else /* PHP 7.3 or later */
64-
inline zend_bool php_phongo_zend_hash_apply_protection_begin(zend_array* ht)
64+
zend_bool php_phongo_zend_hash_apply_protection_begin(zend_array* ht)
6565
{
6666
if (GC_IS_RECURSIVE(ht)) {
6767
return 0;
@@ -72,7 +72,7 @@ inline zend_bool php_phongo_zend_hash_apply_protection_begin(zend_array* ht)
7272
return 1;
7373
}
7474

75-
inline zend_bool php_phongo_zend_hash_apply_protection_end(zend_array* ht)
75+
zend_bool php_phongo_zend_hash_apply_protection_end(zend_array* ht)
7676
{
7777
if (!GC_IS_RECURSIVE(ht)) {
7878
return 0;

0 commit comments

Comments
 (0)