|  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: -
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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: me at derrabus dot de
New email:
PHP Version: OS:


 [2020-12-27 20:14 UTC] me at derrabus dot de
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:
./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


Add a Patch

Pull Requests

Add a Pull Request

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sun Sep 24 08:01:25 2023 UTC