[2011年07月07日 05:32 UTC] patrickallaert@php.net
Description: ------------ When using PHP in interactive mode (php -a) namespaces must be used with the bracketed form: php > namespace a {class A {}} php > namespace b {class A {}} or on the same line: php > namespace a; class A {}; php > namespace b; class A {}; Using: php > namespace a; php > class A {}; php > namespace b; php > class A {}; should be semantically exactly the same but results in: PHP Fatal error: Cannot redeclare class A in php shell code on line 1 Test script: --------------- $ php -a php > namespace a; php > class A {}; php > namespace b; php > class A {}; Expected result: ---------------- No fatal error. Actual result: -------------- PHP Fatal error: Cannot redeclare class A in php shell code on line 1 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011年07月07日 12:06 UTC] johannes@php.net
-Status: Open
+Status: Assigned
-Assigned To:
+Assigned To: johannes
[2011年07月07日 12:06 UTC] johannes@php.net
[2011年07月07日 14:26 UTC] patrickallaert@php.net
[2011年07月07日 19:23 UTC] felipe@php.net
-Package: Compile Failure
+Package: Scripting Engine problem
[2012年02月04日 00:42 UTC] johannes@php.net
[2012年02月04日 00:42 UTC] johannes@php.net
-Status: Assigned
+Status: Open
-Type: Bug
+Type: Documentation Problem
-Assigned To: johannes
+Assigned To:
|