[PHP-DEV] Re: Writing an Extension

2005-02-22 Thread Michael Wallner
Hi Arjun Jain, you wrote: We need to write a PHP extension for the PI API (http://www.picorp.com). Other than ext_skel and PECL_Gen, are there any other options? What should I use? And also for the previous two, these does not seem to much information available. Can someone please throw

[PHP-DEV] Patch for not to run some tests while cross compiling

2005-02-22 Thread Kamesh Jayachandran
Hi All, I am working for NetWare port of PHP. I am trying to use the autoconf based build system to build the binaries meant to run for NetWare with build system being Linux.(Cross compilation). While running ./configure with corresponding options I got errors stating cannot run tests while cross

[PHP-DEV] C++ Extension

2005-02-22 Thread Arjun Jain
Hi, Thank you very much Pierre and Michael. I will get going with PECL. The problem I am facing is that the PI API is a C++ framework. And, it is under constant updation. So, if I manually write the wrapper functions, there will be a huge problem in maintaining it. I was wondering if there is a

Re: [PHP-DEV] Patch for not to run some tests while cross compiling

2005-02-22 Thread Jani Taskinen
On Tue, 22 Feb 2005, Kamesh Jayachandran wrote: Hi All, I am working for NetWare port of PHP. I am trying to use the autoconf based build system to build the binaries meant to run for NetWare with build system being Linux.(Cross compilation). While running ./configure with corresponding options I

Re: [PHP-DEV] segmentation fault when passing arguments by reference or importing global variables

2005-02-22 Thread Martin Sarsale
I've been noticing the same things, and still trying to figure out where it happens. It has most likely to do with returning-by-reference in the wrong places. It's also not very easy to reproduce the problem - I already spoke to several people including the guys that wrote zend, but they don't

Re: [PHP-DEV] function proposal - php_check_syntax_string

2005-02-22 Thread Frédéric LECOINTRE
Hello all, thanks John for help so here, http://php-dev.burnweb.net. there's new diff to avoid unexpected end of script on fatal error. (add for fun -S code option to CLI) but with the same limitation mentioned on manual about php_check_syntax. fred - Original Message - From: John

[PHP-DEV] Lost emails

2005-02-22 Thread Andi Gutmans
Hi, Once again I have lost lots of emails. I lost the past week except for about the last 24 hours. If you sent me anything which I'm supposed to take care of please resend. Thanks, Andi -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit:

[PHP-DEV] Re: C++ Extension

2005-02-22 Thread Tim Van Wassenhove
On 2005-02-22, Arjun Jain [EMAIL PROTECTED] wrote: Hi, Thank you very much Pierre and Michael. I will get going with PECL. The problem I am facing is that the PI API is a C++ framework. And, it is under constant updation. So, if I manually write the wrapper functions, there will be a huge

[PHP-DEV] __autoload() and class_exists()

2005-02-22 Thread Stephan Schmidt
Hi, I just found this strange behaviour in PHP5: When using class_exists() to test, whether a class exists, the magic function __autoload() is called: function __autoload($class) { echo Trying to load $class\n; } if (!class_exists('DB')) { echo DB does not exist.\n; } You'll get: Trying to

Re: [PHP-DEV] __autoload() and class_exists()

2005-02-22 Thread Marcus Boerger
Hello Stephan, Tuesday, February 22, 2005, 8:59:27 PM, you wrote: Hi, I just found this strange behaviour in PHP5: When using class_exists() to test, whether a class exists, the magic function __autoload() is called: Expected behavior that can be changed: proto bool class_exists(string

[PHP-DEV] realpath() and destructors

2005-02-22 Thread Stephan Schmidt
Hi, I found another strange behaviour in PHP5, it occurred only on my Windows machine using the Apache SAPI (tried it on Debian with PHP-CGI and it worked fine). The following code: ?php class Foo { public function __construct() { echo realpath('./') . \n; } public

Re: [PHP-DEV] __autoload() and class_exists()

2005-02-22 Thread Stephan Schmidt
Hi, Marcus Boerger schrieb: Expected behavior that can be changed: proto bool class_exists(string classname [, bool autoload]) RTFM or is it undocumented? Ooops, didn't check the manual for class_exists() in the last months... Stephan -- http://www.php-tools.net http://www.schst.net

[PHP-DEV] Re: realpath() and destructors

2005-02-22 Thread Johannes Schlueter
Hi Stephan, this is by design and was discussed before, please check the archives. And should happen on Linux with mod_php, too. johannes Stephan Schmidt wrote: Hi, I found another strange behaviour in PHP5, it occurred only on my Windows machine using the Apache SAPI (tried it on Debian

Re: [PHP-DEV] realpath() and destructors

2005-02-22 Thread Daniel Convissor
On Tue, Feb 22, 2005 at 09:08:31PM +0100, Stephan Schmidt wrote: c:\www\projects\pat\patportal\examples c:\programme\apache group\Apache I found similar weirdness. When using the CGI, on my Windows 2000 machine when doing realpath('.') I get the path to the document root, as expected. But

[PHP-DEV] compile php5 with vc++ for windows

2005-02-22 Thread Alawi Albaity
I have tried to compile php5.0.3 on windows using vc++ I have follow the instruction to do that from php manual but I feel that was for php4 because I do not see it work with php5 source and I do not get any files after compile and that what I get in the pane Deleting intermediate files and

[PHP-DEV] Re: Before March 1st aka PHP 5.1 beta

2005-02-22 Thread Lukas Smith
Marcus Boerger wrote: Hello internals, before we rush into another version, how about clearing some open issues that were explicitly relayed from 5.0 to 5.1. I would like to highlight again that getting the pear installer version 1.4 will also be important. getting this into php 5.1 will

FW: [PHP-DEV] compile php5 with vc++ for windows

2005-02-22 Thread David Kingma | jool.nl
Hi Alawi, Add the following line #define SQLITE_NOTADB 26 to your sqlite.w32.h and it should work. Regards, David -Original Message- From: Alawi Albaity [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 22, 2005 11:54 PM To: internals@lists.php.net Subject: [PHP-DEV] compile

Re: [PHP-DEV] Lost emails

2005-02-22 Thread Jani Taskinen
On Tue, 22 Feb 2005, Andi Gutmans wrote: Hi, Once again I have lost lots of emails. I lost the past week except for about the last 24 hours. If you sent me anything which I'm supposed to take care of please resend.

[PHP-DEV] Re: Before March 1st aka PHP 5.1 beta

2005-02-22 Thread Greg Beaver
Lukas Smith wrote: Marcus Boerger wrote: Hello internals, before we rush into another version, how about clearing some open issues that were explicitly relayed from 5.0 to 5.1. I would like to highlight again that getting the pear installer version 1.4 will also be important. getting this

Re: [PHP-DEV] Patch for not to run some tests while cross compiling

2005-02-22 Thread Kamesh Jayachandran
Hi Jani, Thanks for commiting the patch. But it does not work. The last param to AC_TRY_RUN need to be a non empty shell construct for cross compilation to go through(empty construct won't help). Please apply my new patch against the current HEAD(Now instead of echo the patch do test 1)

Re: [PHP-DEV] Patch for not to run some tests while cross compiling

2005-02-22 Thread Jani Taskinen
Committed, again something else. :) --Jani On Tue, 22 Feb 2005, Kamesh Jayachandran wrote: Hi Jani, Thanks for commiting the patch. But it does not work. The last param to AC_TRY_RUN need to be a non empty shell construct for cross compilation to go through(empty construct won't help).