summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/shmop/php_shmop.h12
-rw-r--r--ext/shmop/shmop.c55
2 files changed, 37 insertions, 30 deletions
diff --git a/ext/shmop/php_shmop.h b/ext/shmop/php_shmop.h
index fb2a06f503..d54e45e9d3 100644
--- a/ext/shmop/php_shmop.h
+++ b/ext/shmop/php_shmop.h
@@ -36,12 +36,12 @@ PHP_RINIT_FUNCTION(shmop);
PHP_RSHUTDOWN_FUNCTION(shmop);
PHP_MINFO_FUNCTION(shmop);
-PHP_FUNCTION(shm_open);
-PHP_FUNCTION(shm_read);
-PHP_FUNCTION(shm_close);
-PHP_FUNCTION(shm_size);
-PHP_FUNCTION(shm_write);
-PHP_FUNCTION(shm_delete);
+PHP_FUNCTION(shmop_open);
+PHP_FUNCTION(shmop_read);
+PHP_FUNCTION(shmop_close);
+PHP_FUNCTION(shmop_size);
+PHP_FUNCTION(shmop_write);
+PHP_FUNCTION(shmop_delete);
struct php_shmop
{
diff --git a/ext/shmop/shmop.c b/ext/shmop/shmop.c
index f40e524c98..7d892583ba 100644
--- a/ext/shmop/shmop.c
+++ b/ext/shmop/shmop.c
@@ -36,12 +36,19 @@ int shm_type;
/* Every user visible function must have an entry in shmop_functions[].
*/
function_entry shmop_functions[] = {
- PHP_FE(shm_open, NULL)
- PHP_FE(shm_read, NULL)
- PHP_FE(shm_close, NULL)
- PHP_FE(shm_size, NULL)
- PHP_FE(shm_write, NULL)
- PHP_FE(shm_delete, NULL)
+ PHP_FE(shmop_open, NULL)
+ PHP_FE(shmop_read, NULL)
+ PHP_FE(shmop_close, NULL)
+ PHP_FE(shmop_size, NULL)
+ PHP_FE(shmop_write, NULL)
+ PHP_FE(shmop_delete, NULL)
+
+ PHP_FALIAS(shm_open, shmop_open, NULL)
+ PHP_FALIAS(shm_read, shmop_read, NULL)
+ PHP_FALIAS(shm_close, shmop_close, NULL)
+ PHP_FALIAS(shm_size, shmop_size, NULL)
+ PHP_FALIAS(shm_write, shmop_write, NULL)
+ PHP_FALIAS(shm_delete, shmop_delete, NULL)
{NULL, NULL, NULL} /* Must be the last line in shmop_functions[] */
};
@@ -87,9 +94,9 @@ PHP_MINFO_FUNCTION(shmop)
php_info_print_table_end();
}
-/* {{{ proto int shm_open (int key, int flags, int mode, int size)
- shm_open - gets and attaches a shared memory segment */
-PHP_FUNCTION(shm_open)
+/* {{{ proto int shmop_open (int key, int flags, int mode, int size)
+ shmop_open - gets and attaches a shared memory segment */
+PHP_FUNCTION(shmop_open)
{
zval **key, **flags, **mode, **size;
struct php_shmop *shmop;
@@ -154,9 +161,9 @@ PHP_FUNCTION(shm_open)
/* }}} */
-/* {{{ proto string shm_read (int shmid, int start, int count)
- shm_read - reads from a shm segment */
-PHP_FUNCTION(shm_read)
+/* {{{ proto string shmop_read (int shmid, int start, int count)
+ shmop_read - reads from a shm segment */
+PHP_FUNCTION(shmop_read)
{
zval **shmid, **start, **count;
struct php_shmop *shmop;
@@ -206,9 +213,9 @@ PHP_FUNCTION(shm_read)
/* }}} */
-/* {{{ proto void shm_close (int shmid)
- shm_close - closes a shared memory segment */
-PHP_FUNCTION(shm_close)
+/* {{{ proto void shmop_close (int shmid)
+ shmop_close - closes a shared memory segment */
+PHP_FUNCTION(shmop_close)
{
zval **shmid;
struct php_shmop *shmop;
@@ -231,9 +238,9 @@ PHP_FUNCTION(shm_close)
/* }}} */
-/* {{{ proto int shm_size (int shmid)
- shm_size - returns the shm size */
-PHP_FUNCTION(shm_size)
+/* {{{ proto int shmop_size (int shmid)
+ shmop_size - returns the shm size */
+PHP_FUNCTION(shmop_size)
{
zval **shmid;
struct php_shmop *shmop;
@@ -257,9 +264,9 @@ PHP_FUNCTION(shm_size)
/* }}} */
-/* {{{ proto int shm_write (int shmid, string data, int offset)
- shm_write - writes to a shared memory segment */
-PHP_FUNCTION(shm_write)
+/* {{{ proto int shmop_write (int shmid, string data, int offset)
+ shmop_write - writes to a shared memory segment */
+PHP_FUNCTION(shmop_write)
{
zval **shmid, **data, **offset;
struct php_shmop *shmop;
@@ -294,9 +301,9 @@ PHP_FUNCTION(shm_write)
/* }}} */
-/* {{{ proto bool shm_delete (int shmid)
- shm_delete - mark segment for deletion */
-PHP_FUNCTION(shm_delete)
+/* {{{ proto bool shmop_delete (int shmid)
+ shmop_delete - mark segment for deletion */
+PHP_FUNCTION(shmop_delete)
{
zval **shmid;
struct php_shmop *shmop;