Skip to content

Commit 62d5269

Browse files
committed
Suppress zend_signals warnings
When running the tests in a debug build, I started seeing the following error: ``` Warning: zend_signal: handler was replaced for signal (X) after startup in Unknown on line 0 ``` At the time of writing, I have no clue what is causing the issue, but I started looking at the PDO Firebird driver and this issue was fixed there as well. See: php/php-src@a9253b0 This patch does the exact same thing.
1 parent c5780ef commit 62d5269

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

interbase.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -759,6 +759,11 @@ PHP_MINIT_FUNCTION(ibase)
759759
php_ibase_events_minit(INIT_FUNC_ARGS_PASSTHRU);
760760
php_ibase_service_minit(INIT_FUNC_ARGS_PASSTHRU);
761761

762+
#ifdef ZEND_SIGNALS
763+
// firebird replaces some signals at runtime, suppress warnings.
764+
SIGG(check) = 0;
765+
#endif
766+
762767
return SUCCESS;
763768
}
764769

0 commit comments

Comments
 (0)