Fix for r73196: don't use $this->a as a temporary variable, as promised in the commit...
authorTim Starling <tstarling@users.mediawiki.org>
Fri, 17 Sep 2010 08:04:18 +0000 (08:04 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Fri, 17 Sep 2010 08:04:18 +0000 (08:04 +0000)
includes/libs/JSMin.php

index 5d8189c..84ea757 100644 (file)
@@ -109,18 +109,18 @@ class JSMin {
                                                $runLength = strcspn( $this->input, $interestingChars, $this->inputIndex );
                                                $this->output .= substr( $this->input, $this->inputIndex, $runLength );
                                                $this->inputIndex += $runLength;
-                                               $this->a = $this->get();
+                                               $c = $this->get();
 
-                                               if ( $this->a === $this->b ) {
+                                               if ( $c === $this->b ) {
                                                        break;
                                                }
 
-                                               if ( $this->a === "\n" || $this->a === null ) {
+                                               if ( $c === "\n" || $c === null ) {
                                                        throw new JSMinException( 'Unterminated string literal.' );
                                                }
 
-                                               if ( $this->a === '\\' ) {
-                                                       $this->output .= $this->a . $this->get();
+                                               if ( $c === '\\' ) {
+                                                       $this->output .= $c . $this->get();
                                                }
                                        }
                                }