[PHP-CVS] svn: /php/php-src/branches/PHP_5_3/ext/phar/tests/ bug52013.phpt
ericstewart Fri, 02 Jul 2010 02:46:43 + Revision: http://svn.php.net/viewvc?view=revisionrevision=300928 Log: Added test for bug 52013 to PHP_5_3. Bug: http://bugs.php.net/52013 (Assigned) Unable to decompress files in a compressed phar. Changed paths: A php/php-src/branches/PHP_5_3/ext/phar/tests/bug52013.phpt Added: php/php-src/branches/PHP_5_3/ext/phar/tests/bug52013.phpt === --- php/php-src/branches/PHP_5_3/ext/phar/tests/bug52013.phpt (rev 0) +++ php/php-src/branches/PHP_5_3/ext/phar/tests/bug52013.phpt 2010-07-02 02:46:43 UTC (rev 300928) @@ -0,0 +1,37 @@ +--TEST-- +Test for bug 52013 about Phar::decompressFiles(). +--DESCRIPTION-- +Test for a bug where Phar::decompressFiles() mistakenly throws BadMethodCallException. +http://bugs.php.net/bug.php?id=52013 +--CREDITS-- +Frederic Hardy frederic.ha...@mageekbox.net +--SKIPIF-- +?php if (!extension_loaded(phar)) die(skip); ? +--INI-- +phar.require_hash=0 +phar.readonly=0 +open_basedir= +--FILE-- +?php +mkdir(dirname(__FILE__) . '/testdir'); +file_put_contents(dirname(__FILE__) . '/testdir/1.php', str_repeat(' ', 1455)); + +$phar = new Phar(dirname(__FILE__) . '/compressed.phar'); +$phar-buildFromDirectory(dirname(__FILE__) . '/testdir', '/\.php$/'); +$phar-setSignatureAlgorithm(Phar::SHA1); +$phar-compressFiles(Phar::GZ); +$phar-decompressFiles(); + +echo 'ok'; +? +--CLEAN-- +?php +if (is_file(dirname(__FILE__) . '/testdir/1.php')) + unlink(dirname(__FILE__) . '/testdir/1.php'); +if (is_dir(dirname(__FILE__) . '/testdir')) + rmdir(dirname(__FILE__) . '/testdir'); +if (is_file(dirname(__FILE__) . '/compressed.phar')) + unlink(dirname(__FILE__) . '/compressed.phar'); +? +--EXPECT-- +ok Property changes on: php/php-src/branches/PHP_5_3/ext/phar/tests/bug52013.phpt ___ Added: svn:keywords + Id Rev Revision Added: svn:eol-style + native -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src(PHP_5_2) /ext/dom/tests DOMComment_construct_basic_001.phpt DOMDocumentFragment_appendXML_error_002.phpt DOMDocumentFragment_appendXML_error_003.phpt DOMDocumentFragment_constru
ericstewart Tue May 26 06:06:39 2009 UTC Added files: (Branch: PHP_5_2) /php-src/ext/dom/tests DOMComment_construct_basic_001.phpt DOMDocumentFragment_appendXML_error_002.phpt DOMDocumentFragment_appendXML_error_003.phpt DOMDocumentFragment_construct_basic_002.phpt DOMDocumentType_basic_001.phpt DOMDocumentType_entities_error_001.phpt DOMDocumentType_internalSubset_error_001.phpt DOMDocumentType_name_error_001.phpt DOMDocumentType_notations_error_001.phpt DOMDocumentType_publicId_basic_001.phpt DOMDocumentType_publicId_error_001.phpt DOMDocumentType_systemId_basic_001.phpt DOMDocumentType_systemId_error_001.phpt Log: Add tests: DOMComment::__construct() with constructor called twice. DOMDocumentFragment::appendXML() with unbound fragment. DOMDocumentFragment::appendXML() with unbalanced chunks. DOMDocumentFragment::__construct() called twice. DOMDocumentType: basic access to all properties. DOMDocumentType::name with invalid state. DOMDocumentType::entities with invalid state. DOMDocumentType::notations with invalid state. DOMDocumentType::publicId with invalid state. DOMDocumentType::publicId with empty value. DOMDocumentType::systemId with invalid state. DOMDocumentType::systemId with empty value. DOMDocumentType::internalSubset with invalid state. http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMComment_construct_basic_001.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMComment_construct_basic_001.phpt +++ php-src/ext/dom/tests/DOMComment_construct_basic_001.phpt http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMDocumentFragment_appendXML_error_002.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMDocumentFragment_appendXML_error_002.phpt +++ php-src/ext/dom/tests/DOMDocumentFragment_appendXML_error_002.phpt http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMDocumentFragment_appendXML_error_003.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMDocumentFragment_appendXML_error_003.phpt +++ php-src/ext/dom/tests/DOMDocumentFragment_appendXML_error_003.phpt http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMDocumentFragment_construct_basic_002.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMDocumentFragment_construct_basic_002.phpt +++ php-src/ext/dom/tests/DOMDocumentFragment_construct_basic_002.phpt http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMDocumentType_basic_001.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMDocumentType_basic_001.phpt +++ php-src/ext/dom/tests/DOMDocumentType_basic_001.phpt http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMDocumentType_entities_error_001.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMDocumentType_entities_error_001.phpt +++ php-src/ext/dom/tests/DOMDocumentType_entities_error_001.phpt http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMDocumentType_internalSubset_error_001.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMDocumentType_internalSubset_error_001.phpt +++ php-src/ext/dom/tests/DOMDocumentType_internalSubset_error_001.phpt http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMDocumentType_name_error_001.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMDocumentType_name_error_001.phpt +++ php-src/ext/dom/tests/DOMDocumentType_name_error_001.phpt http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMDocumentType_notations_error_001.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMDocumentType_notations_error_001.phpt +++ php-src/ext/dom/tests/DOMDocumentType_notations_error_001.phpt http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMDocumentType_publicId_basic_001.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMDocumentType_publicId_basic_001.phpt +++ php-src/ext/dom/tests/DOMDocumentType_publicId_basic_001.phpt http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMDocumentType_publicId_error_001.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMDocumentType_publicId_error_001.phpt +++ php-src/ext/dom/tests/DOMDocumentType_publicId_error_001.phpt http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMDocumentType_systemId_basic_001.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMDocumentType_systemId_basic_001.phpt +++ php-src/ext/dom/tests/DOMDocumentType_systemId_basic_001.phpt http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMDocumentType_systemId_error_001.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMDocumentType_systemId_error_001.phpt +++ php-src/ext/dom/tests/DOMDocumentType_systemId_error_001.phpt -- PHP CVS Mailing List
[PHP-CVS] cvs: php-src(PHP_5_3) /ext/dom/tests DOMComment_construct_basic_001.phpt DOMDocumentFragment_appendXML_error_002.phpt DOMDocumentFragment_appendXML_error_003.phpt DOMDocumentFragment_constru
ericstewart Tue May 26 06:09:18 2009 UTC Added files: (Branch: PHP_5_3) /php-src/ext/dom/tests DOMComment_construct_basic_001.phpt DOMDocumentFragment_appendXML_error_002.phpt DOMDocumentFragment_appendXML_error_003.phpt DOMDocumentFragment_construct_basic_002.phpt DOMDocumentType_basic_001.phpt DOMDocumentType_entities_error_001.phpt DOMDocumentType_internalSubset_error_001.phpt DOMDocumentType_name_error_001.phpt DOMDocumentType_notations_error_001.phpt DOMDocumentType_publicId_basic_001.phpt DOMDocumentType_publicId_error_001.phpt DOMDocumentType_systemId_basic_001.phpt DOMDocumentType_systemId_error_001.phpt Log: Add tests: DOMComment::__construct() with constructor called twice. DOMDocumentFragment::appendXML() with unbound fragment. DOMDocumentFragment::appendXML() with unbalanced chunks. DOMDocumentFragment::__construct() called twice. DOMDocumentType: basic access to all properties. DOMDocumentType::name with invalid state. DOMDocumentType::entities with invalid state. DOMDocumentType::notations with invalid state. DOMDocumentType::publicId with invalid state. DOMDocumentType::publicId with empty value. DOMDocumentType::systemId with invalid state. DOMDocumentType::systemId with empty value. DOMDocumentType::internalSubset with invalid state. http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMComment_construct_basic_001.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMComment_construct_basic_001.phpt +++ php-src/ext/dom/tests/DOMComment_construct_basic_001.phpt http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMDocumentFragment_appendXML_error_002.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMDocumentFragment_appendXML_error_002.phpt +++ php-src/ext/dom/tests/DOMDocumentFragment_appendXML_error_002.phpt http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMDocumentFragment_appendXML_error_003.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMDocumentFragment_appendXML_error_003.phpt +++ php-src/ext/dom/tests/DOMDocumentFragment_appendXML_error_003.phpt http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMDocumentFragment_construct_basic_002.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMDocumentFragment_construct_basic_002.phpt +++ php-src/ext/dom/tests/DOMDocumentFragment_construct_basic_002.phpt http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMDocumentType_basic_001.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMDocumentType_basic_001.phpt +++ php-src/ext/dom/tests/DOMDocumentType_basic_001.phpt http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMDocumentType_entities_error_001.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMDocumentType_entities_error_001.phpt +++ php-src/ext/dom/tests/DOMDocumentType_entities_error_001.phpt http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMDocumentType_internalSubset_error_001.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMDocumentType_internalSubset_error_001.phpt +++ php-src/ext/dom/tests/DOMDocumentType_internalSubset_error_001.phpt http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMDocumentType_name_error_001.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMDocumentType_name_error_001.phpt +++ php-src/ext/dom/tests/DOMDocumentType_name_error_001.phpt http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMDocumentType_notations_error_001.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMDocumentType_notations_error_001.phpt +++ php-src/ext/dom/tests/DOMDocumentType_notations_error_001.phpt http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMDocumentType_publicId_basic_001.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMDocumentType_publicId_basic_001.phpt +++ php-src/ext/dom/tests/DOMDocumentType_publicId_basic_001.phpt http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMDocumentType_publicId_error_001.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMDocumentType_publicId_error_001.phpt +++ php-src/ext/dom/tests/DOMDocumentType_publicId_error_001.phpt http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMDocumentType_systemId_basic_001.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMDocumentType_systemId_basic_001.phpt +++ php-src/ext/dom/tests/DOMDocumentType_systemId_basic_001.phpt http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMDocumentType_systemId_error_001.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMDocumentType_systemId_error_001.phpt +++ php-src/ext/dom/tests/DOMDocumentType_systemId_error_001.phpt -- PHP CVS Mailing List
[PHP-CVS] cvs: php-src /ext/dom/tests DOMComment_construct_basic_001.phpt DOMDocumentFragment_appendXML_error_002.phpt DOMDocumentFragment_appendXML_error_003.phpt DOMDocumentFragment_construct_basic_
ericstewart Tue May 26 06:11:26 2009 UTC Modified files: /php-src/ext/dom/tests DOMComment_construct_basic_001.phpt DOMDocumentFragment_appendXML_error_002.phpt DOMDocumentFragment_appendXML_error_003.phpt DOMDocumentFragment_construct_basic_002.phpt DOMDocumentType_basic_001.phpt DOMDocumentType_entities_error_001.phpt DOMDocumentType_internalSubset_error_001.phpt DOMDocumentType_name_error_001.phpt DOMDocumentType_notations_error_001.phpt DOMDocumentType_publicId_basic_001.phpt DOMDocumentType_publicId_error_001.phpt DOMDocumentType_systemId_basic_001.phpt DOMDocumentType_systemId_error_001.phpt Log: Add tests: DOMComment::__construct() with constructor called twice. DOMDocumentFragment::appendXML() with unbound fragment. DOMDocumentFragment::appendXML() with unbalanced chunks. DOMDocumentFragment::__construct() called twice. DOMDocumentType: basic access to all properties. DOMDocumentType::name with invalid state. DOMDocumentType::entities with invalid state. DOMDocumentType::notations with invalid state. DOMDocumentType::publicId with invalid state. DOMDocumentType::publicId with empty value. DOMDocumentType::systemId with invalid state. DOMDocumentType::systemId with empty value. DOMDocumentType::internalSubset with invalid state. http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMComment_construct_basic_001.phpt?r1=1.1r2=1.2diff_format=u Index: php-src/ext/dom/tests/DOMComment_construct_basic_001.phpt diff -u /dev/null php-src/ext/dom/tests/DOMComment_construct_basic_001.phpt:1.2 --- /dev/null Tue May 26 06:11:26 2009 +++ php-src/ext/dom/tests/DOMComment_construct_basic_001.phpt Tue May 26 06:11:26 2009 @@ -0,0 +1,19 @@ +--TEST-- +DOMComment::__construct() with constructor called twice. +--CREDITS-- +Eric Lee Stewart ericleestew...@gmail.com +# TestFest Atlanta 2009-05-25 +--SKIPIF-- +?php require_once('skipif.inc'); ? +--FILE-- +?php +$dom = new DOMDocument('1.0', 'UTF-8'); +$element = $dom-appendChild(new DOMElement('root')); +$comment = new DOMComment(This is the first comment.); +$comment-__construct(This is the second comment.); +$comment = $element-appendChild($comment); +print $dom-saveXML(); +? +--EXPECT-- +?xml version=1.0 encoding=UTF-8? +root!--This is the second comment.--/root http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMDocumentFragment_appendXML_error_002.phpt?r1=1.1r2=1.2diff_format=u Index: php-src/ext/dom/tests/DOMDocumentFragment_appendXML_error_002.phpt diff -u /dev/null php-src/ext/dom/tests/DOMDocumentFragment_appendXML_error_002.phpt:1.2 --- /dev/null Tue May 26 06:11:26 2009 +++ php-src/ext/dom/tests/DOMDocumentFragment_appendXML_error_002.phpt Tue May 26 06:11:26 2009 @@ -0,0 +1,19 @@ +--TEST-- +DOMDocumentFragment::appendXML() with unbound fragment. +--CREDITS-- +Eric Lee Stewart ericleestew...@gmail.com +# TestFest Atlanta 2009-05-24 +--SKIPIF-- +?php require_once('skipif.inc'); ? +--FILE-- +?php +$fragment = new DOMDocumentFragment(); +$fragment-appendXML('baitcrankbait/bait'); +$document-appendChild($fragment); +? +--EXPECTF-- +Fatal error: Uncaught exception 'DOMException' with message 'No Modification Allowed Error' in %s:%d +Stack trace: +#0 %s(%d): DOMDocumentFragment-appendXML('baitcrankbait...') +#1 {main} + thrown in %s on line %d \ No newline at end of file http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMDocumentFragment_appendXML_error_003.phpt?r1=1.1r2=1.2diff_format=u Index: php-src/ext/dom/tests/DOMDocumentFragment_appendXML_error_003.phpt diff -u /dev/null php-src/ext/dom/tests/DOMDocumentFragment_appendXML_error_003.phpt:1.2 --- /dev/null Tue May 26 06:11:26 2009 +++ php-src/ext/dom/tests/DOMDocumentFragment_appendXML_error_003.phpt Tue May 26 06:11:26 2009 @@ -0,0 +1,19 @@ +--TEST-- +DOMDocumentFragment::appendXML() with unbalanced chunks. +--CREDITS-- +Eric Lee Stewart ericleestew...@gmail.com +# TestFest Atlanta 2009-05-24 +--SKIPIF-- +?php require_once('skipif.inc'); ? +--FILE-- +?php +$document = new DOMDocument; +$root = $document-createElement('root'); +$document-appendChild($root); + +$fragment = $document-createDocumentFragment(); +...@$fragment-appendXML('fooisbargreat/foo'); +$root-appendChild($fragment); +? +--EXPECTF-- +Warning: DOMNode::appendChild(): Document Fragment is empty in %s on line %d \ No newline at end of file http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMDocumentFragment_construct_basic_002.phpt?r1=1.1r2=1.2diff_format=u Index: php-src/ext/dom/tests/DOMDocumentFragment_construct_basic_002.phpt diff -u /dev/null
[PHP-CVS] cvs: php-src(PHP_5_3) /ext/dom/tests DOMCharacterData_appendData_error_001.phpt DOMCharacterData_deleteData_basic_001.phpt DOMCharacterData_deleteData_error_001.phpt DOMCharacterData_deleteD
ericstewart Mon May 25 06:03:41 2009 UTC Added files: (Branch: PHP_5_3) /php-src/ext/dom/tests DOMCharacterData_appendData_error_001.phpt DOMCharacterData_deleteData_basic_001.phpt DOMCharacterData_deleteData_error_001.phpt DOMCharacterData_deleteData_error_002.phpt DOMCharacterData_insertData_error_001.phpt DOMCharacterData_replaceData_error_001.phpt DOMComment_construct_error_001.phpt DOMDocumentFragment_appendXML_basic_001.phpt DOMDocumentFragment_appendXML_error_001.phpt DOMDocumentFragment_construct_basic_001.phpt DOMDocumentFragment_construct_error_001.phpt Log: Add the following new tests: DOMCharacterData::appendData() with no arguments. DOMCharacterData::deleteData() with count exceeding string size. DOMCharacterData::deleteData() with no arguments. DOMCharacterData::deleteData() with offset exceeding string size. DOMCharacterData::insertData() with no arguments. DOMCharacterData::replaceData() with no arguments. DOMComment::__construct() with more arguments than acceptable. DOMDocumentFragment::__construct(). DOMDocumentFragment::__construct() with too many errors. DOMDocumentFragment::appendXML() with no arguments. DOMDocumentFragment::appendXML() with children with properties. http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMCharacterData_appendData_error_001.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMCharacterData_appendData_error_001.phpt +++ php-src/ext/dom/tests/DOMCharacterData_appendData_error_001.phpt http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMCharacterData_deleteData_basic_001.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMCharacterData_deleteData_basic_001.phpt +++ php-src/ext/dom/tests/DOMCharacterData_deleteData_basic_001.phpt http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMCharacterData_deleteData_error_001.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMCharacterData_deleteData_error_001.phpt +++ php-src/ext/dom/tests/DOMCharacterData_deleteData_error_001.phpt http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMCharacterData_deleteData_error_002.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMCharacterData_deleteData_error_002.phpt +++ php-src/ext/dom/tests/DOMCharacterData_deleteData_error_002.phpt http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMCharacterData_insertData_error_001.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMCharacterData_insertData_error_001.phpt +++ php-src/ext/dom/tests/DOMCharacterData_insertData_error_001.phpt http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMCharacterData_replaceData_error_001.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMCharacterData_replaceData_error_001.phpt +++ php-src/ext/dom/tests/DOMCharacterData_replaceData_error_001.phpt http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMComment_construct_error_001.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMComment_construct_error_001.phpt +++ php-src/ext/dom/tests/DOMComment_construct_error_001.phpt http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMDocumentFragment_appendXML_basic_001.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMDocumentFragment_appendXML_basic_001.phpt +++ php-src/ext/dom/tests/DOMDocumentFragment_appendXML_basic_001.phpt http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMDocumentFragment_appendXML_error_001.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMDocumentFragment_appendXML_error_001.phpt +++ php-src/ext/dom/tests/DOMDocumentFragment_appendXML_error_001.phpt http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMDocumentFragment_construct_basic_001.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMDocumentFragment_construct_basic_001.phpt +++ php-src/ext/dom/tests/DOMDocumentFragment_construct_basic_001.phpt http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMDocumentFragment_construct_error_001.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMDocumentFragment_construct_error_001.phpt +++ php-src/ext/dom/tests/DOMDocumentFragment_construct_error_001.phpt -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src /ext/dom/tests DOMCharacterData_appendData_error_001.phpt DOMCharacterData_deleteData_basic_001.phpt DOMCharacterData_deleteData_error_001.phpt DOMCharacterData_deleteData_error
ericstewart Mon May 25 06:07:39 2009 UTC Modified files: /php-src/ext/dom/tests DOMCharacterData_appendData_error_001.phpt DOMCharacterData_deleteData_basic_001.phpt DOMCharacterData_deleteData_error_001.phpt DOMCharacterData_deleteData_error_002.phpt DOMCharacterData_insertData_error_001.phpt DOMCharacterData_replaceData_error_001.phpt DOMComment_construct_error_001.phpt DOMDocumentFragment_appendXML_basic_001.phpt DOMDocumentFragment_appendXML_error_001.phpt DOMDocumentFragment_construct_basic_001.phpt DOMDocumentFragment_construct_error_001.phpt Log: Add the following new tests: DOMCharacterData::appendData() with no arguments. DOMCharacterData::deleteData() with count exceeding string size. DOMCharacterData::deleteData() with no arguments. DOMCharacterData::deleteData() with offset exceeding string size. DOMCharacterData::insertData() with no arguments. DOMCharacterData::replaceData() with no arguments. DOMComment::__construct() with more arguments than acceptable. DOMDocumentFragment::__construct(). DOMDocumentFragment::__construct() with too many errors. DOMDocumentFragment::appendXML() with no arguments. DOMDocumentFragment::appendXML() with children with properties. http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMCharacterData_appendData_error_001.phpt?r1=1.1r2=1.2diff_format=u Index: php-src/ext/dom/tests/DOMCharacterData_appendData_error_001.phpt diff -u /dev/null php-src/ext/dom/tests/DOMCharacterData_appendData_error_001.phpt:1.2 --- /dev/null Mon May 25 06:07:39 2009 +++ php-src/ext/dom/tests/DOMCharacterData_appendData_error_001.phptMon May 25 06:07:39 2009 @@ -0,0 +1,19 @@ +--TEST-- +DOMCharacterData::appendData() with no arguments. +--CREDITS-- +Eric Stewart ericleestew...@gmail.com +# TestFest Atlanta 2009-05-24 +--SKIPIF-- +?php require_once('skipif.inc'); ? +--FILE-- +?php +$document = new DOMDocument; +$root = $document-createElement('root'); +$document-appendChild($root); + +$cdata = $document-createCDATASection('test'); +$root-appendChild($cdata); +$cdata-appendData(); +? +--EXPECTF-- +Warning: DOMCharacterData::appendData() expects exactly 1 parameter, 0 given in %s on line %d \ No newline at end of file http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMCharacterData_deleteData_basic_001.phpt?r1=1.1r2=1.2diff_format=u Index: php-src/ext/dom/tests/DOMCharacterData_deleteData_basic_001.phpt diff -u /dev/null php-src/ext/dom/tests/DOMCharacterData_deleteData_basic_001.phpt:1.2 --- /dev/null Mon May 25 06:07:39 2009 +++ php-src/ext/dom/tests/DOMCharacterData_deleteData_basic_001.phptMon May 25 06:07:39 2009 @@ -0,0 +1,20 @@ +--TEST-- +DOMCharacterData::deleteData() with count exceeding string size. +--CREDITS-- +Eric Lee Stewart ericleestew...@gmail.com +# TestFest Atlanta 2009-05-24 +--SKIPIF-- +?php require_once('skipif.inc'); ? +--FILE-- +?php +$document = new DOMDocument; +$root = $document-createElement('root'); +$document-appendChild($root); + +$cdata = $document-createCDATASection('test'); +$root-appendChild($cdata); +$cdata-deleteData(1, 10); +var_dump($cdata-data); +? +--EXPECTF-- +%unicode|string%(%d) t \ No newline at end of file http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMCharacterData_deleteData_error_001.phpt?r1=1.1r2=1.2diff_format=u Index: php-src/ext/dom/tests/DOMCharacterData_deleteData_error_001.phpt diff -u /dev/null php-src/ext/dom/tests/DOMCharacterData_deleteData_error_001.phpt:1.2 --- /dev/null Mon May 25 06:07:39 2009 +++ php-src/ext/dom/tests/DOMCharacterData_deleteData_error_001.phptMon May 25 06:07:39 2009 @@ -0,0 +1,19 @@ +--TEST-- +DOMCharacterData::deleteData() with no arguments. +--CREDITS-- +Eric Lee Stewart ericleestew...@gmail.com +# TestFest Atlanta 2009-05-24 +--SKIPIF-- +?php require_once('skipif.inc'); ? +--FILE-- +?php +$document = new DOMDocument; +$root = $document-createElement('root'); +$document-appendChild($root); + +$cdata = $document-createCDATASection('test'); +$root-appendChild($cdata); +$cdata-deleteData(); +? +--EXPECTF-- +Warning: DOMCharacterData::deleteData() expects exactly 2 parameters, 0 given in %s on line %d \ No newline at end of file http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMCharacterData_deleteData_error_002.phpt?r1=1.1r2=1.2diff_format=u Index: php-src/ext/dom/tests/DOMCharacterData_deleteData_error_002.phpt diff -u /dev/null php-src/ext/dom/tests/DOMCharacterData_deleteData_error_002.phpt:1.2 --- /dev/null Mon May 25 06:07:39 2009 +++ php-src/ext/dom/tests/DOMCharacterData_deleteData_error_002.phptMon May 25 06:07:39 2009 @@ -0,0 +1,23 @@ +--TEST
[PHP-CVS] cvs: php-src(PHP_5_2) /ext/dom/tests DOMCharacterData_appendData_error_001.phpt DOMCharacterData_deleteData_basic_001.phpt DOMCharacterData_deleteData_error_001.phpt DOMCharacterData_deleteD
ericstewart Mon May 25 05:58:46 2009 UTC Added files: (Branch: PHP_5_2) /php-src/ext/dom/tests DOMCharacterData_appendData_error_001.phpt DOMCharacterData_deleteData_basic_001.phpt DOMCharacterData_deleteData_error_001.phpt DOMCharacterData_deleteData_error_002.phpt DOMCharacterData_insertData_error_001.phpt DOMCharacterData_replaceData_error_001.phpt DOMComment_construct_error_001.phpt DOMDocumentFragment_appendXML_basic_001.phpt DOMDocumentFragment_appendXML_error_001.phpt DOMDocumentFragment_construct_basic_001.phpt DOMDocumentFragment_construct_error_001.phpt Log: Add the following new tests: DOMCharacterData::appendData() with no arguments. DOMCharacterData::deleteData() with count exceeding string size. DOMCharacterData::deleteData() with no arguments. DOMCharacterData::deleteData() with offset exceeding string size. DOMCharacterData::insertData() with no arguments. DOMCharacterData::replaceData() with no arguments. DOMComment::__construct() with more arguments than acceptable. DOMDocumentFragment::__construct(). DOMDocumentFragment::__construct() with too many errors. DOMDocumentFragment::appendXML() with no arguments. DOMDocumentFragment::appendXML() with children with properties. http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMCharacterData_appendData_error_001.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMCharacterData_appendData_error_001.phpt +++ php-src/ext/dom/tests/DOMCharacterData_appendData_error_001.phpt http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMCharacterData_deleteData_basic_001.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMCharacterData_deleteData_basic_001.phpt +++ php-src/ext/dom/tests/DOMCharacterData_deleteData_basic_001.phpt http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMCharacterData_deleteData_error_001.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMCharacterData_deleteData_error_001.phpt +++ php-src/ext/dom/tests/DOMCharacterData_deleteData_error_001.phpt http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMCharacterData_deleteData_error_002.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMCharacterData_deleteData_error_002.phpt +++ php-src/ext/dom/tests/DOMCharacterData_deleteData_error_002.phpt http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMCharacterData_insertData_error_001.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMCharacterData_insertData_error_001.phpt +++ php-src/ext/dom/tests/DOMCharacterData_insertData_error_001.phpt http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMCharacterData_replaceData_error_001.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMCharacterData_replaceData_error_001.phpt +++ php-src/ext/dom/tests/DOMCharacterData_replaceData_error_001.phpt http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMComment_construct_error_001.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMComment_construct_error_001.phpt +++ php-src/ext/dom/tests/DOMComment_construct_error_001.phpt http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMDocumentFragment_appendXML_basic_001.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMDocumentFragment_appendXML_basic_001.phpt +++ php-src/ext/dom/tests/DOMDocumentFragment_appendXML_basic_001.phpt http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMDocumentFragment_appendXML_error_001.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMDocumentFragment_appendXML_error_001.phpt +++ php-src/ext/dom/tests/DOMDocumentFragment_appendXML_error_001.phpt http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMDocumentFragment_construct_basic_001.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMDocumentFragment_construct_basic_001.phpt +++ php-src/ext/dom/tests/DOMDocumentFragment_construct_basic_001.phpt http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMDocumentFragment_construct_error_001.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMDocumentFragment_construct_error_001.phpt +++ php-src/ext/dom/tests/DOMDocumentFragment_construct_error_001.phpt -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src /ext/dom/tests DOMAttr_construct_error_001.phpt
ericstewart Sat May 23 01:32:57 2009 UTC Added files: /php-src/ext/dom/tests DOMAttr_construct_error_001.phpt Log: New test: DOMAttr __construct() with no arguments. http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMAttr_construct_error_001.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMAttr_construct_error_001.phpt +++ php-src/ext/dom/tests/DOMAttr_construct_error_001.phpt --TEST-- DOMAttr __construct() with no arguments. --CREDITS-- Josh Sweeney jswee...@alt-invest.net # TestFest Atlanta 2009-05-14 --SKIPIF-- ?php require_once('skipif.inc'); ? --FILE-- ?php $attr = new DOMAttr(); ? --EXPECTF-- Fatal error: Uncaught exception 'DOMException' with message 'DOMAttr::__construct() expects at least 1 parameter, 0 given' in %s:%d Stack trace: #0 %s(%d): DOMAttr-__construct() #1 {main} thrown in %s on line %d -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src(PHP_5_3) /ext/dom/tests DOMAttr_construct_error_001.phpt
ericstewart Sat May 23 01:33:40 2009 UTC Added files: (Branch: PHP_5_3) /php-src/ext/dom/tests DOMAttr_construct_error_001.phpt Log: New test: DOMAttr __construct() with no arguments. http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMAttr_construct_error_001.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMAttr_construct_error_001.phpt +++ php-src/ext/dom/tests/DOMAttr_construct_error_001.phpt --TEST-- DOMAttr __construct() with no arguments. --CREDITS-- Josh Sweeney jswee...@alt-invest.net # TestFest Atlanta 2009-05-14 --SKIPIF-- ?php require_once('skipif.inc'); ? --FILE-- ?php $attr = new DOMAttr(); ? --EXPECTF-- Fatal error: Uncaught exception 'DOMException' with message 'DOMAttr::__construct() expects at least 1 parameter, 0 given' in %s:%d Stack trace: #0 %s(%d): DOMAttr-__construct() #1 {main} thrown in %s on line %d -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src(PHP_5_2) /ext/dom/tests DOMAttr_construct_error_001.phpt
ericstewart Sat May 23 01:34:05 2009 UTC Added files: (Branch: PHP_5_2) /php-src/ext/dom/tests DOMAttr_construct_error_001.phpt Log: New test: DOMAttr __construct() with no arguments. http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMAttr_construct_error_001.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMAttr_construct_error_001.phpt +++ php-src/ext/dom/tests/DOMAttr_construct_error_001.phpt --TEST-- DOMAttr __construct() with no arguments. --CREDITS-- Josh Sweeney jswee...@alt-invest.net # TestFest Atlanta 2009-05-14 --SKIPIF-- ?php require_once('skipif.inc'); ? --FILE-- ?php $attr = new DOMAttr(); ? --EXPECTF-- Fatal error: Uncaught exception 'DOMException' with message 'DOMAttr::__construct() expects at least 1 parameter, 0 given' in %s:%d Stack trace: #0 %s(%d): DOMAttr-__construct() #1 {main} thrown in %s on line %d -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src /ext/dom/tests DOMAttr_name_basic_001.phpt DOMAttr_ownerElement_error_001.phpt DOMAttr_value_basic_002.phpt DOMCDATASection_construct_error_001.phpt DOMCharacterData_data_error_
ericstewart Sat May 23 01:41:27 2009 UTC Added files: /php-src/ext/dom/tests DOMAttr_name_basic_001.phpt DOMAttr_ownerElement_error_001.phpt DOMAttr_value_basic_002.phpt DOMCDATASection_construct_error_001.phpt DOMCharacterData_data_error_002.phpt Log: New test: DOMAttr read $name property. New test: DOMAttr read $ownerElement with null parent. New test: DOMAttr write non-string $value property New test: DOMCDATASection __construct() with no arguments. New test: DOMCharacterData - Invalid State Error when getting data out of content. http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMAttr_name_basic_001.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMAttr_name_basic_001.phpt +++ php-src/ext/dom/tests/DOMAttr_name_basic_001.phpt --TEST-- DOMAttr read $name property. --CREDITS-- Nic Rosental nicrosen...@gmail.com # TestFest Atlanta 2009-05-14 --SKIPIF-- ?php require_once('skipif.inc'); ? --FILE-- ?php $attr = new DOMAttr('category', 'books'); print $attr-name; ? --EXPECT-- category http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMAttr_ownerElement_error_001.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMAttr_ownerElement_error_001.phpt +++ php-src/ext/dom/tests/DOMAttr_ownerElement_error_001.phpt --TEST-- Read $ownerElement with null parent. --CREDITS-- Travis Pew # TestFest Atlanta 2009-05-14 --SKIPIF-- ?php require_once('skipif.inc'); ? --FILE-- ?php $document = new DOMDocument; $root = $document-createElement('root'); $document-appendChild($root); $attr = $root-setAttribute('category', 'books'); $document-removeChild($root); $root = null; var_dump($attr-ownerElement); ? --EXPECTF-- Warning: Couldn't fetch DOMAttr. Node no longer exists in %s on line %d Notice: Undefined property: DOMAttr::$ownerElement in %s on line %d NULL http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMAttr_value_basic_002.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMAttr_value_basic_002.phpt +++ php-src/ext/dom/tests/DOMAttr_value_basic_002.phpt --TEST-- Write non-string $value property --CREDIT-- Eric Berg ehb...@gmail.com # TestFest Atlanta 2009-05-14 --SKIPIF-- ?php require_once('skipif.inc'); ? --FILE-- ?php $attr = new DOMAttr('category'); $attr-value = 1; print $attr-value; ? --EXPECTF-- 1 http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMCDATASection_construct_error_001.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMCDATASection_construct_error_001.phpt +++ php-src/ext/dom/tests/DOMCDATASection_construct_error_001.phpt --TEST-- __construct() with no arguments. --CREDITS-- Nic Rosental nicrosen...@gmail.com # TestFest Atlanta 2009-5-14 --SKIPIF-- ?php require_once('skipif.inc'); ? --FILE-- ?php try { $section = new DOMCDataSection(); } catch (Exception $e) { echo $e-getMessage(); } ? --EXPECT-- DOMCdataSection::__construct() expects exactly 1 parameter, 0 given http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMCharacterData_data_error_002.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMCharacterData_data_error_002.phpt +++ php-src/ext/dom/tests/DOMCharacterData_data_error_002.phpt --TEST-- Invalid State Error when getting data on DOMCharacterData out of content. --CREDIT-- Eric Berg ehb...@gmail.com # TestFest Atlanta 2009-05-14 --SKIPIF-- ?php require_once('skipif.inc'); ? --FILE-- ?php $character_data = new DOMCharacterData(); print $character_data-data; ? --EXPECTF-- Warning: main(): Invalid State Error in %s on line %d -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src(PHP_5_3) /ext/dom/tests DOMAttr_name_basic_001.phpt DOMAttr_ownerElement_error_001.phpt DOMAttr_value_basic_002.phpt DOMCDATASection_construct_error_001.phpt DOMCharacterData_da
ericstewart Sat May 23 01:42:37 2009 UTC Added files: (Branch: PHP_5_3) /php-src/ext/dom/tests DOMAttr_name_basic_001.phpt DOMAttr_ownerElement_error_001.phpt DOMAttr_value_basic_002.phpt DOMCDATASection_construct_error_001.phpt DOMCharacterData_data_error_002.phpt Log: New test: DOMAttr read $name property. New test: DOMAttr read $ownerElement with null parent. New test: DOMAttr write non-string $value property New test: DOMCDATASection __construct() with no arguments. New test: DOMCharacterData - Invalid State Error when getting data out of content. http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMAttr_name_basic_001.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMAttr_name_basic_001.phpt +++ php-src/ext/dom/tests/DOMAttr_name_basic_001.phpt --TEST-- DOMAttr read $name property. --CREDITS-- Nic Rosental nicrosen...@gmail.com # TestFest Atlanta 2009-05-14 --SKIPIF-- ?php require_once('skipif.inc'); ? --FILE-- ?php $attr = new DOMAttr('category', 'books'); print $attr-name; ? --EXPECT-- category http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMAttr_ownerElement_error_001.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMAttr_ownerElement_error_001.phpt +++ php-src/ext/dom/tests/DOMAttr_ownerElement_error_001.phpt --TEST-- Read $ownerElement with null parent. --CREDITS-- Travis Pew # TestFest Atlanta 2009-05-14 --SKIPIF-- ?php require_once('skipif.inc'); ? --FILE-- ?php $document = new DOMDocument; $root = $document-createElement('root'); $document-appendChild($root); $attr = $root-setAttribute('category', 'books'); $document-removeChild($root); $root = null; var_dump($attr-ownerElement); ? --EXPECTF-- Warning: Couldn't fetch DOMAttr. Node no longer exists in %s on line %d Notice: Undefined property: DOMAttr::$ownerElement in %s on line %d NULL http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMAttr_value_basic_002.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMAttr_value_basic_002.phpt +++ php-src/ext/dom/tests/DOMAttr_value_basic_002.phpt --TEST-- Write non-string $value property --CREDIT-- Eric Berg ehb...@gmail.com # TestFest Atlanta 2009-05-14 --SKIPIF-- ?php require_once('skipif.inc'); ? --FILE-- ?php $attr = new DOMAttr('category'); $attr-value = 1; print $attr-value; ? --EXPECTF-- 1 http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMCDATASection_construct_error_001.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMCDATASection_construct_error_001.phpt +++ php-src/ext/dom/tests/DOMCDATASection_construct_error_001.phpt --TEST-- __construct() with no arguments. --CREDITS-- Nic Rosental nicrosen...@gmail.com # TestFest Atlanta 2009-5-14 --SKIPIF-- ?php require_once('skipif.inc'); ? --FILE-- ?php try { $section = new DOMCDataSection(); } catch (Exception $e) { echo $e-getMessage(); } ? --EXPECT-- DOMCdataSection::__construct() expects exactly 1 parameter, 0 given http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMCharacterData_data_error_002.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMCharacterData_data_error_002.phpt +++ php-src/ext/dom/tests/DOMCharacterData_data_error_002.phpt --TEST-- Invalid State Error when getting data on DOMCharacterData out of content. --CREDIT-- Eric Berg ehb...@gmail.com # TestFest Atlanta 2009-05-14 --SKIPIF-- ?php require_once('skipif.inc'); ? --FILE-- ?php $character_data = new DOMCharacterData(); print $character_data-data; ? --EXPECTF-- Warning: main(): Invalid State Error in %s on line %d -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src(PHP_5_2) /ext/dom/tests DOMAttr_name_basic_001.phpt DOMAttr_ownerElement_error_001.phpt DOMAttr_value_basic_002.phpt DOMCDATASection_construct_error_001.phpt DOMCharacterData_da
ericstewart Sat May 23 01:43:48 2009 UTC Added files: (Branch: PHP_5_2) /php-src/ext/dom/tests DOMAttr_name_basic_001.phpt DOMAttr_ownerElement_error_001.phpt DOMAttr_value_basic_002.phpt DOMCDATASection_construct_error_001.phpt DOMCharacterData_data_error_002.phpt Log: New test: DOMAttr read $name property. New test: DOMAttr read $ownerElement with null parent. New test: DOMAttr write non-string $value property New test: DOMCDATASection __construct() with no arguments. New test: DOMCharacterData - Invalid State Error when getting data out of content. http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMAttr_name_basic_001.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMAttr_name_basic_001.phpt +++ php-src/ext/dom/tests/DOMAttr_name_basic_001.phpt --TEST-- DOMAttr read $name property. --CREDITS-- Nic Rosental nicrosen...@gmail.com # TestFest Atlanta 2009-05-14 --SKIPIF-- ?php require_once('skipif.inc'); ? --FILE-- ?php $attr = new DOMAttr('category', 'books'); print $attr-name; ? --EXPECT-- category http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMAttr_ownerElement_error_001.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMAttr_ownerElement_error_001.phpt +++ php-src/ext/dom/tests/DOMAttr_ownerElement_error_001.phpt --TEST-- Read $ownerElement with null parent. --CREDITS-- Travis Pew # TestFest Atlanta 2009-05-14 --SKIPIF-- ?php require_once('skipif.inc'); ? --FILE-- ?php $document = new DOMDocument; $root = $document-createElement('root'); $document-appendChild($root); $attr = $root-setAttribute('category', 'books'); $document-removeChild($root); $root = null; var_dump($attr-ownerElement); ? --EXPECTF-- Warning: Couldn't fetch DOMAttr. Node no longer exists in %s on line %d Notice: Undefined property: DOMAttr::$ownerElement in %s on line %d NULL http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMAttr_value_basic_002.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMAttr_value_basic_002.phpt +++ php-src/ext/dom/tests/DOMAttr_value_basic_002.phpt --TEST-- Write non-string $value property --CREDIT-- Eric Berg ehb...@gmail.com # TestFest Atlanta 2009-05-14 --SKIPIF-- ?php require_once('skipif.inc'); ? --FILE-- ?php $attr = new DOMAttr('category'); $attr-value = 1; print $attr-value; ? --EXPECTF-- 1 http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMCDATASection_construct_error_001.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMCDATASection_construct_error_001.phpt +++ php-src/ext/dom/tests/DOMCDATASection_construct_error_001.phpt --TEST-- __construct() with no arguments. --CREDITS-- Nic Rosental nicrosen...@gmail.com # TestFest Atlanta 2009-5-14 --SKIPIF-- ?php require_once('skipif.inc'); ? --FILE-- ?php try { $section = new DOMCDataSection(); } catch (Exception $e) { echo $e-getMessage(); } ? --EXPECT-- DOMCdataSection::__construct() expects exactly 1 parameter, 0 given http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMCharacterData_data_error_002.phpt?view=markuprev=1.1 Index: php-src/ext/dom/tests/DOMCharacterData_data_error_002.phpt +++ php-src/ext/dom/tests/DOMCharacterData_data_error_002.phpt --TEST-- Invalid State Error when getting data on DOMCharacterData out of content. --CREDIT-- Eric Berg ehb...@gmail.com # TestFest Atlanta 2009-05-14 --SKIPIF-- ?php require_once('skipif.inc'); ? --FILE-- ?php $character_data = new DOMCharacterData(); print $character_data-data; ? --EXPECTF-- Warning: main(): Invalid State Error in %s on line %d -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src(PHP_5_3) / php.ini-development php.ini-production
ericstewart Thu Mar 26 01:38:53 2009 UTC Modified files: (Branch: PHP_5_3) /php-srcphp.ini-development php.ini-production Log: Corrected missing comment. http://cvs.php.net/viewvc.cgi/php-src/php.ini-development?r1=1.1.2.3r2=1.1.2.4diff_format=u Index: php-src/php.ini-development diff -u php-src/php.ini-development:1.1.2.3 php-src/php.ini-development:1.1.2.4 --- php-src/php.ini-development:1.1.2.3 Mon Mar 23 02:36:34 2009 +++ php-src/php.ini-development Thu Mar 26 01:38:53 2009 @@ -578,7 +578,7 @@ ; Default Value: Off ; Development Value: On ; Production Value: Off -http://www.php.net/manual/en/errorfunc.configuration.php#ini.track-errors +; http://www.php.net/manual/en/errorfunc.configuration.php#ini.track-errors track_errors = On ; Turn off normal error reporting and emit XML-RPC error XML http://cvs.php.net/viewvc.cgi/php-src/php.ini-production?r1=1.1.2.3r2=1.1.2.4diff_format=u Index: php-src/php.ini-production diff -u php-src/php.ini-production:1.1.2.3 php-src/php.ini-production:1.1.2.4 --- php-src/php.ini-production:1.1.2.3 Mon Mar 23 02:36:34 2009 +++ php-src/php.ini-production Thu Mar 26 01:38:53 2009 @@ -578,7 +578,7 @@ ; Default Value: Off ; Development Value: On ; Production Value: Off -http://www.php.net/manual/en/errorfunc.configuration.php#ini.track-errors +; http://www.php.net/manual/en/errorfunc.configuration.php#ini.track-errors track_errors = Off ; Turn off normal error reporting and emit XML-RPC error XML -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src / php.ini-development php.ini-production
ericstewart Thu Mar 26 01:39:10 2009 UTC Modified files: /php-srcphp.ini-development php.ini-production Log: Corrected missing comment. http://cvs.php.net/viewvc.cgi/php-src/php.ini-development?r1=1.2r2=1.3diff_format=u Index: php-src/php.ini-development diff -u php-src/php.ini-development:1.2 php-src/php.ini-development:1.3 --- php-src/php.ini-development:1.2 Mon Mar 23 02:40:30 2009 +++ php-src/php.ini-development Thu Mar 26 01:39:10 2009 @@ -578,7 +578,7 @@ ; Default Value: Off ; Development Value: On ; Production Value: Off -http://www.php.net/manual/en/errorfunc.configuration.php#ini.track-errors +; http://www.php.net/manual/en/errorfunc.configuration.php#ini.track-errors track_errors = On ; Turn off normal error reporting and emit XML-RPC error XML http://cvs.php.net/viewvc.cgi/php-src/php.ini-production?r1=1.2r2=1.3diff_format=u Index: php-src/php.ini-production diff -u php-src/php.ini-production:1.2 php-src/php.ini-production:1.3 --- php-src/php.ini-production:1.2 Mon Mar 23 02:40:30 2009 +++ php-src/php.ini-production Thu Mar 26 01:39:10 2009 @@ -578,7 +578,7 @@ ; Default Value: Off ; Development Value: On ; Production Value: Off -http://www.php.net/manual/en/errorfunc.configuration.php#ini.track-errors +; http://www.php.net/manual/en/errorfunc.configuration.php#ini.track-errors track_errors = Off ; Turn off normal error reporting and emit XML-RPC error XML -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src(PHP_5_3) / php.ini-development php.ini-production
ericstewart Mon Mar 23 02:36:35 2009 UTC Modified files: (Branch: PHP_5_3) /php-srcphp.ini-development php.ini-production Log: 1. Involves an mbstring setting correction regarding: http://marc.info/?l=php-cvsm=123596904426621w=2 2. Added mbstring.http_output_conv_mimetype directive. 3. Adds an additional comment including XOR in the list of usable bitwise operators. 4. Note regarding the merge of E_STRICT into E_ALL in PHP 6.0.0. 5. Notes regarding [PATH] and [HOST] use in CGI/FastCGI. http://cvs.php.net/viewvc.cgi/php-src/php.ini-development?r1=1.1.2.2r2=1.1.2.3diff_format=u Index: php-src/php.ini-development diff -u php-src/php.ini-development:1.1.2.2 php-src/php.ini-development:1.1.2.3 --- php-src/php.ini-development:1.1.2.2 Tue Mar 17 19:19:17 2009 +++ php-src/php.ini-development Mon Mar 23 02:36:34 2009 @@ -22,20 +22,32 @@ ; The syntax of the file is extremely simple. Whitespace and Lines ; beginning with a semicolon are silently ignored (as you probably guessed). ; Section headers (e.g. [Foo]) are also silently ignored, even though -; they might mean something in the future. The exceptions to this rule are -; section headers starting with [HOST= or [PATH= +; they might mean something in the future. + +; Directives following the section heading [PATH=/www/mysite] only +; apply to PHP files in the /www/mysite directory. Directives +; following the section heading [HOST=www.example.com] only apply to +; PHP files served from www.example.com. Directives set in these +; special sections cannot be overridden by user-defined INI files or +; at runtime. Currently, [PATH=] and [HOST=] sections only work under +; CGI/FastCGI. ; http://www.php.net/manual/en/ini.sections.php ; Directives are specified using the following syntax: ; directive = value ; Directive names are *case sensitive* - foo=bar is different from FOO=bar. +; Directives are variables used to configure PHP or PHP extensions. +; There is no name validation. If PHP can't find an expected +; directive because it is not set or is mistyped, a default value will be used. ; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one ; of the INI constants (On, Off, True, False, Yes, No and None) or an expression -; (e.g. E_ALL ~E_NOTICE), or a quoted string (foo). +; (e.g. E_ALL ~E_NOTICE), a quoted string (bar), or a reference to a +; previously set variable or directive (e.g. ${foo}) ; Expressions in the INI file are limited to bitwise operators and parentheses: ; | bitwise OR +; ^ bitwise XOR ; bitwise AND ; ~ bitwise NOT ; ! boolean NOT @@ -461,7 +473,7 @@ ; development and early testing. ; ; Error Level Constants: -; E_ALL - All errors and warnings (doesn't include E_STRICT) +; E_ALL - All errors and warnings (includes E_STRICT as of PHP 6.0.0) ; E_ERROR - fatal run-time errors ; E_RECOVERABLE_ERROR - almost fatal run-time errors ; E_WARNING - run-time warnings (non-fatal errors) @@ -916,7 +928,7 @@ ; ; extension=/path/to/extension/msql.so ; -; If you only provide the name of the extension, PHP will look for it in it's +; If you only provide the name of the extension, PHP will look for it in its ; default extension directory. ; ; Windows Extensions @@ -1075,7 +1087,7 @@ mail.add_x_header = On ; Log all mail() calls including the full path of the script, line #, to address and headers -mail.log = +;mail.log = [SQL] ; http://www.php.net/manual/en/ini.core.php#ini.sql.safe-mode @@ -1678,7 +1690,12 @@ ;mbstring.func_overload = 0 ; enable strict encoding detection. -;mbstring.strict_encoding = Off +;mbstring.strict_detection = Off + +; This directive specifies the regex pattern of content types for which mb_output_handler() +; is activated. +; Default: mbstring.http_output_conv_mimetype=^(text/|application/xhtml\+xml) +;mbstring.http_output_conv_mimetype= [gd] ; Tell the jpeg decode to ignore warnings and try to create http://cvs.php.net/viewvc.cgi/php-src/php.ini-production?r1=1.1.2.2r2=1.1.2.3diff_format=u Index: php-src/php.ini-production diff -u php-src/php.ini-production:1.1.2.2 php-src/php.ini-production:1.1.2.3 --- php-src/php.ini-production:1.1.2.2 Tue Mar 17 19:19:17 2009 +++ php-src/php.ini-production Mon Mar 23 02:36:34 2009 @@ -22,20 +22,32 @@ ; The syntax of the file is extremely simple. Whitespace and Lines ; beginning with a semicolon are silently ignored (as you probably guessed). ; Section headers (e.g. [Foo]) are also silently ignored, even though -; they might mean something in the future. The exceptions to this rule are -; section headers starting with [HOST= or [PATH= +; they might mean something in the future. + +; Directives following the section heading [PATH=/www/mysite] only +; apply to PHP files in the /www/mysite directory. Directives +; following the section heading [HOST=www.example.com] only apply to +; PHP files served