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

⌈⌋ ⎇ branch:  upgrade.php


Artifact [da0c706602]

Artifact da0c7066026372b20679acf5a3275c5f9114ea02:

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

--TEST--
is_a
--FILE--
<?php

class y {}
class x extends y {}
$x = new x;

echo is_a($x, "x") ? "works" : "failed";
echo "\n";
echo is_a($x, "y") ? "works" : "failed";

?>
--EXPECT--
works
works