diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2007-02-24 16:36:56 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2007-02-24 16:36:56 +0000 |
commit | 0ccf1cf9ce6ac575fbcea70f279548bd2426f3d0 (patch) | |
tree | 74e7fafa7b3a3f0bf297bf557799a83b095e73d1 /ext/shmop | |
parent | f4a8180f653faeb57dc373b667f34d3f2bdc37c2 (diff) | |
download | php-git-0ccf1cf9ce6ac575fbcea70f279548bd2426f3d0.tar.gz |
Only do size check on create operations
Diffstat (limited to 'ext/shmop')
-rw-r--r-- | ext/shmop/shmop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/shmop/shmop.c b/ext/shmop/shmop.c index 645434d787..4fcdfa89da 100644 --- a/ext/shmop/shmop.c +++ b/ext/shmop/shmop.c @@ -169,7 +169,7 @@ PHP_FUNCTION(shmop_open) goto err; } - if (shmop->size < 1) { + if (shmop->shmflg & IPC_CREAT && shmop->size < 1) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Shared memory segment size must be greater then zero."); goto err; } |