Comment 3 for bug 283398

Revision history for this message
Seth.Griffin (sgriffin) wrote :

Hi Andrew,

After digging around in the deb source I found that the entire interface/library is completely changed and the old interface is no longer available. Here is how you do what you are trying to do using php5-dev.

uuid_create(&$uuid);
uuid_make($uuid, UUID_MAKE_V4);
uuid_export($uuid, UUID_FMT_STR, &$uuidstring);
echo trim($uuidstring);

There are more examples at:

http://www.php.net/manual/en/function.uniqid.php#88434

I was confused by this as well, because the pecl package for uuid still uses the old interface. Not sure what the Ubuntu team did here, can someone provide some insight? Is the pecl package out of date?