php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #80557 UUID feature detection fails
Submitted: 2020-12-27 20:14 UTC Modified: -
Votes:3
Avg. Score:4.3 ± 0.9
Reproduced:3 of 3 (100.0%)
Same Version:1 (33.3%)
Same OS:2 (66.7%)
From: me at derrabus dot de Assigned:
Status: Open Package: uuid (PECL)
PHP Version: 8.0.0 OS: macOS 11.1
Private report: No CVE-ID: None
 [2020-12-27 20:14 UTC] me at derrabus dot de
Description:
------------
I have a macOS system with php 8.0.0 and util-linux 2.36.1 installed via Homebrew. Although the util-linux implementation of libuuid provides the functions uuid_type, uuid_variant, uuid_generate_md5 and uuid_generate_sha1, the UUID extensions is compiled without those functions.

If I remove all HAVE_UUID_* checks from the codebase and recompile the extension, the functions are included and work as expected.

Test script:
---------------
phpize
./configure --with-uuid=/usr/local/opt/util-linux

Expected result:
----------------
The UUID extension is compiled with all uuid_* functions.

Actual result:
--------------
checking for uuid/uuid.h... yes
checking for uuid_type in -luuid... no
checking for __uuid_type in -luuid... no
checking for uuid_variant in -luuid... no
checking for __uuid_variant in -luuid... no
checking for uuid_generate_md5 in -luuid... no
checking for __uuid_generate_md5 in -luuid... no
checking for uuid_generate_sha1 in -luuid... no
checking for __uuid_generate_sha1 in -luuid... no


Patches

Pull Requests

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 12:01:31 2024 UTC