Bug #79250 [Fbk->NoF]: EG(current_module) NULL during property declaration
| From: | php-bugs at lists dot php dot net | Date: | Sun, 21 Feb 2021 04:22:19 +0000 |
| Subject: | Bug #79250 [Fbk->NoF]: EG(current_module) NULL during property declaration | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-232304@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=79250&edit=1
ID: 79250
Updated by: php-bugs@lists.php.net
Reported by: KseniMailWOW at gmail dot com
Summary: EG(current_module) NULL during property declaration
-Status: Feedback
+Status: No Feedback
Type: Bug
Package: Class/Object related
Operating System: All (Windows7+)
PHP Version: 7.4.3RC1
Assigned To: cmb
Private report: N
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2021-02-11 11:57:03] cmb@php.net
The pastbin samples are no longer available. Has this issue be
resolved in the meantime?
------------------------------------------------------------------------
[2020-02-10 16:54:12] KseniMailWOW at gmail dot com
Working code happens in function void Test()
This function starts after : php_request_startup
if (sapi_module.startup(&sapi_module) != FAILURE) {
SessionInit2 = php_request_startup()!=FAILURE;
if(SessionInit2) Test();
}
// zend_declare_property_null(register_class_entry, "line", sizeof("line")-1,
ZEND_ACC_PROTECTED);
// ERROR!!!
// Project Project1.exe raised exception class $C0000005 with message 'access violation at
0x682d7e47: read of address 0x0000004c'.
// php7ts.zend_declare_property:
// 682D7E30 53 push ebx
// 682D7E31 8B5C2408 mov ebx,[esp+$08]
// 682D7E35 55 push ebp
// 682D7E36 8B6C2414 mov ebp,[esp+$14]
// 682D7E3A 56 push esi
// 682D7E3B F60301 test byte ptr [ebx],$01
// 682D7E3E 57 push edi
// 682D7E3F 7413 jz $682d7e54
// 682D7E41 8B8318010000 mov eax,[ebx+$00000118]
// 682D7E47 80784C01 cmp byte ptr [eax+$4c],$01 !!!!!!!!!!!!!!!!
------------------------------------------------------------------------
[2020-02-10 16:50:56] KseniMailWOW at gmail dot com
Sorry for not immediately providing the full code that shows errors
https://pastebin.com/1K4iiEH3
Code execution works well, but standard functions fail a function call is_persistent_class
------------------------------------------------------------------------
[2020-02-10 11:33:14] nikic@php.net
Your link does not show a use of zend_declare_property_*. Can you please show at which point you
execute this call?
------------------------------------------------------------------------
[2020-02-10 11:23:52] KseniMailWOW at gmail dot com
The following patch has been added/updated:
Patch Name: ErrorCorrectingFunction
Revision: 1581333832
URL: https://bugs.php.net/patch-display.php?bug=79250&patch=ErrorCorrectingFunction&revision=1581333832
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=79250
--
Edit this bug report at https://bugs.php.net/bug.php?id=79250&edit=1