Cannot generate UUID
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Debian |
New
|
Undecided
|
Unassigned | ||
ossp-uuid (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: php5-uuid
The create_uuid() function in the php5 extension simply is not working. There are no docs to ensure that I am calling it right either
I am having the same issue as the poster at:
http://
Things I have tried:
php -r 'if(!extension_
Warning: uuid_create() expects exactly 1 parameter, 0 given in Command line code on line 1
1
php -r 'if(!extension_
Warning: uuid_create(): uuid_create: parameter wasn't passed by reference in Command line code on line 1
1
php -r 'if(!extension_
0
php -r 'if(!extension_
0 Resource id #4
php -r 'if(!extension_
0 Resource id #4
Ubuntu Hardy
php5-uuid 1.5.1-1.1ubuntu1
I can confirm from working code that I have that the normal use looks like this:
uuid_create( UUID_TYPE_ RANDOM) ;
That would create a random uuid.
This is simply broken in ubuntu. I have always had to install the package using pecl
sudo pecl install uuid
Note that you need uuid-dev, php-dev and php-pear to do this.
Still, this needs to be fixed in ubuntu.