Why does php5-uuid have different interface than pecl uuid package?
Why does php5-uuid have a different API than the pecl uuid package?
Is the pecl uuid package out of date or did the Ubuntu team re-write the interface for this php module?
Is there a good reason why this is different in Ubuntu than in the pecl repository?
It is my expectation that portions of a programming language and its API will be consistent with the upstream project sources in this case php pecl and not be different based on the operating system I am using. This really breaks portability.
In spite of my above complaints, I really like the thorough interface that is written in php5-uuid.
Here is an example of creating a generation 4 uuid (GUID) and exporting as a string using both packages:
pecl uuid:
echo trim(uuid_
php5-uuid:
uuid_create(
uuid_make($uuid, UUID_MAKE_V4);
uuid_export($uuid, UUID_FMT_STR, &$uuidstring);
echo trim($uuidstring);
See https:/
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- Ubuntu ossp-uuid Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: