mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
fix typos in error messages & resource name
This commit is contained in:
parent
56025c6a1a
commit
5aa42a202a
@ -304,7 +304,7 @@ static void php_sysvsem_semop(INTERNAL_FUNCTION_PARAMETERS, int acquire)
|
||||
break;
|
||||
}
|
||||
|
||||
ZEND_FETCH_RESOURCE(sem_ptr, sysvsem_sem *, arg_id, -1, "SysV semphore", php_sysvsem_module.le_sem);
|
||||
ZEND_FETCH_RESOURCE(sem_ptr, sysvsem_sem *, arg_id, -1, "SysV semaphore", php_sysvsem_module.le_sem);
|
||||
|
||||
if (!acquire && sem_ptr->count == 0) {
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "SysV semaphore %ld (key 0x%x) is not currently acquired", Z_LVAL_PP(arg_id), sem_ptr->key);
|
||||
@ -364,7 +364,7 @@ PHP_FUNCTION(sem_remove)
|
||||
WRONG_PARAM_COUNT;
|
||||
}
|
||||
|
||||
ZEND_FETCH_RESOURCE(sem_ptr, sysvsem_sem *, arg_id, -1, "SysV semphore", php_sysvsem_module.le_sem);
|
||||
ZEND_FETCH_RESOURCE(sem_ptr, sysvsem_sem *, arg_id, -1, "SysV semaphore", php_sysvsem_module.le_sem);
|
||||
|
||||
#if HAVE_SEMUN
|
||||
un.buf = &buf;
|
||||
@ -372,7 +372,7 @@ PHP_FUNCTION(sem_remove)
|
||||
#else
|
||||
if (semctl(sem_ptr->semid, 0, IPC_STAT, NULL) < 0) {
|
||||
#endif
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "SysV semphore %ld does not (any longer) exist", Z_LVAL_PP(arg_id));
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "SysV semaphore %ld does not (any longer) exist", Z_LVAL_PP(arg_id));
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user