Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix "Uncaught Error: Class 'Wing\\Bin\\BinLogPacket' not found 由于Linux系统下区分文件大小写 #3

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Bin/BinlogPacket.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Date: 17/9/8
* Time: 23:14
*/
class BinLogPacket
class BinlogPacket
{
/**
* @var int $offset 读取当前数据包的偏移量
Expand Down Expand Up @@ -1220,4 +1220,4 @@ private function _readTime2($column)
return $t;
}

}
}
4 changes: 2 additions & 2 deletions src/Library/Binlog.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php namespace Wing\Library;

use Wing\Bin\BinLogPacket;
use Wing\Bin\BinlogPacket;
use Wing\Bin\Mysql;
use Wing\Bin\Net;
use Wing\Bin\Packet;
Expand Down Expand Up @@ -89,7 +89,7 @@ public function getBinlogEvents()
$pack = Net::readPacket();
// 校验数据包格式
Packet::success($pack);
$res = BinLogPacket::parse($pack, $this->checksum);
$res = BinlogPacket::parse($pack, $this->checksum);

if (!$res) {
return null;
Expand Down