|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-12-23 19:06 UTC] iliaa@php.net
[2004-12-23 22:53 UTC] dev at jkt dot wz dot cz
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 06 22:00:02 2025 UTC |
Description: ------------ Hi, sorry for creating another useless bugreport, but I haven't ability to comment bugs in CLOSED state. [Considering bug reports #23779 and #28632 and mainly lines 601-604 in ext/mysql/php_mysql.c] /* disable local infile option for open_basedir */ if (PG(open_basedir) && strlen(PG(open_basedir)) && (client_flags & CLIENT_LOCAL_FILES)) { client_flags ^= CLIENT_LOCAL_FILES; } Are you, PHP developers, sure that the approach "So, let's check bit 7. Oh, it is set, uhm, so, let's read it, make a negation and the write it back" the best way? Shouldn't be better (and also more elegant, faster,...) to write something like: if (PG(open_basedir) && strlen(open_basedir)) { client_flags &= ~CLIENT_LOCAL_FILES; }