<?php
//namespace a;
//define('t', true, true);
//define('a\\true', false, t);
//define('a\\false', t, t);
namespace Api\Something {
class Foo {}
}
namespace Api\SomethingElse
{
//define('Api\\SomethingElse\\Private', 'Api\\Something', true);
use Api\Something as My\Private;
class Bar{
public function run()
{
//$obj = new Private;
var_dump(My\Private, $obj);
}
}
}
- Output for 5.4.0 - 5.4.27
- Parse error: syntax error, unexpected '\' (T_NS_SEPARATOR), expecting ',' or ';' in /in/1uBSr on line 17
Process exited with code 255. - Output for 5.3.0 - 5.3.28
- Parse error: syntax error, unexpected T_NS_SEPARATOR, expecting ',' or ';' in /in/1uBSr on line 17
Process exited with code 255.
preferences:
187.29 ms | 1386 KiB | 64 Q