[prev in list] [next in list] [prev in thread] [next in thread]
List: php-doc-cvs
Subject: [DOC-CVS] [doc-en] master: Few FFI improvements (#2702)
From: Pierrick Charron via GitHub <noreply () php ! net>
Date: 2023-08-23 12:24:16
Message-ID: 4UPDuVpWlH8Yww1pojnaV8ACswRsiRjHbjvNkKhtXA () main ! php ! net
[Download RAW message or body]
Author: Pierrick Charron (adoy)
Committer: GitHub (web-flow)
Pusher: Girgias
Date: 2023-08-23T13:10:50+01:00
Commit: https://github.com/php/doc-en/commit/e281e1f40a1480dcc5a3d874185ce841bcae40d8
Raw diff: https://github.com/php/doc-en/commit/e281e1f40a1480dcc5a3d874185ce841bcae40d8.diff
Few FFI improvements (#2702)
Found during the translation to French
Changed paths:
M reference/ffi/ffi/cdef.xml
M reference/ffi/ffi/isnull.xml
M reference/ffi/ffi/memcmp.xml
M reference/ffi/ffi/string.xml
M reference/ffi/ffi/type.xml
Diff:
diff --git a/reference/ffi/ffi/cdef.xml b/reference/ffi/ffi/cdef.xml
index b1749a0aae7..67c995690bd 100644
--- a/reference/ffi/ffi/cdef.xml
+++ b/reference/ffi/ffi/cdef.xml
@@ -31,7 +31,7 @@
</para>
<note>
<para>
- C preprocessor directives are not supported, i.e. <code>#include</code>,
+ C preprocessor directives are not supported, i.e. <code>#include</code>,
<code>#define</code> and CPP macros do not work.
</para>
</note>
@@ -46,7 +46,7 @@
</para>
<note>
<para>
- If <parameter>lib</parameter> is omitted, platforms supporting \
<literal>RTLD_DEFAULT</literal> + If <parameter>lib</parameter> is omitted or \
&null;, platforms supporting <literal>RTLD_DEFAULT</literal>
attempt to lookup symbols declared in <parameter>code</parameter> in the \
normal global scope. Other systems will fail to resolve these symbols.
</para>
diff --git a/reference/ffi/ffi/isnull.xml b/reference/ffi/ffi/isnull.xml
index eed96109baa..526856d8361 100644
--- a/reference/ffi/ffi/isnull.xml
+++ b/reference/ffi/ffi/isnull.xml
@@ -34,7 +34,7 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
- Returns whether a FFI\CData is a null pointer.
+ Returns whether a <classname>FFI\CData</classname> is a null pointer.
</para>
</refsect1>
diff --git a/reference/ffi/ffi/memcmp.xml b/reference/ffi/ffi/memcmp.xml
index 763c5dff1f4..73dfef44459 100644
--- a/reference/ffi/ffi/memcmp.xml
+++ b/reference/ffi/ffi/memcmp.xml
@@ -55,9 +55,9 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
- Returns < <literal>0</literal> if the contents of the memory area starting at \
<parameter>ptr1</parameter> + Returns a value less than <literal>0</literal> if the \
contents of the memory area starting at <parameter>ptr1</parameter> are considered \
less than the contents of the memory area starting at \
<parameter>ptr2</parameter>,
- > <literal>0</literal> if the contents of the first memory area are considered \
greater than the second, + a value greater than <literal>0</literal> if the \
contents of the first memory area are considered greater than the second, and \
<literal>0</literal> if they are equal. </para>
</refsect1>
diff --git a/reference/ffi/ffi/string.xml b/reference/ffi/ffi/string.xml
index 9a1f5c0bef0..33fb19cbf86 100644
--- a/reference/ffi/ffi/string.xml
+++ b/reference/ffi/ffi/string.xml
@@ -35,8 +35,8 @@
<listitem>
<para>
The number of bytes to copy to the <type>string</type>.
- If <parameter>size</parameter> is omitted, <parameter>ptr</parameter> must be \
a zero terminated
- array of C <literal>chars</literal>.
+ If <parameter>size</parameter> is omitted or &null;, \
<parameter>ptr</parameter> must be a zero terminated + array of C \
<literal>char</literal>. </para>
</listitem>
</varlistentry>
diff --git a/reference/ffi/ffi/type.xml b/reference/ffi/ffi/type.xml
index 17c502b2ec6..1f2a676c30d 100644
--- a/reference/ffi/ffi/type.xml
+++ b/reference/ffi/ffi/type.xml
@@ -32,8 +32,7 @@
<term><parameter>type</parameter></term>
<listitem>
<para>
- A valid C declaration as <type>string</type>, or an instance of \
<classname>FFI\CType</classname>
- which has already been created.
+ A valid C declaration as <type>string</type>.
</para>
</listitem>
</varlistentry>
--
PHP Documentation Commits Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic