Commit:    dc3d360a0ff8c17cb2ce2030813d30b578249be9
Author:    Michael Wallner <m...@php.net>         Thu, 3 Oct 2013 13:34:31 +0200
Parents:   fc3f8a8f54d8b3c864125bf32028d4550882839c
Branches:  PHP-5.4 PHP-5.5 master

Link:       
http://git.php.net/?p=php-src.git;a=commitdiff;h=dc3d360a0ff8c17cb2ce2030813d30b578249be9

Log:
typo: really fix bug #51936     Crash with clone xmlreader

Bugs:
https://bugs.php.net/51936

Changed paths:
  M  NEWS
  A  ext/xmlreader/tests/bug51936.phpt
  D  ext/xmlreader/tests/bug51963.phpt


Diff:
diff --git a/NEWS b/NEWS
index c6961bd..ffde301 100644
--- a/NEWS
+++ b/NEWS
@@ -7,7 +7,7 @@ PHP                                                             
           NEWS
     (Mike)
 
 - XMLReader:
-  . Fixed bug #59613 (Crash with clone XMLReader). (Mike)
+  . Fixed bug #51936 (Crash with clone XMLReader). (Mike)
 
 
 ?? ??? 2013, PHP 5.4.21
diff --git a/ext/xmlreader/tests/bug51936.phpt 
b/ext/xmlreader/tests/bug51936.phpt
new file mode 100644
index 0000000..4b5f101
--- /dev/null
+++ b/ext/xmlreader/tests/bug51936.phpt
@@ -0,0 +1,22 @@
+--TEST--
+Bug #51936 (Crash with clone XMLReader)
+--SKIPIF--
+<?php
+extension_loaded("xmlreader") or die("skip requires xmlreader");
+?>
+--FILE--
+<?php
+echo "Test\n";
+
+$xmlreader = new XMLReader();
+$xmlreader->xml("<a><b/></a>");
+
+$xmlreader->next();
+$xmlreader2 = clone $xmlreader;
+$xmlreader2->next();
+?>
+Done
+--EXPECTF--
+Test
+
+Fatal error: Trying to clone an uncloneable object of class XMLReader in %s on 
line %d
diff --git a/ext/xmlreader/tests/bug51963.phpt 
b/ext/xmlreader/tests/bug51963.phpt
deleted file mode 100644
index af47f97..0000000
--- a/ext/xmlreader/tests/bug51963.phpt
+++ /dev/null
@@ -1,22 +0,0 @@
---TEST--
-Bug #59613 (Crash with clone XMLReader)
---SKIPIF--
-<?php
-extension_loaded("xmlreader") or die("skip requires xmlreader");
-?>
---FILE--
-<?php
-echo "Test\n";
-
-$xmlreader = new XMLReader();
-$xmlreader->xml("<a><b/></a>");
-
-$xmlreader->next();
-$xmlreader2 = clone $xmlreader;
-$xmlreader2->next();
-?>
-Done
---EXPECTF--
-Test
-
-Fatal error: Trying to clone an uncloneable object of class XMLReader in %s on 
line %d


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to