|
|
|
|
@ -1,106 +0,0 @@ |
|
|
|
|
#!/bin/sh |
|
|
|
|
|
|
|
|
|
unset $(env | cut -d= -f1) |
|
|
|
|
export SHELL='/bin/bash' |
|
|
|
|
export COREPACK_ENABLE_AUTO_PIN='0' |
|
|
|
|
export SESSION_MANAGER='local/swoole-26:@/tmp/.ICE-unix/3966,unix/swoole-26:/tmp/.ICE-unix/3966' |
|
|
|
|
export QT_ACCESSIBILITY='1' |
|
|
|
|
export COLORTERM='truecolor' |
|
|
|
|
export XDG_CONFIG_DIRS='/etc/xdg/xdg-ubuntu:/etc/xdg' |
|
|
|
|
export SSH_AGENT_LAUNCHER='gnome-keyring' |
|
|
|
|
export XDG_MENU_PREFIX='gnome-' |
|
|
|
|
export GNOME_DESKTOP_SESSION_ID='this-is-deprecated' |
|
|
|
|
export GTK_IM_MODULE='fcitx' |
|
|
|
|
export AI_AGENT='claude-code_2-1-143_agent' |
|
|
|
|
export LANGUAGE='zh_CN:zh:en_US:en' |
|
|
|
|
export CLAUDE_CODE_SESSION_ID='2b8f004d-cd4c-49e8-a69a-c1a760f0576b' |
|
|
|
|
export LC_ADDRESS='zh_CN.UTF-8' |
|
|
|
|
export GNOME_SHELL_SESSION_MODE='ubuntu' |
|
|
|
|
export LC_NAME='zh_CN.UTF-8' |
|
|
|
|
export SSH_AUTH_SOCK='/run/user/1000/keyring/ssh' |
|
|
|
|
export CLAUDE_EFFORT='high' |
|
|
|
|
export XMODIFIERS='@im=fcitx' |
|
|
|
|
export DESKTOP_SESSION='ubuntu' |
|
|
|
|
export LC_MONETARY='zh_CN.UTF-8' |
|
|
|
|
export GTK_MODULES='gail:atk-bridge' |
|
|
|
|
export PWD='/home/swoole/workspace/aot/compiler' |
|
|
|
|
export LOGNAME='swoole' |
|
|
|
|
export XDG_SESSION_DESKTOP='ubuntu' |
|
|
|
|
export XDG_SESSION_TYPE='x11' |
|
|
|
|
export GPG_AGENT_INFO='/run/user/1000/gnupg/S.gpg-agent:0:1' |
|
|
|
|
export SYSTEMD_EXEC_PID='8519' |
|
|
|
|
export XAUTHORITY='/run/user/1000/gdm/Xauthority' |
|
|
|
|
export PHPBREW_HOME='/home/swoole/.phpbrew' |
|
|
|
|
export NoDefaultCurrentDirectoryInExePath='1' |
|
|
|
|
export CLAUDECODE='1' |
|
|
|
|
export WINDOWPATH='2' |
|
|
|
|
export HOME='/home/swoole' |
|
|
|
|
export USERNAME='swoole' |
|
|
|
|
export IM_CONFIG_PHASE='1' |
|
|
|
|
export LANG='zh_CN.UTF-8' |
|
|
|
|
export LC_PAPER='zh_CN.UTF-8' |
|
|
|
|
export LS_COLORS='rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:' |
|
|
|
|
export XDG_CURRENT_DESKTOP='ubuntu:GNOME' |
|
|
|
|
export VTE_VERSION='6800' |
|
|
|
|
export GNOME_TERMINAL_SCREEN='/org/gnome/Terminal/screen/dcdedd7b_a193_4708_9f60_953b8ad197db' |
|
|
|
|
export ANTHROPIC_BASE_URL='https://api.deepseek.com/anthropic' |
|
|
|
|
export CLUTTER_IM_MODULE='fcitx' |
|
|
|
|
export PHPBREW_ROOT='/home/swoole/.phpbrew' |
|
|
|
|
export LESSCLOSE='/usr/bin/lesspipe %s %s' |
|
|
|
|
export XDG_SESSION_CLASS='user' |
|
|
|
|
export LC_IDENTIFICATION='zh_CN.UTF-8' |
|
|
|
|
export TERM='xterm-256color' |
|
|
|
|
export LESSOPEN='| /usr/bin/lesspipe %s' |
|
|
|
|
export USER='swoole' |
|
|
|
|
export GNOME_TERMINAL_SERVICE=':1.124' |
|
|
|
|
export DISPLAY=':1' |
|
|
|
|
export SHLVL='2' |
|
|
|
|
export GIT_EDITOR='true' |
|
|
|
|
export LC_TELEPHONE='zh_CN.UTF-8' |
|
|
|
|
export QT_IM_MODULE='fcitx' |
|
|
|
|
export LC_MEASUREMENT='zh_CN.UTF-8' |
|
|
|
|
export ANTHROPIC_MODEL='deepseek-v4-pro' |
|
|
|
|
export XDG_RUNTIME_DIR='/run/user/1000' |
|
|
|
|
export ANTHROPIC_AUTH_TOKEN='sk-2589037b3ccd47638419865c759811b5' |
|
|
|
|
export CLAUDE_CODE_ENTRYPOINT='cli' |
|
|
|
|
export LC_TIME='zh_CN.UTF-8' |
|
|
|
|
export XDG_DATA_DIRS='/usr/share/ubuntu:/usr/share/gnome:/home/swoole/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop' |
|
|
|
|
export CLAUDE_CODE_EXECPATH='/home/swoole/.local/share/claude/versions/2.1.143' |
|
|
|
|
export PATH='/home/swoole/.npm-global/bin:/home/swoole/.local/bin:/home/swoole/.cargo/bin:/home/swoole/bin:/home/swoole/.config/composer/vendor/bin:/home/swoole/soft/node-v22.19.0-linux-x64/bin:/home/swoole/.npm-global/bin:/home/swoole/.local/bin:/home/swoole/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin' |
|
|
|
|
export ANTHROPIC_SMALL_FAST_MODEL='deepseek-v4-pro' |
|
|
|
|
export GDMSESSION='ubuntu' |
|
|
|
|
export DBUS_SESSION_BUS_ADDRESS='unix:path=/run/user/1000/bus' |
|
|
|
|
export LC_NUMERIC='zh_CN.UTF-8' |
|
|
|
|
export _='/home/swoole/bin/php' |
|
|
|
|
export TEMP='/tmp' |
|
|
|
|
export SKIP_ONLINE_TESTS='1' |
|
|
|
|
export SKIP_IO_CAPTURE_TESTS='1' |
|
|
|
|
export TEST_PHP_EXECUTABLE='/opt/php-8.4/bin/php' |
|
|
|
|
export TEST_PHP_EXECUTABLE_ESCAPED=''\''/opt/php-8.4/bin/php'\''' |
|
|
|
|
export TEST_PHP_CGI_EXECUTABLE='/opt/php-8.4/bin/php-cgi' |
|
|
|
|
export TEST_PHP_CGI_EXECUTABLE_ESCAPED=''\''/opt/php-8.4/bin/php-cgi'\''' |
|
|
|
|
export TEST_PHPDBG_EXECUTABLE='/opt/php-8.4/bin/phpdbg' |
|
|
|
|
export TEST_PHPDBG_EXECUTABLE_ESCAPED=''\''/opt/php-8.4/bin/phpdbg'\''' |
|
|
|
|
export REDIRECT_STATUS='1' |
|
|
|
|
export PATH_TRANSLATED='/home/swoole/workspace/aot/compiler/tests/std/strings/trim.php' |
|
|
|
|
export SCRIPT_FILENAME='/home/swoole/workspace/aot/compiler/tests/std/strings/trim.php' |
|
|
|
|
export REQUEST_METHOD='GET' |
|
|
|
|
export TEST_PHP_EXTRA_ARGS=' -d "output_handler=" -d "open_basedir=" -d "disable_functions=" -d "output_buffering=Off" -d "error_reporting=30719" -d "fatal_error_backtraces=Off" -d "display_errors=1" -d "display_startup_errors=1" -d "log_errors=0" -d "html_errors=0" -d "track_errors=0" -d "report_zend_debug=0" -d "docref_root=" -d "docref_ext=.html" -d "error_prepend_string=" -d "error_append_string=" -d "auto_prepend_file=" -d "auto_append_file=" -d "ignore_repeated_errors=0" -d "precision=14" -d "serialize_precision=-1" -d "memory_limit=128M" -d "opcache.fast_shutdown=0" -d "opcache.file_update_protection=0" -d "opcache.revalidate_freq=0" -d "opcache.jit_hot_loop=1" -d "opcache.jit_hot_func=1" -d "opcache.jit_hot_return=1" -d "opcache.jit_hot_side_exit=1" -d "opcache.jit_max_root_traces=100000" -d "opcache.jit_max_side_traces=100000" -d "opcache.jit_max_exit_counters=100000" -d "opcache.protect_memory=1" -d "zend.assertions=1" -d "zend.exception_ignore_args=0" -d "zend.exception_string_param_max_len=15" -d "short_open_tag=0" -d "session.auto_start=0" -d "zlib.output_compression=Off"' |
|
|
|
|
|
|
|
|
|
case "$1" in |
|
|
|
|
"gdb") |
|
|
|
|
gdb -ex 'unset environment LINES' -ex 'unset environment COLUMNS' --args '/opt/php-8.4/bin/php' -d "output_handler=" -d "open_basedir=" -d "disable_functions=" -d "output_buffering=Off" -d "error_reporting=30719" -d "fatal_error_backtraces=Off" -d "display_errors=1" -d "display_startup_errors=1" -d "log_errors=0" -d "html_errors=0" -d "track_errors=0" -d "report_zend_debug=0" -d "docref_root=" -d "docref_ext=.html" -d "error_prepend_string=" -d "error_append_string=" -d "auto_prepend_file=" -d "auto_append_file=" -d "ignore_repeated_errors=0" -d "precision=14" -d "serialize_precision=-1" -d "memory_limit=128M" -d "opcache.fast_shutdown=0" -d "opcache.file_update_protection=0" -d "opcache.revalidate_freq=0" -d "opcache.jit_hot_loop=1" -d "opcache.jit_hot_func=1" -d "opcache.jit_hot_return=1" -d "opcache.jit_hot_side_exit=1" -d "opcache.jit_max_root_traces=100000" -d "opcache.jit_max_side_traces=100000" -d "opcache.jit_max_exit_counters=100000" -d "opcache.protect_memory=1" -d "zend.assertions=1" -d "zend.exception_ignore_args=0" -d "zend.exception_string_param_max_len=15" -d "short_open_tag=0" -d "session.auto_start=0" -d "zlib.output_compression=Off" -f "/home/swoole/workspace/aot/compiler/tests/std/strings/trim.php" 2>&1 |
|
|
|
|
;; |
|
|
|
|
"lldb") |
|
|
|
|
lldb -- '/opt/php-8.4/bin/php' -d "output_handler=" -d "open_basedir=" -d "disable_functions=" -d "output_buffering=Off" -d "error_reporting=30719" -d "fatal_error_backtraces=Off" -d "display_errors=1" -d "display_startup_errors=1" -d "log_errors=0" -d "html_errors=0" -d "track_errors=0" -d "report_zend_debug=0" -d "docref_root=" -d "docref_ext=.html" -d "error_prepend_string=" -d "error_append_string=" -d "auto_prepend_file=" -d "auto_append_file=" -d "ignore_repeated_errors=0" -d "precision=14" -d "serialize_precision=-1" -d "memory_limit=128M" -d "opcache.fast_shutdown=0" -d "opcache.file_update_protection=0" -d "opcache.revalidate_freq=0" -d "opcache.jit_hot_loop=1" -d "opcache.jit_hot_func=1" -d "opcache.jit_hot_return=1" -d "opcache.jit_hot_side_exit=1" -d "opcache.jit_max_root_traces=100000" -d "opcache.jit_max_side_traces=100000" -d "opcache.jit_max_exit_counters=100000" -d "opcache.protect_memory=1" -d "zend.assertions=1" -d "zend.exception_ignore_args=0" -d "zend.exception_string_param_max_len=15" -d "short_open_tag=0" -d "session.auto_start=0" -d "zlib.output_compression=Off" -f "/home/swoole/workspace/aot/compiler/tests/std/strings/trim.php" 2>&1 |
|
|
|
|
;; |
|
|
|
|
"valgrind") |
|
|
|
|
USE_ZEND_ALLOC=0 valgrind $2 '/opt/php-8.4/bin/php' -d "output_handler=" -d "open_basedir=" -d "disable_functions=" -d "output_buffering=Off" -d "error_reporting=30719" -d "fatal_error_backtraces=Off" -d "display_errors=1" -d "display_startup_errors=1" -d "log_errors=0" -d "html_errors=0" -d "track_errors=0" -d "report_zend_debug=0" -d "docref_root=" -d "docref_ext=.html" -d "error_prepend_string=" -d "error_append_string=" -d "auto_prepend_file=" -d "auto_append_file=" -d "ignore_repeated_errors=0" -d "precision=14" -d "serialize_precision=-1" -d "memory_limit=128M" -d "opcache.fast_shutdown=0" -d "opcache.file_update_protection=0" -d "opcache.revalidate_freq=0" -d "opcache.jit_hot_loop=1" -d "opcache.jit_hot_func=1" -d "opcache.jit_hot_return=1" -d "opcache.jit_hot_side_exit=1" -d "opcache.jit_max_root_traces=100000" -d "opcache.jit_max_side_traces=100000" -d "opcache.jit_max_exit_counters=100000" -d "opcache.protect_memory=1" -d "zend.assertions=1" -d "zend.exception_ignore_args=0" -d "zend.exception_string_param_max_len=15" -d "short_open_tag=0" -d "session.auto_start=0" -d "zlib.output_compression=Off" -f "/home/swoole/workspace/aot/compiler/tests/std/strings/trim.php" 2>&1 |
|
|
|
|
;; |
|
|
|
|
"rr") |
|
|
|
|
rr record $2 '/opt/php-8.4/bin/php' -d "output_handler=" -d "open_basedir=" -d "disable_functions=" -d "output_buffering=Off" -d "error_reporting=30719" -d "fatal_error_backtraces=Off" -d "display_errors=1" -d "display_startup_errors=1" -d "log_errors=0" -d "html_errors=0" -d "track_errors=0" -d "report_zend_debug=0" -d "docref_root=" -d "docref_ext=.html" -d "error_prepend_string=" -d "error_append_string=" -d "auto_prepend_file=" -d "auto_append_file=" -d "ignore_repeated_errors=0" -d "precision=14" -d "serialize_precision=-1" -d "memory_limit=128M" -d "opcache.fast_shutdown=0" -d "opcache.file_update_protection=0" -d "opcache.revalidate_freq=0" -d "opcache.jit_hot_loop=1" -d "opcache.jit_hot_func=1" -d "opcache.jit_hot_return=1" -d "opcache.jit_hot_side_exit=1" -d "opcache.jit_max_root_traces=100000" -d "opcache.jit_max_side_traces=100000" -d "opcache.jit_max_exit_counters=100000" -d "opcache.protect_memory=1" -d "zend.assertions=1" -d "zend.exception_ignore_args=0" -d "zend.exception_string_param_max_len=15" -d "short_open_tag=0" -d "session.auto_start=0" -d "zlib.output_compression=Off" -f "/home/swoole/workspace/aot/compiler/tests/std/strings/trim.php" 2>&1 |
|
|
|
|
;; |
|
|
|
|
*) |
|
|
|
|
'/opt/php-8.4/bin/php' -d "output_handler=" -d "open_basedir=" -d "disable_functions=" -d "output_buffering=Off" -d "error_reporting=30719" -d "fatal_error_backtraces=Off" -d "display_errors=1" -d "display_startup_errors=1" -d "log_errors=0" -d "html_errors=0" -d "track_errors=0" -d "report_zend_debug=0" -d "docref_root=" -d "docref_ext=.html" -d "error_prepend_string=" -d "error_append_string=" -d "auto_prepend_file=" -d "auto_append_file=" -d "ignore_repeated_errors=0" -d "precision=14" -d "serialize_precision=-1" -d "memory_limit=128M" -d "opcache.fast_shutdown=0" -d "opcache.file_update_protection=0" -d "opcache.revalidate_freq=0" -d "opcache.jit_hot_loop=1" -d "opcache.jit_hot_func=1" -d "opcache.jit_hot_return=1" -d "opcache.jit_hot_side_exit=1" -d "opcache.jit_max_root_traces=100000" -d "opcache.jit_max_side_traces=100000" -d "opcache.jit_max_exit_counters=100000" -d "opcache.protect_memory=1" -d "zend.assertions=1" -d "zend.exception_ignore_args=0" -d "zend.exception_string_param_max_len=15" -d "short_open_tag=0" -d "session.auto_start=0" -d "zlib.output_compression=Off" -f "/home/swoole/workspace/aot/compiler/tests/std/strings/trim.php" 2>&1 |
|
|
|
|
;; |
|
|
|
|
esac |