more reflections work
Import Zend reflection tests

php-src/ext/reflection/tests in PHP-5.4.21
Use more consistent naming in reflection extension

Specifically, use W_<PHP class name> and k_<PHP class name> everywhere
it applies.
Start implementing ReflectionProperty::__toString
Move __toString() implementation to W_ReflectionProperty
Implement ReflectionProperty::export()
this test passes
Fix ReflectionProperty::getValue() on static properties
register xmlparserresource
Add stub for ReflectionProperty::isDefault()
(arigo) Fix needed for PyPy's 51ad4dce5ecd changeset
add ReflectionProperty::getModifiers()
Use the same access flag values as in Zend PHP
Fix skipping of unsupported locales on OpenBSD.

has_locale() checks whether it can set LC_CTYPE, assuming that if this
succeeds, the locale is supported.

The problem is, on OpenBSD, setting LC_CTYPE for (e.g.) "fr_FR.ISO8859-1"
succeeds for LC_CTYPE, but *not* for LC_COLLATE (presumably incomplete
locale support on OpenBSD). This means that the tests which use LC_COLLATE
will fail, when they should be skipped.
Fix a regex test on OpenBSD.
Fix test_is_executable() on OpenBSD.

The path being checked was platform specific. Let's instead lookup
a binary pretty much guaranteed to exist and using ${PATH}.
Check for PHP binary early on.

This avoids obscure error messages later.
Create ReflectionProperty::getDeclaringClass
Fix getDeclaringClass()
Fix resource unwrapper