Topic on Talk:Beta Features/PHP7

Summary by Lucas Werkmeister

set the PHP_ENGINE cookie to php7 to use PHP7 in a tool’s API requests

Lucas Werkmeister (talkcontribs)

As a tool author, is there a way I can set the API requests I make to use PHP7 instead of HHVM? That might provide some additional coverage of code not usually reached by website users.

Mainframe98 (talkcontribs)

The way the beta feature works is by setting a cookie, which is sent along with every request. The cookie indicates PHP7 should be used - extract this cookie and adjust the tool so that it will always send that cookie along with its requests.

Mainframe98 (talkcontribs)

From what I can see in my browser, the cookie that should be sent is called PHP_ENGINE and should have the value of php7, as observed by toggling the beta feature.

Lucas Werkmeister (talkcontribs)