Bug #81269 [NEW]: getDocComment is not working correctly

From: Date: Fri, 16 Jul 2021 21:02:30 +0000
Subject: Bug #81269 [NEW]: getDocComment is not working correctly
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-18964@lists.php.net to get a copy of this message
From:             popov654 at yandex dot ru
Operating system: Windows 7 x64 Pro
PHP version:      8.0.8
Package:          Doc Build problem
Bug Type:         Bug
Bug description:getDocComment is not working correctly

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 bug report at https://bugs.php.net/bug.php?id=81269&edit=1
-- 
Fix committed:                    https://bugs.php.net/fix.php?id=81269&r=fixed
Fixed in release:                 https://bugs.php.net/fix.php?id=81269&r=alreadyfixed
Need backtrace:                   https://bugs.php.net/fix.php?id=81269&r=needtrace
Need Reproduce Script:            https://bugs.php.net/fix.php?id=81269&r=needscript
Try newer version:                https://bugs.php.net/fix.php?id=81269&r=oldversion
Not developer issue:              https://bugs.php.net/fix.php?id=81269&r=support
Expected behavior:                https://bugs.php.net/fix.php?id=81269&r=notwrong
Not enough info:                  https://bugs.php.net/fix.php?id=81269&r=notenoughinfo
Submitted twice:                  https://bugs.php.net/fix.php?id=81269&r=submittedtwice
register_globals:                 https://bugs.php.net/fix.php?id=81269&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=81269&r=phptooold
Daylight Savings:                 https://bugs.php.net/fix.php?id=81269&r=dst
IIS Stability:                    https://bugs.php.net/fix.php?id=81269&r=isapi
Install GNU Sed:                  https://bugs.php.net/fix.php?id=81269&r=gnused
Floating point limitations:       https://bugs.php.net/fix.php?id=81269&r=float
No Zend Extensions:               https://bugs.php.net/fix.php?id=81269&r=nozend
MySQL Configuration Error:        https://bugs.php.net/fix.php?id=81269&r=mysqlcfg


Thread (2 messages)

« previous php.doc.bugs (#18964) next »