Open GoogleCodeExporter opened 8 years ago
Hello, here the output of the last version (phpQuery-dev)
Original comment by derFic...@gmail.com
on 30 Mar 2009 at 9:00
Attachments:
If i change phpQueryObject.php in line 718 from:
$isTag = extension_loaded('mbstring')
? mb_ereg_match('^[\w|\||-]+$', $s) || $s == '*'
: preg_match('@^[\w|\||-]+$@', $s) || $s == '*';
to:
$isTag = preg_match('@^[\w|\||-]+$@', $s);
it seems to work correct, please see attached file for debug output.
Original comment by derFic...@gmail.com
on 30 Mar 2009 at 9:16
Attachments:
I'm happy that those regexps are the problem, but on the other hand this still
is
quite odd. If you could check full condition (with '*') for both of regexps,
inside
the method (what could make the difference). That would be:
var_dump(mb_ereg_match('^[\w|\||-]+$', $s) || $s == '*');
var_dump(preg_match('@^[\w|\||-]+$@', $s) || $s == '*');
And also check mbstring version separately, like so:
var_dump(mb_ereg_match('^[\w|\||-]+$', $s));
Anyway, to get it working without mbstring support don't forget the '*'
comparison,
which is mandatory.
Original comment by tobiasz....@gmail.com
on 31 Mar 2009 at 8:06
Original issue reported on code.google.com by
tobiasz....@gmail.com
on 30 Mar 2009 at 9:39