mirror of
https://github.com/php/php-src.git
synced 2026-04-19 14:01:01 +02:00
Fix #2096
This commit is contained in:
@@ -2299,6 +2299,8 @@ PHP_FUNCTION(define)
|
||||
case IS_LONG:
|
||||
case IS_DOUBLE:
|
||||
case IS_STRING:
|
||||
case IS_BOOL:
|
||||
case IS_RESOURCE:
|
||||
break;
|
||||
default:
|
||||
php_error(E_WARNING,"Constants may only evaluate to scalar values");
|
||||
|
||||
Reference in New Issue
Block a user