ID:               24838
 Updated by:       [EMAIL PROTECTED]
 Reported By:      pub at megaphone dot ch
-Status:           Open
+Status:           Bogus
 Bug Type:         Unknown/Other Function
 Operating System: Solaris 8
 PHP Version:      4.3.2
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

LOAD INFILE for MySQL won't work if safe mode is enabled, the AUTH
parameters also are no longer avaliable in safe mode. All of this is
expected behaviour.


Previous Comments:
------------------------------------------------------------------------

[2003-07-28 03:39:42] pub at megaphone dot ch

Description:
------------
There are several strange occurrences, maybe I should make several
reports...
We were running php 4.1.2, safe-mode on, on a solaris 8 box, without
problem. Last week we compiled and installed php 4.3.2 .
Several problems occurred :

1) the function file_exists() was working on files that were not owned
by the user owning the script : this is better now, more logical, that
it does not work, BUT, there is no "safe-mode" error in the logs, so it
was very difficult to find the problem.

2) a lot more problematic : some clients were using a mysql query for
loading data infile; I just cannot figure out why, but it was working
even when the mysql rights were not set to "file" for the accessing
user, and the syntax they used was "load data LOCAL infile", when the
file was on the server - it should not have worked, but it worked, and
what is amazing is : with changing ONLY the version of PHP, it does not
work any more. How is this, that a function that only should send mysql
syntax depends on the version of PHP ???? I tried the exact sql string
that was sent to mysql, not through php but command line, and MySQL was
not accepting it, which is the correct behaviour - but it was accepting
it through PHP...

3) we are using PHPMyAdmin with http authentication; it does not work
anymore; I thus installed the last available verion, not working
either. It is maybe related to the fact that PHP_AUTH_USER is not
available in safe-mode anymore, but PHPMyAdmin seems to pretend to be
programmed correctly - and again, the only thing that has changed now
is the version of PHP. And there is no error in the logs.



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=24838&edit=1

Reply via email to