Reputation: 8388
My code:
// } elseif(php_uname() === TEST_SERVER_NAME){
// $tmp = "/var/www/html/".preg_replace("/.*(demo[0-9]+).*/", '$1', $_SERVER['SERVER_NAME'])."/something/tmp/";
// } else{
// $tmp = '/var/www/html/something/tmp/';
// }
My IDE (phstorm) highlights it as if something is not commented out, starting from the second line above. Is it the case? Can anything break line commenting?
Upvotes: 1
Views: 43
Reputation: 14154
'
or "
?/*
above which ends in your */
?Upvotes: 1
Reputation: 522005
Everything following a //
on a line is a comment until the end of the line. You can break out of /* */
comments, you cannot break out of //
comments before the end of the line.
Your IDE is bad. ;)
Upvotes: 1