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:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
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
Have you experienced this issue?
Rate the importance of this bug to you:

 [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

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 00:01:29 2024 UTC