File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -266,7 +266,7 @@ PHP_FUNCTION(sem_get)
266
266
/* }}} */
267
267
268
268
/* {{{ php_sysvsem_semop */
269
- static void php_sysvsem_semop (INTERNAL_FUNCTION_PARAMETERS , int acquire )
269
+ static void php_sysvsem_semop (INTERNAL_FUNCTION_PARAMETERS , bool acquire )
270
270
{
271
271
zval * arg_id ;
272
272
bool nowait = 0 ;
@@ -311,14 +311,14 @@ static void php_sysvsem_semop(INTERNAL_FUNCTION_PARAMETERS, int acquire)
311
311
/* {{{ Acquires the semaphore with the given id, blocking if necessary */
312
312
PHP_FUNCTION (sem_acquire )
313
313
{
314
- php_sysvsem_semop (INTERNAL_FUNCTION_PARAM_PASSTHRU , 1 );
314
+ php_sysvsem_semop (INTERNAL_FUNCTION_PARAM_PASSTHRU , true );
315
315
}
316
316
/* }}} */
317
317
318
318
/* {{{ Releases the semaphore with the given id */
319
319
PHP_FUNCTION (sem_release )
320
320
{
321
- php_sysvsem_semop (INTERNAL_FUNCTION_PARAM_PASSTHRU , 0 );
321
+ php_sysvsem_semop (INTERNAL_FUNCTION_PARAM_PASSTHRU , false );
322
322
}
323
323
/* }}} */
324
324
You can’t perform that action at this time.
0 commit comments