diff options
author | zotlabs <mike@macgirvin.com> | 2017-03-18 16:55:10 -0700 |
---|---|---|
committer | Klaus Weidenbach <Klaus.Weidenbach@gmx.net> | 2017-03-21 21:47:30 +0100 |
commit | e7c3ecd1928dfbd06e24ff17daf6d072842d8946 (patch) | |
tree | 40125726f719d9bf07a52fe891d07c47b1585546 /library/simplepie/demo/test.php | |
parent | 99811c90b6568284d38311714aa415c916812db7 (diff) | |
download | volse-hubzilla-e7c3ecd1928dfbd06e24ff17daf6d072842d8946.tar.gz volse-hubzilla-e7c3ecd1928dfbd06e24ff17daf6d072842d8946.tar.bz2 volse-hubzilla-e7c3ecd1928dfbd06e24ff17daf6d072842d8946.zip |
issue #699
(cherry picked from commit a45dd09fc0aa08fc81b7c62a9ac6aab78487dd8e)
Diffstat (limited to 'library/simplepie/demo/test.php')
-rw-r--r-- | library/simplepie/demo/test.php | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/library/simplepie/demo/test.php b/library/simplepie/demo/test.php deleted file mode 100644 index 5b9943abb..000000000 --- a/library/simplepie/demo/test.php +++ /dev/null @@ -1,62 +0,0 @@ -<?php -include_once('../simplepie.inc'); -include_once('../idn/idna_convert.class.php'); - -// Parse it -$feed = new SimplePie(); -if (isset($_GET['feed']) && $_GET['feed'] !== '') -{ - if (get_magic_quotes_gpc()) - { - $_GET['feed'] = stripslashes($_GET['feed']); - } - $feed->set_feed_url($_GET['feed']); - $feed->enable_cache(false); - $starttime = explode(' ', microtime()); - $starttime = $starttime[1] + $starttime[0]; - $feed->init(); - $endtime = explode(' ', microtime()); - $endtime = $endtime[1] + $endtime[0]; - $time = $endtime - $starttime; -} -else -{ - $time = 'null'; -} - -$feed->handle_content_type(); - -?> -<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"> -<title>SimplePie Test</title> -<pre> -<?php - -// memory_get_peak_usage() only exists on PHP 5.2 and higher if PHP is compiled with the --enable-memory-limit configuration option or on PHP 5.2.1 and higher (which runs as if --enable-memory-limit was on, with no option) -if (function_exists('memory_get_peak_usage')) -{ - var_dump($time, memory_get_usage(), memory_get_peak_usage()); -} -// memory_get_usage() only exists if PHP is compiled with the --enable-memory-limit configuration option or on PHP 5.2.1 and higher (which runs as if --enable-memory-limit was on, with no option) -else if (function_exists('memory_get_usage')) -{ - var_dump($time, memory_get_usage()); -} -else -{ - var_dump($time); -} - -// Output buffer -function callable_htmlspecialchars($string) -{ - return htmlspecialchars($string); -} -ob_start('callable_htmlspecialchars'); - -// Output -print_r($feed); -ob_end_flush(); - -?> -</pre>
\ No newline at end of file |