|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59241 Configure fails when compiled with php
Submitted: 2010-05-27 22:57 UTC Modified: 2015-04-12 04:22 UTC
From: Assigned:
Status: No Feedback Package: uuid (PECL)
PHP Version: 5.3.2 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
New email:
PHP Version: OS:


 [2010-05-27 22:57 UTC]
When compiling uuid with PHP (copy into ext dir and 
regenerate configure) configure fails:

checking whether uuid is available... yes
checking for uuid_type in -luuid... yes
checking for uuid_variant in -luuid... yes
checking for uuid/uuid.h... yes
checking PHP version... configure: error: need at least PHP 

The configure log shows:

configure:95377: checking PHP version
configure:95390: gcc -c -I/usr/include -g -O2 -
fvisibility=hidden   -
5.3.2/ext/date/lib -
5.3.2/ext/ereg/regex -I/usr/include/libxml2 -
I/usr/include/imap -
5.3.2/ext/mbstring/oniguruma -
5.3.2/ext/mbstring/libmbfl -
5.3.2/ext/mbstring/libmbfl/mbfl -I/usr/include/mysql -
5.3.2/ext/sqlite3/libsqlite -I/include -DHAVE_UUID 
conftest.c 1>&5
configure:95380:25: error: php_version.h: No such file or 
configure:95384:2: error: #error this extension requires at 
least PHP version 4.0.0
configure: failed program was:
#line 95379 "configure"
#include "confdefs.h"
#include <php_version.h>
int main() {

#if PHP_VERSION_ID < 40000
#error  this extension requires at least PHP version 4.0.0

; return 0; }

I'd guess the php 4.0.0 check can be safely dropped.


uuid_version_check_fix.patch (last revision 2011-10-25 12:25 UTC by dominic dot benson at thirdlight dot com)

Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-10-25 12:29 UTC] dominic dot benson at thirdlight dot com
The oci8 extension has a somewhat comparable check (4.3.9<=version<6.0.0), so I've borrowed and modified it for the patch.

Simply removing it wouldn't appear entirely unreasonable, though.
 [2015-04-04 05:26 UTC]
-Status: Open +Status: Feedback
 [2015-04-04 05:26 UTC]
If still needed, please open a PR on
 [2015-04-12 04:22 UTC] pecl-dev at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Tue Feb 07 17:05:48 2023 UTC