Doc #81065 [NEW]: Display problems

From: Date: Fri, 21 May 2021 11:03:02 +0000
Subject: Doc #81065 [NEW]: Display problems
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-18774@lists.php.net to get a copy of this message
From:             yuki dot nishida at sys21 dot co dot jp
Operating system: none
PHP version:      7.3.28
Package:          Unknown/Other Function
Bug Type:         Documentation Problem
Bug description:Display problems

Description:
------------
The constant value is different in different versions, so it may need to
be annotated.

ReflectionProperty (also ReflectionMethod)::IS_XXXX 
In my program, constant values are used in bitwise operations (logical
products), and I noticed that I was facing a problem where bits with
different numbers of digits could not be calculated with each other.
(Sorry, I'm Japanese and not good at English, so I'm using a translation
tool, so please forgive any grammatical errors.

) I checked the source code from Git, and it is listed at the bottom of
this column.

I apologize for the poor quality of this document, but I would
appreciate it if you could help my future students.
Thank you for reading to the end.


-----checked the source code ------
[source1]
php-src/ext/reflection/php_reflection.c
// new (7.4)
6996	REGISTER_REFLECTION_CLASS_CONST_LONG(property, "IS_PUBLIC",
ZEND_ACC_PUBLIC);
6997	REGISTER_REFLECTION_CLASS_CONST_LONG(property, "IS_PROTECTED",
ZEND_ACC_PROTECTED);
6998	REGISTER_REFLECTION_CLASS_CONST_LONG(property, "IS_PRIVATE",
ZEND_ACC_PRIVATE);

[source1]
php-src/Zend/zend_compile.h
// changed version (7.4)
 203	#define ZEND_ACC_PUBLIC                  (1 <<  0) /*     |  X  | 
X  |  X  */ // -> 1
 204	#define ZEND_ACC_PROTECTED               (1 <<  1) /*     |  X  | 
X  |  X  */ // -> 2
 205	#define ZEND_ACC_PRIVATE                 (1 <<  2) /*     |  X  | 
X  |  X  */ // -> 4

//old (5.4) -> my use version... sory!!
 130	#define ZEND_ACC_PUBLIC		0x100 // ->  256
 131	#define ZEND_ACC_PROTECTED	0x200 // ->  512
 132	#define ZEND_ACC_PRIVATE	0x400 // -> 1024
 
// old (7.3.28)
 212	#define ZEND_ACC_PUBLIC                  (1 <<  8) /*     |  X  | 
X  |  X  */ // ->  256
 213	#define ZEND_ACC_PROTECTED               (1 <<  9) /*     |  X  | 
X  |  X  */ // ->  512
 214	#define ZEND_ACC_PRIVATE                 (1 << 10) /*     |  X  | 
X  |  X  */ // -> 1024

Expected result:
----------------
https://www.php.net/manual/en/class.reflectionproperty

I think it would be desirable to have annotations added to this page.

Actual result:
--------------
There are no annotations.

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


Thread (6 messages)

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