Re: [PHP-DEV] casting doubles to ints

2009-02-05 Thread Iain Lewis
On windows x86_64, PHP_INT_MAX is 2147483647. This is because in the underlying c-code, a long is 32 bit. However, linux on x86_64 uses a 64bit long so PHP_INT_MAX is going to be 9223372036854775807. Kenan R Sulayman wrote: Hi Lain! As much as I did understand, this might be a pretty good

Re: [PHP-DEV] casting doubles to ints

2009-02-05 Thread Iain Lewis
5.2 32bit situation at the moment (int)(PHP_INT_MAX +1) (int)(PHP_INT_MAX +100) (int)(PHP_INT_MAX + 1000) This does seem pretty sensible. I'm more worried about the 64bit case where: (int)(PHP_INT_MAX +1) == (int)(PHP_INT_MAX +100) (int)(PHP_INT_MAX + 1000) It would be nice for the 64 bit

AW: [PHP-DEV] Windows 7 test passed

2009-02-05 Thread Mario Brandt
Hi, a bit down I wrote that the VS6 build runs. I took the snapshot from 2009-Feb-04 22:00:00 Tested the module and CLI. Both run fine, but the SQLite extension not. Mario -Ursprüngliche Nachricht- Von: Richard Quadling [mailto:rquadl...@googlemail.com] Gesendet: Do 05.02.2009 01:10

[PHP-DEV] proc_open with bypass_shell problems

2009-02-05 Thread Alpár Török
Hi, Let me start by explaining what i am trying to do. I need to start a console application and get it's pid. If i don't use bypass_shell, i end up with the another pid (probably one for cmd.exe). If i use bypass_shell then the application starts in the background, no window is shown. This would

Re: [PHP-DEV] proc_open with bypass_shell problems

2009-02-05 Thread Richard Quadling
2009/2/5 Alpár Török torokal...@gmail.com: Hi, Let me start by explaining what i am trying to do. I need to start a console application and get it's pid. If i don't use bypass_shell, i end up with the another pid (probably one for cmd.exe). If i use bypass_shell then the application starts

Re: [PHP-DEV] adding support for PHP to a web server

2009-02-05 Thread Alexey Zakhlestin
On Thu, Feb 5, 2009 at 6:12 PM, Terry Braun t...@talking.com wrote: Hello, I've written a small web server and I'd like to add support for php to the server. Could anyone direct me to documentation or examples and give me some sense of how hard this would be. Put another way, if I have a

Re: [PHP-DEV] adding support for PHP to a web server

2009-02-05 Thread Kalle Sommer Nielsen
Hello 2009/2/5 Terry Braun t...@talking.com: Hello, I've written a small web server and I'd like to add support for php to the server. Could anyone direct me to documentation or examples and give me some sense of how hard this would be. Put another way, if I have a working PHP installation

Re: [PHP-DEV] towards the next 5.3 release

2009-02-05 Thread Johannes Schlüter
On Wed, 2009-02-04 at 13:12 +0100, David Zülke wrote: Am 03.02.2009 um 14:41 schrieb Lukas Kahwe Smith: http://bugs.php.net/bug.php?id=47206 - XSLT I looked through the CVS logs, could you confirm I understand it right: The type hint was added in 5.2.6, and will be gone again in 5.2.9,

Re: [PHP-DEV] towards the next 5.3 release

2009-02-05 Thread David Zülke
On 05.02.2009, at 17:32, Johannes Schlüter wrote: On Wed, 2009-02-04 at 13:12 +0100, David Zülke wrote: Am 03.02.2009 um 14:41 schrieb Lukas Kahwe Smith: http://bugs.php.net/bug.php?id=47206 - XSLT I looked through the CVS logs, could you confirm I understand it right: The type hint

Re: [PHP-DEV] adding support for PHP to a web server

2009-02-05 Thread Johannes Schlüter
Hi, On Thu, 2009-02-05 at 17:08 +0100, Kalle Sommer Nielsen wrote: Currently theres no SAPI documentation, however like Alexey said it would probably be easier to just the cgi/fastcgi protocol. There's a chapter in Sara's book. sapi/embed is a quite simple example of an SAPI. But I agree

Re: [PHP-DEV] towards the next 5.3 release

2009-02-05 Thread Sebastian Bergmann
Johannes Schlüter wrote: - No typehint, as it is now, #47206 Expected / to be documented, incompatible with 5.2.6-5.2.8 but compatible with most other 5.2 versions Could we extend the arginfo system to allow for multiple typehints? Of course the Reflection API would have to support this

Re: [PHP-DEV] towards the next 5.3 release

2009-02-05 Thread Johannes Schlüter
On Thu, 2009-02-05 at 10:36 -0800, Sebastian Bergmann wrote: Johannes Schlüter wrote: - No typehint, as it is now, #47206 Expected / to be documented, incompatible with 5.2.6-5.2.8 but compatible with most other 5.2 versions Could we extend the arginfo system to allow for multiple

Re: [PHP-DEV] towards the next 5.3 release

2009-02-05 Thread Sebastian Bergmann
Johannes Schlüter wrote: Of course we could, we'd just have to change a structure and zend_verify_arg_class_kind() and of course the language syntax to allow something like function foo(A|B $bar) {} but this still would mean to This should, of course, only be for built-in functions and

[PHP-DEV] CG(zend_linecol)

2009-02-05 Thread Sebastian Bergmann
Would it be possible to implement CG(zend_linecol) in addition to CG(zend_lineno)? As far I can see, this is a missing prerequisite for Xdebug to report more fine-grained code coverage, for instance. -- Sebastian Bergmann http://sebastian-bergmann.de/ GnuPG Key:

Re: [PHP-DEV] CG(zend_linecol)

2009-02-05 Thread shire
Sebastian Bergmann wrote: Would it be possible to implement CG(zend_linecol) in addition to CG(zend_lineno)? As far I can see, this is a missing prerequisite for Xdebug to report more fine-grained code coverage, for instance. I've been thinking about this also, and would find this

Re: [PHP-DEV] adding support for PHP to a web server

2009-02-05 Thread Terry Braun
Thanks to everyone for the help. One last hopefully quick and not too naive question - can I just exec php and pipe input and output? There is probably some good reason that is not obvious to me. terry Johannes Schlüter wrote: Hi, On Thu, 2009-02-05 at 17:08 +0100, Kalle Sommer Nielsen

Re: [PHP-DEV] towards the next 5.3 release

2009-02-05 Thread Sebastian Bergmann
Sebastian Bergmann wrote: It just sucks, IMHO, that some functions and methods will not have Reflection API metadata because the same arginfo structure is used for two things. That did not come out right, nevermind. -- Sebastian Bergmann

Re: [PHP-DEV] adding support for PHP to a web server

2009-02-05 Thread Andrew Rose
2009/2/5 Terry Braun t...@talking.com: Thanks to everyone for the help. One last hopefully quick and not too naive question - can I just exec php and pipe input and output? There is probably some good reason that is not obvious to me. terry Some reasons would be: * limited $_SERVER

Re: [PHP-DEV] adding support for PHP to a web server

2009-02-05 Thread Johannes Schlüter
On Thu, 2009-02-05 at 14:59 -0500, Terry Braun wrote: Thanks to everyone for the help. One last hopefully quick and not too naive question - can I just exec php and pipe input and output? There is probably some good reason that is not obvious to me. terry that's basically what CGI does,

Re: [PHP-DEV] CG(zend_linecol)

2009-02-05 Thread Stanislav Malyshev
Hi! Would it be possible to implement CG(zend_linecol) in addition to CG(zend_lineno)? As far I can see, this is a missing prerequisite for Xdebug to report more fine-grained code coverage, for instance. Unless we put this inside each opcode, I'm not sure it'd help xdebug too much. And

Re: [PHP-DEV] towards the next 5.3 release

2009-02-05 Thread Stanislav Malyshev
Hi! Of course we could, we'd just have to change a structure and zend_verify_arg_class_kind() and of course the language syntax to allow something like function foo(A|B $bar) {} but this still would mean to Maybe just use a plain old if()? :) I understand that is super-uncool bit we really

Re: [PHP-DEV] adding support for PHP to a web server

2009-02-05 Thread Stanislav Malyshev
Hi! naive question - can I just exec php and pipe input and output? There is probably some good reason that is not obvious to me. The good reasons for using FCGI are: - environment passing - headers handling - POST passing - stderr handling - performance - creating new process is very

[PHP-DEV] PHP 5.2.9RC1 Testing

2009-02-05 Thread Ilia Alshanetsky
The first release candidate of 5.2.9 was just released for testing and can be downloaded here: http://downloads.php.net/ilia/php-5.2.9RC1.tar.bz2 (md5sum: 0252cc45cce713c10e2fae34aa9e406c) The Windows binaries should become available shortly as well, for now you can grab the win32

Re: [PHP-DEV] adding support for PHP to a web server

2009-02-05 Thread Stefan Marr
Hi, just a suggestion, have you thought about using Quercus [http://www.caucho.com/resin-3.0/quercus/ ] or Project Zero [http://www.projectzero.org/download/]? This projects are implementing PHP in Java. Regards Stefan On 05 Feb 2009, at 16:12, Terry Braun wrote: Hello, I've written a

Re: [PHP-DEV] PHP 5.2.9RC1 Testing

2009-02-05 Thread Pierre Joye
On Thu, Feb 5, 2009 at 10:14 PM, Ilia Alshanetsky i...@prohost.org wrote: The first release candidate of 5.2.9 was just released for testing and can be downloaded here: http://downloads.php.net/ilia/php-5.2.9RC1.tar.bz2 (md5sum: 0252cc45cce713c10e2fae34aa9e406c) The Windows binaries should

Re: [PHP-DEV] Windows 7 test passed

2009-02-05 Thread Kenan R Sulayman
Danke Mario, für den Hinweis ! Hi all, Just for notice: Windoozer7 has been compiled against the rules of VC9. That means: -VC9 is. going to run natively, -VC6 Apps are embedded ( emulated ), -therefore some kernel Apps have to be rewritten. Thanks! -- (c) Kenan Sulayman Freelance Designer and

Re: [PHP-DEV] PHP 5.2.9RC1 Testing

2009-02-05 Thread steve
On Thu, Feb 5, 2009 at 4:10 PM, Pierre Joye pierre@gmail.com wrote: Windows binaries are now available in the usual place: http://windows.php.net/qa/ Wouldn't by chance be able to add APC to that? It has been 13 months since APC was built for Windows. (Never for a NTS version, as far as I