Why does php5-uuid have different interface than pecl uuid package?

Asked by Seth.Griffin

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_create(UUID_TYPE_RANDOM));

php5-uuid:

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

See https://bugs.launchpad.net/ubuntu/+source/ossp-uuid/+bug/283398

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu ossp-uuid Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Seth.Griffin (sgriffin) said :
#1

This package creates competition for the binary uuid.so
This package creates competition for the symbol uuid_create

Does anyone else see the value in renaming php5-uuid to php5-ossp-uuid and having the pecl package built as php5-uuid?

Of course all corresponding components (binaries, docs, etc) would have to be renamed.

Revision history for this message
Launchpad Janitor (janitor) said :
#2

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Mikko Rantalainen (mira) said :
#3