Re: [PHP-DEV] Extending DB2 odbc support

2002-11-08 Thread Frank M. Kromann
Hi, To my knowledge IBM uses a Client Level Interface CLI and the specifications for CLI is exactly the same as ODBC. Compiling the ODBC extension with CLI and some other form of ODBC library would make sence if you wanted to use native IBM code and other ODBC at the same time. This was the case

Re: [PHP-DEV] Extending DB2 odbc support

2002-11-08 Thread Dan Kalowsky
On Friday, November 8, 2002, at 08:34 PM, tim wrote: If I take the existing php odbc code and add the ibm-db2 specific extensions, what are the chances of this making it into the main php distribution as a new extension ( ext/ibmdb2 ) ? Is it a good idea to maintain a separate cvs tree on sf.net

[PHP-DEV] Return -1

2002-11-08 Thread Maxim Maletsky
Guys, I have just fixed a few doc files where it was stating that a function returned -1 but the sources had clear RETURN_FALSE. Done that, I took some time to grep my phpdoc and php4 trees for -1 returns and, surprisingly, I found out that there were a few suspicious places where -1 could be be

Re: [PHP-DEV] mbstring and 4.3.0

2002-11-08 Thread Rui Hirokawa
I completely agree with Wez. mbstring has very foundamental functionalities for multibyte users. Multibyte users can 'not' build any useful application without mbstring. We must understand there are so many users who are using multibyte character encoding. multibyte string functions for multibyte

Re: [PHP-DEV] Extending DB2 odbc support

2002-11-08 Thread tim
On Fri, 8 Nov 2002 08:18:06 -0500 Dan Kalowsky <[EMAIL PROTECTED]> wrote: > I've been maintaining the ODBC extension for a bit. While I welcome > the addition of new ODBC functionality, I am hesitent to add in > functions that are not ODBC compliant to the code (i.e. db2_connect(), > > or some

[PHP-DEV] Re: [PHP] Do I need the closing ?> tag

2002-11-08 Thread Ernest E Vogelsinger
At 23:24 08.11.2002, David McArthur said: [snip] >PHP 4.2.2 (linux) doesn't seem to mind if I leave off the closing ?> tag at >the end of a file. Is the ?> assumed at EOF? > >I have PHP that outputs binary and along the way I include() a lot of php >scripts.

Re: [PHP-DEV] Do I need the closing ?> tag

2002-11-08 Thread Sterling Hughes
> PHP 4.2.2 (linux) doesn't seem to mind if I leave off the closing ?> tag at > the end of a file. Is the ?> assumed at EOF? > > I have PHP that outputs binary and along the way I include() a lot of php > scripts. I'm constantly having problems when I leave a little whitespace at > the end of so

[PHP-DEV] Do I need the closing ?> tag

2002-11-08 Thread David McArthur
PHP 4.2.2 (linux) doesn't seem to mind if I leave off the closing ?> tag at the end of a file. Is the ?> assumed at EOF? I have PHP that outputs binary and along the way I include() a lot of php scripts. I'm constantly having problems when I leave a little whitespace at the end of some script af

Re: [PHP-DEV] turning strlen() into an opcode

2002-11-08 Thread Sterling Hughes
> On Fri, Nov 08, 2002 at 04:17:43PM -0500, Andrei Zmievski wrote: > > > I've made a small patch that turns strlen() into a statement executed by > > the engine instead of a function. The reasoning is that something that > > integral should probably be in the engine. I haven't done hard > > benchm

Re: [PHP-DEV] bison error [was: PHP 4.3.0]

2002-11-08 Thread Rasmus Lerdorf
I'm not seeing any problems with bison-1.75 here. On Fri, 8 Nov 2002, Dave Viner wrote: > here's the message i posted to [EMAIL PROTECTED] for more help in the bison > problem. > > http://www.geocrawler.com/lists/3/GNU/350/0/10107563/ > > I'm not good enough with bison to understand why it produc

[PHP-DEV] bison error [was: PHP 4.3.0]

2002-11-08 Thread Dave Viner
here's the message i posted to [EMAIL PROTECTED] for more help in the bison problem. http://www.geocrawler.com/lists/3/GNU/350/0/10107563/ I'm not good enough with bison to understand why it produces no error message and yet does not produce a .c file. even reducing the bison command to its simp

Re: [PHP-DEV] PHP 4.3.0

2002-11-08 Thread Andrei Zmievski
On Sat, 09 Nov 2002, Andi Gutmans wrote: > Hey, > > What's the schedule for 4.3? It seems to be lingering. That said I'd like > to resolve the bison issue before we release it (i.e. make sure that ZE1 > isn't bitten by versions > 1.28). It's not lingering. We just have to be more careful since

Re: [PHP-DEV] turning strlen() into an opcode

2002-11-08 Thread Jon Parise
On Fri, Nov 08, 2002 at 04:17:43PM -0500, Andrei Zmievski wrote: > I've made a small patch that turns strlen() into a statement executed by > the engine instead of a function. The reasoning is that something that > integral should probably be in the engine. I haven't done hard > benchmarking but i

Re: [PHP-DEV] [PATCH] Fix for bug #19566

2002-11-08 Thread Moriyoshi Koizumi
var_args issue doesn't have much to do with the purpose of the patch. We were perhaps just curious about the usage of va_start() and va_end(). And that warning reducer was later added by Marcus, so the first version should look nice. What about it? Moriyoshi Andi Gutmans <[EMAIL PROTECTED]> wro

[PHP-DEV] Re: RfC: *_fetch_object()

2002-11-08 Thread Yasuo Ohgaki
I don't mind making pg_fetch_object() accept object (not class) (Boptionally and initialize field values as object's properties. (B (BHow about other db module maintainers? (B (BBTW, pg_fetch_object() accepted 3rd optional parameter (Bfor a long time. I've disabled it recently, since having 

[PHP-DEV] PHP 4.3.0

2002-11-08 Thread Andi Gutmans
Hey, What's the schedule for 4.3? It seems to be lingering. That said I'd like to resolve the bison issue before we release it (i.e. make sure that ZE1 isn't bitten by versions > 1.28). Andi -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.

Re: [PHP-DEV] turning strlen() into an opcode

2002-11-08 Thread Rasmus Lerdorf
Do you think strlen() is actually called that often? And isn't it a relatively quick function as it is? Just seems like you are optimizing a function that isn't actually called that often and when it is called having a 25% speedup on a function that takes a tiny fraction of the overall execution

Re: [PHP-DEV] turning strlen() into an opcode

2002-11-08 Thread Andi Gutmans
At 05:18 PM 11/8/2002 -0500, Andrei Zmievski wrote: On Sat, 09 Nov 2002, Andi Gutmans wrote: > I am very much against anything like this. > Improving strlen()'s performance only will have a negligible performance > impact on a real world script. > With the same kind of argument you could probably

Re: [PHP-DEV] [PATCH] Fix for bug #19566

2002-11-08 Thread Andi Gutmans
I haven't followed the thread. What is the problem with the var_args()? Also, please don't commit the second part of the patch. The warning is due to the compiler not understanding the code well enough. Functionality wise there's no reason to NULL that variable. Live with the warning or upgrade

Re: [PHP-DEV] turning strlen() into an opcode

2002-11-08 Thread Andrei Zmievski
On Sat, 09 Nov 2002, Andi Gutmans wrote: > I am very much against anything like this. > Improving strlen()'s performance only will have a negligible performance > impact on a real world script. > With the same kind of argument you could probably find 10-20 functions > which would be faster if you

Re: [PHP-DEV] turning strlen() into an opcode

2002-11-08 Thread Andi Gutmans
Hi, I am very much against anything like this. Improving strlen()'s performance only will have a negligible performance impact on a real world script. With the same kind of argument you could probably find 10-20 functions which would be faster if you'd make opcodes for them. That's not really w

[PHP-DEV] Is socket_create_pair() useful?

2002-11-08 Thread Leon Atkinson
I understand how (in C) socketpair() is useful if I can fork(). It's not obvious what I can do with the two sockets that socket_create_pair() creates. What am I missing? Thanks, Leon --- Leon Atkinson -- PHP Development Mailing List To uns

[PHP-DEV] Fatal error with current CVS php4/pear, inc. segfault

2002-11-08 Thread Markus Fischer
Current CVS upon installing gives me: PHP 4.3.0-dev (cli) (built: Nov 8 2002 21:56:15) Copyright (c) 1997-2002 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2002 Zend Technologies $ make install Installing PHP SAPI module Installing shared extensions: /home/mfischer/php4/lib/php/ext

[PHP-DEV] turning strlen() into an opcode

2002-11-08 Thread Andrei Zmievski
I've made a small patch that turns strlen() into a statement executed by the engine instead of a function. The reasoning is that something that integral should probably be in the engine. I haven't done hard benchmarking but it seems to improve performance of that particular piece of code by about 2

[PHP-DEV] Create a class variable in extension?

2002-11-08 Thread phpdev
Hello, 1. I have been able to create a class within my extension, but am unable to create a class variable that can be used throughout the class methods. This class variable needs to be an array. Below is how I would write the class in php. class foo { var $foo = array(); functions... } 2. H

Re: [PHP-DEV] Compiling PHP as Apache 2 static module?

2002-11-08 Thread Melvyn Sopacua
At 14:06 11/8/2002 -0500, Robert Twitty wrote: Is it possible to compile PHP as an Apache 2.0 static module. None of PHP 's configure indicate that this is possible. Nor does any other Apache mod. There's no support for that, in Apache, last time I looked. Believe me - I'm waiting too :) Met

[PHP-DEV] Compiling PHP as Apache 2 static module?

2002-11-08 Thread Robert Twitty
Is it possible to compile PHP as an Apache 2.0 static module. None of PHP 's configure indicate that this is possible. -- bob -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] [PATCH] Fix for bug #19566

2002-11-08 Thread Derick Rethans
On Fri, 8 Nov 2002, Marcus Börger wrote: > Moriyoshi could you make a *.phpt file from the bug? > > Attached is a new diff tested already. It also fixes a compiler warning. > Since i do not have Zend karma someone with karma should commit it > or give me karma. I can commit this, after you fix

Re: [PHP-DEV] [PATCH] Fix for bug #19566

2002-11-08 Thread Moriyoshi Koizumi
done. Moriyoshi [EMAIL PROTECTED] (Marcus Börger) wrote: > Moriyoshi could you make a *.phpt file from the bug? > > Attached is a new diff tested already. It also fixes a compiler warning. > Since i do not have Zend karma someone with karma should commit it > or give me karma. > > marcus > >

Re: [PHP-DEV] [PATCH] Fix for bug #19566

2002-11-08 Thread Marcus Börger
Moriyoshi could you make a *.phpt file from the bug? Attached is a new diff tested already. It also fixes a compiler warning. Since i do not have Zend karma someone with karma should commit it or give me karma. marcus cvs -z3 -q diff zend_hash.c (in directory S:\php4-HEAD\Zend\) Index: zend_has

[PHP-DEV] RfC: *_fetch_object()

2002-11-08 Thread Timm Friebe
Hi, what does everyone think about adding a second parameter to the *_fetch_object() functions (sybase_fetch_object, mysql_fetch_object, ... etc.) which allows users to define a class name which will then be used instead of "stdClass"? E.g.: class Article { var $article_id,

Re: [PHP-DEV] [PATCH] Fix for bug #19566

2002-11-08 Thread Moriyoshi Koizumi
Yep, the spec goes right. a corresponding va_end() dtor should be applied to ap once ap has been initialized by a va_start(). IMO no va_end() is needed without a preceding va_start(), and it doesn't matter if ap is used between va_start() and va_end(). BTW, could anyone commit this patch if ther

Re: [PHP-DEV] CVS account request

2002-11-08 Thread Wez Furlong
Hello Sergey, PHP 4.3 will/does have SSL and TLS support integrated into the fopen and fsockopen functions. (see the online manual: http://php.net/fopen and http://php.net/fsockopen). The current implementation requires that the openssl extension is built-in to php (rather than shared), and does

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /build buildcheck.sh

2002-11-08 Thread Andi Gutmans
By the way, I still haven't completely verified that this problem also happens with ZE1. The main problem is that it's hard to find because it seems to have to do with bison's stack (some kind of corruption). I haven't had time to report it to the bison guys to make sure it's not a bug in the en

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /build buildcheck.sh

2002-11-08 Thread Sascha Schumann
> Again: bison is not run at all when compiling a regular PHP version. The files > generated by bison and flex are bundled in the source tarball. In order to accomodate regular administrators, the already existing bison check in configure should be extended to display appropiate compat

[PHP-DEV] CVS account request

2002-11-08 Thread Sergey A. Smitienko
Hello, I want to contribute some functions to openssl and sockets extantions, like SSL/TSL support for internet connections. I've made some patches for 4.2.3 - you can see it on my homepage: www.sergey-smitienko.com.ua/files/. -- The Empe

Re: [PHP-DEV] [PATCH] Fix for bug #19566

2002-11-08 Thread Marcus Börger
Some comments on ISO9899 standard 7.15.1.3-2 Read between the lines: without va_end the behaviour is undefined. What ever that means i guess you have to call va_end and that requires va_start. 7.15.1.4-3 Says do not call va_start twice without va_end. marcus ISO/IEC 9899:1999 (E) ©ISO/IEC 7.

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /build buildcheck.sh

2002-11-08 Thread Edin Kadribasic
On Friday 08 November 2002 13:47, Sascha Schumann wrote: > Again: > > buildconf does not run bison. > > There is no point to put a bison check into buildconf. > > The bison version number should be checked before bison is > actually run. That would be > > configure >

Re: [PHP-DEV] Extending DB2 odbc support

2002-11-08 Thread Dan Kalowsky
Tim, I've been maintaining the ODBC extension for a bit. While I welcome the addition of new ODBC functionality, I am hesitent to add in functions that are not ODBC compliant to the code (i.e. db2_connect(), or some such). If you can make the functions generic enough that they can be executed

[PHP-DEV] IBM 4694

2002-11-08 Thread Jean-Michel Garcia
Hello all, I'm trying to use a till (cash register or POS) : IBM 4694. This computer is a PC based engine, with a special plugged in card, hosting a set of RS 485 ports for devices like keyboard, printer or display. The driver is writen by IBM, but not open Source. So I'm fighting with PHP trying

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /build buildcheck.sh

2002-11-08 Thread Sascha Schumann
> Since PHP distributions are shipped with bison and flex files pre-built, isn't > it more logical to put the chek in ./buildconf? Again: buildconf does not run bison. There is no point to put a bison check into buildconf. The bison version number should be checked before bison

[PHP-DEV] Extending DB2 odbc support

2002-11-08 Thread tim
Hi, I am writing php applications which use php's builtin ibm-db2 support through odbc. However there are some DB2-specific extensions which are not included in php's DB2 support. I am interested in adding this functionality to php. Who should I talk to in order to avoid duplication of work? Ho

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /build buildcheck.sh

2002-11-08 Thread Edin Kadribasic
On Friday 08 November 2002 12:54, Sascha Schumann wrote: > > The same script doesn't work for me with Engine 2 bison > 1.28 and Engine > > 1 bison == 1.75 (I haven't tried other combinations yet. > > So this doesn't seem to be only an Engine 2 problem. > > Ok, then a suppressable configure-time

[PHP-DEV] Re: [PHP-CVS] cvs: php4 /build buildcheck.sh

2002-11-08 Thread Sascha Schumann
> The same script doesn't work for me with Engine 2 bison > 1.28 and Engine 1 > bison == 1.75 (I haven't tried other combinations yet. > So this doesn't seem to be only an Engine 2 problem. Ok, then a suppressable configure-time check needs to be added. - Sascha -- PHP Development Mail

Re: [PHP-DEV] mbstring and 4.3.0

2002-11-08 Thread Maxim Maletsky
I think Wez got a point here. Disabling mbstring can make many unhappy. -- Maxim Maletsky [EMAIL PROTECTED] "Wez Furlong" <[EMAIL PROTECTED]> wrote... : > I see the known-good codeset conversion implementation as a *very* good > reason to have mbstring enabled by default. > (Just look at all

[PHP-DEV] Re: [PHP-CVS] cvs: php4 /build buildcheck.sh

2002-11-08 Thread Andi Gutmans
At 12:29 PM 10/30/2002 +0100, Sascha Schumann wrote: >a) Bison is needed for CVS builds >b) Bison is not needed for snapshot/release builds >c) buildconf is needed for CVS builds At some point in time, the CVS becomes a release. Then you would need to move the check into conf

Re: [PHP-DEV] mbstring and 4.3.0

2002-11-08 Thread Wez Furlong
I see the known-good codeset conversion implementation as a *very* good reason to have mbstring enabled by default. (Just look at all the problems with iconv and recode on different systems out there). I agree that the magic features for lazy programmers (function overloading and transparent encod

Re: [PHP-DEV] Re: mbstring and 4.3.0

2002-11-08 Thread Moriyoshi Koizumi
> PHP 4.3.0's Zend Engine also comes with SJIS awareness. It does not > make sense to have SJIS awareness without mbstring also. > (Need compile option to enable SJIS awareness) In addition, we'll have to take in account all of the double byte encodings in which second bytes of characters spans G

[PHP-DEV] shared build fails. gettext and imap

2002-11-08 Thread Yasuo Ohgaki
Recent CVS source fails to build gettext and imap (Bas shared module with my Linux. (B (BAnyone can build them as shared module? (B (B-- (BYasuo Ohgaki (B (B (B-- (BPHP Development Mailing List (BTo unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] [PATCH] Fix for bug #19566

2002-11-08 Thread Moriyoshi Koizumi
See http://www.opengroup.org/onlinepubs/007908799/xsh/stdarg.h.html This appears to imply that va_start() can be used more than twice. And I don't think va_start() always has to be invoked. Moriyoshi [EMAIL PROTECTED] (Marcus Börger) wrote: > I am not sure if va_start can be called twice in a r

Re: [PHP-DEV] Re: cvs: php4 / Makefile.global run-tests.php

2002-11-08 Thread Yasuo Ohgaki
Yasuo Ohgaki wrote: Derick, I've pointed out problems _WEEKS_ ago. I let you know problems _MANY_ times. Derick, be responsible with your change and opinion at least. Don't forget you're the one broke it w/o discussion first. When I add "-c php.ini-dist", there is discussion. As a result, there

Re: [PHP-DEV] [PATCH] Fix for bug #19566

2002-11-08 Thread Marcus Börger
I am not sure if va_start can be called twice in a row (rekursive). Manual does not say anything about that. How about: cvs -z3 -q diff zend_hash.c (in directory S:\php4-HEAD\Zend) Index: zend_hash.c === RCS file: /repository/ZendEng

[PHP-DEV] Re: mbstring and 4.3.0

2002-11-08 Thread Yasuo Ohgaki
Andrei Zmievski wrote: At the PHP Conference in Germany several of us have discussed the current state of mbstring and there was a proposal to not have it enabled by default for 4.3.0 release. It seems that the extension attempts to do "magic" stuff by overloading functions in the executor global

Re: [PHP-DEV] mbstring and 4.3.0

2002-11-08 Thread Moriyoshi Koizumi
--snip > but the mysql extension isn't invasive of other parts of the language, and > can be safely disabled. I do not believe mbstring can be safely disabled, > and i do not think that you have the transparent stuff disabled by default. > Right, I'm sure those two cases are different. I just wan

RE: [PHP-DEV] mbstring and 4.3.0

2002-11-08 Thread James Cox
> > > > > Historically, I have been against mbstring being enabled by default. > > My feelings towards anything being enabled by default, unless it is > > considered core functionality, is pretty negative though. > > The reasoning to consider a extension as a part of core, is prone > to be obscure.

[PHP-DEV] [PATCH] Fix for bug #19566

2002-11-08 Thread Moriyoshi Koizumi
Hi, The attached patch is a probable fix for bug #19566. I guess the bug is that va_list is not properly initialized before each callback function call. I've tested it in PPC linux, and it works fine. Regards, Moriyoshi Index: zend_hash.c ==