|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patchesihazno.patch (last revision 2010-08-19 14:21 UTC by robin at rdtx dot eu)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-08-19 16:31 UTC] kalle@php.net
-Status: Open
+Status: Bogus
[2010-08-19 16:31 UTC] kalle@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 22:00:01 2025 UTC |
Description: ------------ Passing a resource trough a session over multiple pages fails (only for ssh2_connect?) Test script: --------------- 1 Page. Works <?php session_start(); $con = ssh2_connect("127.0.0.1"); ssh2_auth_password($con, 'username', 'password'); $_SESSION["con"] = $con; $con2 = $_SESSION["con"] ssh2_exec($con2, "touch /tmp/test"); ?> 2 pages doesn't work a.php <?php session_start(); $con = ssh2_connect("127.0.0.1"); ssh2_auth_password($con, 'username', 'password'); $_SESSION["con"] = $con; ?> b.php <?php session_start(); $con2 = $_SESSION["con"] ssh2_exec($con2, "touch /tmp/test"); ?> Expected result: ---------------- That it works? Actual result: -------------- Invalid resource.