Skip to content

Commit

Permalink
preparation for next release
Browse files Browse the repository at this point in the history
git-svn-id: http://phpquery.googlecode.com/svn/branches/dev@371 afc5ee8f-4a33-0410-9214-8715c29b7d85
  • Loading branch information
tobiasz.cudnik committed Apr 10, 2009
1 parent 8773281 commit ca31e08
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 9 deletions.
2 changes: 1 addition & 1 deletion cli/phpquery
@@ -1,4 +1,4 @@
#!/usr/bin/php
#!/usr/bin/env php
<?php
if (!isset($argv[1]) || $argv[1] == 'help' || $argv[1] == '--help' || $argv[1] == '-h')
die("Usage:
Expand Down
7 changes: 6 additions & 1 deletion phpQuery/phpQuery.php
Expand Up @@ -3,7 +3,7 @@
* phpQuery is a server-side, chainable, CSS3 selector driven
* Document Object Model (DOM) API based on jQuery JavaScript Library.
*
* @version 0.9.5 RC1
* @version 0.9.5 RC2
* @link http://code.google.com/p/phpquery/
* @link http://phpquery-library.blogspot.com/
* @link http://jquery.com/
Expand Down Expand Up @@ -31,6 +31,11 @@
* @package phpQuery
*/
abstract class phpQuery {
/**
* XXX: Workaround for mbstring problems
*
* @var bool
*/
public static $mbstringSupport = true;
public static $debug = false;
public static $documents = array();
Expand Down
18 changes: 11 additions & 7 deletions test-cases/test_manual.php
Expand Up @@ -263,13 +263,13 @@
// ))));

// http://code.google.com/p/phpquery/issues/detail?id=102
$doc = phpQuery::newDocumentFileHTML('http://www.google.de');
//$doc = phpQuery::newDocument('');
$images = $doc['img']->dump();

$foo = 'aaa';
var_dump(mb_ereg_match('^[\w|\||-]+$', $foo) || $foo == '*');
var_dump(preg_match('@^[\w|\||-]+$@', $foo) || $foo == '*');
// $doc = phpQuery::newDocumentFileHTML('http://www.google.de');
// //$doc = phpQuery::newDocument('');
// $images = $doc['img']->dump();
//
// $foo = 'aaa';
// var_dump(mb_ereg_match('^[\w|\||-]+$', $foo) || $foo == '*');
// var_dump(preg_match('@^[\w|\||-]+$@', $foo) || $foo == '*');

// http://code.google.com/p/phpquery/issues/detail?id=67
//$doc = phpQuery::newDocumentXML("<node1/><node2/>");
Expand All @@ -280,3 +280,7 @@
//$doc['node1']->data('foo.bar', 'bar');
//var_dump($doc['node1']->data('foo.bar'));
//var_dump(phpQuery::$documents[$doc->getDocumentID()]->data);

// xhtml fragments
$doc = phpQuery::newDocumentXHTML("<p><br/></p>");
print $doc;

0 comments on commit ca31e08

Please sign in to comment.