@@ -51,7 +51,7 @@ static void php_parallel_copy_string_free(zval *zv) {
5151 free (Z_PTR_P (zv ));
5252}
5353
54- static zend_always_inline zend_string * php_parallel_copy_string_ex (zend_string * source , zend_bool persistent ) {
54+ static zend_always_inline zend_string * php_parallel_copy_string_ex (zend_string * source , bool persistent ) {
5555 zend_string * dest = zend_string_alloc (ZSTR_LEN (source ), persistent );
5656
5757 memcpy (ZSTR_VAL (dest ),
@@ -89,7 +89,7 @@ zend_string* php_parallel_copy_string_interned(zend_string *source) {
8989 return dest ;
9090}
9191
92- static zend_always_inline void php_parallel_copy_string_dtor (zend_string * source , zend_bool persistent ) {
92+ static zend_always_inline void php_parallel_copy_string_dtor (zend_string * source , bool persistent ) {
9393 if (ZSTR_IS_INTERNED (source )) {
9494 return ;
9595 }
@@ -99,15 +99,15 @@ static zend_always_inline void php_parallel_copy_string_dtor(zend_string *source
9999 }
100100}
101101
102- static zend_always_inline zend_string * php_parallel_copy_string_ctor (zend_string * source , zend_bool persistent ) {
102+ static zend_always_inline zend_string * php_parallel_copy_string_ctor (zend_string * source , bool persistent ) {
103103 if (ZSTR_IS_INTERNED (source )) {
104104 return php_parallel_copy_string_interned (source );
105105 }
106106
107107 return php_parallel_copy_string_ex (source , persistent );
108108}
109109
110- zend_string * php_parallel_copy_string (zend_string * source , zend_bool persistent ) {
110+ zend_string * php_parallel_copy_string (zend_string * source , bool persistent ) {
111111 return php_parallel_copy_string_ctor (source , persistent );
112112}
113113
@@ -151,7 +151,7 @@ zend_class_entry* php_parallel_copy_scope(zend_class_entry *class) {
151151 return zend_hash_index_update_ptr (& PCG (scope ), (zend_ulong ) class , scope );
152152}
153153
154- static zend_always_inline zend_long php_parallel_copy_resource_ctor (zend_resource * source , zend_bool persistent ) {
154+ static zend_always_inline zend_long php_parallel_copy_resource_ctor (zend_resource * source , bool persistent ) {
155155#ifndef _WIN32
156156 if (source -> type == php_file_le_stream () ||
157157 source -> type == php_file_le_pstream ()) {
@@ -357,7 +357,7 @@ static zend_string* php_parallel_copy_string_persistent(zend_string *string) {
357357 return php_parallel_copy_string_ctor (string , 1 );
358358}
359359
360- HashTable * php_parallel_copy_hash_ctor (HashTable * source , zend_bool persistent ) {
360+ HashTable * php_parallel_copy_hash_ctor (HashTable * source , bool persistent ) {
361361 if (persistent ) {
362362 return php_parallel_copy_hash_persistent_inline (
363363 source ,
@@ -375,7 +375,7 @@ HashTable *php_parallel_copy_hash_persistent(HashTable *source,
375375 php_parallel_copy_memory_func );
376376}
377377
378- void php_parallel_copy_hash_dtor (HashTable * table , zend_bool persistent ) {
378+ void php_parallel_copy_hash_dtor (HashTable * table , bool persistent ) {
379379 // see https://github.com/krakjoe/parallel/issues/306#issuecomment-2414687880
380380 // TODO: needs fixing
381381 if (GC_DELREF (table ) == (persistent ? 1 : 0 )) {
@@ -531,15 +531,15 @@ static zend_always_inline zend_object* php_parallel_copy_closure_thread(zend_obj
531531 return & copy -> std ;
532532}
533533
534- static zend_always_inline zend_object * php_parallel_copy_closure_ctor (zend_object * source , zend_bool persistent ) {
534+ static zend_always_inline zend_object * php_parallel_copy_closure_ctor (zend_object * source , bool persistent ) {
535535 if (persistent ) {
536536 return php_parallel_copy_closure_persistent (source );
537537 }
538538
539539 return php_parallel_copy_closure_thread (source );
540540}
541541
542- static zend_always_inline void php_parallel_copy_closure_dtor (zend_object * source , zend_bool persistent ) {
542+ static zend_always_inline void php_parallel_copy_closure_dtor (zend_object * source , bool persistent ) {
543543 zend_closure_t * closure ;
544544
545545 if (!persistent ) {
@@ -584,14 +584,14 @@ static zend_always_inline zend_reference* php_parallel_copy_reference_thread(zen
584584 return reference ;
585585}
586586
587- static zend_always_inline zend_reference * php_parallel_copy_reference_ctor (zend_reference * source , zend_bool persistent ) {
587+ static zend_always_inline zend_reference * php_parallel_copy_reference_ctor (zend_reference * source , bool persistent ) {
588588 if (persistent ) {
589589 return php_parallel_copy_reference_persistent (source );
590590 }
591591 return php_parallel_copy_reference_thread (source );
592592}
593593
594- static zend_always_inline void php_parallel_copy_reference_dtor (zend_reference * source , zend_bool persistent ) {
594+ static zend_always_inline void php_parallel_copy_reference_dtor (zend_reference * source , bool persistent ) {
595595 if (GC_DELREF (source ) == 0 ) {
596596 PARALLEL_ZVAL_DTOR (
597597 & source -> val );
@@ -637,14 +637,14 @@ static zend_always_inline zend_object* php_parallel_copy_channel_thread(zend_obj
637637 return & dest -> std ;
638638}
639639
640- static zend_always_inline zend_object * php_parallel_copy_channel_ctor (zend_object * source , zend_bool persistent ) {
640+ static zend_always_inline zend_object * php_parallel_copy_channel_ctor (zend_object * source , bool persistent ) {
641641 if (persistent ) {
642642 return php_parallel_copy_channel_persistent (source );
643643 }
644644 return php_parallel_copy_channel_thread (source );
645645}
646646
647- static zend_always_inline void php_parallel_copy_channel_dtor (zend_object * source , zend_bool persistent ) {
647+ static zend_always_inline void php_parallel_copy_channel_dtor (zend_object * source , bool persistent ) {
648648 php_parallel_channel_t * channel = php_parallel_channel_fetch (source );
649649
650650 if (!persistent ) {
@@ -696,14 +696,14 @@ static zend_always_inline zend_object* php_parallel_copy_sync_thread(zend_object
696696 return & dest -> std ;
697697}
698698
699- static zend_always_inline zend_object * php_parallel_copy_sync_ctor (zend_object * source , zend_bool persistent ) {
699+ static zend_always_inline zend_object * php_parallel_copy_sync_ctor (zend_object * source , bool persistent ) {
700700 if (persistent ) {
701701 return php_parallel_copy_sync_persistent (source );
702702 }
703703 return php_parallel_copy_sync_thread (source );
704704}
705705
706- static zend_always_inline void php_parallel_copy_sync_dtor (zend_object * source , zend_bool persistent ) {
706+ static zend_always_inline void php_parallel_copy_sync_dtor (zend_object * source , bool persistent ) {
707707 php_parallel_sync_object_t * object = php_parallel_sync_object_fetch (source );
708708
709709 if (!persistent ) {
@@ -831,7 +831,7 @@ static zend_always_inline zend_object* php_parallel_copy_object_thread(zend_obje
831831 return dest ;
832832}
833833
834- static zend_always_inline zend_object * php_parallel_copy_object_ctor (zend_object * source , zend_bool persistent ) {
834+ static zend_always_inline zend_object * php_parallel_copy_object_ctor (zend_object * source , bool persistent ) {
835835 if (source -> ce == zend_ce_closure ) {
836836 return php_parallel_copy_closure_ctor (source , persistent );
837837 }
@@ -851,7 +851,7 @@ static zend_always_inline zend_object* php_parallel_copy_object_ctor(zend_object
851851 return php_parallel_copy_object_thread (source );
852852}
853853
854- static zend_always_inline void php_parallel_copy_object_dtor (zend_object * source , zend_bool persistent ) {
854+ static zend_always_inline void php_parallel_copy_object_dtor (zend_object * source , bool persistent ) {
855855 if (source -> ce == zend_ce_closure ) {
856856 php_parallel_copy_closure_dtor (source , persistent );
857857 return ;
@@ -891,7 +891,7 @@ static zend_always_inline void php_parallel_copy_object_dtor(zend_object *source
891891 }
892892}
893893
894- void php_parallel_copy_zval_ctor (zval * dest , zval * source , zend_bool persistent ) {
894+ void php_parallel_copy_zval_ctor (zval * dest , zval * source , bool persistent ) {
895895 switch (Z_TYPE_P (source )) {
896896 case IS_NULL :
897897 case IS_TRUE :
@@ -985,7 +985,7 @@ static void php_parallel_copy_zval_persistent(
985985 }
986986}
987987
988- zend_function * php_parallel_copy_function (const zend_function * function , zend_bool persistent ) {
988+ zend_function * php_parallel_copy_function (const zend_function * function , bool persistent ) {
989989 if (persistent ) {
990990 function =
991991 php_parallel_cache_function (function );
0 commit comments