From: Neil Kandalgaonkar Date: Tue, 15 Mar 2011 04:37:06 +0000 (+0000) Subject: the vertical tab \v and form feed \f escapes are not available in php5.2.4 which... X-Git-Tag: 1.31.0-rc.0~31397 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=commitdiff_plain;h=50a412b7d3db9d2937aeacb61fc80c320b091cba;p=lhc%2Fweb%2Fwiklou.git the vertical tab \v and form feed \f escapes are not available in php5.2.4 which is what we run in production. Using equivalent hexadecimal --- diff --git a/includes/libs/JavaScriptMinifier.php b/includes/libs/JavaScriptMinifier.php index d2a16f64bf..e483b4a714 100644 --- a/includes/libs/JavaScriptMinifier.php +++ b/includes/libs/JavaScriptMinifier.php @@ -422,7 +422,7 @@ class JavaScriptMinifier { while( $pos < $length ) { // First, skip over any whitespace and multiline comments, recording whether we // found any newline character - $skip = strspn( $s, " \t\n\r\v\f", $pos ); + $skip = strspn( $s, " \t\n\r\xb\xc", $pos ); if( !$skip ) { $ch = $s[$pos]; if( $ch === '/' && substr( $s, $pos, 2 ) === '/*' ) {