Bug #81269 [Opn->Fbk]: getDocComment is not working correctly

From: Date: Fri, 16 Jul 2021 21:13:09 +0000
Subject: Bug #81269 [Opn->Fbk]: getDocComment is not working correctly
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-235102@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=81269&edit=1 ID: 81269 Updated by: requinix@php.net Reported by: popov654 at yandex dot ru Summary: getDocComment is not working correctly -Status: Open +Status: Feedback Type: Bug Package: *General Issues Operating System: Windows 7 x64 Pro PHP Version: 8.0.8 Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2021-07-16 21:13:02] requinix@php.net What PHP extensions do you have enabled through Apache? Especially interested in anything that caches or "optimizes" code. ------------------------------------------------------------------------ [2021-07-16 21:07:06] popov654 at yandex dot ru Version of Apache on Windows is 2.4.48 x64, it is also the latest one. ------------------------------------------------------------------------ [2021-07-16 21:02:30] popov654 at yandex dot ru Description: ------------ If PHP is configured as an Apache module, the returned value is an empty string. However, if you remove the space in the second line ("Thetest"), the output is correct. If you replace the space with an underscore ("_"), it still fails. If PHP is run through the command line, the output is correct. Also on Ubuntu 20.10 with latest Apache and PHP 8.0.8 the result is correct. So I guess it is somehow related with the Apache module for Windows. Test script: --------------- <?php /** * The test * * @param foo bar * @return baz */ class TestClass { } $class = new ReflectionClass('TestClass'); print_r($class); echo $class->getDocComment(); ?> Expected result: ---------------- /** * The test * * @param foo bar * @return baz */ ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=81269&edit=1

« previous php.bugs (#235102) next »