Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
--TEST-- Bug #75090 Constants of parent IntlCalendar class not inherited --EXTENSIONS-- in..
Decoded Output download
--TEST--
Bug #75090 Constants of parent IntlCalendar class not inherited
--EXTENSIONS--
intl
--FILE--
<?php
class Foo extends IntlCalendar {}
$fooRef = new ReflectionClass(Foo::class);
$intlGregorianCalendarRef = new ReflectionClass(IntlGregorianCalendar::class);
$intlCalendarRef = new ReflectionClass(IntlCalendar::class);
var_dump(
count($fooRef->getConstants()) === count($intlCalendarRef->getConstants()),
count($intlGregorianCalendarRef->getConstants()) === count($intlCalendarRef->getConstants())
);
?>
--EXPECT--
bool(true)
bool(true)
Did this file decode correctly?
Original Code
--TEST--
Bug #75090 Constants of parent IntlCalendar class not inherited
--EXTENSIONS--
intl
--FILE--
<?php
class Foo extends IntlCalendar {}
$fooRef = new ReflectionClass(Foo::class);
$intlGregorianCalendarRef = new ReflectionClass(IntlGregorianCalendar::class);
$intlCalendarRef = new ReflectionClass(IntlCalendar::class);
var_dump(
count($fooRef->getConstants()) === count($intlCalendarRef->getConstants()),
count($intlGregorianCalendarRef->getConstants()) === count($intlCalendarRef->getConstants())
);
?>
--EXPECT--
bool(true)
bool(true)
Function Calls
None |
Stats
MD5 | 596c78a51a0f3fe1776b3f48952a2402 |
Eval Count | 0 |
Decode Time | 85 ms |