Blame SOURCES/uuid-1.6.2-php54.patch

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