svn: /phpdoc/en/trunk/reference/stream/ streamwrapper/stream-truncate.xml versions.xml

From: Date: Fri, 02 Mar 2012 05:35:09 +0000
Subject: svn: /phpdoc/en/trunk/reference/stream/ streamwrapper/stream-truncate.xml versions.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-9777@lists.php.net to get a copy of this message
philip Fri, 02 Mar 2012 05:35:09 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=323796 Log: Added skeleton for StreamWrapper::stream_truncate() and version info for StreamWrapper::stream_metadata() Changed paths: A phpdoc/en/trunk/reference/stream/streamwrapper/stream-truncate.xml U phpdoc/en/trunk/reference/stream/versions.xml Added: phpdoc/en/trunk/reference/stream/streamwrapper/stream-truncate.xml =================================================================== --- phpdoc/en/trunk/reference/stream/streamwrapper/stream-truncate.xml (rev 0) +++ phpdoc/en/trunk/reference/stream/streamwrapper/stream-truncate.xml 2012-03-02 05:35:09 UTC (rev 323796) @@ -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 +--> Modified: phpdoc/en/trunk/reference/stream/versions.xml =================================================================== --- phpdoc/en/trunk/reference/stream/versions.xml 2012-03-02 05:19:44 UTC (rev 323795) +++ phpdoc/en/trunk/reference/stream/versions.xml 2012-03-02 05:35:09 UTC (rev 323796) @@ -67,12 +67,14 @@ <function name='streamwrapper::stream_eof' from='PHP 4 &gt;= 4.3.2, PHP 5'/> <function name='streamwrapper::stream_flush' from='PHP 4 &gt;= 4.3.2, PHP 5'/> <function name='streamwrapper::stream_lock' from='PHP 5'/> + <function name='streamwrapper::stream_metadata' from='PHP 5 &gt;= 5.4.0'/> <function name='streamwrapper::stream_open' from='PHP 4 &gt;= 4.3.2, PHP 5'/> <function name='streamwrapper::stream_read' from='PHP 4 &gt;= 4.3.2, PHP 5'/> <function name='streamwrapper::stream_seek' from='PHP 4 &gt;= 4.3.2, PHP 5'/> <function name='streamwrapper::stream_set_option' from='PHP 5 &gt;= 5.3.0'/> <function name='streamwrapper::stream_stat' from='PHP 4 &gt;= 4.3.2, PHP 5'/> <function name='streamwrapper::stream_tell' from='PHP 4 &gt;= 4.3.2, PHP 5'/> + <function name='streamwrapper::stream_truncate' from='PHP 5 &gt;= 5.4.0'/> <function name='streamwrapper::stream_write' from='PHP 4 &gt;= 4.3.2, PHP 5'/> <function name='streamwrapper::unlink' from='PHP 5'/> <function name='streamwrapper::url_stat' from='PHP 4 &gt;= 4.3.2, PHP 5'/>

« previous php.doc.cvs (#9777) next »