Skip to content

Commit d7c886d

Browse files
committed
Don't expose php_shmop type
1 parent c5d3c9e commit d7c886d

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

ext/shmop/php_shmop.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,6 @@ PHP_MINFO_FUNCTION(shmop);
3232
# include "win32/ipc.h"
3333
#endif
3434

35-
typedef struct php_shmop
36-
{
37-
int shmid;
38-
key_t key;
39-
int shmflg;
40-
int shmatflg;
41-
char *addr;
42-
zend_long size;
43-
zend_object std;
44-
} php_shmop;
45-
4635
#else
4736

4837
#define phpext_shmop_ptr NULL

ext/shmop/shmop.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,17 @@ zend_module_entry shmop_module_entry = {
5959
ZEND_GET_MODULE(shmop)
6060
#endif
6161

62+
typedef struct php_shmop
63+
{
64+
int shmid;
65+
key_t key;
66+
int shmflg;
67+
int shmatflg;
68+
char *addr;
69+
zend_long size;
70+
zend_object std;
71+
} php_shmop;
72+
6273
zend_class_entry *shmop_ce;
6374
static zend_object_handlers shmop_object_handlers;
6475

0 commit comments

Comments
 (0)