fnmatch() returning false with pure wildcard
pI have the following code:/p precodeecho matching: .$params['perm'].
against: ; var_dump($perm); if (fnmatch($params['perm'], $perm)) {
$x=true; } $this-gt;code = 200; return $x; /code/pre pFor which I am
asking if code$perm/code contains the start of code$params['perm']/code or
is code*/code/p pIn this case my output is:/p precodematching: acl.adduser
against: array(1) { [0]=gt; string(1) * } {code:200,data:false} /code/pre
pShouldn't it return true since code*/code is the permission I have, and
this allows me to also own codeacl.adduser/code?/p
No comments:
Post a Comment