From: Matteo Beccati Date: Wed, 30 Mar 2016 08:00:28 +0000 (+0200) Subject: Removed shmop test leaking an shm segment X-Git-Tag: php-7.0.6RC1~49^2~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3bfe1c55ae72f6f2c1cccc641e46f26114376ecd;p=php Removed shmop test leaking an shm segment --- diff --git a/ext/shmop/shmop.c b/ext/shmop/shmop.c index 4fe65ae37d..d647790aa0 100644 --- a/ext/shmop/shmop.c +++ b/ext/shmop/shmop.c @@ -203,6 +203,7 @@ PHP_FUNCTION(shmop_open) } if (shmctl(shmop->shmid, IPC_STAT, &shm)) { + /* please do not add coverage here: the segment would be leaked and impossible to delete via php */ php_error_docref(NULL, E_WARNING, "unable to get shared memory segment information '%s'", strerror(errno)); goto err; } diff --git a/ext/shmop/tests/003.phpt b/ext/shmop/tests/003.phpt deleted file mode 100644 index 1c154f08ca..0000000000 --- a/ext/shmop/tests/003.phpt +++ /dev/null @@ -1,33 +0,0 @@ ---TEST-- -shmop extension error messages (non-root) ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -## shmop_open function tests ## - -Warning: shmop_open(): unable to get shared memory segment information 'Permission denied' in %s on line %d -bool(false)