|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2018-07-01 15:20 UTC] danack@php.net
-Status: Open
+Status: Feedback
[2018-07-01 15:20 UTC] danack@php.net
[2018-07-01 17:05 UTC] teo8976 at gmail dot com
-Status: Feedback
+Status: Open
[2018-07-01 17:05 UTC] teo8976 at gmail dot com
[2018-07-01 17:07 UTC] teo8976 at gmail dot com
[2018-07-01 17:08 UTC] teo8976 at gmail dot com
[2018-07-01 17:12 UTC] spam2 at rhsoft dot net
[2018-07-02 08:26 UTC] danack@php.net
-Status: Open
+Status: Not a bug
[2018-07-02 08:26 UTC] danack@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 19:00:02 2025 UTC |
Description: ------------ When you call curl_init() or any other curl_xxx() function from within a namespace, without prepending a "\" (which you are not supposed to have to do), you get this stupid error: Call to undefined function Whatever\\The\\Current\\NameSpace\\Is\\curl_init() Test script: --------------- namespace TestNameSpace; class TestClass { function testMethod() { curl_init(); echo "OK"; } } $t=new TestClass(); $t->testMethod(); Expected result: ---------------- OK Actual result: -------------- Call to undefined function TestNameSpace\\curl_reset()