bootstrap-3-shortcodes icon indicating copy to clipboard operation
bootstrap-3-shortcodes copied to clipboard

PHP short tags - change <? to <?php

Open mattiazer opened this issue 12 years ago • 3 comments

WARNING: Found PHP short tags in file includes/php_markdown/Michelf/Markdown.php. Line 346: | # PHP and ASP-style processor instructions (<? and <%)

mattiazer avatar Jan 29 '14 20:01 mattiazer

This is actually a server configuration issue, not specifically an issue with this plugin. The code referenced in the error is a submodule so we don't really have control over its use of short tags. We'll note this issue and look into resolving it.

In the meantime, you can add the following to your php.ini which should resolve the issue:

short_open_tag=On

MWDelaney avatar Jan 29 '14 21:01 MWDelaney

<? and <% are part of a larger string. They shouldn't be getting parsed at all. Either you're using a version of PHP that has some sort of bug, or this error is coming from somewhere else (a linting program?). Regardless, there shouldn't be any complaints about those characters since they're encapsulated in single quotes, which means they're strings.

echo 'This is an example of <? what i mean.';
// outputs: This is an example of <? what i mean.

QWp6t avatar Jul 30 '14 05:07 QWp6t

The submodule that was using short tags has been removed from this plugin. Closing.

MWDelaney avatar Aug 07 '14 16:08 MWDelaney