Skip to content

Commit

Permalink
Unknown payload type issue #22
Browse files Browse the repository at this point in the history
Exception after command ALTER PROPERTY #7
Fatal error: Allowed memory... #25

Fixed
  • Loading branch information
Ostico committed May 10, 2015
1 parent fe24bc7 commit ec657b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 3 additions & 1 deletion src/PhpOrient/Protocols/Binary/Abstracts/Operation.php
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,9 @@ public function _read_sync(){

switch( $response_type ){
case 'n':
$res = null;
# get end Line \x00
$this->_readChar();
$res = array( null );
break;
case 'r':
$res = [ Record::fromConfig( $this->_readRecord() ) ];
Expand Down
7 changes: 2 additions & 5 deletions tests/PhpOrient/RecordCommandsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -309,13 +309,10 @@ public function testHiLevelCreateDelete(){

public function testUpdateEdges(){

// ClientConstants::$LOGGING = true;
// ClientConstants::$LOG_FILE_PATH = "php://stdout";

$client = PhpOrient::fromConfig(
array(
'username' => 'admin',
'password' => 'admin',
'username' => 'root',
'password' => 'root',
'hostname' => 'localhost',
'port' => 2424
)
Expand Down

0 comments on commit ec657b3

Please sign in to comment.