home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2005 June / PCpro_2005_06.ISO / files / opensource / xamp / xampp-win32.exe / xampp / .tmp008.phpt < prev    next >
Encoding:
Text File  |  2004-03-24  |  357 b   |  21 lines

  1. --TEST--
  2. OO API Segfault when opening a file is not possible
  3. --SKIPIF--
  4. <?php 
  5. /* vim600: sw=4 ts=4 fdm=marker syn=php
  6. */
  7. if (!extension_loaded("mailparse")) print "skip"; ?>
  8. --POST--
  9. --GET--
  10. --FILE--
  11. <?php
  12. error_reporting(0);
  13. $msg = & new MimeMessage("file", md5(uniqid("nothere")));
  14. if (is_resource($msg))
  15.     echo "Err??";
  16. else
  17.     echo "OK";
  18. ?>
  19. --EXPECT--
  20. OK
  21.