Fix PHP 8.5 warnings and add GitHub login sample - #1443
jackfong123 wants to merge 2 commits into
Conversation
Co-authored-by: TRAE CLI <traecli@bytedance.com>
|
Thanks @jackfong123 ! I'm not sure if above change would be backward compatible with older or existing PHP versions of existing users. Do you have comments on that? Hi @marcelocecin above is a proposed change for PHP compatibility 8.5. Would you be the right person to ask if the change would break backward compatibility for existing users using older PHP? |
|
Hi @kensoh, I tested this PR on macOS against PHP 5.6, 7.0, 7.4, 8.0, 8.1, 8.2, 8.3, 8.4 and 8.5 (Docker), plus real Chrome runs on PHP 8.5.9. Backward compatible: yes. The explicit But it's incomplete: Suggest @jackfong123 add those two files and drop |
|
Follow-up: I also ran full end-to-end TagUI runs on Linux (Docker, linux/amd64, headless Chromium, TagUI_Linux PhantomJS/CasperJS) with PHP 7.4, 8.3, 8.4, 8.5 (official
Linux results match macOS: the PR is backward compatible, and it still needs the same change in One correction to my earlier comment: fixing Adding -$temp_argv1 = $argv[1]; $temp_argv2 = $argv[2]; $temp_argv3 = $argv[3];
+$temp_argv1 = $argv[1]; $temp_argv2 = @$argv[2]; $temp_argv3 = @$argv[3];-if ($language_data[$language_count][0] == '') $language_count-=1;} // -1 for EOF
+if (@$language_data[$language_count][0] == '') $language_count-=1;} // -1 for EOFThis could go in this PR or a separate one. |
Co-authored-by: TRAE CLI <traecli@bytedance.com>
|
Thanks @marcelocecin for the detailed follow-up. I’ve updated this PR in 585d2e7 to add the missing CSV compatibility fixes in |
|
Hi @kensoh, here is a summary of where this PR stands after @jackfong123's update in 585d2e7, to help you decide. What the PR does now
All the points from my earlier comments are addressed, and no unpatched Tests on the final commit (585d2e7)Backward compatibility, PHP 5.6 / 7.0 / 7.4 / 8.0 / 8.1 / 8.2 / 8.3 / 8.4 / 8.5 (official Docker images,
End-to-end on Linux (Docker linux/amd64, headless Chromium, TagUI_Linux). Flows: basic with
The values the flows read and echo are the same as master wherever master works. End-to-end on macOS with Homebrew PHP 8.5.9 + Chrome: basic, datatable (which goes through Suggestions before merging
From my side the change looks safe to merge. It fixes TagUI on PHP 8.4/8.5 (and non-English flows on 8.x) with no behaviour change on older versions. |
Summary
This PR fixes PHP 8.5 compatibility issues that were blocking or polluting TagUI browser automation runs, and adds
a small GitHub login navigation sample flow for verification.
Changes
Update src/tagui_parse.php to pass an explicit escape argument to fgetcsv()
Update src/ws/Base.php for PHP 8.5 compatibility
WebSocket\Client
Add flows/samples/github_login.tag