Pierre Joye in php.internals (Thu, 6 Sep 2012 18:43:01 +0200):
>On Thu, Sep 6, 2012 at 2:07 PM, Rasmus Schultz wrote:
>> I opened this bug report 2 years ago:
>> https://bugs.php.net/bug.php?id=52756
Hmmm. I see it is still open.
>> Is GD still actively maintained?
>
>yes. Slowly but yes, we wil
Hello,
Again, apologies for prematurely declaring someone else's code 'crap'.
There are no bugs in the inline x86 assembler in Zend/zend_operators.h,
as far as I can tell, only two kinds of issues that I still think should
be addressed.
First of all, from a maintenance pov, having field offs
hello Marco Pivetta,
while the implementations you linked indeed works, it also kinda big and
involve changing the error handler just so that it doesn't show the error,
which i think is not the way to do it. i think there should be simple way
to check like "is_dir" or "is_file".
anyway thanks for
Heya KISE,
I just checked a bit around and found that current implementations actually
simply deal with the warning:
https://github.com/rjkip/ftp-php/blob/master/src/FtpPhp/FtpClient.php#L172-L186
https://github.com/rjkip/ftp-php/blob/master/src/FtpPhp/FtpClient.php#L92-L116
What kind of problem
Paul Dragoonis,
Actually it wont work i did tried it before, if the dir end with / it will
list the directories inside the path you gave it and if it doesn't have any
directories it will return false since there is no directories to return.
you have to take out the last / and then remove the dire
An extra parameter is required in the above function, but you get the
point, i don't want to keep spamming the mailing list with corrections :-)
On Fri, Jan 18, 2013 at 3:30 PM, Paul Dragoonis wrote:
> Revised function:
>
> function dir_exists($conn, $currentDir) {
> $list = ftp_nlist(
Revised function:
function dir_exists($conn, $currentDir) {
$list = ftp_nlist($conn, '-dF '. $currentDir);
return in_array($dir, $list);
}
On Fri, Jan 18, 2013 at 3:28 PM, Paul Dragoonis wrote:
>
> On Fri, Jan 18, 2013 at 3:18 PM, KISE wrote:
>
>> $res = ftp_nlist($t
On Fri, Jan 18, 2013 at 3:18 PM, KISE wrote:
> $res = ftp_nlist($this->conn_id, '-dF '. $dir);
>
This could be done in two lines.
function dir_exists($conn, $dir) {
$list = ftp_nlist($conn, '-dF '. $dir);
return in_array($dir, $list);
}
Will Fitch, sorry i didn't know that i contacted one of the dev to post it
on behalf of me and he said its ok to post here, i'll post it there right
away
Paul Dragoonis, there is 3 ways to do it in userland codes.
Public function dir_exists($dir)
{
if (!$this->conn_id)
I don't believe there's a feature of the FTP protocol to check if a
file/folder exists.
Can you please provide a PHP userland solution to this, so that a
corresponding C implementation could be added.
I believe the way to go about it is list the CWD contents and check if that
exists and is of typ
On Jan 18, 2013, at 9:53 AM, KISE wrote:
> Hi
>
> II would like to see "ftp_dir_exists()" function in PHP, right now its
> kinda unreasonable to expect people to use hacks such as "is_dir()" and
> having to re-authenticate just to check if the dir exists, I also dont
> think its good idea to us
Hi
II would like to see "ftp_dir_exists()" function in PHP, right now its
kinda unreasonable to expect people to use hacks such as "is_dir()" and
having to re-authenticate just to check if the dir exists, I also dont
think its good idea to use "ftp_chdir()" just to check if the directory
exists, b
Hi Alex,
could you open a pull request on GitHub for it. Makes managing things much
easier. Other than an outstanding review, I see no reason not to include this
functionality.
cu,
Lars
Am 18.01.2013 um 15:01 schrieb ALeX Kazik :
> Hi,
>
> some time ago I created a small patch to make it pos
Hi,
some time ago I created a small patch to make it possible to specify
the temp dir by the php.ini.
It can be found here:
https://bugs.php.net/bug.php?id=60524
(my latest patch (against 5.4.3) also works for 5.4.11 and 5.5.0a3)
Now I do wonder if anything will happen or if that's it?
I would
Replying to self:
The code is not as broken as I thought. Apologies for the noise.
(I misread zend.h where lval and dval are actually part of a union type)
However, there is still a lot of hardcodedness which I think should be
cleaned up, and the gain is not obvious.
--
Ard.
On 01/18/2013 1
Hello all,
As I indicated yesterday, I am looking into PHP performance when running
on ARM, and while doing that, I ran into the following code in
Zend/zend_operators.h.
For 32-bit x86, we have the following assembler code to do a 'fast'
increment (%0 is a zval*):
incl (%0)
16 matches
Mail list logo