[php-src] Issue #8665: eum fails when trying to mirror items in a typical WSDL file

From: Date: Tue, 31 May 2022 11:53:32 +0000
Subject: [php-src] Issue #8665: eum fails when trying to mirror items in a typical WSDL file
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-241630@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/8665 Author: ukfreetv ### Description The following code: ```php <?php enum FareCategoryEnum { case ADVANCE; case OFF-PEAK; case ANYTIME; } enum MaxChanges { case 0; case 1; case 2; case 3; case ANY; } ``` Resulted in this output: ``` Can't use OFF-PEAK Can't use 0, 1, 2 or 3 ``` But I expected this output instead: ``` https://ojp.nationalrail.co.uk/webservices/jpservices.wsdl has these as valid input values so it would be useful to mirror the WSDL into PHP classes. If we're going to make PHP work like Modula2 it would be helpful to support Enums that can be found out in the wild. ``` ### PHP Version PHP 8.1.4 ### Operating System all

« previous php.bugs (#241630) next »