summaryrefslogtreecommitdiff
path: root/ext/shmop/php_shmop.h
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2020-06-08 17:58:08 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2020-06-24 13:59:29 +0200
commit18f58080dcb07295c09ae2f757691c96a5a312de (patch)
tree1ae4b197ea03e850860d34d3a39735b2f7f2a5a9 /ext/shmop/php_shmop.h
parent19d3e29bf5383b5b71b00727bd9bb5971bbbdce5 (diff)
downloadphp-git-18f58080dcb07295c09ae2f757691c96a5a312de.tar.gz
Convert shmop resources to opaque objects
We make `shmop_close()` a NOP, and deprecate the function right away; detaching from SHM now happens when the wrapper object is freed.
Diffstat (limited to 'ext/shmop/php_shmop.h')
-rw-r--r--ext/shmop/php_shmop.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/ext/shmop/php_shmop.h b/ext/shmop/php_shmop.h
index 659941aa3e..375c53eba8 100644
--- a/ext/shmop/php_shmop.h
+++ b/ext/shmop/php_shmop.h
@@ -32,26 +32,6 @@ PHP_MINFO_FUNCTION(shmop);
# include "win32/ipc.h"
#endif
-struct php_shmop
-{
- int shmid;
- key_t key;
- int shmflg;
- int shmatflg;
- char *addr;
- zend_long size;
-};
-
-typedef struct {
- int le_shmop;
-} php_shmop_globals;
-
-#ifdef ZTS
-#define SHMOPG(v) TSRMG(shmop_globals_id, php_shmop_globals *, v)
-#else
-#define SHMOPG(v) (shmop_globals.v)
-#endif
-
#else
#define phpext_shmop_ptr NULL