Fixes T13238. PHP overwrites this setting inside "real_connect()", so we need to apply it after connecting.
Details
Details
- Reviewers
amckinley - Maniphest Tasks
- T13238: Disallow MYSQLI_OPT_LOCAL_INFILE
- Commits
- rPHU1d3b33d4ccbf: Move "options(MYSQLI_OPT_LOCAL_INFILE, ...)" call after "real_connect()"
- Locally, tested that "options()" after "real_connect()" works as expected.
- See also PHP upstream bug report: https://bugs.php.net/bug.php?id=77496
Diff Detail
Diff Detail
- Repository
- rPHU libphutil
- Branch
- local1
- Lint
Lint Errors Severity Location Code Message Error src/aphront/storage/connection/mysql/AphrontMySQLiDatabaseConnection.php:107 XHP45 PHP Compatibility Error src/aphront/storage/connection/mysql/AphrontMySQLiDatabaseConnection.php:217 XHP45 PHP Compatibility - Unit
Tests Passed - Build Status
Buildable 21618 Build 29470: Run Core Tests Build 29469: arc lint + arc unit