PHP8 uopz_get_exit_status — 检索最后设置的退出状态

2023-10-08 14:44 更新

(PECL uopz 5, PECL uopz , PECL uopz 7)

uopz_get_exit_status — 检索最后设置的退出状态。

说明

uopz_get_exit_status(): mixed

检索最后设置的退出状态,即传递给exit()的值。

参数

此函数没有参数。

返回值

This function returns the last exit status, or null if exit() has not been called.

示例

示例 #1 uopz_get_exit_status() example

<?php
exit(123);
echo uopz_get_exit_status();?>

以上示例会输出:

123

注释

警告
OPcache在无条件退出后会优化掉无用代码。

参见

  • uopz_allow_exit() - 允许控制禁用的退出操作码。


以上内容是否对您有帮助:
在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号