We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b385e0d commit 158181fCopy full SHA for 158181f
ext/pcntl/pcntl.c
@@ -956,6 +956,7 @@ PHP_FUNCTION(pcntl_sigprocmask)
956
RETURN_THROWS();
957
}
958
959
+ zend_hash_real_init_packed(Z_ARRVAL_P(user_old_set));
960
for (unsigned int signal_no = 1; signal_no < PCNTL_G(num_signals); ++signal_no) {
961
if (sigismember(&old_set, signal_no) != 1) {
962
continue;
@@ -1680,6 +1681,7 @@ PHP_FUNCTION(pcntl_getcpuaffinity)
1680
1681
1682
zend_ulong maxcpus = (zend_ulong)sysconf(_SC_NPROCESSORS_CONF);
1683
array_init(return_value);
1684
+ zend_hash_real_init_packed(Z_ARRVAL_P(return_value));
1685
1686
for (zend_ulong i = 0; i < maxcpus; i ++) {
1687
if (PCNTL_CPU_ISSET(i, mask)) {
0 commit comments