[PHP-DEV] sqlite_escape_string bug(?)

2005-12-12 Thread Ondrej Ivanič
Hi After server upgrade I was found this possible bug in sqlite_esacpe_string function: ?php echo sqlite_escape_string('test'); ? Output is: PHP Fatal error: Allowed memory size of 209715200 bytes exhausted (tried to allocate -1962934272 bytes) in /home/ondrej/test.php on line 3

Re: [PHP-DEV] Request for Threads or SRM

2005-11-26 Thread Ondrej Ivanič
Sara Golemon wrote: Is anyone working on something like this already? I don't known what you exactly meaning, but I'm playing with 'The Spread Toolkit' [1] a their PECL interface [2]. I was started research phase of project only. The goal of my work is to create sessions handling across

Re: [PHP-DEV] Re: zval passthrough?

2005-10-10 Thread Ondrej Ivanič
David Olsson wrote: malloc to allocate memory. This means that my memory allocations using c++ new should allocate persistent memory chunks. So the persistent/non-persistent memory issue doesn't explain why my std::map simply is empty. The fact that it contain zval pointers pointing to

Re: [PHP-DEV] generate a notice for bogus function calls

2005-09-19 Thread Ondrej Ivanič
Nuno Lopes wrote: ? function a($b) {} a(1,2,3); ? PHP accepts this and generates no errors. My purpose is to start generating an E_NOTICE, just like we do for not yet initialized variables. No, stupid output! Generating E_NOTICE is not a good idea. You don't need to create functions with

Re: [PHP-DEV] Reference handling change and PHP 4.4.0

2005-09-16 Thread Ondrej Ivanič
Hi I was lost in this thread. Could someone post resume from this discussion? How can I deal with this in 4.3, 4.4, 5+? Thanks -- Ondrej Ivanič ([EMAIL PROTECTED]) -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] namespaces (Re: [PHP-DEV] 5.1.0RC2)

2005-09-14 Thread Ondrej Ivanič
Yes, this is a right task for a namespaces. What is current status of a patch? It will be included? -- Ondrej Ivanič ([EMAIL PROTECTED] -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] PHP6, Unicode for language functions, classes, methods, vars names

2005-09-13 Thread Ondrej Ivanič
Pierre Joye wrote: is not something I like to see. For language constructs, I would really like to have only ASCII support... This suff works in php4,5: ?php function zmaž($čozmazať) { echo mažem $čozmazať\n; } zmaž(3); ? IMHO, if someone need ... -- Ondrej Ivanič ([EMAIL

Re: [PHP-DEV] PHP6, Unicode for language functions, classes, methods, vars names

2005-09-13 Thread Ondrej Ivanič
Pierre Joye wrote: On 9/13/05, Ondrej Ivanič [EMAIL PROTECTED] wrote: IMHO, if someone need ... I know, that's why I say: PHP6. Another constraint? why? 1) It's a BC break (... which impact 1 or 2 users? :) ) 2) PHP can be scripting engine in learning programs for children ( like

Re: [PHP-DEV] PHP 5.1

2005-08-31 Thread Ondrej Ivanič
Jani Taskinen wrote: On Tue, 30 Aug 2005, Andrei Zmievski wrote: On Aug 30, 2005, at 10:30 AM, Rasmus Lerdorf wrote: Also, I see the following 6 failed test cases on my Linux box: -Bug #16069 [ext/iconv/tests/bug16069.phpt] According to the last two comments in that bug report, glibc

Re: [PHP-DEV] PHP Unicode support design document

2005-08-16 Thread Ondrej Ivanič
Andrei Zmievski wrote: + Determining length of Unicode strings via strlen() function, some simple string functions ported (substr). It's not a problem to determine kind of char in single byte character sets, but in the unicode with various encoding schemas I don't see easy way how

[PHP-DEV] shared memory (Re: [PHP-DEV] PHP 6.0 Wishlist)

2005-08-14 Thread Ondrej Ivanič
Al Baker wrote: An embedded opcode cache I think is also essential and the surrounding $_MEMORY sounds perfect to me. All Java guys (yeah I know PHP != Java) say PHP isn't ready for the enterprise because it can't share information between processes other than arcane sessions. Having PHP

Re: [PHP-DEV] shared memory (Re: [PHP-DEV] PHP 6.0 Wishlist)

2005-08-14 Thread Ondrej Ivanič
pecl/apc has apc_store/apc_fetch: http://livedocs.phpdoc.info/index.php?l=enq=function.apc-store I know about APC, but IMHO I can't use it. On webservers are Zend Optimizer or mmcache (eAccelerator now) used. -- Ondrej Ivanic ([EMAIL PROTECTED]) -- PHP Internals - PHP Runtime Development

Re: [PHP-DEV] PHP 6.0 Wishlist

2005-08-14 Thread Ondrej Ivanič
Jani Taskinen wrote: If apc comes bundled then it includes apc_store() and apc_fetch() this is pretty much $_MEMORY with a few tweaks. Yes, but that is restricted to one server installations. I need such a 'global session' that is available with multiple front-end servers..ie.

Re: [PHP-DEV] PHP 6.0 Wishlist

2005-08-13 Thread Ondrej Ivanič
Hi 1. Remove register_globals completely 2. Remove magic_quotes_* 3. Add input filter extension which will include a mechanism for application developers to very easily turn it off which would swap the raw GPC arrays back in case the site had it turned on by default. 4. Include an

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

2005-08-08 Thread Ondrej Ivanič
Derick Rethans wrote: Does that mean you want more opinions? :) Throw an InvalidArgumentException from SPL... -- Ondrej Ivanic ([EMAIL PROTECTED]) -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

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

2005-08-08 Thread Ondrej Ivanič
Jani Taskinen wrote: without SPL. At the end of the day i'd even like to drop reflection support from the engine and move it to a specialized extensions - again - for speed/memory reasons. YES PLEASE! I've absolutely no use for it, and I really really need every bit of

Re: [PHP-DEV] Property Overloading RFC

2005-08-02 Thread Ondrej Ivanič
Derick Rethans wrote: Hello! we're finding some problems with property overloading (__get() and __set()). Here is an RFC describing what we'd like to see changed. Please comment on this. Introduction: PHP currently supports property overloading with the magic functions __get() and __set().

Re: [PHP-DEV] Introduction

2005-07-19 Thread Ondrej Ivanič
Weyert de Boer wrote: My first question to start my fame on this list is, does anyone on this list happen to have the grammar of PHP language? I think, you can start with zend_language_parser.y in Zend subdirectory in tar ball. Rules in section 'Rules' :) can be easy rewritten into BNF or

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

2005-06-26 Thread Ondrej Ivanič
Jochen Hansper wrote: The indexed array 'parameters' is expected to be: array( {int|string} expires [, string path [, domain [, bool secure [,bool httponly ) Why not like this? array( 'expires' = ..., 'path' = ..., 'domain = ..., 'secure' = ...,

Re: [PHP-DEV] PHP 5.1

2005-06-13 Thread Ondrej Ivanič
Jason Garber wrote: ifsetor is NOT input filtering, it is not a complex, general purpose stuff like 'ifsetof()' is good when is use as: $x = ifsetor($ANY_var, 'Default Value'); but too many times I need additional checks like this: $x = isset($_REQUEST['x']) is_number($x) ?

Re: [PHP-DEV] PHP 5.1

2005-06-07 Thread Ondrej Ivanič
Magnus Mtt wrote: I don't see how putting a name on the number makes it any better and I still would have to emulate it with loops and breaks and continues, unless it's actually a code word for goto ;) your code with named breaks/continues: continue_label: for (...; ...; ...) {

Re: [PHP-DEV] PHP 5.1

2005-06-07 Thread Ondrej Ivanič
Zeev Suraski wrote: damage than good. And the fact we may have made mistakes in the past and have unnecessary constructs already, doesn't mean we should do it again. Yes, PHP is on the right way. PHP is on the begin of moving from functional to full 00 code. IMHO in 00 code there isn't place

Re: [PHP-DEV] PHP 5.1

2005-06-07 Thread Ondrej Ivanič
Andrey Hristov wrote: WTF?!? If you need Java, then go use Java. If you want String object, do it yourself. Some people need goto, some people need phpjava, it's life. It's was my wishlist and I like php as is. I can't implement this features by myself. It's to hard for me create php

Re: [PHP-DEV] PHP 5.1

2005-06-06 Thread Ondrej Ivanič
Jani Taskinen wrote: And the much needed goto for the next one (5.2/5.5/6.0 or whatever it will be) ? I've found a lot of cases where this would have been nice to have and simplified the code too.. So +1 from me. (wasn't there a patch for this already somewhere?) When I move

Re: [PHP-DEV] PHP 5.1

2005-06-06 Thread Ondrej Ivanič
Derick Rethans wrote: I think, better (cleaner) way is extend 'break' and 'continue' to accept string as label name in local scope. (like java :)). Implement 'goto' with possibility to jump anywhere is a step backwards... It's exactly the same as break label... goto can only jump in the

Re: [PHP-DEV] PHP 5.1

2005-06-06 Thread Ondrej Ivanič
Ilia Alshanetsky wrote: Any feature can and as experience proves it to be the case, will be abused. Plenty of people make horrid abuse of exceptions, but we still went ahead an added them anyway since they have many practical and useful applications. Same is true for goto, some people will