php - Laravel's Response::json() returns nothing to the client under HHVM -


i have hhvm running on virtualbox vm, webroot mapping local laravel install, being served out @ internal ip.

locally, i'm serving site out under http://[localhost]:8000.

the codebase identical.

code of memberscontroller.php (resourceful controller):

public function show($id) {           $member = member::findorfail($id);          $data               = array();         $data['id']         = $member->id;         $data['first_name'] = $member->first_name;         $data['last_name']  = $member->last_name;          return response::json($data);   } 

assuming working normally:

when run request localhost: http://[localhost]:8000/api/v1/member/1, client returns json normal - good.

when run request hhvm (same client, identical codebase): http://[vm_ip_address]/api/v1/member/1, client receives no data.

the data is being passed through calls within hhvm though, if change 'return' 'echo', payload returned in both cases (headers also)

it looks hhvm affecting laravel's response::json() function , disallowing reply contents being displayed in client.

has else seen this?

this not can set unit test for, passes, because final reply has data in :/

any input great - i'm interested learn how around this.

thanks.

sadly you're going have hands dirty debugging. hhvm has slight difference in how code-path sensitive to. pass 100% of laravel unit tests, there isn't 1 covering case.

if can, please trace down code data changes. put in echos , error_logs until can build small test case then open an issue on github , we'll fixed.


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -