RE: [PHP-DEV] MFH policy

2003-02-19 Thread Marc Boeren
Hi, > > What is the official MFH policy? Are all bugfixes MFH-ed? > > Normally, yes. Except when we're close to release (which we are not > right now). How does this work? Add -r PHP_4_3 to the mfh-commit? Cheerio, Marc. -- PHP Development Mailing List To unsubscribe,

[PHP-DEV] MFH policy

2003-02-19 Thread Marc Boeren
Hi, What is the official MFH policy? Are all bugfixes MFH-ed? Cheerio, Marc. -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] bug in PHPAPI char *php_str_to_str() function?

2002-10-30 Thread Marc Boeren
Hi, If I call the internal (string.c) php_str_to_str function PHPAPI char *php_str_to_str(char *haystack, int length, char *needle, int needle_len, char *str, int str_len, int *_new_length) with an empty haystack string (""), it returns NULL instead of an empty (smart_)string. This co

RE: [PHP-DEV] dbx question - specifying a port for pgsql

2002-09-27 Thread Marc Boeren
Hi, > However, on one of our servers, we have to run Postgres on a > port other than 5432. > It looks to me that in dbx_mysql.c, you can use the MySQL > "host:port/host:socket" syntax. Is there any possibility > that this syntax or a variation of it could be used throughout > dbx? You c

Re: Re[3]: [PHP-DEV] Major Bug in multiple MySQL Connections?

2002-04-22 Thread Marc Boeren
> this sounds reasonable. But why don't the "connection aliases" keep > the current db they are working on and if needed, switch back - > transparently to the user? The current implementation only confuses > people. Try dbx, it does exactly that... Cheerio, Mc. -- PHP Development Mailing List

RE: [PHP-DEV] Unsigned Right(Maybee Left) Shift [Again]

2002-04-04 Thread Marc Boeren
> Reasons expressed against it > > It is the heredoc operator > however, I need a tie breaker. Is the heredoc operator not a tie breaker (or decision maker) on it's own? No need to change the behaviour of an existing operator just for consistency, is there? Cheeri

Re: [PHP-DEV] DB Abstraction

2002-03-31 Thread Marc Boeren
Hi > What PHP really needs is a common C API for (1) and possibly (2) that > the database extensions themselves provide. That way there would be no > need for additional layers written in PHP or piggyback hacks like dbx > (sorry Marc :). Don't worry, I know what it is, it is still useful to me

RE: [PHP-DEV] cvs: php4 /main php.h

2002-03-15 Thread Marc Boeren
> Accoding to ISO9899(ANSI C) standard, NDEBUG is used for assert.h. > VC may define/use it some other reasons? I just don't have any idea. VC defines it for any(!) project you create as a compiler setting ( /D "NDEBUG" ) (for Release versions, for Debug versions it does /D "_DEBUG") As to the

Re: [PHP-DEV] dbx

2002-03-07 Thread Marc Boeren
> Does anyone off hand know if dbx is supported in php version 4.0.6? It is, but Frontbase (since 4.1.0) or Sybase-CT (cvs only until the next release) support were not available back then. Cheerio, Marc. -- PHP Development Mailing List To unsubscribe, visit: http://www

RE: [PHP-DEV] Vote on New Build System

2002-03-07 Thread Marc Boeren
> I'd like to get some input on the new build system. If there > are enough "yea" voices, I could merge it into 4.3.0.. Yea! - Marc. -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-DEV] cvs: ext/baby

2002-03-07 Thread Marc Boeren
> @@ -1,2 +1,6 @@ > Christine Lerdorf > Rasmus Lerdorf > +Buster (working name only) Lerdorf > +Born 13:26 PDT Wednesday March 6, 2002 > +Weight: 9.0 pounds > +Length: 19.25 inches Yea! - Marc -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/un

Re: [PHP-DEV] release process

2002-03-06 Thread Marc Boeren
> I promised to send a more detailed mail for the upcoming release process. > Please note that this is my view on it :) And your view is off by one month? ;-) [otherwise it looks fine] Cheerio, Marc. -- PHP Development Mailing List To unsubscribe, visit: http://www.php.

RE: [PHP-DEV] Re: Counterpart to htmlentities function: unhtmlentities

2002-02-27 Thread Marc Boeren
> > Yeah, but I believe both of you are _not_ agaist for having this, > > right? Having reverse order conversion function is nice when it is > > possbile to write one even if it is relatively easy to write. IMO. > > Ok, let me put it in a more blunt way then: I'm against adding > more bloat to

RE: [PHP-DEV] [Fwd: Re: [Zend Engine 2] Case sensitivity: Conclusion(?)]

2002-02-06 Thread Marc Boeren
> oci and gd extensions had mixed-case names for ages, > but you see both mixed- and all-lower case usage > all over the place now OK, I see your point. I'll start writing a little shellscript that recursively crawls through your filesystem, updating every text-file against a list of function-na

RE: [PHP-DEV] [Fwd: Re: [Zend Engine 2] Case sensitivity: Conclus ion(?)]

2002-02-06 Thread Marc Boeren
> > +1 for case-sensitive everything > > -1. Differentiating two objects only by the case of their names > seems absurd to me. This is not how humans function. I don't think people should write code that differentiates by case, but case-sensitive coding leads to consistency in naming, so you w

RE: [PHP-DEV] [Fwd: Re: [Zend Engine 2] Case sensitivity: Conclus ion(?)]

2002-02-06 Thread Marc Boeren
> > +1 for case-sensitive everything > > so you volunter to rewrite all the code that uses oci or gd > extension now but uses it all lowercase? ;) I didn't say +1 for lower-case everything! (although that is my preference, for functionnames at least ;-) Cheerio, Marc. -- PHP Development Mai

RE: [PHP-DEV] [Fwd: Re: [Zend Engine 2] Case sensitivity: Conclusion(?)]

2002-02-06 Thread Marc Boeren
> However, we need vote for if PHP5 will have case > sensitive class/function/constant names. +1 for case-sensitive everything Cheerio, Marc. -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-DEV] RE: [PHP-CVS] cvs: php4 /ext/ftp ftp.c ftp.h

2002-02-06 Thread Marc Boeren
>> WSAEFAULT: >> The name or the namelen parameter is not a valid part of the user >> address space, the namelen parameter is too small, or the name >> parameter contains incorrect address format for the associated address >> family. > Thanks, this helps a lot (I think). Does it work if you in

RE: [PHP-DEV] RE: [PHP-CVS] cvs: php4 /ext/ftp ftp.c ftp.h

2002-02-05 Thread Marc Boeren
> Hi Stig (and others, Wez for instance), > > The patch below seems to have broken the ftp_get function (I used > ftp_get($conn_id, $local_file, $remote_file, FTP_BINARY)) in Win95 and > Win98, it now displays a warning: > Warning: Type set to I. in on line and returns false. > It work

[PHP-DEV] RE: [PHP-CVS] cvs: php4 /ext/ftp ftp.c ftp.h

2002-02-05 Thread Marc Boeren
and Win2000. The code for php_connect_nonb (contributed by Wez) mentions something about not being sure on Win32 platforms... Could you look into this please? Thanks, Marc Boeren > venaasSun Jan 6 18:10:54 2002 EDT > > Modified files: > /

RE: [PHP-DEV] consistent way to handle structs

2002-01-11 Thread Marc Boeren
[fn(foobar)] > I agree on that. You really don't know which parameters it > was anymore. > You don't have this problem with hashes. > But I already see this thread won't get us anywhere :) Well, I think everybody agrees that with hashes, functions are much easier to use..

RE: [PHP-DEV] consistent way to handle structs

2002-01-11 Thread Marc Boeren
> make much sense to me. The current way suits fine, but maybe > this should be allowed too (as Hartmut wrote): function (foo,,bar); Please don't! I cannot read code that looks like fn(foobar);, that is just a parameter-guessing-game! Then again, that probably means that fn() is badly

RE: [PHP-DEV] PHP for Win32 without MySQL?

2001-12-18 Thread Marc Boeren
> Has anyone attempted to build a version of PHP on Win32 without MySQL? > normally until you hit php_mysql.c. Just remove the mysql files from the project and recompile? That should work, even though I didn't try it :) Cheerio, Marc. -- PHP Development Mailing List To

RE: [PHP-DEV] ftp extension for windows?

2001-12-13 Thread Marc Boeren
> it's built-in and IMO all modules that don't require external > libraries should become it too. Is there any reason to include some extensions in the core, and not others? I mostly use the win-version, but I have never used the COM or Calender or bcmath extensions, and this is the first time

[PHP-DEV] ftp extension for windows?

2001-12-13 Thread Marc Boeren
Hi, Is there any reason why the ftp module is not available as a msvc project in php_modules? If not, I'll add it... Cheerio, Marc. -- PHP Development Mailing List To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the

RE: [PHP-DEV] new Zend Engine license?

2001-12-11 Thread Marc Boeren
> Yep. OK, I'm happy :-) Cheers, Mc. -- PHP Development Mailing List 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] new Zend Engine license?

2001-12-11 Thread Marc Boeren
> >This means I can link my proprietary app against 4.2.0-dev, > > but not 4.1.0, right? > No, you can and always could link anything you wanted with > PHP 4.x. The Zend Engine license had virtually no implications > for end users of PHP. This is also true if I created a modified sapi (taken

RE: [PHP-DEV] new Zend Engine license?

2001-12-11 Thread Marc Boeren
> It still isn't in 4.1.0 because not all of the final small > issues were resolved Is that also the reason that on zend.com the old license is still listed on the products page? > but it's already in the CVS for the new version. I just updated my tree and found the modified file, thanks :)

[PHP-DEV] new Zend Engine license?

2001-12-11 Thread Marc Boeren
Hi, About a month ago Zend announced that they would release the engine under a BSD-style license... I think I remember Zeev saying that the definitive version of the new license would be ready in a couple of weeks time (which could be around now :). Any updates on this issue? Cheerio, Marc.

RE: [PHP-DEV] Bug #14305 Updated: type-o on web site

2001-12-06 Thread Marc Boeren
> Quote: "IMO it's good as it is right now." > Dude, concreto is not even a word in English and the sentance > is a meaningless mess! The expression is 'in concreto' and it is probably Latin And 'in fact' seems a good translation into english, making the sentence 'good as it is right now'.

RE: [PHP-DEV] PHP 4.1.0RC4

2001-11-30 Thread Marc Boeren
> > since news about 4.1.0 leaked out to the php-general list, > > wouldn't it make sense to call this one 4.1.1? (or 4.1.0pl1? :) +1 on 4.1.1 > Why?? Yes 4.1.0 was leaked on php-general and php-homepage.de > but both were replied to making it very clear 4.1.0 hasnt been > released yet. calli

RE: [PHP-DEV] sytanx again

2001-11-16 Thread Marc Boeren
> > = $var; > Why not remove this utter crap at all? =) BC! > (I know about BC, O. :) I never use the syntax, so I'm just going +1 for consistency and adding http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the l

RE: [PHP-DEV] sytanx again

2001-11-16 Thread Marc Boeren
> > = %var; > IMHO: $var Ah well, it should have read $var of course, but the language is still 'php', not 'php='... Cheerio, Marc. -- PHP Development Mailing List To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact th

RE: [PHP-DEV] sytanx again

2001-11-16 Thread Marc Boeren
> > > It's odd and inconsistent to have <%=, >I was also against >that consistency (symmetry?) is better. Let's take this one step further (into absurdity ;-) and also add = %var; just for consistency, of course :) > Now all that is left is to decide :) I think we're at a deadlock. > Who o

RE: [PHP-DEV] Some more warnings

2001-11-13 Thread Marc Boeren
> > C:\home\php\php4\ext\gd\gd.c(3537) : warning C4244: '=' : > > Conversion from 'float' to 'int', possible data loss > These definitely do not hide any sort of bug. They are > simply scaling an image and the result needs to be an int > as you can't have fractional pixels. So this data-los

RE: [PHP-DEV] 4.1.0RC2

2001-11-13 Thread Marc Boeren
> http://www.php.net/~zeev/php-4.1.0RC2.tar.gz > Do your thang :) Compiles and runs the testsets fine (winnt, cgi, mysql + dbx + proprietary extension) Cheerio, Marc. -- PHP Development Mailing List To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mai

[PHP-DEV] windows binary package...

2001-10-29 Thread Marc Boeren
Hi, Who is in charge of the windows binary packages? Bug id #13664 says php_dbx.dll is not included in the 4.0.6 package (and since it was EXPERIMENTAL in 4.0.6, that's ok), but it would be nice to have it in the 4.1.0 package, but I don't know where/how to do that... Cheerio, Marc. -- PHP D

RE: [PHP-DEV] usort won't work anymore on 408dev -> zend_hash.c bug?

2001-10-04 Thread Marc Boeren
> So it seems the results are sorted, but the keys aren't reassigned... If I track the source, I find the zend_hash_sort function in zend_hash.c has changed between 407 and 408: 407: if (renumber) { p = ht->pListHead; i=0; while (p != NUL

[PHP-DEV] usort won't work anymore on 408dev

2001-10-04 Thread Marc Boeren
Hi, In the latest CVS, usort gives strange results: if I use the example from the manual, function cmp ($a, $b) { if ($a == $b) return 0; return ($a < $b) ? -1 : 1; } $a = array (3, 2, 5, 6, 1); usort ($a, "cmp"); while (list ($key, $value) = each ($a)) { echo "$key: $value\n"

RE: [PHP-DEV] Possibility of moving bugs to another list?

2001-10-02 Thread Marc Boeren
> Nobody would read the bug forum... :) That's probably true. I don't read many bug reports now, but every now and then one catches my eye... Cheerio, Marc. -- PHP Development Mailing List To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [PHP-DEV] Re: [Zend Engine 2] namespaces ambiguity

2001-10-02 Thread Marc Boeren
> This easy to understand, efficient (no time consuming code to > interpret whether a class was intended), no backwards compatibility > issues, no ambiguity, and its not the first 3 symbol operator to hit php. -1 for me, I don't like any three-symbol-operators, even though === is (barely) acce

RE: [PHP-DEV] namespaces ambiguity

2001-10-01 Thread Marc Boeren
> Stupid suggestion, is ::: (three colons) pushing it? What's wrong with :>, except for the fact that it resembles a smiley? There is already -> and =>... Cheerio, Marc. -- PHP Development Mailing List To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

Re: [PHP-DEV] namespaces ambiguity

2001-10-01 Thread Marc Boeren
> I still think Zeev's suggestion (HTML::Table) is very good, if it > doesn't impose too much runtime overhead. +1 for :: If that is impossible, how about some new combination, like :> HTML:>Table looks ok, too... Cheerio, Marc. -- PHP Development Mailing List To unsu

Re: [PHP-DEV] for the php-gtk people

2001-08-27 Thread Marc Boeren
> > I've been looking at crossplatform gui-development, and > > one of the > > things that is easily found is the wxWindows tools > (www.wxwindows.org). > > > > This looks to be sort of the same as php-gtk, but it does > windows, motif > > os/2 and mac as well (aside from gtk). > > What do

RE: [PHP-DEV] for the php-gtk people

2001-08-24 Thread Marc Boeren
> > There exists wxPython and wxPerl... why not wxPHP? > > > Marc, it would be an absolutely cool idea :) That's what I thought :-) > So actually the question is, who has the time to start it? Well, not right now... But I will probably be using wxWin over the next couple of months for some

[PHP-DEV] for the php-gtk people

2001-08-24 Thread Marc Boeren
Hi, I've been looking at crossplatform gui-development, and one of the things that is easily found is the wxWindows tools (www.wxwindows.org). This looks to be sort of the same as php-gtk, but it does windows, motif os/2 and mac as well (aside from gtk). There exists wxPython and wxPerl... wh

[PHP-DEV] Karma request

2001-08-16 Thread Marc Boeren
. --- EXTENSION: dbx PRIMARY MAINTAINER: Marc Boeren <[EMAIL PROTECTED]> MAINTENANCE: Maintained STATUS: Working SINCE: 4.0.6 COMMENT: DB abstraction for odbc, mysql, pgsql, mssql,

RE: [PHP-DEV] Re: compile fails on html.c (CODESET undeclared)

2001-08-09 Thread Marc Boeren
> > > I suspect this can be fixed by changing line 231 to be > > > #if HAVE_LANGINFO_H && HAVE_LOCALE_H && defined(CODESET) > Done. Please let me know if it doesn't work... Just wanting to let you know it _does_ work :-) Cheerio, Marc. -- PHP Development Mailing List To

[PHP-DEV] compile fails on html.c (CODESET undeclared)

2001-08-08 Thread Marc Boeren
Latest cvs fails to compile on Linux (redhat 6.1) (clean checkout) ./buildconf ./configure --with-mysql --enable-dbx make produces... html.c: In function `determine_charset': html.c:232: `CODESET' undeclared (first use in this function) html.c:232: (Each undeclared identifier is reported only

RE: FW: [PHP-DEV] build problem: bison.simple:99: parse error bef ore 'do' -> \r\n or \n...

2001-08-08 Thread Marc Boeren
> Duh! I should have read the email more carefully..I just get > this odd rash everytime I see anything that even resemple Windows.. :) I get that, too :) What is worse, though, is the multitude of stupid cross-platform incompatibilies, of which the whole EOL \r\n, \r, \n stuff is one of the mos

FW: [PHP-DEV] build problem: bison.simple:99: parse error before 'do' -> \r\n or \n...

2001-08-08 Thread Marc Boeren
> -Original Message- > From: Marc Boeren > Sent: Wednesday, August 08, 2001 5:40 PM > To: 'Jani Taskinen' > Subject: RE: [PHP-DEV] build problem: bison.simple:99: parse error > before 'do' -> \r\n or \n... > > > > >

[PHP-DEV] build problem: bison.simple:99: parse error before 'do'

2001-08-08 Thread Marc Boeren
I'm trying to build the latest cvs on my Linux box, but I'm having a bit of a problem. I did a clean checkout of php4, Zend and TSRM this morning. I used the commands ./buildconf ./configure --with-mysql --enable-dbx make and what I get is Making all in Zend make[1]: Entering directory `/hom

RE: [PHP-DEV] Re: Proposal

2001-07-30 Thread Marc Boeren
> >accept_globals("GPC", 'user', 'password', 'value_*', 'more'); > I think that this is a clear example of "the enemy of good is > the even better" (I'm not sure how well this translates to > English :). Good enough to get your point :-) > behavior only prefixed, use import_globals("GPC", "

RE: [PHP-DEV] Re: Proposal

2001-07-30 Thread Marc Boeren
Hi, > force a prefix onto the variable name. I.e., > import_globals("GPC", "form_"); I like this idea (the whole idea of import_globals is good, I think, but I'd rather call it accept_globals, but more on that later :), only this would make it difficult to actually differentiate between get, p

RE: [PHP-DEV] Security Issues

2001-07-27 Thread Marc Boeren
> Changing to register globals=off surely does very little in > terms of security for the easily fakeable GPC variables. Maybe not for these variables, but other variables used in your script cannot be faked by passing them as HTTP_POST_VARS. e.g., with register_globals=off if ($HTTP_POST_V

RE: [PHP-DEV] Security Issues

2001-07-26 Thread Marc Boeren
> >>accept_parameters($user_string); // or something similar > register_globals off. > $user_string=$HTTP_POST_VARS["user_string"]; > > This accomplishes the same thing as your example, and doesn't > introduce any new syntax... I don't really see the advantage of the > "accept_parameters" idea

RE: [PHP-DEV] Security Issues

2001-07-26 Thread Marc Boeren
Would it be a good idea to declare which parameters are allowed from outside, and which are internal to the application? If you set if ($user_string=='input' && $internal_allowed=='true') { ... } anybody can spoof $internal_allowed. However, if you must set this script up like this: a

RE: [PHP-DEV] Zend engine: unresolved external _zend_assign_to_va riable_reference?

2001-07-19 Thread Marc Boeren
> If you want the values to be connected to each other > (changing one will change the other), you need to set > is_ref to 1. Otherwise, you don't. In > any case, you must update the refcount. OK, thanks. I'll update it now, and once I have my machine back in order again I'll commit it, so

RE: [PHP-DEV] Zend engine: unresolved external _zend_assign_to_va riable_reference?

2001-07-19 Thread Marc Boeren
> >(*actual_ptr)->refcount++; > >(*actual_ptr)->is_ref =1; > (a) You only have to set is_ref once. I only set it once... or is increasing the refcount enough? > (b) If you don't increase the refcount, the behavior is > undefined, and is likely to end up crashing PHP. > Not increasing refcou

RE: [PHP-DEV] Zend engine: unresolved external _zend_assign_to_va riable_referen ce?

2001-07-19 Thread Marc Boeren
> When you build the result hash, use the same zval * in both > places (don't forget the right refcount), it should work. >Yes, just use the same zval *, increase refcount accordingly, and set the > is_ref bit. It'd be much faster (and also more correct) than using the > assign_to_variable_

Re: [PHP-DEV] Zend engine: unresolved external _zend_assign_to_variable_referen ce?

2001-07-19 Thread Marc Boeren
> It's kind-of odd that you use this function in a module, it's > not really an > API function that's useful outside the context of the engine. > Are you sure > that's the right thing to do in there..? Well, I'm no expert on the zend engine or anything, but I can describe what I try to ach

[PHP-DEV] ZEND_DEBUG issue (more)

2001-07-19 Thread Marc Boeren
Hi, I forgot to mention that I run WinNT4sp6... Cheerio, Marc. -- PHP Development Mailing List To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP-DEV] Zend engine: unresolved external _zend_assign_to_variable_reference?

2001-07-19 Thread Marc Boeren
Hi, If I build the dbx module I get the following error: dbx.obj : error LNK2001: unresolved external symbol _zend_assign_to_variable_reference ..\..\Release_TS/php_dbx.dll : fatal error LNK1120: 1 unresolved externals This is with a clean checkout of php4, zend and tsrm on a windows box. I no

[PHP-DEV] ZEND_DEBUG issue

2001-07-19 Thread Marc Boeren
Hi, I noticed something really odd with a fresh cvs checkout of php4, zend en tsrm: if I compile the Release_TS php4ts project and the Release_TS mssql module, I get the following error when I try to run php: mssql: Unable to initialize module Module compiled with debug=0, thread-safety=1 modu

RE: [PHP-DEV] Totally Blue Sky / beta testers?

2001-06-29 Thread Marc Boeren
Hi, > > Seriously, we could use a couple beta testers. I've been told I > > can accept 5 beta-testers. Benefits are that you can distribute > > your first project for free... Interested? > > *IF* I do not have to sign a non-compete, then count me in. If you > end up going the commercial rout

RE: [PHP-DEV] Totally Blue Sky / beta testers?

2001-06-26 Thread Marc Boeren
Hi! > That's excellent. Glad to see I'm not the only one who thinks this > is a cool idea. How long have you been in development of this? When > did you start? It's been a project originally to do the same thing as described, but without using php but rather a custom program that used IE a

RE: [PHP-DEV] Totally Blue Sky

2001-06-25 Thread Marc Boeren
Hi! > I'm not sure you would be able to distribute a commercial > application that is built around PHP commercially, could you? > Isn't that what the GPL protects against? Well, PHP is just distributed as a cgi-application, with any modules compiled however you want. There are no modificatio

RE: [PHP-DEV] Totally Blue Sky

2001-06-25 Thread Marc Boeren
> I am pleased to announce that I dove into this new idea last night > and made my first proof-of-concept program (PoC-1) for this new > programming environment (which I am calling LocalPHP for the lack of > a better name, any suggestions?). I have a version of exactly what you wish to do rig

RE: [PHP-DEV] 4.0.6RC4 out.

2001-06-20 Thread Marc Boeren
> Please test it http://www.php.net/~andi/php-4.0.6RC4.tar.gz Compiles just fine on my WinNT box (with the usual warnings). Could somebody with a bit more access to the cvs tree add the dbx.dsp project (in /ext/dbx) to the php_modules.dsw workspace (in /win32)? This isn't required for the 406 re

[PHP-DEV] win32 php_modules.dsw and dbx.dsp

2001-05-16 Thread Marc Boeren
>I rolled 4.0.6RC1. It is ready for testing. Could someone please add the /ext/dbx/dbx.dsp to the php_modules workspace? Or give me some extra karma to write in anything besides /ext/dbx? Cheerio, Marc. -- PHP Development Mailing List To unsubscribe, e-mail: [EMAIL PROT

[PHP-DEV] PHP 4.0.6RC1 - Win32 build of php4apache fails

2001-05-16 Thread Marc Boeren
> >I rolled 4.0.6RC1. It is ready for testing. > >http://www.php.net/~andi/php-4.0.6RC1.tar.gz > > > >Please everyone take sometime to make sure this is release worthy :) > > cgi version for win32 builds fine, apache module build gives errors: > > F:\home\cvs-php\php-4.0.6RC1\sapi\apache\mod_ph

[PHP-DEV] cvs and crlf/lf

2001-05-07 Thread Marc Boeren
Hi! Is it true that CVS converts \r\n to \n and vice versa automagically for unix and windows users? Cheerio, Marc. -- PHP Development Mailing List To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administra

RE: [PHP-DEV] Classes & function names

2001-05-04 Thread Marc Boeren
>IMHO, in a compatibility breaking upgrade, we should look into defaulting >to case sensitivity, while allowing case insensitivity as a non-default option. +1 Full case sensitivity is preferable, I think. Cheerio, Marc. -- PHP Development Mailing List To unsubscribe, e-

[PHP-DEV] 4.0.5 modules

2001-04-13 Thread Marc Boeren
Hi! Is there some policy about the inclusion of newly added modules to RC's? I'ld like to see the dbx module in the 4.0.5 release... Cheerio, Marc. -- PHP Development Mailing List To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/odbc php_odbc.c

2001-03-27 Thread Marc Boeren
>Actually might have been me doing a bad patch... but I just sent sebastian >the same fix to give a try. if that works, excellent :) I think it was my mistake. The '&' was in my working version, but not in the patch I sent. Anyway, do you know of a way to do a diff with the file currently in CV

RE: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/odbc php_odbc.c

2001-03-27 Thread Marc Boeren
>D:\Programme\MS Visual Studio\Projekte\php\php4\ext\odbc\php_odbc.c(2167) : >warning C4047: 'function' : Anzahl der Dereferenzierungen bei 'int *' und 'int ' >unterschiedlich Oops, my fault, forgot a '&'... I'm still learning this cvs and diff stuff, and am actually patching the files outside

RE: [PHP-DEV] please remove pgsql warning on fetch_row - includes diff

2001-03-26 Thread Marc Boeren
> while (@pg_fetch_row()) { > ... > } > >will suppress the warnings just for the call to pg_fetch_row. I know, but I'm not calling it from within php-script, but from the dbx-module (in C-code). Plus, calling it with @ also suppresses any other warnings pg_fetch_row should rightly give. IM

[PHP-DEV] please remove pgsql warning on fetch_row - includes diff

2001-03-26 Thread Marc Boeren
Hi! The PostgreSQL module issues a warning when trying to fetch a row with an invalid rownumber. pg_fetch_row also returns false. I would ask if someone could remove the warning that is issued. The docs says the function returns false, this should be enough, I think. I would really like to cons

[PHP-DEV] patch for bug #9272

2001-03-26 Thread Marc Boeren
Attached patch solves bug 9272, warning issued on closing persistent odbc connection Cheerio, Marc. <> php_odbc.c.diff -- PHP Development Mailing List To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list ad

[PHP-DEV] config.m4 file

2001-03-21 Thread Marc Boeren
Hi! Just thought I'ld mention that the config.m4 file needs to be in Unix fileformat, not PC (different CRLF...) It took me some time to figure this out, ./configure just returned : command not found Sometimes it is quite annoying to be working with both Windows and Linux boxes. Sorry, had to

[PHP-DEV] Extension help && mailing list???

2001-03-20 Thread Marc Boeren
> >is there full documentation of the Zend API - i found the stuff on the > zend website to be useful, but didn't cover everything. > > If there is, I couldn't find it either. > So it's that and the source code itself. > > If anyone knows about more documentation, could someone put it up (or

RE: [PHP-DEV] Extension help

2001-03-20 Thread Marc Boeren
>BTW, (*tmpString)->value.str.val == Z_STRVAL_PP(tmpString) but the >latter looks much nicer :) Granted, but that's what happens if you just examine the code and don't read the documentation :-) Cheerio, Marc. -- PHP Development Mailing List To unsubscribe, e-mail: [EMAI

RE: [PHP-DEV] Extension help

2001-03-20 Thread Marc Boeren
> Hi! > > >even though i did convert_to_string_ex(tmpString) ? > You should still do that, but the only thing that really does is set the zval type to IS_STRING, and the value union is set accordingly (instead of e.g. a long in value.lval, you get the value as a string in value.str.val (and the

RE: [PHP-DEV] Extension help

2001-03-20 Thread Marc Boeren
>> You're almost correct, sizeof("foo") should be sizeof("foo")+1 >hmm... still not working :( My fault for not reading on beyond the first typo: >zend_printf("foo = %s",tmpString); should probably be zend_printf("foo = %s", (*tmpString)->value.str.val); but I may be wrong on the level of i

RE: [PHP-DEV] Extension help

2001-03-20 Thread Marc Boeren
>zend_hash_find(obj->value.obj.properties,"foo",sizeof("foo"),(void**)&tmpSt ring); You're almost correct, sizeof("foo") should be sizeof("foo")+1 Cheerio, Marc. -- PHP Development Mailing List To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [

RE: [PHP-DEV] advice

2001-03-19 Thread Marc Boeren
Hi >If there aren't any guides, then some sample code would be much appreciated :) I can give you some samples for creating an object and adding members, but I haven't added any member functions, but this shouldn't be more difficult, I feel... if (object_init(return_value) != SUCCESS) {

[PHP-DEV] dbx module (database abstraction) available

2001-03-13 Thread Marc Boeren
Hi! The dbx module (database abstraction module in C, supports ODBC and MySQL (for now :-)) is available at http://www.guidance.nl/php/dbx/ Source is available in zip and tar.gz formats. Documentation (both user docs and docs about extending the database support) is also available is zip and tar

RE: [PHP-DEV] PHP 4.0 Zend API

2001-03-08 Thread Marc Boeren
>My module has to be linked with some external libraries such as >OpenSSL. >What I need is a static link (I guess). > >Note: Compiling and linking manually as a static module into the PHP binary >involves very long instructions and thus is not discussed here. (It's not very >ef

[PHP-DEV] extension developer list?

2001-03-08 Thread Marc Boeren
Hi! I for one wouldn't mind a separate mailing list for developers of php extensions. I would subscribe to both the php-dev and php-ext (?) mailing-lists, so I would still receive the same amount of mail, but the mails about extending php wouldn't be cluttered by bug reports or discussions abou

RE: [PHP-DEV] PHP 4.0 Zend API

2001-03-08 Thread Marc Boeren
>I am building my custom php extension. For the windows platform it went >fine, but I still have a problems on Linux. I had a couple of problems as well, but managed it after a while. Please read the README.SELF-CONTAINED-EXTENSIONS in the php-folder, as it helps. In short, create a config.m

[PHP-DEV] customized usort && pass by reference...

2001-03-06 Thread Marc Boeren
Hi! In my (C-)module I'm building a customized usort function, that accepts an object as the first argument, and a user-defined function as the second. The object contains an array that I want to sort using the user-defined compare function. If I simulate this in PHP-script, the behaviour sho

[PHP-DEV] customized usort && pass by reference... addendum

2001-03-06 Thread Marc Boeren
I know that if I set allow_call_time_pass_reference = On in the ini file and call my c-function with a reference, it works ok. But since this is deprecated, I need some help to set it up correctly for the new situation... Cheerio, Marc. -- PHP Development Mailing List

[PHP-DEV] selective display of ini-entries using phpinfo()

2001-03-02 Thread Marc Boeren
Hi! What code/functions must I use to hide some ini-entries from showing up in phpinfo() ? Right now, I don't use DISPLAY_INI_ENTRIES() in ZEND_MINFO_FUNCTION(modulename), but this hides _all_ ini-entries. Thanks, Marc. -- PHP Development Mailing List To unsubscrib

[PHP-DEV] ZEND_MINIT_FUNCTION and ZEND_INIT_MODULE_GLOBALS question: additional info

2001-02-27 Thread Marc Boeren
I can see where the problem is coming from: the global that is freed is of type zval * and allocated (eg in the ZEND_MINIT_FUNCTION) using MAKE_STD_ZVAL... the auto-cleanup works per request, and cleans up everything that is allocated with emalloc... also what was intended to be global. This

[PHP-DEV] ZEND_MINIT_FUNCTION and ZEND_INIT_MODULE_GLOBALS question

2001-02-27 Thread Marc Boeren
Hi! I'm writing a php-module that uses some globals. I use the ZEND_MINIT_FUNCTION as sort of a constructor, and call ZEND_INIT_MODULE_GLOBALS here. When my module ends, the ZEND_MSHUTDOWN_FUNCTION is called, but the globals are already destroyed by then! In ZEND_INIT_MODULE_GLOBALS, I've def

[PHP-DEV] license question for a module...

2001-02-19 Thread Marc Boeren
Hi! I've finished a first version of the dbx module (database abstraction (in C)) and I want to open-source this module (as a self-contained extension). What license should I use? I want it to be very open, but maintain a copyright notice (much like the PHP license). Or better, can I donate th

RE: [PHP-DEV] how-to get array[0] and array["name"] to actually reference only 1 value?

2001-02-12 Thread Marc Boeren
>Well, I guess that hacking the php source would work. :) However, I was >just thinking that you Could do something like this: >while (list ($key, $value) = mysql_fetch_array ($result, MYSQL_ASSOC)) { >$data[] =& $data[$key] = $value; >} I could, but since I'm writing a database abstractio

RE: [PHP-DEV] how-to get array[0] and array["name"] to actually reference only 1 value?

2001-02-12 Thread Marc Boeren
OK, zend_hash_find and zend_hash_index_find do the trick... Cheerio, Marc. >This leads me to another question: how do I obtain the x_ptr (from the example) if the zend_hash_update was done elsewhere and no ptr was passed then??? >zend_hash_update(return_value->value.obj.properties, "x", s

RE: [PHP-DEV] how-to get array[0] and array["name"] to actually reference only 1 value?

2001-02-12 Thread Marc Boeren
>not bound together in any way. You may be able to accomplish what you >desire by using references. (See the manual section on references for more >information. > ie. $q->data[0]["id"] =& $q->data[0][0]; After looking for references in the php-code, I found something that seems to work ok (ze

RE: [PHP-DEV] how-to get array[0] and array["name"] to actually reference only 1 value?

2001-02-12 Thread Marc Boeren
>Also, even though [0] and ['id'] initially contain the same value, they are >not bound together in any way. You may be able to accomplish what you >desire by using references. (See the manual section on references for more >information. >ie. $q->data[0]["id"] =& $q->data[0][0]; How can I cre

  1   2   >