X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:in-reply-to:references:mime-version :content-type:content-transfer-encoding:subject:to:from :message-id; q=dns; s=default; b=mz4cUKYY8WicnCcD3pbXyuM1/NQ7McR 4ij+Vo5gL/r3/teQuBuqVeAEvsbb1jqDIhIVM5xZm4Z2Uanowr4dbwP91BXpet07 hy8G+VCI5QITLY6BrA+dI2TSFzAm2gBCGZ5fTFwIoIdnKMwaRkIvuJuBdvd71DCa hvdpVZDNBU3Y= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:in-reply-to:references:mime-version :content-type:content-transfer-encoding:subject:to:from :message-id; s=default; bh=BY/5aPA84LteqeFpqUtpxXRfSuk=; b=Clk36 We0zNJt8jOQwGvSTeiqshLZIqZKpuasgtDWxv5dmkktTrU5+rkaz79wc6xerhGqq XD0svHyCpkew2KZvRrxeQOpq8/25BIcYcwAuRbMR1OlrhDscLs0ca6O58zGZgWqm bWNlmgaP6KGLYh/A34lW/bIz05BnxqkHS7oTNA= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.3 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy=rsync, mysql, MySQL, UD:php X-HELO: mail.bjoern-tantau.de Date: Wed, 17 May 2017 15:39:32 +0200 User-Agent: K-9 Mail for Android In-Reply-To: References: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----RBSYUFCND65H8OVMKCC8JOQZM1XIB6" Content-Transfer-Encoding: 7bit Subject: When running exec('rsync') with PHP, getting Warning: Error while sending QUERY packet. To: cygwin AT cygwin DOT com From: =?ISO-8859-1?Q?Bj=F6rn_Tantau?= Message-ID: <7C541C91-D8B4-44A7-B1FF-AB7F706C9D30@s.bjoern-tantau.de> ------RBSYUFCND65H8OVMKCC8JOQZM1XIB6 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Sorry for the missing cygcheck.out, the Spamfilter wouldn't let me pass. Ev= ery package is up to date. rsync 3.1.2 php 7.0.19 mysql 10.1.19-MariaDB Hi, I encountered a rather strange PHP bug I could only reproduce in cygwin=20 (32 Bit and 64 Bit). If you have a working MySQL-Connection and then run exec('rsync') the=20 next Query produces the Warning: PHP Warning: Error while sending QUERY packet. PID=3D15036 in=20 /home/limora/test.php on line 5 See the attached test.php. It should output: object(PDOStatement)#2 (1) { ["queryString"]=3D> string(16) "SELECT * FROM db" } object(PDOStatement)#2 (1) { ["queryString"]=3D> string(16) "SELECT * FROM db" } but it does output: object(PDOStatement)#2 (1) { ["queryString"]=3D> string(16) "SELECT * FROM db" } PHP Warning: Error while sending QUERY packet. PID=3D15036 in=20 /home/limora/test.php on line 5 bool(false) So far I could reproduce this with the MariaDB from cygwin as well as=20 xampp, so I guess it's not a MySQL problem. I was only able to reproduce=20 this with rsync so far and no other cli program. I'm completely stumped as to what could be causing this. Cheers, Bj=C3=B6rn= ------RBSYUFCND65H8OVMKCC8JOQZM1XIB6 Content-Type: text/x-php; name="test.php" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="test.php"; size=169 PD9waHAKJHBkbyA9IG5ldyBQRE8oJ215c3FsOmhvc3Q9MTI3LjAuMC4xO2Ri bmFtZT1teXNxbCcsICdyb290Jyk7CnZhcl9kdW1wKCRwZG8tPnF1ZXJ5KCdT RUxFQ1QgKiBGUk9NIGRiJykpOwpleGVjKCdyc3luYycpOwp2YXJfZHVtcCgk cGRvLT5xdWVyeSgnU0VMRUNUICogRlJPTSBkYicpKTsKCg== ------RBSYUFCND65H8OVMKCC8JOQZM1XIB6 Content-Type: text/plain; charset=us-ascii -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple ------RBSYUFCND65H8OVMKCC8JOQZM1XIB6--