]> git.pld-linux.org Git - packages/dokuwiki-plugin-ldapsearch.git/blob - pass-by-reference.patch
- BR: unzip
[packages/dokuwiki-plugin-ldapsearch.git] / pass-by-reference.patch
1 --- dokuwiki-plugin-ldapsearch-20090601/syntax.php      2009-06-01 21:07:10.000000000 +0300
2 +++ ldapsearch/syntax.php       2010-09-10 14:47:50.078973905 +0300
3 @@ -53,7 +53,7 @@
4                 switch ($state) {
5                         case DOKU_LEXER_SPECIAL : {
6                                 $matches = array();
7 -                               if(preg_match("/$urlSyntax/",$match,&$matches)) {
8 +                               if(preg_match("/$urlSyntax/",$match,$matches)) {
9                                         $ldapDetails = array(
10                                                                 'hostname' => $matches[1],
11                                                                 'port' => $matches[2],
12 @@ -64,7 +64,7 @@
13                                                         );
14                                         $data = array( 'result' => null, 'ldapDetails' => $ldapDetails );
15                                         return array($state, $data);          
16 -                               } elseif(preg_match_all("/$paramSyntax/",$match,&$matches, PREG_SET_ORDER)) {
17 +                               } elseif(preg_match_all("/$paramSyntax/",$match,$matches, PREG_SET_ORDER)) {
18                                         $ldapDetails = array();
19                                         foreach($matches as $pair) {
20                                                 $value = preg_replace('/^"(.*?)"$/','$1',$pair[2]);
This page took 0.205149 seconds and 3 git commands to generate.