Bug #64169 [Com]: opendir not working with sftp since upgrade from php 5.3.14 to 5.3.21

2013-05-07 Thread bluej100 at gmail dot com
Edit report at https://bugs.php.net/bug.php?id=64169&edit=1

 ID: 64169
 Comment by: bluej100 at gmail dot com
 Reported by:michael dot dalbosco at gmail dot com
 Summary:opendir not working with sftp since upgrade from php
 5.3.14 to 5.3.21
 Status: Open
 Type:   Bug
 Package:Directory function related
 Operating System:   Debian 4.4.5-8
 PHP Version:5.3.21
 Block user comment: N
 Private report: N

 New Comment:

This is discussed at http://stackoverflow.com/a/16238476/69173, which notes 
that you can work around the issue by appending an explicit current-directory 
period.

I'm willing to try to create a patch for this. It'll be a little tough to write 
a test case for it, though--should I include a reference to a public sftp share?


Previous Comments:

[2013-02-07 11:17:17] michael dot dalbosco at gmail dot com

Description:

---
>From manual page: 
>http://www.php.net/function.opendir#refsect1-function.opendir-description
---

I'm connecting to a Sftp server and try to open a directory on this server. It 
worked fine on php 5.3.10 and php 5.3.14 but since we upgraded to 5.3.21 it 
doesn't work anymore, opendir returns false.


Test script:
---
$con = ssh2_connect($server, $port);
ssh2_auth_pubkey_file ( $con, $login, $pubKeyFile, $privKeyFile);
$sftp = ssh2_sftp($con);
$dir = "ssh2.sftp://$sftp/";;
var_dump(opendir($dir));

Expected result:

the directory resource

Actual result:
--
false






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


Bug #64169 [Com]: opendir not working with sftp since upgrade from php 5.3.14 to 5.3.21

2013-05-07 Thread bluej100 at gmail dot com
Edit report at https://bugs.php.net/bug.php?id=64169&edit=1

 ID: 64169
 Comment by: bluej100 at gmail dot com
 Reported by:michael dot dalbosco at gmail dot com
 Summary:opendir not working with sftp since upgrade from php
 5.3.14 to 5.3.21
 Status: Open
 Type:   Bug
 Package:Directory function related
 Operating System:   Debian 4.4.5-8
 PHP Version:5.3.21
 Block user comment: N
 Private report: N

 New Comment:

This ticket may belong under PECL->SSH2 rather than directory functions.


Previous Comments:

[2013-05-07 18:23:36] bluej100 at gmail dot com

This is discussed at http://stackoverflow.com/a/16238476/69173, which notes 
that you can work around the issue by appending an explicit current-directory 
period.

I'm willing to try to create a patch for this. It'll be a little tough to write 
a test case for it, though--should I include a reference to a public sftp share?


[2013-02-07 11:17:17] michael dot dalbosco at gmail dot com

Description:

---
>From manual page: 
>http://www.php.net/function.opendir#refsect1-function.opendir-description
---

I'm connecting to a Sftp server and try to open a directory on this server. It 
worked fine on php 5.3.10 and php 5.3.14 but since we upgraded to 5.3.21 it 
doesn't work anymore, opendir returns false.


Test script:
---
$con = ssh2_connect($server, $port);
ssh2_auth_pubkey_file ( $con, $login, $pubKeyFile, $privKeyFile);
$sftp = ssh2_sftp($con);
$dir = "ssh2.sftp://$sftp/";;
var_dump(opendir($dir));

Expected result:

the directory resource

Actual result:
--
false






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


Bug #64780 [Com]: PHP 5.5 builds are broken with GCC 3

2013-05-07 Thread bluej100 at gmail dot com
Edit report at https://bugs.php.net/bug.php?id=64780&edit=1

 ID: 64780
 Comment by: bluej100 at gmail dot com
 Reported by:s...@php.net
 Summary:PHP 5.5 builds are broken with GCC 3
 Status: Assigned
 Type:   Bug
 Package:Compile Failure
 Operating System:   Linux
 PHP Version:5.5Git-2013-05-06 (snap)
 Assigned To:ardbiesheuvel
 Block user comment: N
 Private report: N

 New Comment:

I've confirmed that Ard's patch also fixes cygwin, which is still on 3.4.4. 
Thanks!


Previous Comments:

[2013-05-07 18:10:44] s...@php.net

Doh! I'd initially patched it that way but hadn't included stddef.h correctly.
Your patch works.  Since you have Zend karma, can you apply it?


[2013-05-07 09:07:14] ardbiesheu...@php.net

This seems to be related to GCC 3 not having support for __builtin_offsetof().

Let's fix it like this instead (see patch). Could you please try it?


[2013-05-07 09:06:50] ardbiesheu...@php.net

The following patch has been added/updated:

Patch Name: gcc3-offsetof
Revision:   1367917610
URL:
https://bugs.php.net/patch-display.php?bug=64780&patch=gcc3-offsetof&revision=1367917610


[2013-05-07 04:02:06] s...@php.net

The following patch has been added/updated:

Patch Name: zend_operators.h.patch
Revision:   1367899326
URL:
https://bugs.php.net/patch-display.php?bug=64780&patch=zend_operators.h.patch&revision=1367899326


[2013-05-06 23:05:30] s...@php.net

Description:

PHP 5.5 builds are broken with GCC 3.4.6 due to the inline assembler
changes in zend_operators.h (in aa12cdc361)

Since the old assembler code path works for GCC 3, I suggest we simply
retain it with appropriate #ifdef's.  This may make someone's life
easier, e.g. during platform migration. 

Note RHEL 4.9 with GCC 3.4.6 was released 2 years ago. GCC 3.4.6
itself was released 6 years ago.

Currently compiling PHP 5.5 with GCC 3.4.6 fails with:
In file included from /tmp/php5.5-201305061630/Zend/zend.h:840,
 from /tmp/php5.5-201305061630/main/php.h:34,
 from /tmp/php5.5-201305061630/ext/date/php_date.c:21:
/tmp/php5.5-201305061630/Zend/zend_operators.h: In function 
`fast_increment_function':
/tmp/php5.5-201305061630/Zend/zend_operators.h:516: error: syntax error before 
"zval"
/tmp/php5.5-201305061630/Zend/zend_operators.h:516: error: syntax error before 
"zval"
/tmp/php5.5-201305061630/Zend/zend_operators.h: In function 
`fast_decrement_function':
/tmp/php5.5-201305061630/Zend/zend_operators.h:559: error: syntax error before 
"zval"
/tmp/php5.5-201305061630/Zend/zend_operators.h:559: error: syntax error before 
"zval"
/tmp/php5.5-201305061630/Zend/zend_operators.h: In function `fast_add_function':
/tmp/php5.5-201305061630/Zend/zend_operators.h:613: error: syntax error before 
"zval"
/tmp/php5.5-201305061630/Zend/zend_operators.h:613: error: syntax error before 
"zval"
/tmp/php5.5-201305061630/Zend/zend_operators.h: In function `fast_sub_function':
/tmp/php5.5-201305061630/Zend/zend_operators.h:698: error: syntax error before 
"zval"
/tmp/php5.5-201305061630/Zend/zend_operators.h:698: error: syntax error before 
"zval"
make: *** [ext/date/php_date.lo] Error 1

The patch is attached.  It was tested with GCC 3.4.6 and 4.1.2 on 32
and 64 bit Oracle Linux.







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


Bug #64169 [Com]: opendir not working with sftp since upgrade from php 5.3.14 to 5.3.21

2013-05-07 Thread bluej100 at gmail dot com
Edit report at https://bugs.php.net/bug.php?id=64169&edit=1

 ID: 64169
 Comment by: bluej100 at gmail dot com
 Reported by:michael dot dalbosco at gmail dot com
 Summary:opendir not working with sftp since upgrade from php
 5.3.14 to 5.3.21
 Status: Open
 Type:   Bug
 Package:Directory function related
 Operating System:   Debian 4.4.5-8
 PHP Version:5.3.21
 Block user comment: N
 Private report: N

 New Comment:

I've done a build of 5.6.0-dev head with ssh2 0.12 and confirmed that this bug 
is still present.


Previous Comments:

[2013-05-07 18:25:45] bluej100 at gmail dot com

This ticket may belong under PECL->SSH2 rather than directory functions.


[2013-05-07 18:23:36] bluej100 at gmail dot com

This is discussed at http://stackoverflow.com/a/16238476/69173, which notes 
that you can work around the issue by appending an explicit current-directory 
period.

I'm willing to try to create a patch for this. It'll be a little tough to write 
a test case for it, though--should I include a reference to a public sftp share?


[2013-02-07 11:17:17] michael dot dalbosco at gmail dot com

Description:

---
>From manual page: 
>http://www.php.net/function.opendir#refsect1-function.opendir-description
---

I'm connecting to a Sftp server and try to open a directory on this server. It 
worked fine on php 5.3.10 and php 5.3.14 but since we upgraded to 5.3.21 it 
doesn't work anymore, opendir returns false.


Test script:
---
$con = ssh2_connect($server, $port);
ssh2_auth_pubkey_file ( $con, $login, $pubKeyFile, $privKeyFile);
$sftp = ssh2_sftp($con);
$dir = "ssh2.sftp://$sftp/";;
var_dump(opendir($dir));

Expected result:

the directory resource

Actual result:
--
false






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


Bug #64169 [Com]: opendir not working with sftp since upgrade from php 5.3.14 to 5.3.21

2013-05-18 Thread bluej100 at gmail dot com
Edit report at https://bugs.php.net/bug.php?id=64169&edit=1

 ID: 64169
 Comment by: bluej100 at gmail dot com
 Reported by:michael dot dalbosco at gmail dot com
 Summary:opendir not working with sftp since upgrade from php
 5.3.14 to 5.3.21
 Status: Open
 Type:   Bug
 Package:Directory function related
 Operating System:   Debian 4.4.5-8
 PHP Version:5.3.21
 Block user comment: N
 Private report: N

 New Comment:

To clarify, this issue specifically affects the root directory, if Michael and 
I are seeing the same thing. Subdirectory listing works fine.


Previous Comments:

[2013-05-07 23:48:34] bluej100 at gmail dot com

I've done a build of 5.6.0-dev head with ssh2 0.12 and confirmed that this bug 
is still present.


[2013-05-07 18:25:45] bluej100 at gmail dot com

This ticket may belong under PECL->SSH2 rather than directory functions.


[2013-05-07 18:23:36] bluej100 at gmail dot com

This is discussed at http://stackoverflow.com/a/16238476/69173, which notes 
that you can work around the issue by appending an explicit current-directory 
period.

I'm willing to try to create a patch for this. It'll be a little tough to write 
a test case for it, though--should I include a reference to a public sftp share?


[2013-02-07 11:17:17] michael dot dalbosco at gmail dot com

Description:

---
>From manual page: 
>http://www.php.net/function.opendir#refsect1-function.opendir-description
---

I'm connecting to a Sftp server and try to open a directory on this server. It 
worked fine on php 5.3.10 and php 5.3.14 but since we upgraded to 5.3.21 it 
doesn't work anymore, opendir returns false.


Test script:
---
$con = ssh2_connect($server, $port);
ssh2_auth_pubkey_file ( $con, $login, $pubKeyFile, $privKeyFile);
$sftp = ssh2_sftp($con);
$dir = "ssh2.sftp://$sftp/";;
var_dump(opendir($dir));

Expected result:

the directory resource

Actual result:
--
false






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