View Issue Details

IDProjectCategoryView StatusLast Update
0002185XdebugUncategorizedpublic2023-07-04 13:59
Reportervjik Assigned Toderick  
PriorityimmediateSeveritycrashReproducibilityalways
Status resolvedResolutionno change required 
Product Version3.2.1 
Summary0002185: Incompatible with uopz
Description

Environment: PHP 8.2.7 + Xdebug 3.2.1 + uopz 7.1.1

PHP code:

function x(): never { exit(0); };
x();

Throws error:

Fatal error: Uncaught TypeError: x(): never-returning function must not implicitly return in Command line code:1
Stack trace:
#0 Command line code(1): x()
#1 {main}
  thrown in Command line code on line 1
Tagsuopz
Operating System
PHP Version8.2.0-8.2.9

Activities

vjik

2023-07-01 11:34

reporter   ~0006573

Sorry, problem in uopz only.

derick

2023-07-04 13:59

administrator   ~0006574

As you said, this also happens when Xdebug is not loaded, and only uopz is:

$ php -n -dextension=uopz /tmp/2185.php

Fatal error: Uncaught TypeError: x(): never-returning function must not implicitly return in /tmp/2185.php:2
Stack trace:
#0 /tmp/2185.php(3): x()
#1 {main}
  thrown in /tmp/2185.php on line 2

Issue History

Date Modified Username Field Change
2023-07-01 10:07 vjik New Issue
2023-07-01 10:07 vjik Tag Attached: uopz
2023-07-01 11:34 vjik Note Added: 0006573
2023-07-04 13:59 derick Assigned To => derick
2023-07-04 13:59 derick Status new => resolved
2023-07-04 13:59 derick Resolution open => no change required
2023-07-04 13:59 derick Note Added: 0006574