mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Added skeleton for StreamWrapper::stream_truncate() and version info for StreamWrapper::stream_metadata()
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@323796 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
1c96b313a0
commit
e8f5854699
2 changed files with 76 additions and 0 deletions
74
reference/stream/streamwrapper/stream-truncate.xml
Normal file
74
reference/stream/streamwrapper/stream-truncate.xml
Normal file
|
@ -0,0 +1,74 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision:$ -->
|
||||
|
||||
<refentry xml:id="streamwrapper.stream-truncate" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<refnamediv>
|
||||
<refname>streamWrapper::stream_truncate</refname>
|
||||
<refpurpose>Truncate stream</refpurpose>
|
||||
</refnamediv>
|
||||
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<modifier>public</modifier> <type>bool</type><methodname>streamWrapper::stream_truncate</methodname>
|
||||
<methodparam><type>int</type><parameter>new_size</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Will respond to truncation, e.g., through <function>ftruncate</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>new_size</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The new size.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
&return.success;
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
<para>
|
||||
<simplelist>
|
||||
<member><function>ftruncate</function></member>
|
||||
</simplelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
sgml-omittag:t
|
||||
sgml-shorttag:t
|
||||
sgml-minimize-attributes:nil
|
||||
sgml-always-quote-attributes:t
|
||||
sgml-indent-step:1
|
||||
sgml-indent-data:t
|
||||
indent-tabs-mode:nil
|
||||
sgml-parent-document:nil
|
||||
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
||||
sgml-exposed-tags:nil
|
||||
sgml-local-catalogs:nil
|
||||
sgml-local-ecat-files:nil
|
||||
End:
|
||||
vim600: syn=xml fen fdm=syntax fdl=2 si
|
||||
vim: et tw=78 syn=sgml
|
||||
vi: ts=1 sw=1
|
||||
-->
|
|
@ -67,12 +67,14 @@
|
|||
<function name='streamwrapper::stream_eof' from='PHP 4 >= 4.3.2, PHP 5'/>
|
||||
<function name='streamwrapper::stream_flush' from='PHP 4 >= 4.3.2, PHP 5'/>
|
||||
<function name='streamwrapper::stream_lock' from='PHP 5'/>
|
||||
<function name='streamwrapper::stream_metadata' from='PHP 5 >= 5.4.0'/>
|
||||
<function name='streamwrapper::stream_open' from='PHP 4 >= 4.3.2, PHP 5'/>
|
||||
<function name='streamwrapper::stream_read' from='PHP 4 >= 4.3.2, PHP 5'/>
|
||||
<function name='streamwrapper::stream_seek' from='PHP 4 >= 4.3.2, PHP 5'/>
|
||||
<function name='streamwrapper::stream_set_option' from='PHP 5 >= 5.3.0'/>
|
||||
<function name='streamwrapper::stream_stat' from='PHP 4 >= 4.3.2, PHP 5'/>
|
||||
<function name='streamwrapper::stream_tell' from='PHP 4 >= 4.3.2, PHP 5'/>
|
||||
<function name='streamwrapper::stream_truncate' from='PHP 5 >= 5.4.0'/>
|
||||
<function name='streamwrapper::stream_write' from='PHP 4 >= 4.3.2, PHP 5'/>
|
||||
<function name='streamwrapper::unlink' from='PHP 5'/>
|
||||
<function name='streamwrapper::url_stat' from='PHP 4 >= 4.3.2, PHP 5'/>
|
||||
|
|
Loading…
Reference in a new issue