Re: [PHP-DEV] pdo: binding variables supplied to execute() is NotVeryUseful(tm)...

2005-03-31 Thread Marcus Boerger
Hello Thies, Friday, March 25, 2005, 1:55:30 PM, you wrote: > hi, > pdo hat it's own query-parser, named variables are prefixed with a > colon... so far - so nice... > i have a function called insert which is called like this: > $db->insert('some_table', array('name' => $name, 'age' => $age))

Re: [PHP-DEV] pdo: binding variables supplied to execute() is NotVeryUseful(tm)...

2005-04-01 Thread Marcus Boerger
Hello Thies, Friday, April 1, 2005, 3:13:10 AM, you wrote: > Am 31.03.2005 um 17:28 schrieb Marcus Boerger: >> Hello Thies, >> >> Friday, March 25, 2005, 1:55:30 PM, you wrote: >> >>> and this is 'cause pdo _expects_ the user to prefix the b

Re: [PHP-DEV] PHP 5.1 Beta 1

2005-04-03 Thread Marcus Boerger
Hello Jani, yes that'd much better then calling it beta. Beta would prevent us from changes and according to my history there are several things just missing right now. Sunday, April 3, 2005, 9:32:49 AM, you wrote: > Then call it pre-alpha. > --Jani >> We're talking beta (I don't

Re: [PHP-DEV] __autoload() enhancement

2005-04-03 Thread Marcus Boerger
Hello Zeev, Sunday, April 3, 2005, 6:05:22 AM, you wrote: > All, > One problem that became apparent after the introduction of __autoload(), is > that different pieces of code, sometimes coming from different sources, may > want to declare this function in a different way. Today, __autoload() is

Re: [PHP-DEV] __autoload() enhancement

2005-04-03 Thread Marcus Boerger
Hello Zeev, Sunday, April 3, 2005, 10:39:39 AM, you wrote: > At 18:31 03/04/2005, Marcus Boerger wrote: >>Right from the beginning i said __autoload() is just wrong and we need the >>described behavior. However all i got back is that i am just wrong and we >>don

Re: [PHP-DEV] PHP 5.1 Beta 1

2005-04-03 Thread Marcus Boerger
Hello Andi, Saturday, April 2, 2005, 10:53:19 PM, you wrote: > Hey, > I'd like to roll PHP 5.1 Beta 1 very soon. > Wez, I've been waiting for PDO in order to get this going. Do you feel it's > mature enough or should I hold off some more time? > Also, has someone already integrated PDO configure

Re: [PHP-DEV] Re: __autoload() enhancement

2005-04-04 Thread Marcus Boerger
Hello Greg, Monday, April 4, 2005, 2:04:47 PM, you wrote: > Andrey Hristov wrote: >> Stanislav, >> Greg probable means something like a stack trace of the autload callbacks >> that were called. This will be a nice addition just like Exception >> stacktraces >> are (I wish there were stacktraces

Re: [PHP-DEV] Re: __autoload() enhancement

2005-04-05 Thread Marcus Boerger
Hello Greg, Monday, April 4, 2005, 2:04:47 PM, you wrote: > Andrey Hristov wrote: >> Stanislav, >> Greg probable means something like a stack trace of the autload callbacks >> that were called. This will be a nice addition just like Exception >> stacktraces >> are (I wish there were stacktraces

Re: [PHP-DEV] Re: cvs: php-src /ext/spl php_spl.c

2005-04-05 Thread Marcus Boerger
Hello Jared, Tuesday, April 5, 2005, 1:58:04 PM, you wrote: >> >> I'd say that all extensions should really follow the 1 prefix >> per ext for anything that ends up in the global namespace >> (classes, functions. >> constants ..) rule. Just as we did in the past with new >> procudural extens

Re: [PHP-DEV] Re: __autoload() enhancement

2005-04-05 Thread Marcus Boerger
Hello Andrey, Tuesday, April 5, 2005, 5:21:17 PM, you wrote: > Stanislav Malyshev wrote: >> GB>>call stack, as if the user had inserted the call to the new >> GB>>__autoload() before the last closing }. >> >> Too much magic, IMO. All you need to know is the list of functions, you >> don't need

Re: [PHP-DEV] class_implements()/class_parents() accepting string parameter

2005-04-06 Thread Marcus Boerger
Hello Lukas, Wednesday, April 6, 2005, 3:46:08 PM, you wrote: > Hi, > it would be very useful if class_implements()/class_parents() would also > handle a string containing a class name instead of requiring an object > instance. Class as it says does not need an instance. Can you send a patch?

Re: [PHP-DEV] PHP 5.1 Beta 1

2005-04-06 Thread Marcus Boerger
Hello Wez, Wednesday, April 6, 2005, 2:48:22 PM, you wrote: > Hey Andi, > I've been a busy with work (and house hunting), so I've been a bit out of it. > Let me catch up and take stock on PDO again; I'd like to push a PECL > release of the various packages this weekend, before we go with Beta >

Re: [PHP-DEV] PHP 5.1 Beta 1

2005-04-06 Thread Marcus Boerger
distingushing by having to add the version for the old stuff would lead to that. marcus Wednesday, April 6, 2005, 4:16:33 PM, you wrote: > The plan is to have only one mysql driver that can be linked against > both version 3 and 4 of the client libraries. > --Wez. > On Apr 6, 2005 9:5

Re: [PHP-DEV] [PATCH] class_implements() and class_parents()

2005-04-06 Thread Marcus Boerger
Hello Andrey, just three tiny changes were needed before applying. If onyl other parts could be done that fast. Wednesday, April 6, 2005, 5:03:08 PM, you wrote: > Hi all, > I have cooked up a patch that gives the possibility to use not > only an object but a string value with class_implement

Re: [PHP-DEV] registering object constants leaking memory.

2005-04-07 Thread Marcus Boerger
Hello Alan, it seems you are registering constants on an internal class. If so you must use the correct api since your data must be allocated by malloc instead of emalloc. In your codes i can only see regular stuff that uses emalloc so it must go wrong. marcus Thursday, April 7, 2005, 5:10:53

Re: [PHP-DEV] Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_builtin_functions.c

2005-04-08 Thread Marcus Boerger
Hello Andrey, somehow i knew someone would ask for that how about you writing a patch? Friday, April 8, 2005, 5:01:24 PM, you wrote: >Hi Marcus, > what about class_constant_exists("classname", "const") > (a bit long function name though)? > Andrey

Re: [PHP-DEV] Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_builtin_functions.c

2005-04-08 Thread Marcus Boerger
the past, it's also not a good idea to > continue polluting the global namespace. > Please revert this patch. > FYI, all the other requests for additional functions like > class_constant_exists() should also be reflection API. It's best for the > language. > Thanks,

Re: [PHP-DEV] Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_builtin_functions.c

2005-04-08 Thread Marcus Boerger
ed to something which at > the end will simulate method_exists(). > Thanks for you attention, > Andrey > Marcus Boerger wrote: >> Hello Andi, >> >> to this i only agree under two conditions. First we remove other like >> method_exists() too and second we

Re: [PHP-DEV] Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_builtin_functions.c

2005-04-08 Thread Marcus Boerger
> It's vital? Come on, you can convince me that it's nice to have, sure. But > vital? What can it do which you can do with reflection API? If the name is > sexier than you can write your own PHP function. > At 06:36 PM 4/8/2005 +0200, Marcus Boerger wrote: >>Hello Andrey,

Re: [PHP-DEV] Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_builtin_functions.c

2005-04-08 Thread Marcus Boerger
5. Restating that over > and over is not productive as we should support what has been around for a > long time. And mind you, PHP is quite useful the way it is. This was about const which was introduced by sterling in 2004 iirc. [...] > Andi > At 07:15 PM 4/8/2005 +0200, Marcu

Re: [PHP-DEV] Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_builtin_functions.c

2005-04-10 Thread Marcus Boerger
Hello Zeev, stay tuned, i'll take care of that after discussing with Andi where to put those stuff. best regards marcus Sunday, April 10, 2005, 10:45:23 PM, you wrote: > I think Andi hit the nail right on the head. > PHP was never about perfection, it was and should continue to be about > g

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php-src /ext/spl php_spl.c

2005-04-14 Thread Marcus Boerger
Hello Michael, Thursday, April 14, 2005, 5:12:03 PM, you wrote: > Hi Marcus Boerger, you wrote: >> Hello Andi, >> >> Monday, April 11, 2005, 12:35:34 AM, you wrote: >> >> >>>Hi, >> >> >>>Andrey might have a point. Unlike the other

Re: [PHP-DEV] Re: Missing ReflectionProperty::getDocComment()

2005-04-19 Thread Marcus Boerger
Hello Johannes, Tuesday, April 19, 2005, 8:56:03 AM, you wrote: > Hi Sebastian, > Sebastian Bergmann wrote: >> I am missing a ReflectionProperty::getDocComment() method in the >> Reflection API. At the moment only ReflectionClass, ReflectionFunction, >> and ReflectionMethod have such a method

Re: [PHP-DEV] protected/private function __construct() not allowed in 5.0.4?

2005-04-20 Thread Marcus Boerger
Hello Greg, Wednesday, April 20, 2005, 5:11:46 AM, you wrote: > Hi all, > I just spent quite a while searching the archives, and can't find any > explanation of why this code worked in 5.0.3 but doesn't in 5.0.4: > class blah { > protected function __construct(){} > } ?>> > Could someon

Re: [PHP-DEV] Re: cvs: ZendEngine2 / zend_API.c zend_API.h zend_compile.c zend_compile.h zend_reflection_api.c

2005-04-22 Thread Marcus Boerger
Hello Sebastian, Friday, April 22, 2005, 6:01:20 AM, you wrote: > Marcus Boerger wrote: >> helly Tue Apr 19 18:05:00 2005 EDT >> >> Modified files: >> /ZendEngine2 zend_API.c zend_API.h zend_compile.c zend_compile.h >>

Re: [PHP-DEV] bison version check

2005-04-23 Thread Marcus Boerger
Hello Sebastian, are you sure it works (e.g. the corresponding test succeed)? Saturday, April 23, 2005, 10:52:29 AM, you wrote: > I have bison 2.0 on my Gentoo Linux system an PHP's configure script > gives a warning >checking for bison version... invalid >configure: WARNING: You wi

Re: [PHP-DEV] Re: cvs: ZendEngine2 / zend_API.c zend_API.h zend_compile.c zend_compile.h zend_reflection_api.c

2005-04-25 Thread Marcus Boerger
Hello Duncan, Monday, April 25, 2005, 12:10:08 PM, you wrote: > Guys, > These patches don't work for inheritance. > E.g. > class a { > /** > * This is the base class > **/ > public $a; > } > class b extends a { > /** > * This is the extending

Re: [PHP-DEV] Re: cvs: ZendEngine2 / zend_API.c zend_API.h zend_compile.c zend_compile.h zend_reflection_api.c

2005-05-02 Thread Marcus Boerger
Hello Duncan, Tuesday, April 26, 2005, 11:56:09 AM, you wrote: > On Monday 25 April 2005 8:29 pm, Marcus Boerger wrote: >> Of course, send them over as a .txt attachment (diff -u) or pot them >> online somewhere. >> >> best regards >> marcus > Diffs

Re: [PHP-DEV] small patch to Zend

2005-05-07 Thread Marcus Boerger
Hello val, may i ask what you need it for? Saturday, May 7, 2005, 6:56:35 PM, you wrote: > Hello, > small patch just to make zend_do_inheritance() exportable > (I need this Zend function in my extension) -- Best regards, Marcusmailto:[EMAIL PROTE

Re: [PHP-DEV] Re: new overloading feature?

2005-05-10 Thread Marcus Boerger
Hello Markus, Tuesday, May 10, 2005, 8:31:05 AM, you wrote: > Sebastian Bergmann wrote: >> Lukas Smith wrote: >> >>>http://bugs.php.net/bug.php?id=30235 >> >> >> I agree with Marcus: self is bound at runtime, so the behaviour is >> correct. If you do not like this late binding just do not us

Re: [PHP-DEV] Re: new overloading feature?

2005-05-12 Thread Marcus Boerger
Hello Alex, but PHP is a class based langauage which is very much different from prototype based langauages. Apart from that i already said that it would be possible to add a special 'called_self' (or better name) syntax to support what you want - only that would slow doen execution even if you

Re: [PHP-DEV] Re: new overloading feature?

2005-05-13 Thread Marcus Boerger
Hello Alex, Friday, May 13, 2005, 5:18:43 PM, you wrote: > 2005/5/12, Marcus Boerger <[EMAIL PROTECTED]>: >> Hello Alex, >> >> but PHP is a class based langauage which is very much different from > what is a class based language? It means the language is

Re: [PHP-DEV] Function proposal

2005-05-16 Thread Marcus Boerger
Hello AnteD, Friday, May 13, 2005, 1:29:36 PM, you wrote: > Hi guys... > Yes I know that this is a small function and yes I know it can be > copy-paste with every new project you do but from the first day I've > been using PHP until today this function follows me everywhere and I now > that e

[PHP-DEV] Changing output of print_r() and var_dump()

2005-05-21 Thread Marcus Boerger
Hello internals, i want to chnage the output of print_r() and var_dump() so that it shows the class a private property was declared in. The problem is that at the moment both only state that the property is private so that you cannot see which class level it belongs to and if there is any derive

Re: [PHP-DEV] Re: References Problem Patch

2005-05-30 Thread Marcus Boerger
Hello Zeev, Monday, May 30, 2005, 5:21:00 PM, you wrote: > At 18:01 30/05/2005, Wez Furlong wrote: >>If we know the bug, and we have a fix, there shouldn't be anything >>stopping us from making a release. >>If this patch break binary compat, then the only logical move forward >>is a 4.4 branch an

Re: [PHP-DEV] Re: References Problem Patch

2005-05-30 Thread Marcus Boerger
Hello Sebastian, Monday, May 30, 2005, 7:42:27 PM, you wrote: > Rasmus Lerdorf wrote: >> Asking Joe Orton and the various other package maintainers from the >> major distros might be a good idea too. > If there were to be no PHP 4.4 release with the fix I think that we > would integrate the p

Re: [PHP-DEV] Summer of Code

2005-06-04 Thread Marcus Boerger
Hello David, we declined namespaces for a good reason, please search the mail archieve for them. However i also suggest you read the mail in the link below that suggests package support. Also you might contact: http://marc.theaimsgroup.com/?l=binarycloud-dev&m=105666989514486&w=2 Also you may w

Re: [PHP-DEV] PHP 5.1

2005-06-05 Thread Marcus Boerger
Hello Andi, Saturday, June 4, 2005, 7:58:13 AM, you wrote: > Hey, > There have been a lot of questions and discussion regarding status of PHP 5.1. > In the past few weeks, many have been fixing lots of bugs and PDO seems to > have reached a pretty stable state. > In parallel, a lot of work has b

Re: [PHP-DEV] PHP 5.1

2005-06-05 Thread Marcus Boerger
Hello Andi, Sunday, June 5, 2005, 9:13:52 PM, you wrote: > At 07:18 PM 6/5/2005 +0200, Marcus Boerger wrote: >>2) PHP is all about the putting out text so nearly all objects created in >>PHP are meant to put something onto the generated pages. Thus i think i am >>not alone t

Re: [PHP-DEV] incrementing boolean values

2005-06-05 Thread Marcus Boerger
Hello Derick, Sunday, June 5, 2005, 10:27:51 PM, you wrote: > On Sun, 5 Jun 2005, Johannes Schlueter wrote: >> Hi, >> >> PHP is a weak-typed language which casts in the background as required - at >> least most of the time. I recently found an exception which bugged me: >> >> $a = false; >>

Re: [PHP-DEV] PHP 5.1

2005-06-06 Thread Marcus Boerger
Hello Magnus, Monday, June 6, 2005, 6:41:49 PM, you wrote: > On Monday 06 June 2005 11.01, Christian Schneider wrote: >> Magnus Määttä wrote: >> > And the much needed goto for the next one (5.2/5.5/6.0 or >> > whatever it will be) ? >> >> Much needed? Matter of taste as lots of existing PHP code

Re: [PHP-DEV] PHP 5.1

2005-06-08 Thread Marcus Boerger
Hello Andi, i forgot to mention one major problem. The current implementation of extension dependency requires gnu-awk. If another awk implementation is being used to generate php then the result is an immediate segfaulting php binary. We should either make gawk checked by configure or rewrite t

Re: [PHP-DEV] PHP 5.1

2005-06-08 Thread Marcus Boerger
Hello Andi, Sunday, June 5, 2005, 9:13:52 PM, you wrote: > At 07:18 PM 6/5/2005 +0200, Marcus Boerger wrote: >>There are a few things i'd like to address before: >> >>4) I still want the ifsetor operator since it is very helpfull and again >>simplifies a lot of

Re: [PHP-DEV] abstract private methods

2005-06-09 Thread Marcus Boerger
Hello Nicolas, you didn't read carefully we weren't talking aabout abstarct class cname{ private function fname() } but instead of class cname { abstract private function fname() } or interface cname { private function fname() } Friday, June 10, 2005, 12:04:43 AM, you wrote: > For my part, I u

Re: [PHP-DEV] incrementing boolean values

2005-06-10 Thread Marcus Boerger
Hello Jaap, Friday, June 10, 2005, 10:01:10 AM, you wrote: > NULL comes from C I think and stands for an uninitialized > pointer. There is no other way to empty a pointer except > by using 'pointer=(*char)0;', using NULL is more clear. you shall never cast 0 to anything since 0 matches any pointe

Re: [PHP-DEV] Improving (?) PHP extension loading mechanism (was: Re: [PHP-CVS] cvs: php-src /ext/pdo pdo.c) (fwd)

2005-06-10 Thread Marcus Boerger
Hello Gareth, Friday, June 10, 2005, 3:07:21 PM, you wrote: > Jani Taskinen wrote: >> >> - Make it quicker. I haven't done any benchmarks but it's pretty >> obvious >> this does make the PHP startup slower.. > Ok, slower in what way - I mean, lets assume apache1.3 is being used > he

Re: [PHP-DEV] HEAD does not compile with GCC 4.0.1

2005-06-16 Thread Marcus Boerger
Hello Andi, they funnily added the ability to specify the compiler 'flavor'. Meaning you are able to specify how the compiler should treat your code in terms of c-spcs and compiler additions being used to spcifically force certain behavior of a certain version. Since we are developing against C9

Re: [PHP-DEV] PHP 5.1

2005-06-16 Thread Marcus Boerger
Hello Zeev, though the idea is nice and & does what we want here to a certain level it still doesn't allow to implement ifsetor() or coalesce() or any other flavor described here as proved by the following snippet: [EMAIL PROTECTED] ~ $ php -r 'function ifsetor(&$a, $def=false) { return isset(

Re: [PHP-DEV] PHP 5.1

2005-06-16 Thread Marcus Boerger
Hello Sebastian, how does this allow you to check for subscriptions? Are you going to write a subscription walker? Wouldn't that be the opposite of fast? marcus Tuesday, June 14, 2005, 3:45:33 PM, you wrote: > Robert Cummings wrote: >> [...] >> >> On that note, how comes there's a $GLOBAL a

Re: [PHP-DEV] PHP 5.1

2005-06-16 Thread Marcus Boerger
Hello Zeev, Thursday, June 16, 2005, 7:12:49 PM, you wrote: > Marcus, > If you read what I said in my emails on this topic, it's clear that I know > that this is the case. As I said, this approach has the side effect of > creating an empty placeholder if the variable to be checked doesn't > e

[PHP-DEV] Re: PHP 5.1 Beta 2 Status

2005-06-16 Thread Marcus Boerger
Hello Andi, Thursday, June 16, 2005, 3:08:18 AM, you wrote: > Hi, > Just to give a status update on PHP 5.1 Beta 2: > - PDO Fix (Wez has already given me the green light to go ahead). > I'm waiting to finalize the following: > - Date changes (Waiting for green light from Derick. I still saw som

[PHP-DEV] Problem with leak detection

2005-06-19 Thread Marcus Boerger
Hello internals, i just stumbled over a strange issue while testing. Some of my tests have exit(0) at the end for easier test verification. Now i found a new one that has a few memleaks but only reports them if i drop that exit(0) line. Is this something we need to fix (e.g. exit() omits leakage

Re: [PHP-DEV] Re: Problem with leak detection

2005-06-20 Thread Marcus Boerger
Hello Wez, i used linux so there seems to be a problem with either flushing or the fprintf not being called at all. regards marcus Monday, June 20, 2005, 10:55:43 PM, you wrote: > That should probably just be: > #if PHP_WIN32 > OutputDebugString(...); > #endif > fprintf(stderr, ...

Re: [PHP-DEV] PHP 5.1 Beta 2

2005-06-21 Thread Marcus Boerger
Hello Andi, current head with a few more exts all build in: = TIME END 2005-06-21 20:56:57 = TEST RESULT SUMMARY --

Re: [PHP-DEV] httpOnly Cookies [tiny enhancement]

2005-06-22 Thread Marcus Boerger
Hello Jochen, please resend your patch as unified patch (cvs di -u). marcus Thursday, June 23, 2005, 2:03:24 AM, you wrote: > Hi, > Internet Explorer 6 SP1 supports the cookie attribute "httponly" which > prevents reading cookies from JavaScript or the like. This can help to > mitigate XSS s

Re: [PHP-DEV] Problem with leak detection

2005-06-22 Thread Marcus Boerger
gt; there can be memory blocks which will not be 'properly' freed, and we have > to rely on the memory manager to free it. So the fact leaks are not shown > in case of exit() is intentional. > Zeev > At 05:19 20/06/2005, Marcus Boerger wrote: >>Hello internals, >&g

Re: [PHP-DEV] zend_object_handlers

2005-07-02 Thread Marcus Boerger
Hello herrwitten, i am quite sure your code is being called but it doesn't return a function pointer but instead return 0. To the engine that means the function is not available and hence it issues an error message. Maybe you want to provide and empty function and execute that instead? marcus

[PHP-DEV] Re: [PECL-DEV] Re: [PHP-DEV] zend_object_handlers

2005-07-02 Thread Marcus Boerger
always use the get_method handler. If you look through the extensions especially new ones like spl, pdo and language binding extensions you'll find enough examples on how to use it. regards marcus Saturday, July 2, 2005, 6:36:57 PM, you wrote: > On Jul 2, 2005, at 12:07 PM, Marcus Boerg

Re: [PHP-DEV] serialize extension objects?

2005-07-05 Thread Marcus Boerger
Hello David, wait for PHP 5.1 and use the Serializable interface. Otherwise ask on the general list for support. marcus Tuesday, July 5, 2005, 4:16:11 PM, you wrote: > I'm writing an extension for PHP 4 (running version 4.3.10) in C/C++. > The extension provides a set of classes to the PHP p

Re: [PHP-DEV] date/timezone classes

2005-07-08 Thread Marcus Boerger
Hello Derick, Friday, July 8, 2005, 2:31:14 PM, you wrote: > On Fri, 8 Jul 2005, Edin Kadribasic wrote: >> I would love to be able to do something like this: >> >> $d = new Date(time()); >> $d->month++; >> $d->print("Y-m-d"); // date() equiv. > Adding methods is no problem, that's what you get

Re: [PHP-DEV] date/timezone classes

2005-07-08 Thread Marcus Boerger
Hello Pierre-Alain, since we now have ext/date shouldn't we rename pecl/date to something different for easier integration? And i also do not know if we aren't running into problems later if two extensions have the same name. marcus Friday, July 8, 2005, 12:44:45 PM, you wrote: > On Fri, 8 Ju

Re: [PHP-DEV] is_callable and method_exists always true when __call is defined

2005-07-09 Thread Marcus Boerger
Hello Davey, if you ask me it is stupid to return true because __call exists since the user can pretty easy do that by adding one more check. But he can in no way query if the function really exists or not (well he can use reflection but that is thousand times slower...) regards marcus Saturda

Re: [PHP-DEV] date/timezone classes

2005-07-11 Thread Marcus Boerger
ndrei > On Jul 8, 2005, at 1:06 PM, Marcus Boerger wrote: >> Hello Derick, >> >> Friday, July 8, 2005, 2:31:14 PM, you wrote: >> >>> On Fri, 8 Jul 2005, Edin Kadribasic wrote: >> >>>> I would love to be able to do something like this: >>>

Re: [PHP-DEV] > Introduction

2005-07-19 Thread Marcus Boerger
Hello Weyert, look into Zend/*.l and Zend/*.y. Further more several things in php are done using re2c. SQLite uses its own stuff, lemon. And the engine uses a script zend_vm_gen.php to generate the engine code. Have fun by looking into all that stuff. marcus Tuesday, July 19, 2005, 8:46:19 PM,

Re: [PHP-DEV] [PATCH] Namespace Patch, Alpha 3

2005-07-19 Thread Marcus Boerger
Hello Jessie, Wednesday, July 20, 2005, 6:05:30 AM, you wrote: > Private class support has been completed in the attached patch! Again, to > reiterate from my last post, the attached patch is a CVS patch, as some > requested me to do. I could not add the test files to the patch because > "cvs add

Re: [PHP-DEV] [PATCH] Namespace Patch, Alpha 3

2005-07-21 Thread Marcus Boerger
Hello Jessie, Wednesday, July 20, 2005, 8:35:26 PM, you wrote: > "Marcus Boerger" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> Please don't add new ini settings here, living with include_path should be >> enough, wouldn't it? >

Re: [PHP-DEV] Re: static members of internal classes

2005-07-22 Thread Marcus Boerger
Hello Michael, sure but there's a difference Reflection whatever is only run during request time, what you want is running outside and require malloc rather than emalloc. Thursday, July 21, 2005, 4:30:59 PM, you wrote: > I wrote: >> I have some issues with static members of internal classes.

Re: [PHP-DEV] PHP standard depends on other extensions

2005-07-23 Thread Marcus Boerger
Hello Piotr, Friday, July 22, 2005, 8:41:28 PM, you wrote: > On Friday 22 of July 2005 19:56, Johannes Schlueter wrote: >> A build with spl statically compiled in is for me just a few k bigger than >> a build without spl. But building spl shared wouldn't work well for two >> reasons: It deals wit

Re: [PHP-DEV] [PATCH] Namespace Patch, Alpha 3

2005-07-25 Thread Marcus Boerger
Hello Alex, Monday, July 25, 2005, 11:48:33 PM, you wrote: > Hi Jessie, > first, while your patch applied cleanly (except zend_vm_opcodes.h, which > is generated) the build broke with: > bison -y -p zend -v -d > /mnt/home/alex/cvs/php-namespaces/Zend/zend_language_parser.y -o > Zend/zend_languag

Re: [PHP-DEV] [PATCH] Namespace Patch, Alpha 3

2005-07-26 Thread Marcus Boerger
Hello Jessie, i am quite sure it tells you that you have a conflict with the ternary operator. Look up the archives on the issue. There should also be an example on the matter. marcus Tuesday, July 26, 2005, 2:02:56 AM, you wrote: > Alex Kiesel wrote: >> Hi Jessie, >> >> first, while your p

Re: [PHP-DEV] [PATCH] Namespace Patch, Alpha 3

2005-07-26 Thread Marcus Boerger
Hello Jessie, Tuesday, July 26, 2005, 5:24:02 AM, you wrote: > Marcus Boerger wrote: >> >> You already have the ability to overload __autoload or provide several >> userspace __autoload functions that would be called one after another >> until the first succeeds. Wha

Re: [PHP-DEV] [PATCH] Namespace Patch, Alpha 3

2005-07-26 Thread Marcus Boerger
Hello Weyert, Tuesday, July 26, 2005, 10:04:28 AM, you wrote: > Hello, > How can I use the namespaces support, in such way that I can use with my > coding guideline? > interfaces -> interface.NAME.inc.php > classes -> class.NAME.inc.php > It doesn't seem it's possible now, because it's hard c

Re: [PHP-DEV] [PATCH] Namespace Patch, Alpha 3

2005-07-26 Thread Marcus Boerger
Hello Jessie, Tuesday, July 26, 2005, 5:50:35 PM, you wrote: > Hi Marcus, > "Marcus Boerger" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> >> > 3) Simply pass an extra argument (or pass an array or object as the > first >> >

Re: [PHP-DEV] [PATCH] Namespace Patch, Alpha 3

2005-07-26 Thread Marcus Boerger
Hello Jessie, Tuesday, July 26, 2005, 8:59:55 PM, you wrote: > "Marcus Boerger" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> Hello Weyert, >> >> Tuesday, July 26, 2005, 10:04:28 AM, you wrote: >> >> > Hello, >> >

Re: [PHP-DEV] [PATCH] Namespace Patch, Alpha 3

2005-07-26 Thread Marcus Boerger
Hello Alex, Tuesday, July 26, 2005, 11:54:02 PM, you wrote: > On Tue, 2005-07-26 at 10:10 +0200, Marcus Boerger wrote: >> > I still think the namespace import behavior should be separate from the >> > __autoload function. Of course, this is just me. What does everyone else

Re: [PHP-DEV] PHP 5.1 Release Candidate 1

2005-07-27 Thread Marcus Boerger
Hello Adam, "we accepted that availability of enough excuses to delay it further in the hope we never implement it :-)" To be honest, we all - obviously including you - forgot about the issue completley and only realized it during beta process. And for a thing that need so heavy testing sin

Re: [PHP-DEV] PHP 5.1 Release Candidate 1

2005-07-28 Thread Marcus Boerger
Hello Andi, during apacheCon EU it only needed a few more tweaks which should be done by now (john?). And i can only say it looks really great! But anyway it's sense is to produce more tests where we don't have any yet. And since writing tests requires a lot of work most people hate i guess we c

Re: [PHP-DEV] PHP 5.1 Release Candidate 1

2005-07-28 Thread Marcus Boerger
gt; up with some very good reasons why it's dangerous. Marcus just likes to > ignore them :) > At 10:51 PM 7/27/2005 +0200, Marcus Boerger wrote: >>Hello Adam, >> >> "we accepted that availability of enough excuses to delay it further >> in the hope

Re: [PHP-DEV] Re: Property Overloading RFC

2005-08-03 Thread Marcus Boerger
Hello Greg, Wednesday, August 3, 2005, 4:56:26 AM, you wrote: > Hi, > As for the first question of how to document virtual properties, I have > been recommending that users do this textually inside the docblock for > __get()/__set(). This is actually ideal in almost every case, as anyone > u

Re: [PHP-DEV] [PATCH] Namespace Patch, Beta 1

2005-08-03 Thread Marcus Boerger
Hello Jessie, what ever you want auto-of-the-box is good. I suggest the simplest possible way as default which is we simply stay like we are doing now and only include a replacement from ':' to the current directory separator. That we would be searching for '.inc' and '.inc.php' per default in t

Re: [PHP-DEV] [PATCH] Namespace Patch, Beta 1

2005-08-03 Thread Marcus Boerger
Hello Michael, i suffest that pear finally takes a better approach with the arrival of namespaces then the ugly workaround of '_'. If pear doesn#t want to i suggest pear simply writes it's own __autoload(). marcus Tuesday, August 2, 2005, 6:01:18 PM, you wrote: > Hi Jessie Hernandez, you w

Re: [PHP-DEV] Re: Property Overloading RFC

2005-08-04 Thread Marcus Boerger
Hello boots, Thursday, August 4, 2005, 6:29:51 AM, you wrote: > Derick Rethans wrote: >> Problems: >> 1. There is no way to document the 'virtual' properties with any of >>the existing documentation tools (such as phpdoc and doxygen) >> 2. There is no way how the magic methods know if a spec

Re: [PHP-DEV] Re: [PHP] Exceptions: function x throws Exception

2005-08-06 Thread Marcus Boerger
Hello Jochem, lookup the archieves. We have long ago decided agains that. marcus Friday, August 5, 2005, 2:26:04 PM, you wrote: > Dear Internals, > class FooBar { public function foo() throws Exception {} } > function fooFoo() throws Exception {} > this came up on php-generals and I

Re: [PHP-DEV] Any reasons for not making exif and sockets extensions dynamically loadable.

2005-08-06 Thread Marcus Boerger
Hello Kamesh, Saturday, August 6, 2005, 9:49:58 AM, you wrote: > Hi Jani, > In NetWare all extensions/sapis need the php5lib(Core php shared > library) which won't be available for these binaries to be linked > without the following lines(in PHP_SHARED_MODULE of acinclude.m4 we set > MODULE_SHARE

Re: [PHP-DEV] type hinting throwing a fatal error

2005-08-08 Thread Marcus Boerger
Hello Tobias, Monday, August 8, 2005, 3:35:28 PM, you wrote: > Hi Johannes Schlueter! > On 08/08/05 14:50 you wrote: The throw an Exception when SPL disabled and an InvalidArgumentException when it is enabled. >>>That's senseless when writing applications that shall be version >>>inde

Re: [PHP-DEV] type hinting throwing a fatal error

2005-08-08 Thread Marcus Boerger
Hello Derick, Monday, August 8, 2005, 3:09:06 PM, you wrote: > On Mon, 8 Aug 2005, Sebastian Bergmann wrote: >> Derick Rethans schrieb: >> > Throwing two different kinds of Exceptions is evil. >> >> Just as evil as allowing SPL to be disabled. > Not really. SPL is only for people that actuall

Re: [PHP-DEV] type hinting throwing a fatal error

2005-08-08 Thread Marcus Boerger
Hello Derick, Monday, August 8, 2005, 3:00:50 PM, you wrote: > On Mon, 8 Aug 2005, Johannes Schlueter wrote: >> On Monday 08 August 2005 15:04, Tobias Schlitt wrote: >> > > The throw an Exception when SPL disabled and an InvalidArgumentException >> > > when it is enabled. >> > >> > That's sens

Re: [PHP-DEV] Re: RC1, instanceof?

2005-08-08 Thread Marcus Boerger
Hello Michael, Monday, August 8, 2005, 6:26:30 PM, you wrote: > Hi Pierre-Alain Joye, you wrote: >> I can write a patch to "fix" it if we agree that the current >> behavior is not correct. > While you're at it, could you continue on fixing the following: > (another evidence that the current "ge

Re: [PHP-DEV] Improvement to test script 'bug22414'

2005-08-08 Thread Marcus Boerger
Hello Rob, just a short comment to everyone writing tests: never use ' Attached is a universal 'diff' that adds a crc32() check to the 'passthru' > test as well as an md5() test. This will help detect if there's a problem > with md5() or crc32() unless both are failing, which indicates a proble

Re: [PHP-DEV] type hinting throwing a fatal error

2005-08-08 Thread Marcus Boerger
Hello Andi, Monday, August 8, 2005, 11:33:16 PM, you wrote: > Hi all, > Finally caught up with this thread. > I can live with an exception being thrown for a type hint. I think calling > it InvalidArgumentException would make sense, and the fact that Marcus > "stole" :) that name for SPL and di

Re: [PHP-DEV] Improvement to test script 'bug22414'

2005-08-08 Thread Marcus Boerger
Hello Rob, Monday, August 8, 2005, 11:59:48 PM, you wrote: > Hello, > I didn't write the test, I just added code to check the crc32() values, the > rest is the original code. What should be used instead of ' curiousity? That's all I've ever used. You should use 'http://www.php.net/unsub.php

Re: [PHP-DEV] Re: [PATCH] Namespace Patch, Beta 2

2005-08-08 Thread Marcus Boerger
Hello Jessie, Tuesday, August 9, 2005, 4:36:41 AM, you wrote: > Classes that had uppercase letters were not being handled properly in > namespace imports. The attached patch has this fix (thanks Maxx!). Also, > the attached patch includes the default behavior of resolving > simple-imported class

Re: [PHP-DEV] Re: RFC: internal class' static properties

2005-08-09 Thread Marcus Boerger
Hello Michael, Tuesday, August 9, 2005, 2:19:25 PM, you wrote: > I wrote: >> Therefore I'd suggest changing that so that they'll be >> initialized and destructed for each request, which means >> that there will need to be some form of hooks, which > Let me change that part... :) > There's no n

Re: [PHP-DEV] PHP 5.5 or 6.0

2005-08-09 Thread Marcus Boerger
Hello George, Tuesday, August 9, 2005, 9:48:22 PM, you wrote: > On Aug 9, 2005, at 3:25 PM, Andi Gutmans wrote: >> I think Unicode warrants a major version. I'd go with PHP 6 and aim >> to release it before Perl 6 :) >> From judging by a Perl 6 talk we attended at OSCON, that might >> actua

Re: [PHP-DEV] GCOV

2005-08-09 Thread Marcus Boerger
Hello John, for the .re ones i could simply release re2c 0.9.10 and you use the new switch we especially made for that. If i knew we were going for 5.1 i had probably done that at OSCON but i didn't see any action required until just now. best regards marcus Tuesday, August 9, 2005, 10:44:01 P

Re: [PHP-DEV] GCOV

2005-08-09 Thread Marcus Boerger
Hello Nuno, that's also absolutley correct for most .re'S. Tuesday, August 9, 2005, 10:49:02 PM, you wrote: > Hi, > I've already had a change to test your patch (I've even have asked my > university for a server to put ithe reports on-line). > I've also came into this issue, which happens be

Re: [PHP-DEV] GCOV

2005-08-09 Thread Marcus Boerger
Hello Wez, just to remind you: you are the only one using an old unsupport version that doesn't come with -o. marcus Tuesday, August 9, 2005, 10:55:43 PM, you wrote: > JFYI: -o doesn't work on all versions of re2c > --Wez. > On 8/9/05, Nuno Lopes <[EMAIL PROTECTED]> wrote: >> Hi, >> >> I'v

Re: [PHP-DEV] GCOV

2005-08-09 Thread Marcus Boerger
around upgrading more than 20 machines. > --Wez. > On 8/9/05, Marcus Boerger <[EMAIL PROTECTED]> wrote: >> Hello Wez, >> >> just to remind you: you are the only one using an old unsupport version >> that doesn't come with -o. >> >> marcu

Re: [PHP-DEV] Re: RC1, instanceof?

2005-08-09 Thread Marcus Boerger
Hello Daniel, RTFM: try class_exists(..., false) marcus Wednesday, August 10, 2005, 12:38:49 AM, you wrote: > On Tue, Aug 09, 2005 at 02:07:27PM -0400, George Schlossnagle wrote: >> >> if(class_exists('MyFoo') && $obj instanceof MyFoo) { } > Unfortunately, class_exists() still calls __autol

Re: [PHP-DEV] Re: drastic memory consumption with a sequenceof exceptions

2005-08-10 Thread Marcus Boerger
Hello Ron, Wednesday, August 10, 2005, 8:47:25 AM, you wrote: > Okay Andi, the script in this message is as simple as it gets. I used a > syslog file to create a load of data in this case, but of course you can use > any (text) file for this. > #!/usr/bin/php5 >function process() > { >

  1   2   3   4   5   6   7   8   9   10   >