Blame SOURCES/uuid-1.6.2-php54.patch

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