Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46286 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72529 invoked from network); 5 Dec 2009 17:00:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Dec 2009 17:00:33 -0000 Authentication-Results: pb1.pair.com smtp.mail=samuel.roze@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=samuel.roze@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.78.25 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: samuel.roze@gmail.com X-Host-Fingerprint: 74.125.78.25 ey-out-2122.google.com Received: from [74.125.78.25] ([74.125.78.25:18454] helo=ey-out-2122.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 04/42-54527-FA19A1B4 for ; Sat, 05 Dec 2009 12:00:32 -0500 Received: by ey-out-2122.google.com with SMTP id 22so64889eye.7 for ; Sat, 05 Dec 2009 09:00:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:cc :in-reply-to:references:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; bh=pVmNreNbskceUnVXGkalQsXUW0KcLSmHkrpvTf9DTpI=; b=x/9p7h9noEQy76UBk0E+xTXE6NT2J9ZhSZS0C5uKKjpx1M/8AOKVJRW+VfYKiocDTB U1RBbGfwQNL9w9XRx7W+gEjXCy1qGcqRglB4oz51FcCZjncUFK72iAC/vigC564UCMFv UULAjGh1AvUnBGE0ophrN5AOmNVvvrornubAk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; b=LHBS3TGqiWU+S+f8DKp40XhMZEiKZ3PZMTcnR3qez9Da+dCK+lQAAc+NCL3QdhbF3k wsURgwG6oi/Yjk1ld8HpMjOnzBmIWSDnliDrvJY8uOafM1wAfCs2Andu9tFnp/YexyoE EHRZQpEkywm/7n2zwhxEUpGTxkYPEVnIu/74w= Received: by 10.216.89.135 with SMTP id c7mr1463189wef.62.1260032428616; Sat, 05 Dec 2009 09:00:28 -0800 (PST) Received: from ?192.168.1.4? (91-171-145-201.rev.libertysurf.net [91.171.145.201]) by mx.google.com with ESMTPS id 5sm552300eyf.2.2009.12.05.09.00.27 (version=SSLv3 cipher=RC4-MD5); Sat, 05 Dec 2009 09:00:27 -0800 (PST) To: Arnaud Le Blanc Cc: PHP Internals In-Reply-To: <1260016856.5398.21.camel@noch2> References: <1259967673.18144.4.camel@samuel-laptop> <1260016856.5398.21.camel@noch2> Content-Type: text/plain; charset="UTF-8" Date: Sat, 05 Dec 2009 18:00:26 +0100 Message-ID: <1260032426.32429.12.camel@samuel-laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.28.1 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] Stream: Cast and Seek From: samuel.roze@gmail.com (Samuel ROZE) Thanks for you reply ! :-) I think that my cast isn't very good because I've: Warning: stream_select(): You MUST recompile PHP with a larger value of FD_SETSIZE. It is set to 1024, but you have descriptors numbered at least as high as 1728763902. --enable-fd-setsize=1728763904 is recommended, but you may want to set it to equal the maximum number of open files supported by your system, in order to avoid seeing this error again at a later date. in ... That my cast code (patch on PHP 5.3 branche): http://www.d-sites.com/wp-content/uploads/2009/12/cast_ssh2_stream.patch Is there something wrong ? Regards, Samuel. Le samedi 05 décembre 2009 à 13:40 +0100, Arnaud Le Blanc a écrit : > Hi, > > Le samedi 05 décembre 2009 à 00:01 +0100, Samuel ROZE a écrit : > > Hello, > > > > I'm working on the use of a PHP SSH2 Stream returned by ssh2_shell > > function with stream_select() function. Within the PHP code, before > > being used into the select() C function, a stream have to be "casted"... > > The problem is that I don't really know what is it and how it generally > > works. > > > > So, can someone explain to me what means "cast" and "seek" streams ? > > > > (In fact, I have to cast a php_ssh2_channel_stream) > > Here you need to return the underlaying socket on which the ssh session > is established, so that the OS's select() can work on it. Look at > php_openssl_sockop_cast for an example. > > Regards, > > Arnaud > > > > > Thanks a lot. > > Regards, > > Samuel ROZE. > > > > > > >