Skip to content

Commit 9ebd712

Browse files
committed
Comparison whether class is userland or internal used the wrong macro
1 parent 863294e commit 9ebd712

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/var_export_xml.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
+----------------------------------------------------------------------+
33
| Xdebug |
44
+----------------------------------------------------------------------+
5-
| Copyright (c) 2002-2025 Derick Rethans |
5+
| Copyright (c) 2002-2026 Derick Rethans |
66
+----------------------------------------------------------------------+
77
| This source file is subject to version 1.01 of the Xdebug license, |
88
| that is bundled with this package in the file LICENSE, and is |
@@ -413,7 +413,7 @@ static int xdebug_object_element_export_xml_node(xdebug_object_item *item_nptr,
413413

414414
#if PHP_VERSION_ID >= 80400
415415
if (
416-
ZEND_USER_CODE((*item)->zobj->ce->type) &&
416+
((*item)->zobj->ce->type == ZEND_USER_CLASS) &&
417417
Z_TYPE_P((*item)->zv) == IS_PTR
418418
) {
419419
zend_property_info *prop_info = Z_PTR_P((*item)->zv);

0 commit comments

Comments
 (0)