PHP Error: The use statement with non-compound name

1.1 The use statement with non-compound name

1.1.1 phenomenon

After debugging the program, it is found that running the following code will make the program run away:

require_ once __ DIR__ . ‘/ actions/’ . $refectClass . ‘.php’;

1.1.2 reasons

is debugged in PHPStorm. DIR__ Variable, found that it has always been Xdebug, so thought it was this problem, online search a lot of information, there is no solution

Later, I checked the error log and found the following error information:
2014-05-12 16:41:53: < E> [ php ]: The use statement with non-compound name 'CommonUtils' has no effect (D:\ProjectWork\SourceCode\Server\i2goods\protected\components\clientapi\actions\BookEditAction. php:9 )
Open the bookeditaction.php file and look at line 9 of the code

use CommonUtils
Looking for information on the Internet, we found that this use syntax error

1.1.3 solution

Consult the relevant developers, this code is garbage code, forget to delete, delete it

Similar Posts: