cvs: php-src(PHP_5_2) /ext/shmop shmop.c

From: Date: Sat, 24 Feb 2007 16:36:57 +0000
Subject: cvs: php-src(PHP_5_2) /ext/shmop shmop.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-43257@lists.php.net to get a copy of this message
iliaa Sat Feb 24 16:36:57 2007 UTC Modified files: (Branch: PHP_5_2) /php-src/ext/shmop shmop.c Log: Only do size check on create operations http://cvs.php.net/viewvc.cgi/php-src/ext/shmop/shmop.c?r1=1.31.2.2.2.4&r2=1.31.2.2.2.5&diff_format=u Index: php-src/ext/shmop/shmop.c diff -u php-src/ext/shmop/shmop.c:1.31.2.2.2.4 php-src/ext/shmop/shmop.c:1.31.2.2.2.5 --- php-src/ext/shmop/shmop.c:1.31.2.2.2.4 Sat Feb 24 15:50:54 2007 +++ php-src/ext/shmop/shmop.c Sat Feb 24 16:36:56 2007 @@ -16,7 +16,7 @@ | Ilia Alshanetsky <ilia@prohost.org> | +----------------------------------------------------------------------+ */ -/* $Id: shmop.c,v 1.31.2.2.2.4 2007/02/24 15:50:54 iliaa Exp $ */ +/* $Id: shmop.c,v 1.31.2.2.2.5 2007/02/24 16:36:56 iliaa Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -169,7 +169,7 @@ 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; }

« previous php.cvs (#43257) next »