cvs: ZendEngine2(PHP_5_2) /tests declare_001.phpt

[email protected] ("Felipe Pena")
Newsgroups php.zend-engine.cvs
Message-ID <cvsfelipe1226420180@cvsserver>
felipe		Tue Nov 11 16:16:20 2008 UTC

  Added files:                 (Branch: PHP_5_2)
    /ZendEngine2/tests	declare_001.phpt 
  Log:
  - New test
  

http://cvs.php.net/viewvc.cgi/ZendEngine2/tests/declare_001.phpt?view=markup&rev=1.1
Index: ZendEngine2/tests/declare_001.phpt
+++ ZendEngine2/tests/declare_001.phpt
--TEST--
Testing declare statement with several type values
--FILE--
<?php

declare(encoding = 1);
declare(encoding = 1.2);
declare(encoding = NULL);
declare(encoding = M_PI);
declare(encoding = 'utf-8');

print 'DONE';

?>
--EXPECTF--
Warning: Unsupported encoding [1] in %s on line %d

Warning: Unsupported encoding [1.2] in %s on line %d

Warning: Unsupported encoding [] in %s on line %d

Fatal error: Cannot use constants as encoding in %s on line %d
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.