You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public function testSwitch14(result_type = 1)
{
var ret;
switch (result_type) {
case 1:
case MYSQL_ASSOC:
case MYSQLI_ASSOC:
let ret = "aaa"; <----- cannot execute
break;
default:
let ret = "bbb"; <----- cannot execute
break;
}
return ret;
}
The constant MYSQL_ASSOC is not in php7, or cannot find a constant.
Thus, the following code cannot execute because of the ZEPHIR_MM_GET_CONSTANT macro.
In the switch syntax also do constant detection.
I'd like to ask: Does it make sense to delete the direct return code of the ZEPHIR_MM_GET_CONSTANT macro?
test/flow/switchflow.zep
ext/test/flow/switchflow.zep.c
kernel/main.h
To such
The constant MYSQL_ASSOC is not in php7, or cannot find a constant.
Thus, the following code cannot execute because of the ZEPHIR_MM_GET_CONSTANT macro.
In the switch syntax also do constant detection.
I'd like to ask: Does it make sense to delete the direct return code of the ZEPHIR_MM_GET_CONSTANT macro?
Thank you very much!
@sergeyklay @dreamsxin
The text was updated successfully, but these errors were encountered: