public function ReadOnlyStream::stream_truncate
public ReadOnlyStream::stream_truncate($new_size)
Truncate stream.
Will respond to truncation; e.g., through ftruncate().
Parameters
int $new_size: The new size.
Return value
bool TRUE on success, FALSE otherwise.
Overrides PhpStreamWrapperInterface::stream_truncate
File
- core/lib/Drupal/Core/StreamWrapper/ReadOnlyStream.php, line 172
Class
- ReadOnlyStream
- Defines a read-only Drupal stream wrapper base class.
Namespace
Drupal\Core\StreamWrapperCode
public function stream_truncate($new_size) { trigger_error('stream_truncate() not supported for read-only stream wrappers', E_USER_WARNING); return FALSE; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!StreamWrapper!ReadOnlyStream.php/function/ReadOnlyStream::stream_truncate/8.1.x