Hi!

Maybe, but I would classify *that* as a bug as it makes no sense at all.

Thinking more about it, something like:

if(strncasecmp($filename, ".php", -4) === 0) {
  /* got php file! */
}

seems to me just fine and better than doing the same with substr. I would definitely be against the warning in this case.
--
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to