[PHP-DEV] auto-disable seekable flag

2005-09-08 Thread Michael Spector
Hi, I've encountered change in following code behaviour (somewhere between 5.1.0b3 and 5.1.0-HEAD): posix_isatty (STDOUT); Now it produces this warning: cannot seek on a pipe The attached patch adds PHP_STREAM_FLAG_NO_SEEK to the stream flags, if it detects whether the file descriptor is not

Re: [PHP-DEV] PTS support patch

2005-05-29 Thread Michael Spector
On 12:51, Wed 25 May 05, Michael Spector wrote: > Here's a patch for PTS support in proc_open, instead of having PHP_CAN_DO_PTS > always > disabled this patch introduces --enable-pty option. > Added support for BSD4 PTS types. > Please review it. > Anybody has any objec

[PHP-DEV] PTS support patch

2005-05-25 Thread Michael Spector
Here's a patch for PTS support in proc_open, instead of having PHP_CAN_DO_PTS always disabled this patch introduces --enable-pty option. Added support for BSD4 PTS types. Please review it. -- Best regards, Michael Index: ext/standard/config.m4 ===

[PHP-DEV] typo error in PHP.net site

2004-12-22 Thread Michael Spector
Hi, Look at this page: http://il.php.net/manual/en/function.file-get-contents.php In this note: "The offset parameter was added in PHP 5.1.0" The version of PHP is overestimated, don't you think? :) -- Best regards, Michael -- PHP Internals - PHP Runtime Development Mailing List To unsubscr

[PHP-DEV] sqlite temp directory

2004-09-05 Thread Michael Spector
Hi, It looks like libsqlite uses global variable 'sqlite_temp_directory' for storing the path to temporary directory. It would be very useful, if there was a PHP.ini entry named like: "sqlite.temp_directory" setting this variable, since there are cases where user environment doesn't allow to every

Re: [PHP-DEV] Passing structure to PHP function

2004-08-23 Thread Michael Spector
On Mon, Aug 23, 2004 at 11:10:16AM -0700, Rasmus Lerdorf wrote: > On Mon, 23 Aug 2004, Michael Spector wrote: > > I'm "translating" some function, that recieves a pointer to structure of > > this type: > > > > struct { > > char * text; > >

[PHP-DEV] Passing structure to PHP function

2004-08-23 Thread Michael Spector
Hi, I'm "translating" some function, that recieves a pointer to structure of this type: struct { char * text; char ** value; int flags; }; and I'm get stuck here, thinking of a legal way how to pass the list of structures to my PHP function. I thought to pass it in this way: myfunc

[PHP-DEV] new PHP extension: newt

2004-08-12 Thread Michael Spector
Hi, I'm developing a new PHP extension for CLI/CGI, that may be very useful in administrative day-to-day work. If you find it useful, please give me instructions how I can merge it to the CVS. Status of the project: 80% written, not tested (quite) Homepage: http://php-newt.sourceforge.net --

[PHP-DEV] Bug in preg_match() ?

2004-07-11 Thread Michael Spector
Hi, This script: outputs the following error: Warning: Unknown modifier '/' in /home/michael/bug.php on line 5 I thought it should find the match "m//" ... Can you say, why search of the ending delimiter in a pattern cannot be performed in a simple way, as you can see in the attached pa

Re: [PHP-DEV] Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_operators.c

2004-02-22 Thread Michael Spector
On Sun, 22 Feb 2004, Derick Rethans wrote: > On Sun, 22 Feb 2004, Derick Rethans wrote: > > > On Sun, 22 Feb 2004, Andi Gutmans wrote: > > > > > Huh? What platform crashes? Can you send reproducible C code? > > > > int main(void) { > > long a = -2147483648; > > long b = -1; > > long c