ID:               44062
 Updated by:       [EMAIL PROTECTED]
 Reported By:      janko at ami dot cz
-Status:           Open
+Status:           Bogus
 Bug Type:         PCRE related
 Operating System: Windows XP
 PHP Version:      5.2.5
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

preg_last_error() shows 2 (= PREG_BACKTRACK_LIMIT_ERROR).

http://docs.php.net/manual/en/pcre.constants.php


Previous Comments:
------------------------------------------------------------------------

[2008-02-06 14:41:03] [EMAIL PROTECTED]

See bug#42649

------------------------------------------------------------------------

[2008-02-06 13:11:49] janko at ami dot cz

Description:
------------
Im will try match part of HTML page. Concretely table of fixtures.


URL is
http://www.eurofotbal.cz/ligue-1/2007-2008/vysledky-rozlosovani/?month=02

Here is code

$url =
"http://www.eurofotbal.cz/ligue-1/2007-2008/vysledky-rozlosovani/?month=02";;
$content = file_get_contents($url);
preg_match('~<table cellspacing="0" cellpadding="0"
class="matches">(.+)</table>~Usi', $content, $out);

//print_r($out);

echo "<table border=1>";
echo $out[1];
echo "</table>";


Everything is OK, but when I want match all fixtures, result is empty.
URL is
http://www.eurofotbal.cz/ligue-1/2007-2008/vysledky-rozlosovani/?month=0

Structure is the same like previous example


Can you tell me where is error?

RJ



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=44062&edit=1

Reply via email to