RE: [PHP-DEV] Possible problem in the parser

2003-03-15 Thread Marcus Börger
At 13:01 14.03.2003, Ford, Mike [LSS] wrote: > >Just to make this completely clear, in left-associative PHP > > > >b = a==1? 4:a==2? 5:6; > > > >is equivalent to > > > >b = (a==1? 4:a==2)? 5:6; > > > NO it is not equal. Either '==' has higher precedence OR '?:' has. > See one

RE: [PHP-DEV] Possible problem in the parser

2003-03-13 Thread Marcus Börger
At 14:58 13.03.2003, Ford, Mike [LSS] wrote: Just to make this completely clear, in left-associative PHP b = a==1? 4:a==2? 5:6; is equivalent to b = (a==1? 4:a==2)? 5:6; NO it is not equal. Either '==' has higher precedence OR '?:' has. See one of my previous mails where i

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /tests/classes interface_class.phpt interface_doubled.phpt interface_implemented.phpt interface_instantiate.phpt interface_member.phpt interface_method.phpt interface_method_final.phpt interface_method_private.phpt interface_must_be_implemented.phpt

2003-03-12 Thread Marcus Börger
At 21:12 12.03.2003, Shane Caraveo wrote: An interface should not implement an interface, only classes should implement interfaces. 'implement' infers that actual executable code is provided that implements an interface. Again, I haven't followed the interface stuff, and sorry for writting wit

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /tests/classes interface_class.phpt interface_doubled.phpt interface_implemented.phpt interface_instantiate.phpt interface_member.phpt interface_method.phpt interface_method_final.phpt interface_method_private.phpt interface_must_be_implemented.phpt

2003-03-12 Thread Marcus Börger
At 20:20 12.03.2003, Andrei Zmievski wrote: On Wed, 12 Mar 2003, Marcus Börger wrote: > This works even though i do not like extends FOO. Why? Both C# and Java (AFAIR) allow interfaces to extend other interfaces. Because of the second part of the answer. It is a little bit strange that

Re: [PHP-DEV] Moderate PHP-DEV

2003-03-12 Thread Marcus Börger
At 20:00 12.03.2003, Weston Houghton wrote: This worries me somewhat. I do not have a CVS account. I do not actively develop and contribute to the PHP sourcecode right now, however my company uses php very very much. I would like to keep up to date on what is happening with the development team

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /tests/classes interface_class.phpt interface_doubled.phpt interface_implemented.phpt interface_instantiate.phpt interface_member.phpt interface_method.phpt interface_method_final.phpt interface_method_private.phpt interface_must_be_implemented.phpt

2003-03-12 Thread Marcus Börger
At 19:57 12.03.2003, Shane Caraveo wrote: A class extending an interface seems just weird to me. classes should only extend classes, and implement interfaces. interfaces can extend interfaces. I haven't been following the interfaces stuff (I'm going to have to backtrack and read it all, very

Re: [PHP-DEV] Moderate PHP-DEV

2003-03-12 Thread Marcus Börger
A couple thoughts Aside from renaming the php-dev list, we should remove the 'PHP and Zend Engine internals lists' from the regular mailing list page, put them in a 'developers' section (name isn't important) that describes cvs access, dev email lists, how to build (ie. win32 libraries), e

Re: [PHP-DEV] Moderate PHP-DEV

2003-03-12 Thread Marcus Börger
At 18:50 12.03.2003, Steph wrote: php-dev-team might lose a few.. ...think f..ing hard..read.oh php-dev-team...thinkCOOL, they solve my problem, i'm getting better at it and finally a team member >>COOL<< what ever name we give this list draws attention to newbies as long as it contains the

Re: [PHP-DEV] Possible problem in the parser

2003-03-12 Thread Marcus Börger
At 18:42 12.03.2003, Derick Rethans wrote: On Wed, 12 Mar 2003, Andrey Hristov wrote: > Few minutes ago I found the following behaviour somehow wierd for me : > $a = 1; > $b = $a==1? 4:$a==2? 5:6; > printf("a[%d]b[%d]\n", $a, $b); > ?> > Prints : > a[1]b[5] > > Similar C program : >

Re: [PHP-DEV] Need some ZE2 functions exported.

2003-03-12 Thread Marcus Börger
At 15:54 12.03.2003, l0t3k wrote: im trying to do some namespace related experimentation but im getting the Have a look at spl (http://marcus-boerger.de/php/ext/spl/) how that works without modyfing the engine. regards marcus -- PHP Development Mailing List To unsubscribe,

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /tests/classes interface_class.phpt interface_doubled.phpt interface_implemented.phpt interface_instantiate.phpt interface_member.phpt interface_method.phpt interface_method_final.phpt interface_method_private.phpt interface_must_be_implemented.phpt

2003-03-12 Thread Marcus Börger
At 14:53 12.03.2003, Andrei Zmievski wrote: I have 2 questions: 1. Do the interface functions have to be explicitly specified as abstract? interface Foo { function bar(); } Because this runs fine for me with no errors. They don't have to (currently) I weote the tests with abstract as i t

Re: [PHP-DEV] iterating objects with interfaces

2003-03-11 Thread Marcus Börger
At 01:48 12.03.2003, Stephen Thorne wrote: All this is starting to feel strangely pythonic. How soon till (''.($_GET['textArea']->strip_tags()).'')->print(); ? Very far of because i am working with objects and interfaces and have no plan for other types as arrays and longs marcus -- PHP Dev

Re: [PHP-DEV] iterating objects with interfaces

2003-03-11 Thread Marcus Börger
At 19:05 10.03.2003, Marcus Börger wrote: Standard PHP Library Updated version allows: class obj_array implements spl::array_read { bla ... } $obj = new obj_array(); $value = $obj[$index]; marcus -- -- Marcus Börger

Re: [PHP-DEV] iterating objects with interfaces

2003-03-10 Thread Marcus Börger
At 15:51 10.03.2003, Brad LaFountain wrote: This IS pretty cool stuff. Just a comment about the namespace, as i see more of these things added as time goes on. since you are already adding the 'spl' namespace why are you prefixing the classes with the namespace still? This is the whole point of u

Re: [PHP-DEV] iterating objects with interfaces

2003-03-09 Thread Marcus Börger
At 06:54 09.03.2003, Marcus Börger wrote: Hi, i've just done the first step for a new extension which shall make use of interfaces newly implemented in ZE2. SPL is updated and supports a complete set of iterator interfaces. After moving from Minit/shutdown to Rinit/shutdown i also have no

[PHP-DEV] Question on startup

2003-03-09 Thread Marcus Börger
Can anybody answer this: Why do we have a sapi_deactivate(TSRMLS_C); call in php_module_startup()? marcus -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: iterating objects with interfaces

2003-03-09 Thread Marcus Börger
At 08:39 09.03.2003, l0t3k wrote: you're not campaigning for sainthood, are you ;-) LOL ive been reading python docs today, and their iterators and sequences are one of the things that make it so powerful yet simple because of their consistency throughout. This has nothing to do with perl. It is a

[PHP-DEV] iterating objects with interfaces

2003-03-08 Thread Marcus Börger
xt/spl/spl-20030309.tar.bz2 And a testfile to demonstrate it works (beside shutdown): http://marcus-boerger.de/php/ext/spl/tests/foreach.phpt Of corse i am curious about other meanings :-) Otherwise i wouldn`t have posted here, would i? regards marcus -- ---------

Re: [PHP-DEV] Namespaces

2003-03-08 Thread Marcus Börger
At 03:36 09.03.2003, l0t3k wrote: You, sir, are a gentleman and a scholar ;-) i assume that given your familiarity and recent work with ZE2 that this will be merged ? i can live with a locally patched tree for the moment.. No plans on that yet. For now i am using this functionality for a new extens

Re: [PHP-DEV] Namespaces

2003-03-08 Thread Marcus Börger
At 08:10 08.03.2003, l0t3k wrote: this may be a bit premature, but how do i inject the classes, functions and constants in my extension into a namespace ? l0t3k See below :-) marcus /* {{{ register_namespace */ /* You will have to alloc the pns before the call */ void register_namespace(zend_nam

Re: [PHP-DEV] Sqlite-php module in php-distribution?

2003-03-07 Thread Marcus Börger
At 10:32 07.03.2003, Björn Kalkbrenner wrote: Sqlite is something like dbm with sql92 language and more. I would much more appreciate a new submodule for the dbx module! regards marcus -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Help: Sablotron and Shift-jis

2003-03-06 Thread Marcus Börger
At 00:40 07.03.2003, Michel Sahyoun wrote: Does anyone have an example of using XSLT with Sablotron to transform and XML document containing Shift-jis encoded characters? I keep getting the following error message: Illegal Character for Encoding 'Shift-jis' You could try: "SJIS" and "Shift_JIS" k

Re: [PHP-DEV] Re: INI defaults for CLI

2003-03-03 Thread Marcus Börger
At 02:45 03.03.2003, [EMAIL PROTECTED] wrote: Nothing attached... Try again... Index: main/SAPI.h === RCS file: /repository/php4/main/SAPI.h,v retrieving revision 1.100 diff -u -r1.100 SAPI.h --- main/SAPI.h 20 Feb 2003 22:21:48 -000

[PHP-DEV] INI defaults for CLI

2003-03-02 Thread Marcus Börger
unexpected behavior and then writes a bug... regards marcus -- -- Marcus Börger - Looking for all sorts of freelance work - just ask... Did i help you? Consider a gift: http://www.amazon.de/exec/obidos/wishlist/ho722v0rg1u0

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 / php.ini-dist php.ini-recommended /ext/filepro filepro.c /ext/session session.c /main main.c php_globals.h php_variables.c php_variables.h

2003-03-02 Thread Marcus Börger
At 18:49 02.03.2003, Derick Rethans wrote: On Sun, 2 Mar 2003, Zeev Suraski wrote: > Looks like for some reason, CLI registers $argv and $argc globals even > though register_globals is off. Why's that? > Anyway, if we want to keep this behavior, we probably should change the > place where argv/ar

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 / php.ini-dist php.ini-recommended /ext/filepro filepro.c /ext/session session.c /main main.c php_globals.h php_variables.c php_variables.h

2003-03-02 Thread Marcus Börger
Anyway, if we want to keep this behavior, we probably should change the place where argv/argc are registered, and put it somewhere global, outside where _SERVER is created. If&when _SERVER is created, it will attempt to copy them. Thoughts? That leads to "$_COMMAND" or "$_CMD". Didn't quite u

[PHP-DEV] Re: [PHP-CVS] cvs: php4 / php.ini-dist php.ini-recommended /ext/filepro filepro.c /ext/session session.c /main main.c php_globals.h php_variables.c php_variables.h

2003-03-02 Thread Marcus Börger
At 16:38 02.03.2003, Zeev Suraski wrote: Looks like for some reason, CLI registers $argv and $argc globals even though register_globals is off. Why's that? CLI overwrites "register_argc_argv": zend_alter_ini_entry("register_argc_argv", 19, "1", 1, PHP_INI_SYSTEM, PHP_INI_STAGE_ACTIVATE

[PHP-DEV] main/network.c

2003-03-01 Thread Marcus Börger
socklen = 0; /* fix warning */ sa = NULL; } -- ------ Marcus Börger - Looking for all sorts of freelance work - just ask... Did i help you? Consider a gift: http://www.amazon.

Re: [PHP-DEV] Tie'ing variables

2003-03-01 Thread Marcus Börger
At 18:11 01.03.2003, Derick Rethans wrote: On Sat, 1 Mar 2003, Sterling Hughes wrote: > Analyzing PHP's routines a bit, it seems that the slowest part of a > "generic" request is populating the special arrays, $_ENV, $_GET, etc. > > I was wondering if it might be possible to "tie" these arrays to

[PHP-DEV] ZE2 constructors

2003-02-28 Thread Marcus Börger
R_FUNC_NAME)-1) && (!memcmp(function_name->u.constant.value.str.val, ZEND_CONSTRUCTOR_FUNC_NAME, sizeof(ZEND_CONSTRUCTOR_FUNC_NAME { CG(active_class_entry)->constructor = (zend_function *) CG(active_op_array); # regards marcus

Re: [PHP-DEV] Re: RFC: dba/inifile native interface

2003-02-24 Thread Marcus Börger
At 12:02 24.02.2003, Sascha Schumann wrote: > I implemented the native interface - inifile_*() functions - in order to be > able to work with group and name instead of the single key format that > is necessary using the dba interface. Sounds to me like another issue which could have been easily

Re: [PHP-DEV] Why parent::construct not called?

2003-02-23 Thread Marcus Börger
At 18:29 23.02.2003, Timm Friebe wrote: Well, because there might be situations in which I'd like to call the parent's constructor before my code in __construct, sometimes after it and in some situations, not call it at all. I hope you will never avoid initialising the base class or just call the b

Re: [PHP-DEV] Why parent::construct not called?

2003-02-23 Thread Marcus Börger
At 18:02 23.02.2003, michel 'ziobudda' morelli wrote: Il dom, 2003-02-23 alle 17:32, Marcus Börger ha scritto: > You can do the following: > class derived extends base { > function __construct() { > parent::__construct(); > echo

Re: [PHP-DEV] Performance degradation

2003-02-23 Thread Marcus Börger
So, obviously these opens don't really affect the module version since they only happen on startup, but they still don't seem right. I understand ./php-cgi.ini, but .//php-cgi.ini and .//php.ini? Looks like a missing check there. I just recognized these yesturday, too and was thinking the same

Re: [PHP-DEV] Why parent::construct not called?

2003-02-23 Thread Marcus Börger
/ze2/ctor_dtor_inheritance.phpt.txt regards marcus -- ------ Marcus Börger - Looking for all sorts of freelance work - just ask... Did i help you? Consider a gift: http://www.amazon.de/exec/obidos/wishlist/ho722v0rg1u0 -- -- PHP Development

[PHP-DEV] Re: RFC: dba/inifile native interface

2003-02-23 Thread Marcus Börger
At 12:11 23.02.2003, Sascha Schumann wrote: On Sun, 23 Feb 2003, Marcus Börger wrote: > After fixing hopefully last problems in the inifile handler i made > up a patch which introduces a native interface to the inifile handler. > I did this because the "[group]name" key form

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/dba config.m4 dba.c dba_inifile.c php_inifile.h /ext/dba/libinifile .cvsignore inifile.c inifile.h /ext/dba/tests dba_inifile.phpt

2003-02-22 Thread Marcus Börger
At 03:49 23.02.2003, Jani Taskinen wrote: I kinda missed the point of this thing..any real life examples..? :) The "[group]name" format is only to be able to use dba for ini files. The trick is a keyname cannot start with "[", thats all. However i just introduced the native interface, see: ht

[PHP-DEV] RFC: dba/inifile native interface

2003-02-22 Thread Marcus Börger
name) and inifile_close() beeing an alias to dba_close() this interface is not meant to have first/nextkey but that would be easy to add if someone wants it. http://marcus-boerger.de/php/ext/dba_inifile.diff.txt regards marcus -- ------ Mar

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/dba config.m4 dba.c dba_inifile.c php_inifile.h /ext/dba/libinifile .cvsignore inifile.c inifile.h /ext/dba/tests dba_inifile.phpt

2003-02-22 Thread Marcus Börger
working :-) marcus -- ---------- Marcus Börger - Looking for all sorts of freelance work - just ask... Did i help you? Consider a gift: http://www.amazon.de/exec/obidos/wishlist/ho722v0rg1u0 -- -- PHP Development Mailing List

[PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/dba config.m4 dba.c dba_inifile.c php_inifile.h /ext/dba/libinifile .cvsignore inifile.c inifile.h /ext/dba/tests dba_inifile.phpt

2003-02-22 Thread Marcus Börger
d by the group "[]" for now. Maybe i will change this to "". Some work is still to be done but in general it works pretty nice here. regards marcus -- -- Marcus Börger - Looking for all sorts of freelance work - just ask... Did i help you? Consider a gift: http://www.amazon.de/exe

[PHP-DEV] What about fsize()

2003-02-22 Thread Marcus Börger
What about a new function fsize()? I was thinking about extending filesize but that one is a wrapper around another function which handles stat access based on filenames. fsize() instead would use seekset/tell from our streams stuff. regards marcus -- PHP Development Mailing List

Re: [PHP-DEV] Jumadi

2003-02-20 Thread Marcus Börger
At 08:04 21.02.2003, Wojtek Meler wrote: On Thu, Feb 20, 2003 at 06:21:27PM +0100, Sebastian Bergmann wrote: > Jani Taskinen wrote: > > Just make this one moderated. (but allow anyone with CVS > > access to post freely :) > > That sounds like a very good idea. great idea, that would stop this a

RE: [PHP-DEV] MFH policy

2003-02-19 Thread Marcus Börger
At 17:38 19.02.2003, Marc Boeren wrote: 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. If you check out with the PHP_

Re: [PHP-DEV] CLI & long options

2003-02-15 Thread Marcus Börger
At 18:56 15.02.2003, Derick Rethans wrote: On Sat, 15 Feb 2003, Jani Taskinen wrote: > On Sun, 16 Feb 2003, Moriyoshi Koizumi wrote: > > >+1 from me if you are sure it doesn't break BC. > > +1 for MFH even if it doesn't break BC. :) +1 for this, but -1 for MFH, because Jani wants to break BC

Re: [PHP-DEV] CLI & long options

2003-02-15 Thread Marcus Börger
At 18:31 15.02.2003, Jani Taskinen wrote: Erm..that url doesn't look quite ok..? :) --Jani YES - It should have been: http://marcus-boerger.de/php/ext/cli-getopt.diff.txt -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] CLI & long options

2003-02-15 Thread Marcus Börger
/cli-getopt.diff.txt -- ---------- Marcus Börger - Looking for all sorts of freelance work - just ask... Did i help you? Consider a gift: http://www.amazon.de/exec/obidos/w

Re: [PHP-DEV] Why i believe we need final

2003-02-14 Thread Marcus Börger
At 22:05 23.01.2003, Marcus Börger wrote: The current OO implementation ( ... bla ... ) final ( ... bla ... ) I just updated the patch and it is getting a bit smaller due to latest engine changes. I also moved the check code from zend_language_parser.y into zend_compile.c (as suggested by...i

Re: [PHP-DEV] build no longer working

2003-02-14 Thread Marcus Börger
Ensure that m4 --version actually outputs 1.4 and not 1.4o. Some rpms are mislabeled in that area. Otherwise, the only problem source comes from having a "polluted" installation where multiple autoconf/libtool versions are sprinkled through the whole system. Thanks for the

Re: [PHP-DEV] build no longer working

2003-02-13 Thread Marcus Börger
At 01:57 14.02.2003, Jani Taskinen wrote: On Fri, 14 Feb 2003, Marcus Börger wrote: AC_PROG_LIBTOOL is defined in libtool.m4, which should come from libtool installation. Most likely you've just got mixed up versions in your system. Easiest way to get it working is to remove

Re: [PHP-DEV] build no longer working

2003-02-13 Thread Marcus Börger
At 00:04 14.02.2003, Sascha Schumann wrote: On Thu, 13 Feb 2003, Marcus Börger wrote: > I updated all m4,autoconf & libtool AND now i can no longer build php > > Anybody help? Get autoconf-2.13 and m4-1.4 (not 1.4o) from ftp.gnu.org. I give up for now... [marcus@zaphod p

[PHP-DEV] build no longer working

2003-02-13 Thread Marcus Börger
I updated all m4,autoconf & libtool AND now i can no longer build php Anybody help? using default Zend directory buildconf: checking installation... buildconf: autoconf version 2.54 (ok) buildconf: Your version of autoconf likely contains buggy cache code. Running cvsclean for you.

[PHP-DEV] Re: [PHP-CVS] cvs: php4 /main spprintf.c

2003-02-11 Thread Marcus Börger
At 23:44 11.02.2003, Sascha Schumann wrote: Markus, here is a patch against the current CVS which If you commit that stuff, you should apply the changes to our snprintf.c, too. regards marcus -- PHP Development Mailing List To unsubscribe, visit: http://www.php.

[PHP-DEV] Re: [PHP-CVS] cvs: php4 /main spprintf.c

2003-02-11 Thread Marcus Börger
At 23:44 11.02.2003, Sascha Schumann wrote: Markus, here is a patch against the current CVS which - trims +100 lines of code from spprintf.c - introduces an overflow detection in STR_TO_DEC Why then this comment? Did you forgot to remove it. +/* XXX: Does not handle overflow. *

Re: [PHP-DEV] RFC: uniqid default param

2003-02-10 Thread Marcus Börger
At 23:08 10.02.2003, Sascha Schumann wrote: No, some users might depend on the return format (think of database entries). That was one of the reasons i only changed it for CYGWIN. -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] RFC: uniqid default param

2003-02-10 Thread Marcus Börger
Hi, the current implementation of uniqid set the more entropy default true for CYGWIN and false for the rest. CYGWIN must use more entropy because it does not produce new values after usleep(1) necessarily. However usleep(1) should nowadays be very slow compared to whatever php_combined_lcg() need

[PHP-DEV] Files Headers

2003-02-07 Thread Marcus Börger
From our files haeders: | available at through the world-wide-web at | Shouldn't the first 'at' be dropped? marcus -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Re: New CLI switches (was [PHP-DEV] Using CLI as a shell)

2003-02-04 Thread Marcus Börger
At 10:28 04.02.2003, Edin Kadribasic wrote: >First simply use "php -h" but i am also thinking about adding a man >page. That is a bit too much text for 'php -h'. It should be moved to the online manual. Adding a man page would be great too. I wrote already i will do so...but haven't yet the tim

Re: [PHP-DEV] Using CLI as a shell

2003-02-03 Thread Marcus Börger
At 19:37 03.02.2003, Derick Rethans wrote: On Mon, 3 Feb 2003, Marcus [iso-8859-1] Börger wrote: > After adding -B, -F, -R and -E which will hopefully liked by the rest > of development team so that the stuff need not to be removed. Perhaps start by explaining what they do? First simply use "p

[PHP-DEV] Using CLI as a shell

2003-02-03 Thread Marcus Börger
After adding -B, -F, -R and -E which will hopefully liked by the rest of development team so that the stuff need not to be removed. I (or better a friend of mine) had another idea. Here comes: Why not use CLI as a shell? I'd say adding a command line switch say -S which parses and executes ev

[PHP-DEV] Problems with zand_API.c

2003-02-02 Thread Marcus Börger
`va_start' not last named argument -- ---------- Marcus Börger - Looking for all sorts of freelance work - just ask... Did i help you? Consider a gift: http://www.amazon.de/exec/obidos/wishlist/ho722v0rg1u0 --

[PHP-DEV] Another bugs.php.net question

2003-02-01 Thread Marcus Börger
The assigne bugs reminder mail does not contain links to the bug reports as normal mail from there do. Wouldn't it be nice if one could simply click on the bugs? marcus -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Question on bug list

2003-01-31 Thread Marcus Börger
At 11:37 31.01.2003, Jani Taskinen wrote: On Fri, 31 Jan 2003, Marcus Börger wrote: >I had two questions: One to assign to all NEW messages and one >feature request to assign to selective bugs...I wanted to avoid reading >all messages on any bug. Thats overkill... Get a mail client

Re: [PHP-DEV] Question on bug list

2003-01-31 Thread Marcus Börger
At 10:24 31.01.2003, Thomas Seifert wrote: On Fri, 31 Jan 2003 02:49:01 + [EMAIL PROTECTED] (Daniel Lorch) wrote: > hi, > > > > Wouldn't it be nice if one could attach himself to a bug and receive an > > > email > > > on every new message to that bug? > > > > > > And then how am i informed

Re: [PHP-DEV] Re: str_ireplace vs. stri_replace

2003-01-30 Thread Marcus Börger
FWIW: Given this mess, and the fact that any php-coded stri_replace can be overloaded, I think a new function is better. Also - it's in sync with the other stri* functions. Either change all with a case-insensativity paramenter, or keep the namingconventions that 'plague' these functions. Agg

[PHP-DEV] Question on bug list

2003-01-30 Thread Marcus Börger
Wouldn't it be nice if one could attach himself to a bug and receive an email on every new message to that bug? And then how am i informed about new bugs? Is there a mailing list for that? Currently i read the bug-summary-list.. marcus -- --->>> mailto:[EMAIL PROTECTED] <<<-

Re: [PHP-DEV] Why i believe we need final

2003-01-30 Thread Marcus Börger
At 10:34 30.01.2003, Stanislav Malyshev wrote: MB>> If you want real life examples (and surely it seems you will never MB>> trust me) get yourself a book from scott meyers (going to my I would certainly trust you if you gave me an example. Marcus, I'm not here to personally attack you. I just do

Re: [PHP-DEV] Re: Mandatory File Locking in PHP?

2003-01-29 Thread Marcus Börger
The real question is why you need mandatory locks and not advisory locks. If everyone is playing on the same team, advisory locks should provide all the semantics you need (and are very portable). Mandatory locks (on linux at least) require not only special mount options, but special perms

Re: [PHP-DEV] Feature Request #5919 case-insensitive version of str_replace()

2003-01-29 Thread Marcus Börger
At 00:47 30.01.2003, Edin Kadribasic wrote: > I don't even see the speed difference as an issue as much as (A) > simplicity for the user who hasn't figured out regex yet, (B) consistency > (we have 'i' versions of most other string functions, why not this one?) +1 for the reasons stated above.

Re: [PHP-DEV] Re: Mandatory File Locking in PHP?

2003-01-29 Thread Marcus Börger
At 18:07 29.01.2003, George Schlossnagle wrote: Aside from this being on the wrong list (this should go to php-general), it's worth noting that mandatory locking support is pretty inconsistently implemented across most OSs. Why wrong list? I guess Ananth needs it somewhere forthe netware port

Re: [PHP-DEV] Why i believe we need final

2003-01-29 Thread Marcus Börger
At 09:46 29.01.2003, Stanislav Malyshev wrote: MB>> Sure it cannot because insert cannot. The problem and the error you did MB>> above is that you split an operation into two. Your real operation is MB>> insert_with_password and that is different from insert. Again insert is an That's the whole

Re: [PHP-DEV] configure broken

2003-01-27 Thread Marcus Börger
At 06:14 28.01.2003, Sebastian Bergmann wrote: ./configure: line 30289: syntax error near unexpected token `fi' ./configure: line 30289: `fi' Should be fixed by now. marcus -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Why i believe we need final

2003-01-27 Thread Marcus Börger
are virtual. Here you can redeclare it at will (but hopefully you know what that means and avoid it). Since we cannot have non virtual functions and discussing final here i am (obviously) in favor of the java solution (in real life the above is one of the few points i dislike in c++). regar

Re: [PHP-DEV] Compiling php4activescript

2003-01-27 Thread Marcus Börger
Performing Custom Build Step on ".\zend_language_parser.y" 'bison' is not recognized as an internal or external command, operable program or batch file. Error executing c:\winnt\system32\cmd.exe. Obviously your ide tells you that you are bissin bison... Try searching for bison + win32 on the ne

Re: [PHP-DEV] Reducing the number of system calls for includes

2003-01-25 Thread Marcus Börger
At 13:30 25.01.2003, Sebastian Bergmann wrote: Sascha Schumann wrote: > The question here is whether it's worthwhile to optimize for > the case where you have 30+ includes per page. Is it that > common? I think this is very common, for example with OOP applications that usually have one file

[PHP-DEV] Why i believe we need final

2003-01-23 Thread Marcus Börger
re soon because i want to start another extension to the OO model - if you read between the lines you may guess but it'l have to wait... -- ------ Marcus Börger - Looking for all sorts of freelance work - just ask...

Re: [PHP-DEV] [PATCH] jpeg2000 in php 4.3

2003-01-17 Thread Marcus Börger
At 10:52 17.01.2003, Adam Wright wrote: Have regenerated the diffs in unified format as well as fixed a minor bug in the JP2 support. I've put together a small page at http://www.j2g.org/php-dev/ It contains the patch, test script and a couple of example images in both raw codestream and JP2 for

Re: [PHP-DEV] jpeg2000 in php 4.3

2003-01-16 Thread Marcus Börger
At 13:50 16.01.2003, Adam Wright wrote: I've completed a short patch which cleans up the JPEG 2000 raw codestream support ("j2c", though I've renamed it jpeg2000 in the file for clarity) in getimagesize. It also adds JP2 support. I've put a context diff of it against 4.3.x-dev from this morning up

Re: [PHP-DEV] Memory allocation problems

2003-01-16 Thread Marcus Börger
At 11:38 16.01.2003, Edin Kadribasic wrote: I have a script that allocates a lot of memory (huge associative arrays). The problem is that this scripts bails out with fatal error (emalloc unable to allocate 44 bytes) when I hit the limit of physical ram in the machine. Swap never gets used. The mac

Re: [PHP-DEV] function imagecreatefromjpeg pb

2003-01-13 Thread Marcus Börger
At 22:59 13.01.2003, oversky wrote: Hi, here they are... i tested this with several types of pictures taken from internet or generated by photoshop, etc... thanks for your help... - Original Message - From: "Marcus Börger" <[EMAIL PROTECTED]> To: "WarmUp&qu

Re: [PHP-DEV] function imagecreatefromjpeg pb

2003-01-13 Thread Marcus Börger
At 07:21 13.01.2003, WarmUp wrote: Hi, do someone can help me with the use of function imagecreatefromjpeg. Because, when i use it, PHP retrieve this error message : Warning: imagecreatefromjpeg: 'toto.jpg' is not a valid JPEG file in toto.php on line 10 could you send me one of your images?

Re: [PHP-DEV] Tru64 make test with --enable-all

2003-01-13 Thread Marcus Börger
At 18:54 13.01.2003, you wrote: Hi! I can't include the results inline because they're to large. These are both compiling results and test results. So you can look at it here: http://novell.stoldgods.nu/~magnus/test_result.txt Ok i thought you overlooked the possibility to send the results by t

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/overload .cvsignore CREDITS README config.m4 overload.c overload.dsp php_overload.h

2003-01-11 Thread Marcus Börger
At 10:45 11.01.2003, Sebastian Bergmann wrote: Marcus Börger wrote: > yes - but this makes building HEAD + ZE1 + overload impossible Well, ZE1 should only be build with the PHP_4_3 branch now. Otherwise we won't get the momentum needed to push PHP 5 and ZendEngine 2 development.

Re: [PHP-DEV] jpeg2000 in php 4.3

2003-01-10 Thread Marcus Börger
At 10:10 10.01.2003, Adaloglou Maria wrote: As I have read in the manual about the getimagesize function that "Note: JPEG2000 support will be added in PHP 4.3. " Do you know if it is supported finaly? No - at the moment there is only support for jpc. sorry i haven't yet the time to read through

Re: [PHP-DEV] Should I fix this?

2003-01-08 Thread Marcus Börger
At 04:20 08.01.2003, Rickard Andersson wrote: BTW. I'm kinda new to contributing to large projects as this one. Should I checkout the latest CVS and patch agains that or should I use some other base for my alterations? Please check out HEAD (latest) and send a unified diff (diff -u) to this list

Re: [PHP-DEV] xml xinclude

2003-01-08 Thread Marcus Börger
At 15:35 08.01.2003, Pawel wrote: Hello, libxml (tested with 2.4.30) creates these additional nodes when parsing documents with xincludes: XML_XINCLUDE_START and XML_XINCLUDE_END. PHP has no support for these nodes and chokes when it encounters them, therefore walking the xml tree after issuing $

Re: [PHP-DEV] Is exif_tagname() useful?

2003-01-07 Thread Marcus Börger
At 19:24 07.01.2003, Leon Atkinson wrote: The undocumented function exif_tagname() does lookups on the table tag_table_IFD which matches IDF0 tags to human-readable names. Considering exif_read_data() already uses this table, is there a reason to have this function around? Debugging? Currently

RE: [PHP-DEV] building ext/dba on win32

2003-01-07 Thread Marcus Börger
At 21:06 07.01.2003, Dave Viner wrote: well.. from the win32build.zip file, I find in db.h this line: #define DB_VERSION_STRING "Sleepycat Software: DB 2.4.14: (6/2/98)" DB version 2 does not have the functions causing the error. And you cannot link DB 2 with --with-db3=... I suspect t

Re: [PHP-DEV] building ext/dba on win32

2003-01-07 Thread Marcus Börger
At 20:11 07.01.2003, Dave Viner wrote: Hi, I'm having trouble building the dba extension on win32. I get these errors: D:\php\php4\ext\dba\dba_db3.c(89) : error C2039: 'set_errcall' : is not a member of '__db' D:\PHP\PHP-WIN32BUILD\INCLUDE\db.h(397) : see declaration of '__db' D:

Re: [PHP-DEV] Should I fix this?

2003-01-07 Thread Marcus Börger
Marcus: could you specify the speed loss? If it's noticeable I would rather suggest to either introduce a new function or another parameter to getimagesize(), no matter what the default is (e.g. let getimagesize() get the "real" size and introduce something like getimagesize_fast()) or the other

Re: [PHP-DEV] Should I fix this?

2003-01-07 Thread Marcus Börger
At 01:43 07.01.2003, Rickard Andersson wrote: getimagesize() blindly trusts the width and height specified in the header of gifs. You can just hexedit the file and set the width and height to any value and getimagesize() will believe that is the "true size" of the image. Even worse - Internet Expl

Re: [PHP-DEV] CGI and CLI [packaging issues]

2003-01-06 Thread Marcus Börger
At 06:55 06.01.2003, Jean-Michel Dault wrote: Le sam 04/01/2003 à 18:13, Marcus Börger a écrit : > What might happen is that CLI becomes widely accepted and scripts > calling php from shebang lines. Id so your above solution is a bad idea > and i hope CLI will be... I'm CC'ing

Re: [PHP-DEV] Zend 2 - how to test

2003-01-05 Thread Marcus Börger
At 12:47 05.01.2003, Stefano Corsi wrote: Hello. I have downloaded Zend2 and tried to compile it against php 4.3.0 with many errors during the linking phase and some corrections at main/* files. Which is the right version/checkout for php to compile against Zend2 and where is it possible to get

Re: [PHP-DEV] CGI and CLI (compromise proposal)

2003-01-04 Thread Marcus Börger
At 21:57 04.01.2003, Jean-Michel Dault wrote: Le sam 04/01/2003 à 08:15, Marcus Börger a écrit : > >What happens when a user wants to install *both* php-cli and php-cgi? > >You cannot have two files with the same name, either in the same RPM, or > >in two different RPMS.

Re: [PHP-DEV] CGI and CLI (compromise proposal)

2003-01-04 Thread Marcus Börger
At 22:41 03.01.2003, Jean-Michel Dault wrote: Hello all, Sorry to re-activate this topic, but I stumbled into an issue when packaging PHP 4.3 as an RPM for Mandrake. What happens when a user wants to install *both* php-cli and php-cgi? You cannot have two files with the same name, either in the

Re: [PHP-DEV] PHP Look Back 2002

2002-12-31 Thread Marcus Börger
Have fun reading! Indeed a funny reading! The only thing i missed was the december diberauschendenscussion "Quoting behaviour exposed". Reference: http://news.php.net/article.php?group=php.dev&article=%3CPine.LNX.4.50.0212281820140.1306-10%40eco.foo%3E Happy new year and hopefully an e

Re: [PHP-DEV] option to start in PHP mode

2002-12-28 Thread Marcus Börger
At 10:46 28.12.2002, Andi Gutmans wrote: At 01:45 AM 12/28/2002 +0100, Marcus Börger wrote: At 22:40 27.12.2002, Andi Gutmans wrote: I don't think it's beneficial to PHP to have two modes especially as the cli more you're talking about would support ?> followed by a Let

Re: [PHP-DEV] option to start in PHP mode

2002-12-27 Thread Marcus Börger
At 22:40 27.12.2002, Andi Gutmans wrote: I don't think it's beneficial to PHP to have two modes especially as the cli more you're talking about would support ?> followed by a Let's keep things similar across the board. Andi I agree here, too. But when you still want that stuff we can expand CLI

Re: [PHP-DEV] Re: #21139 [Ctl]: zlib.output_compression + windows failure

2002-12-23 Thread Marcus Börger
I have taken a short look at the code and i think Morioshi is correct. zlib_ouput_compression doesn't seem work when zlib si compiled as a shared module. But i will not have time for this until after x-mas. marcus At 09:11 23.12.2002, Moriyoshi Koizumi wrote: As far as I've looked into this prob

Re: [PHP-DEV] RC4 + windows

2002-12-22 Thread Marcus Börger
At 01:32 22.12.2002, Edin Kadribasic wrote: On Sunday 22 December 2002 00:51, Marcus Börger wrote: > Hi, > > i can no longer load mhash and domxml dll's under windows RC4. > > marcus Rememberd to copy .dlls from dlls folder to a folder in PATH like c:\winnt\system32? Edi

[PHP-DEV] RC4 + windows

2002-12-21 Thread Marcus Börger
Hi, i can no longer load mhash and domxml dll's under windows RC4. marcus -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   3   4   5   >