Skip to content

Commit

Permalink
Change RequestWrapper to use constant (#609)
Browse files Browse the repository at this point in the history
In the default Google App Engine environment, the phpversion function is disabled and requires fiddling around to get it to work (currently overriding ini config, suhosin config and whitelist env do not work as intended). This change moves to using PHP_VERSION which is a constant available in PHP since 5.2.7 and provides the same information as the implementation of phpversion here.
  • Loading branch information
jaitaiwan authored and dwsupplee committed Aug 2, 2017
1 parent d06766e commit a67b910
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RequestWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ private function applyHeaders(RequestInterface $request)
{
$headers = [
'User-Agent' => 'gcloud-php/' . $this->componentVersion,
'x-goog-api-client' => 'gl-php/' . phpversion() . ' gccl/' . $this->componentVersion,
'x-goog-api-client' => 'gl-php/' . PHP_VERSION . ' gccl/' . $this->componentVersion,
];

if ($this->shouldSignRequest) {
Expand Down

0 comments on commit a67b910

Please sign in to comment.