| Summary: | mysql LOAD DATA LOCAL INFILE fails when PHP's open_basedir is set | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | David Mulford <dmulford> | ||||
| Component: | php | Assignee: | Remi Collet <rcollet> | ||||
| Status: | CLOSED WONTFIX | QA Contact: | BaseOS QE - Apps <qe-baseos-apps> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 6.8 | CC: | cww, rcollet | ||||
| Target Milestone: | rc | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2017-06-07 22:17:40 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Attachments: |
|
||||||
|
Description
David Mulford
2016-09-30 14:45:02 UTC
I can reproduce with 5.4 and 5.5 $ scl enable php54 bash $ php sample.php Query run successfully. 2 rows affected $ php -d open_basedir=/home sample.php Query failed: ERRNO=(1148) The used command is not allowed with this MySQL version $ php -d open_basedir=/tmp sample.php Query failed: ERRNO=(1148) The used command is not allowed with this MySQL version $ scl enable php55 bash $ php sample.php Query run successfully. 2 rows affected $ php -d open_basedir=/home sample.php Query failed: ERRNO=(1148) The used command is not allowed with this MySQL version $ php -d open_basedir=/tmp sample.php Query failed: ERRNO=(1148) The used command is not allowed with this MySQL version Newer versions work as expected $ scl enable rh-php56 bash $ php sample.php Query run successfully. 2 rows affected $ php -d open_basedir=/home sample.php Query run successfully. 2 rows affected $ php -d open_basedir=/tmp sample.php Query failed: ERRNO=(2000) open_basedir restriction in effect. Unable to open file $ scl enable rh-php70 bash $ php sample.php Query run successfully. 2 rows affected $ php -d open_basedir=/home sample.php Query run successfully. 2 rows affected $ php -d open_basedir=/tmp sample.php Query failed: ERRNO=(2000) open_basedir restriction in effect. Unable to open file Looks like this is related to 68077, only fixed in 5.6+ http://git.php.net/?p=php-src.git;a=commit;h=be6fd4ba89e151b68ddd68e53d6a403c2e8eb862 http://git.php.net/?p=php-src.git;a=commit;h=fba3985f23020d53ce370e3c4ac685646bda5c92 Red Hat Enterprise Linux 6 transitioned to the Production 3 Phase on May 10, 2017. During the Production 3 Phase, Critical impact Security Advisories (RHSAs) and selected Urgent Priority Bug Fix Advisories (RHBAs) may be released as they become available. The official life cycle policy can be reviewed here: http://redhat.com/rhel/lifecycle This issue does not appear to meet the inclusion criteria for the Production Phase 3 and will be marked as CLOSED/WONTFIX. If this remains a critical requirement, please contact Red Hat Customer Support to request a re-evaluation of the issue, citing a clear business justification. Red Hat Customer Support can be contacted via the Red Hat Customer Portal at the following URL: https://access.redhat.com |