Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 801d04a

Browse files
author
tobiasz.cudnik
committed
preparation for next release
1 parent c11b820 commit 801d04a

File tree

3 files changed

+18
-9
lines changed

3 files changed

+18
-9
lines changed

cli/phpquery

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/php
1+
#!/usr/bin/env php
22
<?php
33
if (!isset($argv[1]) || $argv[1] == 'help' || $argv[1] == '--help' || $argv[1] == '-h')
44
die("Usage:

phpQuery/phpQuery.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* phpQuery is a server-side, chainable, CSS3 selector driven
44
* Document Object Model (DOM) API based on jQuery JavaScript Library.
55
*
6-
* @version 0.9.5 RC1
6+
* @version 0.9.5 RC2
77
* @link http://code.google.com/p/phpquery/
88
* @link http://phpquery-library.blogspot.com/
99
* @link http://jquery.com/
@@ -31,6 +31,11 @@
3131
* @package phpQuery
3232
*/
3333
abstract class phpQuery {
34+
/**
35+
* XXX: Workaround for mbstring problems
36+
*
37+
* @var bool
38+
*/
3439
public static $mbstringSupport = true;
3540
public static $debug = false;
3641
public static $documents = array();

test-cases/test_manual.php

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -263,13 +263,13 @@
263263
// ))));
264264

265265
// http://code.google.com/p/phpquery/issues/detail?id=102
266-
$doc = phpQuery::newDocumentFileHTML('http://www.google.de');
267-
//$doc = phpQuery::newDocument('');
268-
$images = $doc['img']->dump();
269-
270-
$foo = 'aaa';
271-
var_dump(mb_ereg_match('^[\w|\||-]+$', $foo) || $foo == '*');
272-
var_dump(preg_match('@^[\w|\||-]+$@', $foo) || $foo == '*');
266+
// $doc = phpQuery::newDocumentFileHTML('http://www.google.de');
267+
// //$doc = phpQuery::newDocument('');
268+
// $images = $doc['img']->dump();
269+
//
270+
// $foo = 'aaa';
271+
// var_dump(mb_ereg_match('^[\w|\||-]+$', $foo) || $foo == '*');
272+
// var_dump(preg_match('@^[\w|\||-]+$@', $foo) || $foo == '*');
273273

274274
// http://code.google.com/p/phpquery/issues/detail?id=67
275275
//$doc = phpQuery::newDocumentXML("<node1/><node2/>");
@@ -280,3 +280,7 @@
280280
//$doc['node1']->data('foo.bar', 'bar');
281281
//var_dump($doc['node1']->data('foo.bar'));
282282
//var_dump(phpQuery::$documents[$doc->getDocumentID()]->data);
283+
284+
// xhtml fragments
285+
$doc = phpQuery::newDocumentXHTML("<p><br/></p>");
286+
print $doc;

0 commit comments

Comments
 (0)