pc-magas / phpquery

Automatically exported from code.google.com/p/phpquery
0 stars 0 forks source link

pq not work. #159

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
simple code return error 500.
<?php
include('phpQuery-onefile.php');
$html = file_get_contents('http://lacroco.ru');
phpQuery::newDocumentHTML($html);
print pq('a')->text();
?>
if I enable debug
phpQuery::$debug = 1;

What is the expected output?
string(38) "Load markup for content type text/html" string(38) "Loading HTML, 
content type 'text/html'" string(275) "Full markup load (HTML):

Array
(
    [0] => FIND
    [1] => a
    [2] => Array
        (
            [0] => Array
                (
                    [0] =>  
                    [1] => a
                )

        )

)

XPATH: //a

Please provide any additional information below.
PHP Version 5.3.1

dom
DOM/XML     enabled
DOM/XML API Version     20031129
libxml Version  2.7.3
HTML Support    enabled
XPath Support   enabled
XPointer Support    enabled
Schema Support  enabled
RelaxNG Support     enabled 

Original issue reported on code.google.com by hd.de...@gmail.com on 1 Nov 2010 at 11:01

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
same problem under FreeBSD 7.2 and PHP 5.3.3

Original comment by hd.de...@gmail.com on 2 Nov 2010 at 12:54