PHP userland backwards compatibility layer that emulates PHP 5.5+ core functions.

⌈⌋ ⎇ branch:  upgrade.php


Artifact [95d34121d4]

Artifact 95d34121d4ba1d00cc4d96120747ac9ea49121cb:

  • File doc/tests1all/file_put_contents.phpt — part of check-in [51e3884900] at 2010-06-22 17:03:27 on branch trunk — upgradephp-15 (user: mario size: 402)

--TEST--
file_put_contents
--FILE--
<?php

$FN = "/tmp/test_fpc";

echo 'file_put_contents("/tmp/test_fpc", "abc-test-text");'."\n";
file_put_contents($FN, "abc-test-text");

echo 'echo file_get_contents("/tmp/test_fpc");'."\n => ";
echo file_get_contents($FN);

unlink($FN);

?>
--EXPECT--
file_put_contents("/tmp/test_fpc", "abc-test-text");
echo file_get_contents("/tmp/test_fpc");
 => abc-test-text