summaryrefslogtreecommitdiff
path: root/lib/ohai/plugins/php.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ohai/plugins/php.rb')
-rw-r--r--lib/ohai/plugins/php.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ohai/plugins/php.rb b/lib/ohai/plugins/php.rb
index 45c43f53..a1f6770c 100644
--- a/lib/ohai/plugins/php.rb
+++ b/lib/ohai/plugins/php.rb
@@ -33,7 +33,7 @@ Ohai.plugin(:PHP) do
php = Mash.new
so.stdout.each_line do |line|
case line
- when /PHP (\S+).+built: ([^)]+)/
+ when /^PHP (\S+)(?:.*built: ([^)]+))?/
php[:version] = $1
php[:builddate] = $2
when /Zend Engine v([^\s]+),/