summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2023-10-13 14:07:58 +0200
committerRemi Collet <remi@php.net>2023-10-13 14:07:58 +0200
commit4e77dbaaa852b1e60f119e0dc1c175c7f333d925 (patch)
tree769701084c841f81c2e1816235ce238a5b7ff0be /tests
parent2b84fa512895a69d9a7f85f3b9fc1297bfb53556 (diff)
allow retrieval of hardlink content
Diffstat (limited to 'tests')
-rw-r--r--tests/014-stream.phpt6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/014-stream.phpt b/tests/014-stream.phpt
index 46d6b66..f084326 100644
--- a/tests/014-stream.phpt
+++ b/tests/014-stream.phpt
@@ -9,6 +9,8 @@ if (version_compare(RPMVERSION, '4.13', 'lt')) print("skip librpm is older than
<?php
$d = "rpm://" . __DIR__ . "/bidon.rpm#/usr/share/doc/bidon";
$n = "rpm://" . __DIR__ . "/bidon.rpm#/usr/share/doc/bidon/README";
+$foo = "rpm://" . __DIR__ . "/bidon.rpm#/etc/foo.conf";
+$bar = "rpm://" . __DIR__ . "/bidon.rpm#/etc/bar.conf";
echo "+ wrapper\n";
var_dump(in_array('rpm', stream_get_wrappers()));
@@ -33,6 +35,8 @@ fclose($f);
echo "+ stream\n";
var_dump(trim(file_get_contents($n)));
+var_dump(trim(file_get_contents($foo)));
+var_dump(trim(file_get_contents($bar)));
var_dump(file_get_contents(str_replace('README', 'TODO', $n)));
?>
@@ -63,6 +67,8 @@ string(18) "12:24:27 CEST 2023"
bool(true)
+ stream
string(29) "Fri Oct 13 12:24:27 CEST 2023"
+string(7) "content"
+string(7) "content"
Warning: file_get_contents(%s/bidon.rpm#/usr/share/doc/bidon/TODO): Failed to open stream: operation failed in %s on line %d
bool(false)