|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-01-01 16:13 UTC] johannes@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 13 20:00:01 2025 UTC |
Description: ------------ sb@vmware ~ % cat a.php <?php namespace a; function b() {} sb@vmware ~ % cat b.php && php b.php <?php require 'a.php'; use a; b(); Warning: The use statement with non-compound name 'a' has no effect in /home/sb/b.php on line 4 Fatal error: Call to undefined function b() in /home/sb/b.php on line 5 sb@vmware ~ % cat b.php && php b.php <?php require 'a.php'; use a::b; b(); Fatal error: Call to undefined function b() in /home/sb/b.php on line 5 Expected result: ---------------- Not sure. Actual result: -------------- See above.