When running exec('rsync') with PHP, getting Warning: Error while sending QUERY packet.
Björn Tantau
cygwin@s.bjoern-tantau.de
Wed May 17 13:44:00 GMT 2017
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') the
next Query produces the Warning:
PHP Warning: Error while sending QUERY packet. PID=15036 in
/home/limora/test.php on line 5
See the attached test.php. It should output:
object(PDOStatement)#2 (1) {
["queryString"]=>
string(16) "SELECT * FROM db"
}
object(PDOStatement)#2 (1) {
["queryString"]=>
string(16) "SELECT * FROM db"
}
but it does output:
object(PDOStatement)#2 (1) {
["queryString"]=>
string(16) "SELECT * FROM db"
}
PHP Warning: Error while sending QUERY packet. PID=15036 in
/home/limora/test.php on line 5
bool(false)
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.
Cheers,
Björn
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.php
Type: text/x-php
Size: 169 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20170517/3d82555b/attachment.bin>
-------------- next part --------------
--
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
More information about the Cygwin
mailing list