|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2021-11-26 13:28 UTC] cmb@php.net
-Summary: Undefined constant "CURLINFO_TOTAL_TIME_T"
+Summary: curl uses pkg-config as of PHP 7.4.0
-Type: Bug
+Type: Documentation Problem
[2021-11-26 13:28 UTC] cmb@php.net
[2021-12-28 07:41 UTC] oliver at erply dot com
-Status: Open
+Status: Closed
[2021-12-28 07:41 UTC] oliver at erply dot com
[2021-12-28 10:09 UTC] cmb@php.net
-Status: Closed
+Status: Re-Opened
[2021-12-28 10:09 UTC] cmb@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 05:00:02 2025 UTC |
Description: ------------ I compiled PHP version 8.0.13 with following options: ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --prefix=/opt/ews-24-80/php --libdir=/opt/ews-24-80/php/lib64 --with-config-file-path=/usr/local/etc/ews-24-80/php --with-apxs2=/opt/ews-24-80/apache2/bin/apxs --with-openssl --with-libxml-dir --with-pcre-regex --with-zlib --with curl=/opt/ews-24-80/curl There are no errors indicating anything went wrong in the compiling process, however when running the test script shared below I get an error with Undefined constant. Using /opt/ews-24-80/curl directly from the CLI works fine. CURL version used: 7.80.0 Same setup works fine with PHP 7.3 Test script: --------------- <?php print_r(CURLINFO_TOTAL_TIME_T); ?> Expected result: ---------------- Get the actual value of CURLINFO_TOTAL_TIME_T constant. Actual result: -------------- #0 {main} thrown in /curl.php on line 2 Fatal error: Uncaught Error: Undefined constant "CURLINFO_TOTAL_TIME_T" in /curl.php on line 2 Error: Undefined constant "CURLINFO_TOTAL_TIME_T" in /curl.php on line 2 Call Stack: 0.0003 390752 1. {main}() /curl.php:0