[PHP-DEV] Patch to Sys V Sem and SHM

2001-03-15 Thread Gavin Sherry
releasing the resources from the Zend API correctly. Will get around to that, based on feedback (if any?). All patches have been generated with diff -u. Thanks Gavin Sherry Alcove Systems Engineering. --- ext/sysvsem/sysvsem.c.orig Thu Mar 15 22:40:18 2001 +++ ext/sysvsem/sysvsem.c Fri Mar 16

Re: [PHP-DEV] New functions (patch included): str_uri_escape andunescape

2001-03-16 Thread Gavin Sherry
What's wrong with rawurl(en)(de)code() ? Gavin On Sat, 17 Mar 2001, Fredrik Ohrn wrote: Hello! I couldn't find any pointers on where to send contributions, I hope this is the right place. Anyway, I was stumped when I couldn't find an easy way to escape strings for use when printing

Re: [PHP-DEV] PHP 4.0 Bug #10044: Bug in shm_remove() and inadequateimplementation of SYSVSem.

2001-03-28 Thread Gavin Sherry
); } +/* }}} */ + + + + +/* {{{ proto int sem_remove(int id) + Removes semaphore from Unix systems */ + +/* + * contributed by Gavin Sherry [EMAIL PROTECTED] + * Fri Mar 16 00:50:13 EST 2001 + */ + +PHP_FUNCTION(sem_remove) +{ +pval **arg_id; +int id,type; + sysvsem_sem *sem_ptr

Re: [PHP-DEV] Shared memory in extensions

2001-04-02 Thread Gavin Sherry
Thomas, When shmget() fails, it sets errno. It would be useful if you could provide this information (see shmget(2)). Also, do you have a URL got SHM across HTTP patch? This sounds like fun =) Gavin On Mon, 2 Apr 2001, Thomas Wentzel wrote:

Re: [PHP-DEV] xslt problems

2001-05-16 Thread Gavin Sherry
Alex, Sablot has some poor error handling at the moment. All ambiguous errors you can put down to Sablot. Try using the `sabcmd` from the command line in order to get better information on where and how your transformations are playing up. Also, if you're unsure if it is a bug, best to mail the

Re: [PHP-DEV] Zdnet Article

2001-05-17 Thread Gavin Sherry
There is a disappointing trend in 'mainstream' commentary on open source projects. This is an example of one. In the last year of so I have had a lot of experience with poor media coverage of projects I am either involved in or follow closely. One of the worst being an all out attack on

Re: [PHP-DEV] Lame support for win32 mail() function -rant

2001-05-21 Thread Gavin Sherry
Joel, The main problem is that in order to produce a PHP release for Windows which is of the same level of functionality as a release for a Unix system is quite difficult. Even though Linux, *BSD, Solaris and HP UX (as well as other unices) have their nuances, the PHP development team have an

Re: [PHP-DEV] Trying to get buildconf to use libtool 1.4 installedin non-standard place

2001-05-23 Thread Gavin Sherry
Hi Yusuf, On Wed, 23 May 2001, Yusuf Goolamabbas wrote: I installed libtool 1.4 from ftp.gnu.org in /usr/local/site/libtool Setting an alias libtool to point to this version doesn't seem to convince buildconf that I have libtool. I could push this directory at the beginning of my search

RE: [PHP-DEV] Bug #11075: bad operation of nl2br function

2001-05-24 Thread Gavin Sherry
It would be a poor browser design which differentiated between br and br /. I've just tested with old versions of netscape (4.0 series) and a friend is digging up some 2.* and 3.* style browsers just to verify. Gavin On Thu, 24 May 2001, Brian Tanner wrote: Ok, I've seen this bug reported too

Re: [PHP-DEV] Tidying up the language

2001-07-02 Thread Gavin Sherry
Hi guys, I agree that, given a new Zend engine, it is the best of times to rework the language. I think Phil is right in pointing out that all functions/extensions need to be implemented along standardised lines. It would be best if, once there is concensus on such a frame work, it were set in

Re: [PHP-DEV] Simple (I hope) updating contents question

2001-07-19 Thread Gavin Sherry
Er Galvão Abbott, Please direct this to the correct list - PHP General Users List. The developer's list is for people interested in/working on the PHP hypertext processor itself. Gavin -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[PHP-DEV] Sleepycat DB3

2001-08-14 Thread Gavin Sherry
Hi all, For a while now I have been thinking about just how useful the database abstraction layer is for people who want to use Sleepycat DB2 or DB3 - also known as Berkeley DB - (www.sleepycat.com) database systems. Those familiar with either know just how sophisticated they are: offering full

[PHP-DEV] Zend engine bug

2001-09-05 Thread Gavin Sherry
Hi guys, Just looking through some older bugs. #13007 is a bug in the Zend engine. The problem is the zval.value.lval is overflowing. The zendi_convert_to_long() macro converts doubles to unsigned long ints as follows: (l) = (d) LONG_MAX ? (unsigned long) (d) : (long) (d); It cannot do this

Re: [PHP-DEV] Zend engine bug

2001-09-05 Thread Gavin Sherry
On Wed, 5 Sep 2001, Zeev Suraski wrote: In what cases do you see a problem with that? If (d) is bigger than LONG_MAX, than you're screwed anyway. I presume you are refering to my proposed hack? Perhaps a little more detail =). If the type of either operand is greater than long, it cannot

Re: [PHP-DEV] Zend engine bug

2001-09-05 Thread Gavin Sherry
On Wed, 5 Sep 2001, Zeev Suraski wrote: If the type of either operand is greater than long, it cannot be demoted (from double) without overflowing lval and giving unexpected results. But when you overflow an integer, you get unexpected results. The only thing this code does is that in

Re: [PHP-DEV] Zend engine bug

2001-09-06 Thread Gavin Sherry
On Thu, 6 Sep 2001, Stanislav Malyshev wrote: GS echo (2147483649 2147483649); GS GS echo (2147483649 % 5); If you want numbers longer than long, you should use GMP anyway (or should know what you are doing). That unsigned hack, IIRC, was made with the single purpose of enabling working

Re: [PHP-DEV] Re: Bug #13243 Updated: Error when using 2D array

2001-09-11 Thread Gavin Sherry
This is not related to arrays. if(!isset($pokoj[1][COLL]){$pokoj[1][COLL] = 3;; This line contains two syntax errors. Firstly, there is a missing ')' closing the if() evaluation and there is a stray '{' after this. Syntactically correct code would be as follows:

Re: [PHP-DEV] Zend CVS doesn't compile

2001-09-22 Thread Gavin Sherry
As far as I can see, one needs only remove: typedef int yy_state_type; From zend_globals.h. This makes the following part of the patch relevant: +#ifndef YY_STATE_DEFINED +#define YY_STATE_DEFINED typedef int yy_state_type; +#endif Gavin On Sat, 22 Sep 2001, Rasmus Lerdorf wrote: One of

Re: [PHP-DEV] Zend CVS doesn't compile

2001-09-22 Thread Gavin Sherry
Oops. I'm wrong of course. It seems to be the case that yy_state_type is just a poor naming choice in zend_globals.h. I renamed yy_state_type here and it compiles fine. Gavin On Sat, 22 Sep 2001, Gavin Sherry wrote: As far as I can see, one needs only remove: typedef int yy_state_type

Re: [PHP-DEV] PHP 4.0 Bug Summary Report

2001-09-22 Thread Gavin Sherry
The 4.0 Bug Summary contains PHP 3 series bugs. Can these bugs be left out? Gavin -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP-DEV] set_time_limit()

2001-09-22 Thread Gavin Sherry
There is a parse error in this script. The url should be in quotes. This granted, the script performs correctly with latest CVS. Gavin On Sun, 23 Sep 2001, dries wrote: Why does the time limit doesn't work ? Any suggestions how to fix this? Thanks! function connect1() {

Re: [PHP-DEV] Re: [PHP] Re: [PHP-DEV] Re: Computer Science and PHP

2002-01-20 Thread Gavin Sherry
On Sat, 19 Jan 2002, Sebastian Bergmann wrote: Alan Knowles wrote: Press releases, for PHP5 pre-alpha, PHP-GTK's, (Derick - srm?) upcomming release etc. which could be made available - Then a PHP press team??, could be resposnible for getting it out to the Press in their local