ebookcode / minify

Automatically exported from code.google.com/p/minify
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

PHP Warning crashing the output CSS content #277

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Are you sure this is not a problem with your configuration? (ask on the
Google Group)

Minify commit/version: 2.1.5
PHP version: PHP 5.4.6

What steps will reproduce the problem?
1. Everytime I modify my CSS file, at the first request
2.
3.

Expected output:
(empty string == no PHP warning)
When, PHP throw a warning message. As this is included into the output file, 
and this crash the output content :(
Solutions : 
- fix the warning [AND || OR]
- force PHP to not output PHP errors into the flow. (via 
ini_set('display_errors', 0))
Even if on production env, PHP Warning *should* never be on, on dev env you 
should never see a PHP Warning here.

Actual output:
<b>Warning</b>:  strpos(): Empty delimiter in 
<b>/var/www/html/XXX/minify-2.1.5/min/lib/Minify/CSS/UriRewriter.php</b> on 
line <b>153</b>

Original issue reported on code.google.com by m...@wininup.com on 27 Sep 2012 at 2:06

GoogleCodeExporter commented 9 years ago
What are you using for the symlinks setting? That's the source of the error. 

Original comment by mrclay....@gmail.com on 27 Sep 2012 at 2:20