Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
opt
/
php-8.3.12-202410171038
/
share
/
test
/
Log
/
tests
/
//opt/php-8.3.12-202410171038/share/test/Log/tests/factory.phpt
--TEST-- Log: Factory --FILE-- <?php require_once 'Log.php'; $console1 = Log::factory('console'); $console2 = Log::factory('console'); if (is_a($console1, 'Log_console') && is_a($console2, 'Log_console')) { echo "Two Log_console objects.\n"; } $reflection1 = new ReflectionObject($console1); $idProperty1 = $reflection1->getProperty('id'); $idProperty1->setAccessible(true); $id1 = $idProperty1->getValue($console1); $reflection2 = new ReflectionObject($console2); $idProperty2 = $reflection2->getProperty('id'); $idProperty2->setAccessible(true); $id2 = $idProperty2->getValue($console2); if ($id1 != $id2) { echo "The objects have different IDs.\n"; } --EXPECT-- Two Log_console objects. The objects have different IDs.