Skip to content

Commit 86aef39

Browse files
authored
[Sync EN] Fix non-runnable code examples (2/3) (#778)
Refs: php/doc-en@8e2cfbd
1 parent df1280f commit 86aef39

6 files changed

Lines changed: 12 additions & 12 deletions

File tree

reference/spl/splfileinfo/getgroup.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: 84d643420e0a5b43f34238aff8bde6dce168825b Maintainer: fernandowobeto Status: ready --><!-- CREDITS: fernandowobeto -->
2+
<!-- EN-Revision: 8e2cfbdce0cd028a6521c6e073f148e0f7efac7c Maintainer: fernandowobeto Status: ready --><!-- CREDITS: fernandowobeto -->
33
<refentry xml:id="splfileinfo.getgroup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
44
<refnamediv>
55
<refname>SplFileInfo::getGroup</refname>
@@ -45,7 +45,7 @@
4545
<![CDATA[
4646
<?php
4747
$info = new SplFileInfo('example.jpg');
48-
echo info->getFilename() . ' belongs to group id ' . $info->getGroup() . "\n";
48+
echo $info->getFilename() . ' belongs to group id ' . $info->getGroup() . "\n";
4949
print_r(posix_getgrgid($info->getGroup()));
5050
?>
5151
]]>

reference/spl/splfileinfo/getowner.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: 84d643420e0a5b43f34238aff8bde6dce168825b Maintainer: fernandowobeto Status: ready --><!-- CREDITS: fernandowobeto -->
2+
<!-- EN-Revision: 8e2cfbdce0cd028a6521c6e073f148e0f7efac7c Maintainer: fernandowobeto Status: ready --><!-- CREDITS: fernandowobeto -->
33
<refentry xml:id="splfileinfo.getowner" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
44
<refnamediv>
55
<refname>SplFileInfo::getOwner</refname>
@@ -45,7 +45,7 @@
4545
<![CDATA[
4646
<?php
4747
$info = new SplFileInfo('example.jpg');
48-
echo info->getFilename() . ' belongs to owner id ' . $info->getOwner() . "\n";
48+
echo $info->getFilename() . ' belongs to owner id ' . $info->getOwner() . "\n";
4949
print_r(posix_getpwuid($info->getOwner()));
5050
?>
5151
]]>

reference/spl/splfileinfo/getsize.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: 84d643420e0a5b43f34238aff8bde6dce168825b Maintainer: fernandowobeto Status: ready --><!-- CREDITS: fernandowobeto -->
2+
<!-- EN-Revision: 8e2cfbdce0cd028a6521c6e073f148e0f7efac7c Maintainer: fernandowobeto Status: ready --><!-- CREDITS: fernandowobeto -->
33
<refentry xml:id="splfileinfo.getsize" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
44
<refnamediv>
55
<refname>SplFileInfo::getSize</refname>
@@ -45,7 +45,7 @@
4545
<![CDATA[
4646
<?php
4747
$info = new SplFileInfo('example.jpg');
48-
echo $fileinfo->getFilename() . " " . $fileinfo->getSize();
48+
echo $info->getFilename() . " " . $info->getSize();
4949
?>
5050
]]>
5151
</programlisting>

reference/uri/uri/rfc3986/uri/parse.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?xml version="1.0" encoding="utf-8"?><!-- EN-Revision: 39596f1226fd3b502bfbba09068ad6701235426f Maintainer: lacatoire Status: ready -->
1+
<?xml version="1.0" encoding="utf-8"?><!-- EN-Revision: 8e2cfbdce0cd028a6521c6e073f148e0f7efac7c Maintainer: lacatoire Status: ready -->
22
<refentry xml:id="uri-rfc3986-uri.parse" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
33
<refnamediv>
44
<refname>Uri\Rfc3986\Uri::parse</refname>
@@ -61,7 +61,7 @@ $uri = \Uri\Rfc3986\Uri::parse("https://example.com");
6161
if ($uri !== null) {
6262
echo "Valid URI: " . $uri->toString();
6363
} else {
64-
echo "Invalid URI"
64+
echo "Invalid URI";
6565
}
6666
?>
6767
]]>

reference/uri/uri/whatwg/url/parse.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?xml version="1.0" encoding="utf-8"?><!-- EN-Revision: 39596f1226fd3b502bfbba09068ad6701235426f Maintainer: lacatoire Status: ready -->
1+
<?xml version="1.0" encoding="utf-8"?><!-- EN-Revision: 8e2cfbdce0cd028a6521c6e073f148e0f7efac7c Maintainer: lacatoire Status: ready -->
22
<refentry xml:id="uri-whatwg-url.parse" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
33
<refnamediv>
44
<refname>Uri\WhatWg\Url::parse</refname>
@@ -71,7 +71,7 @@ $url = \Uri\WhatWg\Url::parse("https://example.com");
7171
if ($url !== null) {
7272
echo "Valid URL: " . $url->toAsciiString();
7373
} else {
74-
echo "Invalid URL"
74+
echo "Invalid URL";
7575
}
7676
?>
7777
]]>

reference/xattr/functions/xattr-list.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: 14af302c9c0e561fa6f9cdd956268758ba9a89c5 Maintainer: leonardolara Status: ready -->
2+
<!-- EN-Revision: 8e2cfbdce0cd028a6521c6e073f148e0f7efac7c Maintainer: leonardolara Status: ready -->
33
<!-- Generated by xml_proto.php v2.0. Found in /scripts directory of phpdoc. -->
44
<refentry xml:id="function.xattr-list" xmlns="http://docbook.org/ns/docbook">
55
<refnamediv>
@@ -81,7 +81,7 @@ foreach ($root_attributes as $attr_name) {
8181
}
8282
8383
echo "\n Atributos de usuário: \n";
84-
foreach ($attributes as $attr_name) {
84+
foreach ($user_attributes as $attr_name) {
8585
printf("%s\n", $attr_name);
8686
}
8787

0 commit comments

Comments
 (0)