X-Recipient: archive-cygwin@delorie.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:from:reply-to:message-id:to:subject
	:in-reply-to:references:mime-version:content-type
	:content-transfer-encoding; q=dns; s=default; b=T6CTA1cof4DRxCKQ
	VU8Qjpo1qqyaWB4bPaeQpP+UGlh+8+5vEXdyyMzcvvTukEj9ZbO9jlyDcTkFi7Y4
	qnRv8Zv13pYrISBG8xQkAL9YtlV2jYvlVWHOsSIHL8JlYrLjmgklw3DCHlfjZwTO
	NE92bkFgVyGM5AMVfuK1/vI17hU=
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:from:reply-to:message-id:to:subject
	:in-reply-to:references:mime-version:content-type
	:content-transfer-encoding; s=default; bh=Izh7oy2ld5SwRDJVFWp6ty
	KhzFg=; b=XP3xT1DSTCJR8OWXJ4Ir06rkRRhZy2qSYDcJW3yTKJVI+8IHsXXNtB
	novaj7hsOYR9kLEyar0omNQ77XifyWlfzqR94he0Lokj4AVBfQoenOyAuz1mS6+O
	U0UKQOViVheYhr2CqloCJ8bSw/8X0hSuULToOGKKIyUBs+mW+/2i8=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=BAYES_00,FREEMAIL_FROM,KAM_THEBAT,MIME_BASE64_BLANKS,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy=10119mariadb, 10.1.19-MariaDB, Spamfilter, 3.1.2
X-HELO: forward4m.cmail.yandex.net
Authentication-Results: smtp1j.mail.yandex.net; dkim=pass header.i=@yandex.ru
X-Yandex-Suid-Status: 1 0,1 0
Date: Thu, 18 May 2017 15:30:03 +0300
From: Andrey Repin <anrdaemon@yandex.ru>
Reply-To: cygwin@cygwin.com
Message-ID: <1535409114.20170518153003@yandex.ru>
To: =?utf-8?Q?Bj=C3=B6rn_Tantau?= <cygwin@s.bjoern-tantau.de>,
        cygwin@cygwin.com
Subject: Re: When running exec('rsync') with PHP, getting Warning: Error while sending QUERY packet.
In-Reply-To: <7C541C91-D8B4-44A7-B1FF-AB7F706C9D30@s.bjoern-tantau.de>
References: <C34939E9-7140-4ED4-9533-DC907EB25FD6@s.bjoern-tantau.de>   <7C541C91-D8B4-44A7-B1FF-AB7F706C9D30@s.bjoern-tantau.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
X-IsSubscribed: yes
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id v4ICZwTi017573

Greetings, Björn Tantau!

> Sorry for the missing cygcheck.out, the Spamfilter wouldn't let me pass.
> Every 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 
> (32 Bit and 64 Bit).
> If you have a working MySQL-Connection and then run exec('rsync')

exec()'ing anything from PHP, especially from PHP running on a webserver is a
very, very, very bad idea.

> the next Query produces the Warning:
> PHP Warning:  Error while sending QUERY packet. PID=15036 in 
> /home/limora/test.php on line 5

Show the

phpinfo(~(2+16+32+64));

please...

> So far I could reproduce this with the MariaDB from cygwin as well as 
> xampp, so I guess it's not a MySQL problem. I was only able to reproduce 
> this with rsync so far and  no other cli program.

> I'm completely stumped as to what could be causing this.

I could guess some possibilities, but I'd like to see settings first.


-- 
With best regards,
Andrey Repin
Thursday, May 18, 2017 15:23:00

Sorry for my terrible english...
--
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


