Re: [PHP-DEV] Re: __autoloading and functions

2006-09-11 Thread Terje Slettebø
> > In either of the above cases, you specify where a function belongs, both > > where it's defined, and where it's used (either through full qualification, > > or a shorter one, using "import"). I'm not arguing for a function to > > "magically" become a part of a class/module/whatever, if you thou

Re: [PHP-DEV] Re: __autoloading and functions

2006-09-11 Thread Terje Slettebø
>On 9/11/06, Terje Slettebø <[EMAIL PROTECTED]> wrote: >> Please, people: The availability of free (non-member) functions in PHP (as >> in C/C++) is one advantage it has over Java, where everything _has_ to be a >> class. So in Java, instead of being able to write "sqrt()", you have >> to write "Ma

RE: [PHP-DEV] SAPI EMBED Problems

2006-09-11 Thread Andi Gutmans
Is this a dual-core or a multi-CPU system? There was a race condition in tsrm_shutdown which has been fixed. Not sure if this fix is in 5.1.6. > -Original Message- > From: Brian Fertig [mailto:[EMAIL PROTECTED] > Sent: Monday, September 11, 2006 8:12 PM > To: internals@lists.php.net; php

Re: [PHP-DEV] SAPI EMBED Problems

2006-09-11 Thread Brian Fertig
I have enabled debugging and such.. Here is a spit out of bt from gdb #0 0x00501144 in ?? () #1 0x010f6578 in tsrm_shutdown () at /usr/src/docelmo/trunk/libs/php-5.1.6/TSRM/TSRM.c:180 #2 0x011c8759 in php_embed_shutdown (tsrm_ls=0x899e9d8) at /usr/src/docelmo/trunk/libs/php-5.1.6/sapi/embed/p

[PHP-DEV] CVS Account Request: shomas

2006-09-11 Thread Shoma Suzuki
Add new PEAR package HTML_TagCloud. http://pear.php.net/user/shomas http://pear.php.net/pepr/pepr-proposal-show.php?id=399 http://catbot.net/src/HTML_TagCloud-0.1.0.tgz -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: __autoloading and functions

2006-09-11 Thread Michael Walter
On 9/11/06, Terje Slettebø <[EMAIL PROTECTED]> wrote: Please, people: The availability of free (non-member) functions in PHP (as in C/C++) is one advantage it has over Java, where everything _has_ to be a class. So in Java, instead of being able to write "sqrt()", you have to write "Math::sqrt()"

Re: [PHP-DEV] Re: Tweaking "expects parameter # to be..." message

2006-09-11 Thread Marcus Boerger
Hello Andrei, for some reason i like "instance of class" better than "class object". The reason is that we have instances rather than objects - So it's a purist thing. best regards marcus Monday, September 11, 2006, 6:44:08 PM, you wrote: > How is "instance of" different from "object"? > -A

Re: [PHP-DEV] ibm_db2 documentation update.

2006-09-11 Thread Dan Scott
Hi KitMan: Anything other than a plain text attachment gets stripped from PHP mailing lists. So we can't see what you tried to send. And this is not the mailing list that you are looking for; you want the php-doc mailing list. Good luck! On 11/09/06, KitMan Cheung <[EMAIL PROTECTED]> wrote: H

Re: [PHP-DEV] ibm_db2 documentation update.

2006-09-11 Thread Sean Coates
> There is a missing function from the ibm_db2 driver documentation. I would > like to add this to the documentation package. This is my first try at > this, I hope this is done correctly. > If one of you kind folks can take a moment and add this to the > documentation, it would be greatly apprec

[PHP-DEV] ibm_db2 documentation update.

2006-09-11 Thread KitMan Cheung
Hi folks, There is a missing function from the ibm_db2 driver documentation. I would like to add this to the documentation package. This is my first try at this, I hope this is done correctly. If one of you kind folks can take a moment and add this to the documentation, it would be greatly appre

Re: [PHP-DEV] Re: __autoloading and functions

2006-09-11 Thread Stanislav Malyshev
> In either of the above cases, you specify where a function belongs, both > where it's defined, and where it's used (either through full qualification, > or a shorter one, using "import"). I'm not arguing for a function to > "magically" become a part of a class/module/whatever, if you thought so

[PHP-DEV] Re: [PATCH] mysqli interoperability

2006-09-11 Thread Evan Nemerson
It's been a while since I sent my original message, and nobody has replied, so I'm going to assume that I was simply too brief in my explanation (which, looking back, seems quite likely). Basically, I have a library, written in C, that uses a MySQL 5+ database. I've already written an extension fo

Re: [PHP-DEV] Re: __autoloading and functions

2006-09-11 Thread Terje Slettebø
> > Or "namespaces"... Or just plain "modules". Classes is not the only way to > > group things, and may not be the best (namespaces can typically be > > > Oh, of course it's not the only way. It's the only way native to PHP though. Yes. > > re-opened, so functions and classes belonging to a name

Re: [PHP-DEV] Re: __autoloading and functions

2006-09-11 Thread Stanislav Malyshev
> Or "namespaces"... Or just plain "modules". Classes is not the only way to > group things, and may not be the best (namespaces can typically be > Oh, of course it's not the only way. It's the only way native to PHP though. > re-opened, so functions and classes belonging to a namespace can spa

Re: [PHP-DEV] Re: __autoloading and functions

2006-09-11 Thread Terje Slettebø
> >> Maybe a dump question, but wouldn't it get considered only, AFTER PHP has > >> found that the function does not exist? > > Technically, this can be done - i.e. engine can be patched so that > instead of throwing an error or refusing the call it would call > appropriate function which would all

Re: [PHP-DEV] Re: Tweaking "expects parameter # to be..." message

2006-09-11 Thread Andrei Zmievski
How is "instance of" different from "object"? -Andrei On Sep 10, 2006, at 11:44 PM, Marcus Boerger wrote: Hello Hannes, with your changewe'd have: "Warning: token_get_all() expects parameter 1 to be binary string, stdClass object given in %s on line %d" i would like the followingmore:

Re: [PHP-DEV] Re: __autoloading and functions

2006-09-11 Thread Stanislav Malyshev
Maybe a dump question, but wouldn't it get considered only, AFTER PHP has found that the function does not exist? Technically, this can be done - i.e. engine can be patched so that instead of throwing an error or refusing the call it would call appropriate function which would allow for autolo

Re: [PHP-DEV] SAPI EMBED Problems

2006-09-11 Thread Steph Fox
Scratch that, not enough caffeine in the bloodstream :( Yes, of course it's under doze a more intelligent question would be 'which version of PHP are you using?' - Steph Is this crash under Windows perchance? Johannes Schlueter wrote: Not without code, backtrace, etc. johannes Brian

Re: [PHP-DEV] SAPI EMBED Problems

2006-09-11 Thread Stanislav Malyshev
I wrote an embedded application that can execute php scripts. When the script exits and I call the php_embed_shutdown() function it crashes. Can someone explain to me how I can keep this from happening? Without looking into the code, crash on shutdown frequently hints on one of the two: 1. Me

Re: [PHP-DEV] SAPI EMBED Problems

2006-09-11 Thread Steph Fox
Is this crash under Windows perchance? Johannes Schlueter wrote: Not without code, backtrace, etc. johannes Brian Fertig wrote: I wrote an embedded application that can execute php scripts. When the script exits and I call the php_embed_shutdown() function it crashes. Can someone explain to

Re: [PHP-DEV] RE: Multi-paradigm design (was: Re: [PHP-DEV] Re: __autoloading and ...

2006-09-11 Thread Rasmus Lerdorf
LAUPRETRE François (P) wrote: 4. I don't see why there would be a performance impact if the autoloading mechanism was extended to functions and constants. It is just a hook in the error handler and does not slow down the code for defined symbols. Anything that shifts things away from the compi

[PHP-DEV] RE: Multi-paradigm design (was: Re: [PHP-DEV] Re: __autoloading and ...

2006-09-11 Thread P
I agree. I don't understand why several people in the PHP team seem to consider that the future of PHP and any improvement we can propose must be exclusively object oriented. I really think that one of the biggest advantage of PHP against its competitors is its short learning curve, especiall

Re: [PHP-DEV] SAPI EMBED Problems

2006-09-11 Thread Brian Fertig
Johannes Schlueter wrote: > Not without code, backtrace, etc. > > johannes > > Brian Fertig wrote: >> I wrote an embedded application that can execute php scripts. >> When the script exits and I call the php_embed_shutdown() function >> it crashes. Can someone explain to me how I can keep this f

Re: [PHP-DEV] SAPI EMBED Problems

2006-09-11 Thread Johannes Schlueter
Not without code, backtrace, etc. johannes Brian Fertig wrote: I wrote an embedded application that can execute php scripts. When the script exits and I call the php_embed_shutdown() function it crashes. Can someone explain to me how I can keep this from happening? Brian -- PHP Interna

[PHP-DEV] SAPI EMBED Problems

2006-09-11 Thread Brian Fertig
I wrote an embedded application that can execute php scripts. When the script exits and I call the php_embed_shutdown() function it crashes. Can someone explain to me how I can keep this from happening? Brian -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http:/

[PHP-DEV] CVS Account Request: btekcan

2006-09-11 Thread Bulent Tekcan
Testing on high traffic board. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: __autoloading and functions

2006-09-11 Thread Michael Walter
On 9/11/06, Richard Quadling <[EMAIL PROTECTED]> wrote: One way in useerland to solve this is to use an error handler to identify non existant function calls and then use an appropriate mechanism to find them. You can't catch fatal errors. Regards, Michael -- PHP Internals - PHP Runtime Devel

[PHP-DEV] PHP 5 Bug Summary Report

2006-09-11 Thread internals
PHP 5 Bug Database summary - http://bugs.php.net Num Status Summary (583 total including feature requests) ===[*Configuration Issues] 37919 Open PHP doesn't read the configurations propertly ===

[PHP-DEV] PHP 4 Bug Summary Report

2006-09-11 Thread internals
PHP 4 Bug Database summary - http://bugs.php.net Num Status Summary (635 total including feature requests) ===[*Configuration Issues] 38670 Feedback Whole 4.4.x branch has problem with open_basedir option nested from Apache2

Re: [PHP-DEV] Re: __autoloading and functions

2006-09-11 Thread Richard Quadling
On 10/09/06, dAniel hAhler <[EMAIL PROTECTED]> wrote: Marcus Boerger wrote: > it hasbeendiscussed and the conclusion is that it isfar too much of a > slowdown for every function call and thus we are not going to implement > it. Maybe a dump question, but wouldn't it get considered only, AFTER