a7754c
diff -up uuid-1.6.2/php/uuid.c.php54 uuid-1.6.2/php/uuid.c
a7754c
--- uuid-1.6.2/php/uuid.c.php54	2007-01-01 19:35:57.000000000 +0100
a7754c
+++ uuid-1.6.2/php/uuid.c	2012-11-06 16:05:03.354913764 +0100
a7754c
@@ -60,7 +60,7 @@ static int ctx_id;               /* inte
a7754c
 #define ctx_name "UUID context"  /* external name   */
a7754c
 
a7754c
 /* module initialization */
a7754c
-PHP_MINIT_FUNCTION(uuid)
a7754c
+ZEND_MINIT_FUNCTION(uuid)
a7754c
 {
a7754c
     /* register resource identifier */
a7754c
     ctx_id = zend_register_list_destructors_ex(
a7754c
@@ -91,13 +91,13 @@ PHP_MINIT_FUNCTION(uuid)
a7754c
 }
a7754c
 
a7754c
 /* module shutdown */
a7754c
-PHP_MSHUTDOWN_FUNCTION(uuid)
a7754c
+ZEND_MSHUTDOWN_FUNCTION(uuid)
a7754c
 {
a7754c
     return SUCCESS;
a7754c
 }
a7754c
 
a7754c
 /* module information */
a7754c
-PHP_MINFO_FUNCTION(uuid)
a7754c
+ZEND_MINFO_FUNCTION(uuid)
a7754c
 {
a7754c
     char version[32];
a7754c
 
a7754c
@@ -115,7 +115,7 @@ PHP_MINFO_FUNCTION(uuid)
a7754c
    proto rc uuid_create(ctx)
a7754c
    $rc = uuid_create(&$uuid);
a7754c
    create UUID context */
a7754c
-PHP_FUNCTION(uuid_create)
a7754c
+ZEND_FUNCTION(uuid_create)
a7754c
 {
a7754c
     zval *z_ctx;
a7754c
     ctx_t *ctx;
a7754c
@@ -147,7 +147,7 @@ PHP_FUNCTION(uuid_create)
a7754c
    proto rc uuid_destroy(ctx)
a7754c
    $rc = uuid_destroy($uuid);
a7754c
    destroy UUID context */
a7754c
-PHP_FUNCTION(uuid_destroy)
a7754c
+ZEND_FUNCTION(uuid_destroy)
a7754c
 {
a7754c
     zval *z_ctx;
a7754c
     ctx_t *ctx;
a7754c
@@ -178,7 +178,7 @@ PHP_FUNCTION(uuid_destroy)
a7754c
    proto rc uuid_clone(ctx, &ctx2)
a7754c
    $rc = uuid_clone($uuid, &$uuid);
a7754c
    clone UUID context */
a7754c
-PHP_FUNCTION(uuid_clone)
a7754c
+ZEND_FUNCTION(uuid_clone)
a7754c
 {
a7754c
     zval *z_ctx;
a7754c
     ctx_t *ctx;
a7754c
@@ -217,7 +217,7 @@ PHP_FUNCTION(uuid_clone)
a7754c
    proto rc uuid_load(ctx, name)
a7754c
    $rc = uuid_name($uuid, $name);
a7754c
    load an existing UUID */
a7754c
-PHP_FUNCTION(uuid_load)
a7754c
+ZEND_FUNCTION(uuid_load)
a7754c
 {
a7754c
     zval *z_ctx;
a7754c
     ctx_t *ctx;
a7754c
@@ -249,7 +249,7 @@ PHP_FUNCTION(uuid_load)
a7754c
    proto rc uuid_make(ctx, mode[, ..., ...])
a7754c
    $rc = uuid_make($uuid, $mode[, ..., ...]);
a7754c
    make a new UUID */
a7754c
-PHP_FUNCTION(uuid_make)
a7754c
+ZEND_FUNCTION(uuid_make)
a7754c
 {
a7754c
     zval *z_ctx;
a7754c
     ctx_t *ctx;
a7754c
@@ -307,7 +307,7 @@ PHP_FUNCTION(uuid_make)
a7754c
    proto rc uuid_isnil(ctx, result)
a7754c
    $rc = uuid_isnil($uuid, &$result);
a7754c
    compare UUID for being Nil UUID */
a7754c
-PHP_FUNCTION(uuid_isnil)
a7754c
+ZEND_FUNCTION(uuid_isnil)
a7754c
 {
a7754c
     zval *z_ctx;
a7754c
     ctx_t *ctx;
a7754c
@@ -344,7 +344,7 @@ PHP_FUNCTION(uuid_isnil)
a7754c
    proto rc uuid_compare(ctx, ctx2, result)
a7754c
    $rc = uuid_compare($uuid, $uuid2, &$result);
a7754c
    compare two UUIDs */
a7754c
-PHP_FUNCTION(uuid_compare)
a7754c
+ZEND_FUNCTION(uuid_compare)
a7754c
 {
a7754c
     zval *z_ctx;
a7754c
     ctx_t *ctx;
a7754c
@@ -388,7 +388,7 @@ PHP_FUNCTION(uuid_compare)
a7754c
    proto rc uuid_import(ctx, fmt, data)
a7754c
    $rc = uuid_import($ctx, $fmt, $data);
a7754c
    import UUID from variable */
a7754c
-PHP_FUNCTION(uuid_import)
a7754c
+ZEND_FUNCTION(uuid_import)
a7754c
 {
a7754c
     zval *z_ctx;
a7754c
     ctx_t *ctx;
a7754c
@@ -424,7 +424,7 @@ PHP_FUNCTION(uuid_import)
a7754c
    proto rc uuid_export(ctx, fmt, data)
a7754c
    $rc = uuid_error($ctx, $fmt, &$data);
a7754c
    export UUID into variable */
a7754c
-PHP_FUNCTION(uuid_export)
a7754c
+ZEND_FUNCTION(uuid_export)
a7754c
 {
a7754c
     zval *z_ctx;
a7754c
     ctx_t *ctx;
a7754c
@@ -472,7 +472,7 @@ PHP_FUNCTION(uuid_export)
a7754c
    proto rc uuid_error(ctx)
a7754c
    $error = uuid_error($rc);
a7754c
    return error string corresponding to error return code */
a7754c
-PHP_FUNCTION(uuid_error)
a7754c
+ZEND_FUNCTION(uuid_error)
a7754c
 {
a7754c
     int z_rc;
a7754c
     uuid_rc_t rc;
a7754c
@@ -490,24 +490,79 @@ PHP_FUNCTION(uuid_error)
a7754c
    proto int uuid_version()
a7754c
    $version = uuid_version();
a7754c
    return library version number */
a7754c
-PHP_FUNCTION(uuid_version)
a7754c
+ZEND_FUNCTION(uuid_version)
a7754c
 {
a7754c
     RETURN_LONG((long)uuid_version());
a7754c
 }
a7754c
 
a7754c
+ZEND_BEGIN_ARG_INFO(arginfo_uuid_create, 0)
a7754c
+    ZEND_ARG_INFO(1, ctx)
a7754c
+ZEND_END_ARG_INFO()
a7754c
+
a7754c
+ZEND_BEGIN_ARG_INFO(arginfo_uuid_destroy, 0)
a7754c
+    ZEND_ARG_INFO(0, ctx)
a7754c
+ZEND_END_ARG_INFO()
a7754c
+
a7754c
+ZEND_BEGIN_ARG_INFO(arginfo_uuid_clone, 0)
a7754c
+    ZEND_ARG_INFO(0, ctx)
a7754c
+    ZEND_ARG_INFO(1, ctx2)
a7754c
+ZEND_END_ARG_INFO()
a7754c
+
a7754c
+ZEND_BEGIN_ARG_INFO(arginfo_uuid_load, 0)
a7754c
+    ZEND_ARG_INFO(0, ctx)
a7754c
+    ZEND_ARG_INFO(0, name)
a7754c
+ZEND_END_ARG_INFO()
a7754c
+
a7754c
+ZEND_BEGIN_ARG_INFO_EX(arginfo_uuid_make, 0, 0, 2)
a7754c
+    ZEND_ARG_INFO(0, ctx)
a7754c
+    ZEND_ARG_INFO(0, mode)
a7754c
+    ZEND_ARG_INFO(0, ctxns)
a7754c
+    ZEND_ARG_INFO(0, url)
a7754c
+ZEND_END_ARG_INFO()
a7754c
+
a7754c
+ZEND_BEGIN_ARG_INFO(arginfo_uuid_isnil, 0)
a7754c
+    ZEND_ARG_INFO(0, ctx)
a7754c
+    ZEND_ARG_INFO(1, result)
a7754c
+ZEND_END_ARG_INFO()
a7754c
+
a7754c
+ZEND_BEGIN_ARG_INFO(arginfo_uuid_compare, 0)
a7754c
+    ZEND_ARG_INFO(0, ctx)
a7754c
+    ZEND_ARG_INFO(0, ctx2)
a7754c
+    ZEND_ARG_INFO(1, result)
a7754c
+ZEND_END_ARG_INFO()
a7754c
+
a7754c
+ZEND_BEGIN_ARG_INFO(arginfo_uuid_import, 0)
a7754c
+    ZEND_ARG_INFO(0, ctx)
a7754c
+    ZEND_ARG_INFO(0, fmt)
a7754c
+    ZEND_ARG_INFO(0, data)
a7754c
+ZEND_END_ARG_INFO()
a7754c
+
a7754c
+ZEND_BEGIN_ARG_INFO(arginfo_uuid_export, 0)
a7754c
+    ZEND_ARG_INFO(0, ctx)
a7754c
+    ZEND_ARG_INFO(0, fmt)
a7754c
+    ZEND_ARG_INFO(1, data)
a7754c
+ZEND_END_ARG_INFO()
a7754c
+
a7754c
+ZEND_BEGIN_ARG_INFO(arginfo_uuid_error, 0)
a7754c
+    ZEND_ARG_INFO(0, ctx)
a7754c
+ZEND_END_ARG_INFO()
a7754c
+
a7754c
+ZEND_BEGIN_ARG_INFO(arginfo_uuid_version, 0)
a7754c
+ZEND_END_ARG_INFO()
a7754c
+
a7754c
 /* module function table */
a7754c
-static function_entry uuid_functions[] = {
a7754c
-    PHP_FE(uuid_create,  NULL)
a7754c
-    PHP_FE(uuid_destroy, NULL)
a7754c
-    PHP_FE(uuid_clone,   NULL)
a7754c
-    PHP_FE(uuid_load,    NULL)
a7754c
-    PHP_FE(uuid_make,    NULL)
a7754c
-    PHP_FE(uuid_isnil,   NULL)
a7754c
-    PHP_FE(uuid_compare, NULL)
a7754c
-    PHP_FE(uuid_import,  NULL)
a7754c
-    PHP_FE(uuid_export,  NULL)
a7754c
-    PHP_FE(uuid_error,   NULL)
a7754c
-    PHP_FE(uuid_version, NULL)
a7754c
+static zend_function_entry uuid_functions[] = {
a7754c
+    ZEND_FE(uuid_create,  arginfo_uuid_create)
a7754c
+    ZEND_FE(uuid_destroy, NULL)
a7754c
+    ZEND_FE(uuid_clone,   arginfo_uuid_clone)
a7754c
+    ZEND_FE(uuid_load,    NULL)
a7754c
+    ZEND_FE(uuid_make,    NULL)
a7754c
+    ZEND_FE(uuid_isnil,   arginfo_uuid_isnil)
a7754c
+    ZEND_FE(uuid_compare, arginfo_uuid_compare)
a7754c
+    ZEND_FE(uuid_import,  NULL)
a7754c
+    ZEND_FE(uuid_export,  arginfo_uuid_export)
a7754c
+    ZEND_FE(uuid_error,   NULL)
a7754c
+    ZEND_FE(uuid_version, NULL)
a7754c
     { NULL, NULL, NULL }
a7754c
 };
a7754c
 
a7754c
@@ -516,11 +571,11 @@ zend_module_entry uuid_module_entry = {
a7754c
     STANDARD_MODULE_HEADER,
a7754c
     "uuid",
a7754c
     uuid_functions,
a7754c
-    PHP_MINIT(uuid),
a7754c
-    PHP_MSHUTDOWN(uuid),
a7754c
+    ZEND_MINIT(uuid),
a7754c
+    ZEND_MSHUTDOWN(uuid),
a7754c
     NULL,
a7754c
     NULL,
a7754c
-    PHP_MINFO(uuid),
a7754c
+    ZEND_MINFO(uuid),
a7754c
     NO_VERSION_YET,
a7754c
     STANDARD_MODULE_PROPERTIES
a7754c
 };