<?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 Private;
class Bar{
public function run()
{
//$obj = new Private;
var_dump(Private, $obj);
}
}
}
- Output for 5.4.0 - 5.4.27
- Parse error: syntax error, unexpected 'Private' (T_PRIVATE), expecting identifier (T_STRING) in /in/iHKD3 on line 17
Process exited with code 255. - Output for 5.3.0 - 5.3.28
- Parse error: syntax error, unexpected T_PRIVATE, expecting T_STRING in /in/iHKD3 on line 17
Process exited with code 255.
preferences:
181.21 ms | 1395 KiB | 64 Q