test2.jpg is the same image but contains Exif/Comment information and a
copy of test1.jpg as a thumbnail.
*/
-$istat= stat('test1.jpg');
-$fp = fopen('test1.jpg','r');
+$istat= stat('./ext/exif/tests/test1.jpg');
+$fp = fopen('./ext/exif/tests/test1.jpg','r');
$image = fread($fp,$istat[7]);
echo substr($image,490,5).'_'.$istat[7];
fclose($fp);
-$thumb = exif_thumbnail('test2.jpg');
+$thumb = exif_thumbnail('./ext/exif/tests/test2.jpg');
echo strcmp($image,$thumb) ? 'different' : '_identical_';
echo strlen($thumb);
echo '_'.substr($thumb,490,5);
/* 7GWgw_523_identical_523_7GWgw */
?>
--EXPECT--
-7GWgw_523_identical_523_7GWgw
\ No newline at end of file
+7GWgw_523_identical_523_7GWgw
--POST--
--GET--
--FILE--
-<?
+<?php
function fact($x) {
if($x <= 1)
return 1;
--TEST--
Session Object Serialization
+--SKIPIF--
+<?php include('./ext/session/tests/skipif.inc'); ?>
--FILE--
<?php
--TEST--
session_unset() without any session
+--SKIPIF--
+<?php include('./ext/session/tests/skipif.inc'); ?>
--FILE--
<?php
session_unset();
--TEST--
Session Object Deserialization
+--SKIPIF--
+<?php include('./ext/session/tests/skipif.inc'); ?>
--FILE--
<?php
--TEST--
session_set_save_handler test
+--SKIPIF--
+<?php include('./ext/session/tests/skipif.inc'); ?>
--FILE--
<?php
error_reporting(~E_NOTICE);
--TEST--
Custom save handler, multiple session_start()s, complex data structure test.
+--SKIPIF--
+<?php include('./ext/session/tests/skipif.inc'); ?>
--FILE--
<?php
--TEST--
References between variables in sessions
+--SKIPIF--
+<?php include('./ext/session/tests/skipif.inc'); ?>
--FILE--
<?php
error_reporting(E_ALL & ~E_NOTICE);
mode=callback(function): errorhandler function called, obj=[pear_error: message="test error" code=-42 mode=callback callback=errorhandler prefix="" info=""]
mode=callback(method): errorhandler method called, obj=[pear_error: message="test error" code=-42 mode=callback callback=errorclass::errorhandler prefix="" info=""]
mode=print&trigger: test error
-User Notice: test error in PEAR.php on line 593
+User Notice: test error in PEAR.php on line 591
[pear_error: message="test error" code=-42 mode=print|trigger level=notice prefix="" info=""]
mode=trigger:
-User Notice: test error in PEAR.php on line 593
+User Notice: test error in PEAR.php on line 591
[pear_error: message="test error" code=-42 mode=trigger level=notice prefix="" info=""]
mode=trigger,level=notice:
-User Notice: test error in PEAR.php on line 593
+User Notice: test error in PEAR.php on line 591
[pear_error: message="test error" code=-42 mode=trigger level=notice prefix="" info=""]
mode=trigger,level=warning:
-User Warning: test error in PEAR.php on line 593
+User Warning: test error in PEAR.php on line 591
[pear_error: message="test error" code=-42 mode=trigger level=warning prefix="" info=""]
mode=trigger,level=error:
-User Error: test error in PEAR.php on line 593
+User Error: test error in PEAR.php on line 591
[pear_error: message="test error" code=-42 mode=trigger level=error prefix="" info=""]
--TEST--
Simple POST Method test
+--SKIPIF--
+<?php if(php_sapi_name()=='cli'); echo 'skip'; ?>
--POST--
a=Hello+World
--GET--
--TEST--
GET and POST Method combined
+--SKIPIF--
+<?php if(php_sapi_name()=='cli'); echo 'skip'; ?>
--POST--
a=Hello+World
--GET--
--TEST--
Two variables in POST data
+--SKIPIF--
+<?php if(php_sapi_name()=='cli'); echo 'skip'; ?>
--POST--
a=Hello+World&b=Hello+Again+World
--GET--
--TEST--
Three variables in POST data
+--SKIPIF--
+<?php if(php_sapi_name()=='cli'); echo 'skip'; ?>
--POST--
a=Hello+World&b=Hello+Again+World&c=1
--GET--