[PHP-DEV] [PATCH] exif warning fix?

2005-03-10 Thread Joe Orton
Testing "length >= LONG_MAX" where length is an int is always false, and gcc gives a warning for it. Perhaps something like this was intended? Index: ext/exif/exif.c === RCS file: /repository/php-src/ext/exif/exif.c,v retrieving revi

[PHP-DEV] Re: [PATCH] exif warning fix?

2005-03-10 Thread Ard Biesheuvel
Joe Orton wrote: Testing "length >= LONG_MAX" where length is an int is always false, and gcc gives a warning for it. Perhaps something like this was intended? On 64-bit it is always false, however on 32-bit 'length == LONG_MAX' can be true. That's probably why noone caught the warning so far, as

Re: [PHP-DEV] Re: [PATCH] exif warning fix?

2005-03-10 Thread Joe Orton
On Thu, Mar 10, 2005 at 11:23:51AM +0100, Ard Biesheuvel wrote: > Joe Orton wrote: > >Testing "length >= LONG_MAX" where length is an int is always false, and > >gcc gives a warning for it. Perhaps something like this was intended? > > > > On 64-bit it is always false, however on 32-bit 'length =

[PHP-DEV] maintainer/owner of ext/ingres_ii?

2005-03-10 Thread Croker, Grant
Hi, I was wondering if there was anybody actively maintaining the ingres_ii extension? From looking at CVS the documented maintainer, David Hénot, has not touched the code for sometime. I have tried to contact David but as yet have had no response. If possible I would like to start maintaining

[PHP-DEV] Re: maintainer/owner of ext/ingres_ii?

2005-03-10 Thread Lukas Smith
Grant Croker wrote: Hi, I was wondering if there was anybody actively maintaining the ingres_ii extension? From looking at CVS the documented maintainer, David Hénot, has not touched the code for sometime. I have tried to contact David but as yet have had no response. If possible I would like to

Re: [PHP-DEV] zend_stream_fixup

2005-03-10 Thread Zeev Suraski
At 18:14 09/03/2005, Wez Furlong wrote: Yes, you missed that a stream can be any stream from PHP land. Which code in the engine does more than read/close? Wez, I think it's beyond looking into which code in the engine does more than read/close right now. It has to do with having infrastructure co

Re: [PHP-DEV] LOGO_GUID

2005-03-10 Thread D . Walsh
On Mar 10, 2005, at 03:26, Hartmut Holzgraefe wrote: D.Walsh wrote: How do I select an appropriate LOGO_GUID? -- Dale A GUID/UUID is always a safe bet, on linux you can use the uuidgen tool to create such a unique identifier, other systems should provide similar tools. Example: $ uuidgen afa5e8bc-a

Re: [PHP-DEV] zend_stream_fixup

2005-03-10 Thread Marcus Boerger
Hello Zeev, Thursday, March 10, 2005, 3:12:36 PM, you wrote: > At 18:14 09/03/2005, Wez Furlong wrote: >>Yes, you missed that a stream can be any stream from PHP land. >> >>Which code in the engine does more than read/close? > Wez, > I think it's beyond looking into which code in the engine doe

Re: [PHP-DEV] zend_stream_fixup

2005-03-10 Thread Stanislav Malyshev
MB>>For a short idea, we could implement something like jar's possible MB>>named par as in php archive :-) What I don't understand is how this is connected to promoting FP to STREAM. Won't it be implemented via PHP streams anyway? -- Stanislav Malyshev, Zend Products Engineer [EMAIL PROTECTED

Re: [PHP-DEV] LOGO_GUID

2005-03-10 Thread Johannes Schlueter
Hi Dale, D . Walsh wrote: > Is there also a utility to generate the the logo in the required text > syntax or should I just create a quick hack to get the job done? as I wrote in a posting some weeks ago: PECL_Gen has Logo-Support. Even if you won't use PECL_Gen for your extension you could check

Re: [PHP-DEV] zend_stream_fixup

2005-03-10 Thread Marcus Boerger
Hello Stanislav, Thursday, March 10, 2005, 3:26:39 PM, you wrote: MB>>>For a short idea, we could implement something like jar's possible MB>>>named par as in php archive :-) > What I don't understand is how this is connected to promoting FP to > STREAM. Won't it be implemented via PHP streams

RE: [PHP-DEV] Re: maintainer/owner of ext/ingres_ii?

2005-03-10 Thread Croker, Grant
> Well usually you start off with providing patches and once you have > shown your commitment by providing quality patches you may eventually > gain CVS access. Sounds fair enough. > I also would also recommend that you take a look at PDO (php.net/pdo) as > this is where things are heading in p

Re: [PHP-DEV] zend_stream_fixup

2005-03-10 Thread Stanislav Malyshev
MB>>> What I don't understand is how this is connected to promoting FP to MB>>> STREAM. Won't it be implemented via PHP streams anyway? MB>> MB>>If we can garantee that the FP's won't interfere it won't be a problem. MB>>But can we? If we can i'll shut up :-) I don't see even what's here to guara

Re: [PHP-DEV] zend_stream_fixup

2005-03-10 Thread Wez Furlong
_FP means that it is a plain file handle, which cannot be used with the zend_stream functions as-is, STREAM means that the zend_stream functions can work. Look, if you need to stat the damned thing, why not just add a stat method to zend_streams.c ? I can't believe that this thread has escalated

Re: [PHP-DEV] LOGO_GUID

2005-03-10 Thread D . Walsh
On Mar 10, 2005, at 10:56, Johannes Schlueter wrote: Hi, I don't know why Hartmut (Maintainer of PECL_Gen) wrote only me, so FYI: -- Forwarded Message -- Subject: Re: [PHP-DEV] LOGO_GUID Date: Thursday 10 March 2005 15:48 From: Hartmut Holzgraefe <[EMAIL PROTECTED]> To: Johannes

Re: [PHP-DEV] LOGO_GUID

2005-03-10 Thread D . Walsh
On Mar 10, 2005, at 12:20, D.Walsh wrote: On Mar 10, 2005, at 10:56, Johannes Schlueter wrote: Hi, I don't know why Hartmut (Maintainer of PECL_Gen) wrote only me, so FYI: -- Forwarded Message -- Subject: Re: [PHP-DEV] LOGO_GUID Date: Thursday 10 March 2005 15:48 From: Hartmut

Re: [PHP-DEV] LOGO_GUID

2005-03-10 Thread Stephan Schmidt
Hi, D.Walsh schrieb: OK so I've looked at the code from the link provided and while it looks like it's suppose to do something, I am unable to verify what it can actually do because I am unable to install a working copy of PECL_Gen in PHP 4.3.10 on a Macintosh computer based on the instructions

Re: [PHP-DEV] zend_stream_fixup

2005-03-10 Thread Stanislav Malyshev
WF>>_FP means that it is a plain file handle, which cannot be used with WF>>the zend_stream functions as-is, STREAM means that the zend_stream WF>>functions can work. That I understand. What I do not understand is why this single function needs it's own type. Why it can't just handle all file_han

Re: [PHP-DEV] zend_stream_fixup

2005-03-10 Thread Wez Furlong
> That I understand. What I do not understand is why this single function > needs it's own type. Why it can't just handle all file_handle types just > like any other functions do. I would understand if there were ten function > like this - but so far we have one. You have all the different things

Re: [PHP-DEV] zend_stream_fixup

2005-03-10 Thread Stanislav Malyshev
WF>>> needs it's own type. Why it can't just handle all file_handle types just WF>>> like any other functions do. I would understand if there were ten function WF>>> like this - but so far we have one. WF>> WF>>You have all the different things that php streams provides as well, WF>>which is why th

Re: [PHP-DEV] LOGO_GUID

2005-03-10 Thread Christian Schneider
D . Walsh wrote: Here's a working solution, build with the command gcc create_php_logo.c -o create-php-logo The same could be done more easily in PHP in a couple of lines, e.g. #!/usr/bin/php echo "#define CONTEXT_TYPE_IMAGE_GIF \"Content-Type: image/gif\"\n\nunsigned char " . basename($argv[1]

Re: [PHP-DEV] zend_stream_fixup

2005-03-10 Thread Wez Furlong
http://viewcvs.php.net/viewcvs.cgi/php-src/main/main.c.diff?r1=1.526&r2=1.527 On Thu, 10 Mar 2005 20:15:55 +0200 (IST), Stanislav Malyshev <[EMAIL PROTECTED]> wrote: > WF>>> needs it's own type. Why it can't just handle all file_handle types just > WF>>> like any other functions do. I would under

Re: [PHP-DEV] LOGO_GUID

2005-03-10 Thread Hartmut Holzgraefe
Stephan Schmidt wrote: D.Walsh schrieb: ... because I am unable to install a working copy of PECL_Gen in PHP 4.3.10 ... > IIRC, PECL_Gen is a PHP5-only package. Yes, it is, although the generated code compiles fine with 4.x, too. -- Hartmut Holzgraefe <[EMAIL PROTECTED]> -- PHP Internals - PHP Ru

Re: [PHP-DEV] LOGO_GUID

2005-03-10 Thread D . Walsh
On Mar 10, 2005, at 17:45, Hartmut Holzgraefe wrote: Stephan Schmidt wrote: D.Walsh schrieb: ... because I am unable to install a working copy of PECL_Gen in PHP 4.3.10 ... > IIRC, PECL_Gen is a PHP5-only package. Yes, it is, although the generated code compiles fine with 4.x, too. -- Hartmut Holz

Re: [PHP-DEV] LOGO_GUID

2005-03-10 Thread Christian Schneider
D . Walsh wrote: Now since this appears to be a separate stand-alone package installed by pear, why couldn't it be installed and functional, seems that files are missing and this is why it doesn't appear to function? I don't think this has anything to do with PHP internals so please take this so

[PHP-DEV] XML Bug #32001

2005-03-10 Thread Marcus Boerger
Hello moriyoshi or any other XMLer, please verify the --EXPECT-- data in test ext/xml/tests/bug32001.phpt i am quite sure there are several mistakes in it. -- Best regards, Marcus mailto:[EMAIL PROTECTED] -- PHP Internals - PHP Runtime Development Mailing List To un

[PHP-DEV] par/phar/jar (was zend_stream_fixup)

2005-03-10 Thread Daniel Convissor
On Thu, Mar 10, 2005 at 22:25:39 +0800, Marcus Boerger wrote: > For a short idea, we could implement something like jar's possible named > par as in php archive :-) Have you take a look at Davey's proposed PEAR::PHP_Archive package? http://pear.php.net/pepr/pepr-proposal-show.php?id=88 --Dan --

[PHP-DEV] Re: par/phar/jar (was zend_stream_fixup)

2005-03-10 Thread l0t3k
In about a month or so, i'll start work on an extension implementing a file format which allows for bundling all resources related to a app (including PHP source, localized strings, gifs, byte-code from BCompiler etc). the format has an heirarchical internal structure and allows for introspectio

Re: [PHP-DEV] XML Bug #32001

2005-03-10 Thread Moriyoshi Koizumi
On 2005/03/11, at 10:24, Marcus Boerger wrote: Hello moriyoshi or any other XMLer, please verify the --EXPECT-- data in test ext/xml/tests/bug32001.phpt i am quite sure there are several mistakes in it. Excuse me if I'm just missing something, what kind of mistake do you want to address? Moriyosh