View Issue Details

IDProjectCategoryView StatusLast Update
0002441XdebugUncategorizedpublic2026-10-08 16:31
Reporterderick Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version3.6.0alpha1 
Target Version3.5dev 
Summary0002441: var_export() with min() gives different answers, depending on whether Xdebug is on or off
Description

With Xdebug on, var_export(min(0,null));, produces 0, and with it off, it produces NULL.

Steps To Reproduce

cat min.php:

<?php

var_export( min(0,null) );
derick@gargleblaster:/tmp$ XDEBUG_MODE=off php -n -dzend_extension=xdebug min.php 
NULL
derick@gargleblaster:/tmp$ XDEBUG_MODE=develop php -n -dzend_extension=xdebug min.php 
0
TagsNo tags attached.
Operating System
PHP Version8.5.0-8.5.4

Activities

There are no notes attached to this issue.