Changeset 20887
- Timestamp:
- 08/07/09 15:33:28 (4 years ago)
- Files:
-
- components/yaml/trunk/lib/sfYamlParser.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
components/yaml/trunk/lib/sfYamlParser.php
r18297 r20887 509 509 protected function isCurrentLineComment() 510 510 { 511 return 0 === strpos(ltrim($this->currentLine, ' '), '#'); 511 //checking explicitly the first char of the trim is faster than loops or strpos 512 $ltrimmedLine = ltrim($this->currentLine, ' '); 513 return $ltrimmedLine[0] === '#'; 512 514 } 513 515