php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56359 ps_get_buffer omits data
Submitted: 2005-03-27 07:14 UTC Modified: 2006-02-21 07:24 UTC
From: simonb at netstacker dot de Assigned: steinm (profile)
Status: Closed Package: ps (PECL)
PHP Version: 4.3.10 OS: Debian Sarge x86
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: simonb at netstacker dot de
New email:
PHP Version: OS:

 

 [2005-03-27 07:14 UTC] simonb at netstacker dot de
Description:
------------
When using ps_get_buffer() to output a small document into a string, only the beginning of the document is returned. Later parts are omitted.
It seems to work fine if the document is written to a file.

Reproduce code:
---------------
http://www.netstacker.de/tmp/ps_get_buffer.php.txt


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-02-21 07:24 UTC] uwe at steinmann dot cx
ps_get_buffer() isn't implemented yet and you actually don't need it, because the ps document is send to stdout anyway if you don't pass a file name to ps_open_file(). The fact that your script quits in the middle of the ps file, is probably due to a bug in pslib which lets you access its internal string buffer (via ps_get_buffer()) while it is uninitalized.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon May 12 14:01:29 2025 UTC