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 <[EMAIL PROTECTED]>                         |
    +----------------------------------------------------------------------+
  */
-/* $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;
        }

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to