<?php
namespace Cat;
class Foobar
{
public function __construct()
{
echo '[Foobar]';
}
}
class Foo
{
public function __construct()
{
echo '[Foo]';
}
}
define('Cat\\Foo', 'Cat\\Foobar');
namespace;
new Cat\\Foo()
Parse error: syntax error, unexpected ';', expecting identifier (T_STRING) or \\ (T_NS_SEPARATOR) or '{' in 8lskG on line 22
Process exited with code 255.
Output for 5.4.13
Parse error: syntax error, unexpected ';', expecting identifier (T_STRING) or \\ (T_NS_SEPARATOR) or '{' in /in/4SOoY on line 22
Process exited with code 255.
Output for 5.3.0 - 5.3.22, 5.3.24
Parse error: syntax error, unexpected ';', expecting T_STRING or T_NS_SEPARATOR or '{' in 8lskG on line 22
Process exited with code 255.
Output for 5.3.23
Parse error: syntax error, unexpected ';', expecting T_STRING or T_NS_SEPARATOR or '{' in /in/4SOoY on line 22
Process exited with code 255.