Skip to content

Fixed PHP7 port. Restored commented reference counting. #33

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

Jan-E
Copy link
Contributor

@Jan-E Jan-E commented Jun 28, 2018

Updated version of #30
Changed GC_REFCOUNT(p)++ into GC_ADDREF(p) for PHP 7.3 as well

@Jan-E
Copy link
Contributor Author

Jan-E commented Jun 28, 2018

@remicollet Please review and merge

@remicollet
Copy link
Member

Still an annoying build warning

/home/php/git/ssh2/ssh2_fopen_wrappers.c: In function 'php_ssh2_fopen_wraper_parse_path':
/home/php/git/ssh2/ssh2_fopen_wrappers.c:460:2: warning: 'zsession.value.res' may be used uninitialized in this function [-Wmaybe-uninitialized]
  zend_list_delete(Z_RES(zsession));
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/php/Zend/zend.h:31:0,
                 from /usr/include/php/main/php.h:35,
                 from /home/php/git/ssh2/ssh2_fopen_wrappers.c:25:
/usr/include/php/Zend/zend_types.h:558:37: warning: 'zsftp.value.res' may be used uninitialized in this function [-Wmaybe-uninitialized]
 #define Z_RES(zval)     (zval).value.res
 
```                                    ^

@remicollet
Copy link
Member

=====================================================================
PHP         : /opt/remi/php73/root/usr/bin/php 
PHP_SAPI    : cli
PHP_VERSION : 7.3.0alpha2
ZEND_VERSION: 3.3.0-dev
PHP_OS      : Linux - Linux builder.remirepo.net 4.16.16-200.fc27.x86_64 #1 SMP Sun Jun 17 03:06:00 UTC 2018 x86_64
INI actual  : /home/php/git/ssh2
More .INIs  :   
CWD         : /home/php/git/ssh2
Extra dirs  : 
VALGRIND    : Not used
=====================================================================
TIME START 2018-06-28 07:38:20
=====================================================================
PASS ssh2_auth_FOO() - Attempt to authenticate to a remote host [tests/ssh2_auth.phpt] 
PASS ssh2_auth_pubkey_file() - Tests authentication with a key [tests/ssh2_auth_key.phpt] 
PASS ssh2_connect() Basic connection and pre-authentication [tests/ssh2_connect.phpt] 
PASS ssh2_shell_test() - Tests opening a shell [tests/ssh2_exec.phpt] 
PASS ssh2_sftp - SFTP tests [tests/ssh2_sftp_001.phpt] 
PASS ssh2_sftp - SFTP tests [tests/ssh2_sftp_002.phpt] 
PASS ssh2_shell_test() - Tests opening a shell [tests/ssh2_shell.phpt] 
=====================================================================
TIME END 2018-06-28 07:38:23

=====================================================================
TEST RESULT SUMMARY
---------------------------------------------------------------------
Exts skipped    :    0
Exts tested     :   16
---------------------------------------------------------------------

Number of tests :    7                 7
Tests skipped   :    0 (  0.0%) --------
Tests warned    :    0 (  0.0%) (  0.0%)
Tests failed    :    0 (  0.0%) (  0.0%)
Expected fail   :    0 (  0.0%) (  0.0%)
Tests passed    :    7 (100.0%) (100.0%)
---------------------------------------------------------------------
Time taken      :    3 seconds
=====================================================================

@remicollet
Copy link
Member

Merged
Thanks

@langemeijer as this is your extension, please check, and perhaps worth an 1.1.3 bugfix release ?

@remicollet remicollet closed this Jun 28, 2018
@Jan-E
Copy link
Contributor Author

Jan-E commented Jul 23, 2018

@langemeijer as this is your extension, please check, and perhaps worth an 1.1.3 bugfix release ?

Any chance for a new release on PECL? People are asking for it:
iusrepo/wishlist#175 (comment)

@remicollet
Copy link
Member

@Jan-E RPM users should use my repo (working with upstream) instead of IUS (waiting for upstream) ;)

@virgofx
Copy link

virgofx commented Jul 24, 2018

@remicollet Thinking about switching; however, it still shows 1.1.2 ?

https://rpms.remirepo.net/enterprise/7/php72/x86_64/repoview/php-pecl-ssh2.html

Need the latest which has proper PHP 7.x support

@langemeijer
Copy link
Collaborator

I will be preparing a new release in a few weeks.

@remicollet
Copy link
Member

remicollet commented Jul 26, 2018

@remicollet Thinking about switching; however, it still shows 1.1.2 ?

@virgofx it is 1.1.2 (latest released version) + needed patches

@virgofx
Copy link

virgofx commented Jul 26, 2018

Sorry having a hard time understanding... for clarification

php-pecl-ssh2-1.1.2-2.el7.remi.7.2.x86_64 --- Should work with PHP7.2?

And once PECL releases 1.1.3, Remi repo will bump the version as well to latest?

@remicollet
Copy link
Member

php-pecl-ssh2-1.1.2-2.el7.remi.7.2.x86_64 --- Should work with PHP7.2?

Yes

And once PECL releases 1.1.3, Remi repo will bump the version as well to latest?

Yes

@virgofx
Copy link

virgofx commented Sep 19, 2018

@langemeijer Any news on a new PHP7 release?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants