Skip to content

Commit

Permalink
Merge branch '2.4'
Browse files Browse the repository at this point in the history
* 2.4:
  [DomCrawler] fixed wrong merge
  [Filesystem] fixed a test broken after merging the 2.3 branch
  • Loading branch information
fabpot committed Mar 26, 2014
2 parents 3baa43b + 5808287 commit 58bdf84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/Symfony/Component/DomCrawler/Crawler.php
Expand Up @@ -224,8 +224,7 @@ public function addXmlContent($content, $charset = 'UTF-8')
$dom->validateOnParse = true;

if ('' !== trim($content)) {
// remove the default namespace to make XPath expressions simpler
@$dom->loadXML(str_replace('xmlns', 'ns', $content), LIBXML_NONET);
@$dom->loadXML($content, LIBXML_NONET);
}

libxml_use_internal_errors($internalErrors);
Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/Filesystem/Tests/FilesystemTest.php
Expand Up @@ -890,7 +890,7 @@ public function testDumpFileWithNullMode()

// skip mode check on Windows
if (!defined('PHP_WINDOWS_VERSION_MAJOR')) {
$this->assertEquals(600, $this->getFilePermissions($filename));
$this->assertFilePermissions(600, $filename);
}
}

Expand Down

0 comments on commit 58bdf84

Please sign in to comment.