about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Unix/Command/_php2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index f8be2e5a0..f87543774 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,9 @@
 	* 35286: Completion/Unix/Command/_baz, Completion/Unix/Command/_tla:
 	fix zstyle lookups with _baz and _tla.
 
+	* 35293: Completion/Unix/Command/_php: fix zstyle lookup with
+	_php: use trailing colon.
+
 2015-05-27  Peter Stephenson  <p.stephenson@samsung.com>
 
 	* Han Pingtian: 35299: Functions/Zftp/zfdir: improve effect of
diff --git a/Completion/Unix/Command/_php b/Completion/Unix/Command/_php
index 5d7b84e28..4edcd1e57 100644
--- a/Completion/Unix/Command/_php
+++ b/Completion/Unix/Command/_php
@@ -9,7 +9,7 @@ typeset -A opt_args
 local -a args
 local exclusions php_suffix
 
-zstyle -s ":completion:$curcontext" suffixes php_suffix '|' || php_suffix='php|phar'
+zstyle -s ":completion:${curcontext}:" suffixes php_suffix '|' || php_suffix='php|phar'
 local php_files=":PHP file:_files -g '*.($php_suffix)(-.)'"
 
 if _pick_variant php5=PHP\ 5 php4 --version; then