Bug #76559 [Opn->Nab]: curl_*() fail to fall back to global namespace if called from within a namespac

From: Date: Mon, 02 Jul 2018 08:26:32 +0000
Subject: Bug #76559 [Opn->Nab]: curl_*() fail to fall back to global namespace if called from within a namespac
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-216068@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=76559&edit=1 ID: 76559 Updated by: danack@php.net Reported by: teo8976 at gmail dot com Summary: curl_*() fail to fall back to global namespace if called from within a namespac -Status: Open +Status: Not a bug Type: Bug Package: cURL related Operating System: debian PHP Version: 5.6.36 Block user comment: N Private report: N New Comment: Closing then. Previous Comments: ------------------------------------------------------------------------ [2018-07-01 17:12:05] spam2 at rhsoft dot net looks like versions are not your thing :-) PHP Version: 5.6.36 Actually my issue was that I was calling curl_reset() which only exists starting from 5.5, but I'm on PHP 5.4 I see that the error message is fixed in PHP 7. Cool I meant in 7.3.0alpha1 ------------------------------------------------------------------------ [2018-07-01 17:08:59] teo8976 at gmail dot com I meant in 7.3.0alpha1 ------------------------------------------------------------------------ [2018-07-01 17:07:31] teo8976 at gmail dot com I see that the error message is fixed in PHP 7. Cool. ------------------------------------------------------------------------ [2018-07-01 17:05:30] teo8976 at gmail dot com Sorry, my report is bullshit because PHP gives confusing error messages. Actually my issue was that I was calling curl_reset() which only exists starting from 5.5, but I'm on PHP 5.4. The real issue here is that the error message should read "call to undefined function curl_reset()" rather than "call to undefined function NameSpace\\curl_reset()". ------------------------------------------------------------------------ [2018-07-01 15:20:17] danack@php.net Please can you check you have curl installed. I can't reproduce your issue, except when curl is not installed. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=76559 -- Edit this bug report at https://bugs.php.net/bug.php?id=76559&edit=1

« previous php.bugs (#216068) next »