Skip to content

Commit

Permalink
Removed shmop test leaking an shm segment
Browse files Browse the repository at this point in the history
  • Loading branch information
mbeccati committed Mar 30, 2016
1 parent ed06d13 commit 3bfe1c5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 33 deletions.
1 change: 1 addition & 0 deletions ext/shmop/shmop.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
33 changes: 0 additions & 33 deletions ext/shmop/tests/003.phpt

This file was deleted.

0 comments on commit 3bfe1c5

Please sign in to comment.