Sophie

Sophie

distrib > Mandriva > current > i586 > media > main-updates > by-pkgid > f047b3c1666689262c31d96db10c4e00 > files > 17

php-apc-3.1.9-3.2mdv2010.2.i586.rpm

--TEST--
APC: global spaces (php 5.3)
--SKIPIF--
<?php
    require_once(dirname(__FILE__) . '/skipif.inc'); 
    if(version_compare(zend_version(), '2.3.0') < 0) {
		echo "skip\n";
	}
?>
--INI--
apc.enabled=1
apc.enable_cli=1
apc.file_update_protection=0
--FILE--
<?php

require_once(dirname(__FILE__) . '/php_5_3_ns.inc'); 

$a = new Foo\Bar\Baz();
$a->foo();
var_dump(Foo\Bar\sort());
?>
===DONE===
<?php exit(0); ?>
--EXPECTF--
array(4) {
  [0]=>
  int(1)
  [1]=>
  int(2)
  [2]=>
  int(3)
  [3]=>
  int(4)
}
array(4) {
  [0]=>
  int(1)
  [1]=>
  int(2)
  [2]=>
  int(3)
  [3]=>
  int(4)
}
string(8) "IT WORKS"
===DONE===