Re: [PHP-DEV] Deprecate array()

2015-03-03 Thread Andrey Hristov
On 3.03.2015 19:10, Adrian Parker wrote: Seeing it makes me vomit, IMHO. Great introduction! This is just a proposal, I know next to nothing about core PHP development. https://www.simonholywell.com/post/2010/09/15-excellent-resources-for-php-extension-development.html Enjoy! Regard

Re: [PHP-DEV] Voting irregularities

2015-03-16 Thread Andrey Hristov
On 16.03.2015 01:08, Jordi Boggiano wrote: On 15/03/2015 22:27, Derick Rethans wrote: On Sun, 15 Mar 2015, Zeev Suraski wrote: I don't think it's going to far, if you have people with no clue writing this: https://plus.google.com/+KristianK%C3%B6hntopp/posts/ijoDNH2M8mB Do you know who Kris

Re: [PHP-DEV] Re: HTTP/2 and Websocket support in 7.x versions

2015-03-31 Thread Andrey Hristov
Hi, On 31.03.2015 17:40, Daniel Lowrey wrote: On Tue, Mar 31, 2015 at 10:11 AM Grégory Planchat wrote: Le 31/03/2015 15:56, Daniel Lowrey a écrit : HTTP/2 is entirely outside the scope of the PHP web SAPI as it currently exists. The protocol impacts the actual HTTP server and has nothing to

Re: [PHP-DEV] Re: HTTP/2 and Websocket support in 7.x versions

2015-03-31 Thread Andrey Hristov
On 31.03.2015 18:26, Rowan Collins wrote: Andrey Hristov wrote on 31/03/2015 16:02: Currently in MT environment the task of data separation is pushed to the TSRM by using TLS. Now, if TSRM is reimplemented in a fashion that the data is not stored by using TLS but other mechanism and cooperative

Re: [PHP-DEV] Re: HTTP/2 and Websocket support in 7.x versions

2015-03-31 Thread Andrey Hristov
On 1.04.2015 00:31, Rowan Collins wrote: On 31 March 2015 21:23:56 GMT+01:00, Andrey Hristov wrote: So, if Zend can be optimized to quickly clean the execution environment, and easily switch between them, we can have a giant leap towards concurrent non-blockable PHP. The idea is simple - the

[PHP-DEV] [PATCH] Tick functions (on C level) with state

2015-04-07 Thread Andrey Hristov
Hi, I would like to hear comments about a small change to the low-level tick functionality (main/php_ticks.c) to add state to when calling a C tick function The patch is alive at : http://pastebin.com/0zhVNxaY Currently a C tick function gets as a parameter just the number of ticks, and can'

[PHP-DEV] Re: [PATCH] Tick functions (on C level) with state

2015-04-07 Thread Andrey Hristov
be added too (but I don't have it my PoC). Hope this helps to enlighten my intentions. Best, Andrey Thanks. Dmitry. On Tue, Apr 7, 2015 at 4:43 PM, Andrey Hristov mailto:p...@hristov.com>> wrote: Hi, I would like to hear comments about a small change to the low-level ti

Re: [PHP-DEV] [Windows] Error Building PHP 5.4 NTS Debug Version, mysqlnd

2012-01-22 Thread Andrey Hristov
Hi Pierre, On 01/22/2012 12:37 PM, Pierre Joye wrote: hi, Can reproduce it now, can you open a bug please and assign it to mysql? The problem is due to TSRMLS_FETCH being called at the wrong place. I'm not sure how they want it but ideally it should in the DBG macro already. called at the wr

Re: [PHP-DEV] Expose mysqlnd API through all MySQL extensions

2012-04-24 Thread Andrey Hristov
Hi, On 04/24/2012 03:32 PM, jpauli wrote: On Tue, Apr 24, 2012 at 2:34 PM, Ulf Wendel wrote: Am 24.04.2012 14:27, schrieb jpauli: I understand your thoughts, but I disagree as I think it would be much more clean to expose it via mysqlnd_***() API than through each MySQL ext (and for PDO that

Re: [PHP-DEV] shared mysqlnd extension ...

2012-08-20 Thread Andrey Hristov
On 08/20/2012 11:52 PM, Lester Caine wrote: Having now got mysql running on the PHP5.4.3 machine, I'm trying to compile mysqlnd and mysqli as extensions to load and unload as required. php_mysqlnd_config.h no longer exists, but why is the config file named config9.m4 rather than config.m4? What

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

2005-03-25 Thread Andrey Hristov
well said Johannes! Johannes Schlueter wrote: Jared Williams wrote: my point is that on internals@ we usually discuss developing php and not developing *with* php - Poor practices and insecure code should never go unchallenged anywhere, unless its cleared marked as such. As Thies wrote: This list

Re: [PHP-DEV] PHP 5.0.4 PEAR issue

2005-04-02 Thread Andrey Hristov
Hartmut Holzgraefe wrote: Derick Rethans wrote: On Fri, 1 Apr 2005, Mike Robinson wrote: Would 5.0.4pl1 be inappropriate? Yes, as we decided not to do that anymore and it looks "bad". well, something bad has happened, so what? ;) better than the potential confusion IMHO and AFAIK version_compar

Re: [PHP-DEV] __autoload() enhancement

2005-04-03 Thread Andrey Hristov
Zeev Suraski 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 treated like any other function, so it's impo

Re: [PHP-DEV] __autoload() enhancement

2005-04-03 Thread Andrey Hristov
Zeev Suraski 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 treated like any other function, so it's impo

Re: [PHP-DEV] __autoload() enhancement

2005-04-03 Thread Andrey Hristov
Zeev Suraski wrote: At 15:18 03/04/2005, Andrey Hristov wrote: Hi Zeev, the idea one __autoload() may not be capable of loading therefore the next one in the chain should be executed to try to load/define the needed code. bool(false) returned from __autoload() means try with the next in the

Re: [PHP-DEV] Compiling a new library

2005-04-04 Thread Andrey Hristov
Michel JORDA wrote: Hi everybody I Have to compile a library (namely, a payment library) and the bank release a .c source. Therefore I need to make and compile it, but they mention that "you need to install the php-devel package in order to compile"... what should I download - on my macosx - and

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

2005-04-04 Thread Andrey Hristov
Stanislav Malyshev wrote: GB>>I meant a logic error - as in the user forgot to use a GB>>DIRECTORY_SEPARATOR and so can't find any of the classes, not an GB>>obvious PHP error. OK - then how exactly you want the error message look like? How the engine is going to guess if it was DIRECTORY_SEPARATO

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

2005-04-05 Thread Andrey Hristov
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 any 'stack' since they do not call each one. Stanislav, a stack is a list and

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

2005-04-05 Thread Andrey Hristov
Marcus Boerger wrote: 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 n

Re: [PHP-DEV] Compiling a new library

2005-04-05 Thread Andrey Hristov
your help Michel Andrey Hristov <[EMAIL PROTECTED]> wrote: Michel JORDA wrote: > Hi everybody > I Have to compile a library (namely, a payment library) and the bank > release a .c source. Therefore I need to make and compile it, but they > mention that > "you need to insta

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

2005-04-06 Thread Andrey Hristov
Marcus Boerger wrote: 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

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

2005-04-06 Thread Andrey Hristov
Andrey Hristov wrote: Marcus Boerger wrote: 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

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

2005-04-06 Thread Andrey Hristov
Hi all, I have cooked up a patch that gives the possibility to use not only an object but a string value with class_implements() and class_parents() which are part of ext/spl. Unified diff: http://andrey.hristov.com/projects/php_stuff/patches/class_parents_implements.patch.txt Source snippet: http

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

2005-04-08 Thread Andrey Hristov
Hi Marcus, what about class_constant_exists("classname", "const") (a bit long function name though)? Andrey Marcus Boerger wrote: helly Fri Apr 8 09:33:17 2005 EDT Modified files: /ZendEngine2 zend_builtin_functions.c Log: - Add property_exits() http://cvs.p

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

2005-04-08 Thread Andrey Hristov
Hello Marcus, ok, I will try to cook up something but this time I won't be so fast since I have some pending commercial :) stuff. Andrey Marcus Boerger wrote: 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

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

2005-04-08 Thread Andrey Hristov
Hello Andi, Marcus, method_exists() is quite vital to help where the type hinting fail. Type hinting fail because it leads to a fatal error which is uncatchable and the code cannot react on this. Therefore, for me type hinting is kind of useless since I cannot catch my bugs by executing some code

[PHP-DEV] Stacktrace on fatal error (inspired my property_exists() discussion)

2005-04-08 Thread Andrey Hristov
Hi all, since long time ago I feel like disabled when a complex script dies with a fatal error, for example call on sth which is not an object and the only thing I get in the error log is the line it has happened. Without any logging facility running all the time and logging megabytes of data, mos

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

2005-04-08 Thread Andrey Hristov
Hi Andi, I am not a Refl API guru, but for the simple check of method_exists() one has to create one object and then iterate a result set. The other solution is get_class_methods() which again returns an array which has to be used only once - let's say with in_array(). in_array() is a bit slow bec

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

2005-04-08 Thread Andrey Hristov
we need to add yet another _exists() function for something which is easily done. Andi At 05:12 PM 4/8/2005 +0200, Andrey Hristov wrote: Hello Marcus, ok, I will try to cook up something but this time I won't be so fast since I have some pending commercial :) stuff. Andrey Marcus Boerg

[PHP-DEV] Re: [PHP-CVS] cvs: php-src / NEWS /ext/standard basic_functions.c basic_functions.h

2005-04-10 Thread Andrey Hristov
Hi Ilia, when I saw this commit I gazed half a minute to understand why there is a time_ in front. Later I realized that you have introduced a namespace for time functions. This is a good idea still the name is a bit confusing IMO :) Also I saw that you have added quite a long ago time_nanosleep(

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php-src / NEWS /ext/standard basic_functions.c basic_functions.h

2005-04-10 Thread Andrey Hristov
Ilia Alshanetsky wrote: Andrey Hristov wrote: Because both functions are in HEAD and still the API is not released I would appreciate if time_nanosleep() is renamed to nanosleep(). time_sleep_until() "emulate" a system function but uses it and in this case maybe the name may stay th

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php-src /ext/standard md5.c sha1.c

2005-04-15 Thread Andrey Hristov
Uwe Schindler wrote: We can left that out. The flag to search in the include path is available to all file_* functions in PHP. Make it sense to search in the include path for example in the exif-functions? But this parameter is available there, too. So for consistency I added this parameter. At

Re: [PHP-DEV] named parameters?

2005-04-18 Thread Andrey Hristov
Derick Rethans wrote: On Mon, 18 Apr 2005, Hendy Irawan wrote: Does anybody want named parameters? These are handy as template functions (like in Smarty), and these are achievable since the oldest PHP by using associative arrays. It's purely syntactic sugar, but it's a very convenient thing I gues

[PHP-DEV] Re: [PHP-CVS] cvs: php-src /ext/ncurses ncurses_functions.c

2005-04-18 Thread Andrey Hristov
lease nuke that... Thanks, Andi At 11:38 PM 4/16/2005 +0200, Andrey Hristov wrote: Hi Andi, last time I checked with 5.1 I was getting sth like resource(%d) of Unknown type Which leads me to think that the user may pass the resource to a function and it will greacefully go th

Re: [PHP-DEV] Re: == and ===

2005-04-18 Thread Andrey Hristov
Hi, don't forget that PHP was made for web programming and in this world you get from the user the input only as string therefore (nothing, false) >> Quite ok I will say. Nobody can enter '0' and pass through the check. 1 >> You don't cast the passwords, don't you? One more thing, consider creat

Re: [PHP-DEV] Re: [mail] Re: [PHP-DEV] Re: Attributes support proposal

2005-04-27 Thread Andrey Hristov
Hi, Duncan McIntyre wrote: On Wednesday 27 April 2005 2:19 pm, Zeev Suraski wrote: At 16:58 27/04/2005, Duncan McIntyre wrote: I remember similar arguments being made about most of the new OO features in PHP5. Out of interest, how is this more bloated than storing doc comments in memory? It's feat

Re: [PHP-DEV] PHP_5_0 build failure

2005-04-29 Thread Andrey Hristov
Sebastian Bergmann wrote: c:\home\php\php-5.0\ext\mysqli\mysqli.c(390): error C2039: 'multi_query' : is not a member of '_zend_mysqli_globals' c:\home\php\php-5.0\ext\mysqli\php_mysqli.h(376): see declaration of '_zend_mysqli_globals' Fixed. Thanks! -- PHP Internals - PHP Runtime Development Ma

Re: [PHP-DEV] HEAD build failure

2005-04-29 Thread Andrey Hristov
Sebastian Bergmann wrote: Sebastian Bergmann wrote: c:\home\php\php-5.1\Zend\zend_object_handlers.c(160): error C2275: 'ulong': illegal use of this type as an expression c:\home\php\php-5.1\Zend\zend_config.w32.h(43): see declaration of 'ulong' c:\home\php\php-5.1\Zend\zend_object_handlers.c(160):

Re: [PHP-DEV] Re: Fw: win32 build broken

2005-05-13 Thread Andrey Hristov
In process of resolving - will be fixed quite soon. Andrey Rob Richards wrote: It's the mysqli extension due to this commit: http://news.php.net/php.cvs/31779 and the addition of my_global.h mysql config-win.h include has too many conflicting defines with TSRM, ZEND and PHP. cc'd Georg. Rob Seb

Re: [PHP-DEV] PHP 5.1

2005-06-05 Thread Andrey Hristov
Quoting Ilia Alshanetsky <[EMAIL PROTECTED]>: Yes, Sara made a patch for it.. http://pecl.org/patches/opcode_goto_5.1.0.diff I don't know if this is the latest one or not. +1 for the goto patch in 5.1 Ilia -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http:/

Re: [PHP-DEV] PHP 5.1

2005-06-06 Thread Andrey Hristov
Quoting Stanislav Malyshev <[EMAIL PROTECTED]>: IA>>Most common solution people choose to emulate exceptions often ends up being IA>>recursive functions, those as well know in many instances result in crashes. Eh? Only case I know when recursion may result in crash is if it's endless recursio

Re: [PHP-DEV] PHP 5.1

2005-06-06 Thread Andrey Hristov
Quoting Rasmus Lerdorf <[EMAIL PROTECTED]>: Personally I am quite ambivalent about adding goto. What I am not ambivalent about is adding anything that will be a nightmare to support. If the goto patch can be done in such a way that there is absolutely no way that it will cause weird stack corr

Re: [PHP-DEV] PHP 5.1

2005-06-07 Thread Andrey Hristov
Quoting Nelson Menezes <[EMAIL PROTECTED]>: > Goto is a plainly bad idea. Yes it has its uses, but 99% of > the time it would just be completely, mercilessly, utterly abused. Its not good or bad, just a language construct. Its how you use it. I agree. I just think it will be used badly in mos

Re: [PHP-DEV] PHP 5.1

2005-06-07 Thread Andrey Hristov
Quoting Stanislav Malyshev <[EMAIL PROTECTED]>: EK>>number on the ratio of abuse vs. use of this new feature. So far, I personally saw one legitimate use brought up - exiting control blocks, which can be handled with another proposal, labeled breaks. Another use brought up - claim that parsers

Re: [PHP-DEV] PHP 5.1

2005-06-07 Thread Andrey Hristov
Quoting Stanislav Malyshev <[EMAIL PROTECTED]>: AH>>Does C suffer from having goto? Does C suffer from being able to freely convert any type to any and access any memory location? Should we add these features too? -- The first one we already have - you can convert from every to every type. My

Re: [PHP-DEV] PHP 5.1

2005-06-07 Thread Andrey Hristov
Quoting Ondrej Ivani? <[EMAIL PROTECTED]>: 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

Re: [PHP-DEV] HEAD does not link on Win32

2005-06-13 Thread Andrey Hristov
bzero() is a function exported by libmysql. Andrey Andi Gutmans wrote: Seems to be due to Ilia's latest patch. Ilia, can you please change to memset()? Thanks, Andi At 07:16 AM 6/14/2005 +0200, Sebastian Bergmann wrote: network.obj: error LNK2019: unresolved external symbol _bzero referen

Re: [PHP-DEV] forward compatibility "public" in 4.4

2005-06-15 Thread Andrey Hristov
Lukas Smith wrote: Stanislav Malyshev wrote: I wonder what was the original purpose of PHP5 emitting warning when seeing 'var'? What are you basically saying now is "I want PHP4 code that wouldn't have messages on my class vars if run in PHP5". But I'm sure there was some idea behind these wa

Re: [PHP-DEV] PHP 5.1 Beta 2

2005-06-21 Thread Andrey Hristov
Andi Gutmans wrote: Hi, You can reach Beta 2 at http://snaps.php.net/~andi/ If there are no surprise show stoppers I'll put it live tomorrow evening. Andi SuSE 9.1 (9.2 packages) ./configure --disable-cgi --enable-cli --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_co

Re: [PHP-DEV] Win32 php4ts.dll 875k Larger in 5.1?

2005-06-27 Thread Andrey Hristov
Should it be named php4ts? Andrey Quoting DvDmanDT <[EMAIL PROTECTED]>: Should those really be built into php4ts.dll? "Derick Rethans" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] On Tue, 28 Jun 2005, Jani Taskinen wrote: 1.6MB timezonedb.h in ext/date/lib/ would be

Re: [PHP-DEV] allow_url_fopen should be INI_ALL

2005-06-29 Thread Andrey Hristov
Russell Nelson wrote: Derick Rethans writes: > On Wed, 29 Jun 2005, Sara Golemon wrote: > > Only intrinsicly safe if you've read the manual page to know that > > badstring should have been null terminated. Oh, don't get me started on C's null-terminated strings! > Stop feeding the troll pl

[PHP-DEV] Deficiency in pdo_mysql driver

2005-07-09 Thread Andrey Hristov
Hi all, I decided to take a look at the MySQL PDO driver just to help with 2 more eyes looking at the code. I spotted one problem which already hit mysqli (bug #32013). The problem is that when binding result sets libmysql use optimistic approach and gives back not the maximal length of the data

Re: [PHP-DEV] Object comparison

2005-07-09 Thread Andrey Hristov
André Luis Ferreira da Silva Bacci wrote: Hi, I was in a discuss about PHP's features vs Python's features these days and gat down in this BC: http://bugs.php.net/bug.php?id=33626 Does it ring any bell to anyone? []s André AE In PHP4 an object was a value type in PHP5 it is a handle and

Re: [PHP-DEV] Problem updating CVS HEAD

2005-08-04 Thread Andrey Hristov
Pasha Zubkov wrote: Derick Rethans wrote: It's a CVS problem - it doesn't resolve repository links with upd, only on checkout. Derick Maybe sputid question, but why PHP stil use CVS instead of SVN? Because CVS works and ppl are so far happy with it Andrey -- PHP Internals - PHP Runtim

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

2005-08-08 Thread Andrey Hristov
Hmm, I was complaining about inusaability ot type hinting because of this fatal errors but nobody seems heard me :(. One better do a check in the code than risking a fatal error which is unstoppable... I call this showstopper if we say that we are proud with the type-hinting. Andrey Quoting De

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

2005-08-08 Thread Andrey Hristov
Derick Rethans wrote: On Mon, 8 Aug 2005, Andi Gutmans wrote: As far as implementation is concerned, it definitely should wait for after PHP 5.1 and the patch should deal with the hard parts which are internal functions and overloaded functions. Implementing this for user-functions is the easi

Re: [PHP-DEV] PHP 5.5 or 6.0

2005-08-09 Thread Andrey Hristov
Quoting Weyert de Boer <[EMAIL PROTECTED]>: Hi I'm not sure what you guys are discussing here, but it's definitely not up to any non-contributor to decide which version number we pick. And making it dependable on whether some patch goes in or not doesn't make sense at all. Such a kind way

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

2005-08-10 Thread Andrey Hristov
I concur! Andrey Tobias Schlitt wrote: Hi Zeev Suraski! On 08/10/05 17:30 you wrote: I think that throwing exceptions in all sorts of places encourages people to write 'exception-oriented' apps, which is very messy. Sorry, but I consider that statement wrong. We are still talking about P

[PHP-DEV] [PATCH] debug_get_object_handle

2005-08-10 Thread Andrey Hristov
Hi all, I have cooked a patch that adds a function named debug_get_object_handle() which returns the handle id of an object. Having a function like this makes devs' live easier - no need to parse the output of var_dump(). The patch is available here: http://hristov.com/andrey/projects/php_stuff/p

Re: [PHP-DEV] PHP 6.0 Wishlist

2005-08-12 Thread Andrey Hristov
+1 from here too except 0 for the case sensitivity. Andrey Rasmus Lerdorf wrote: Since we are breaking a lot of stuff in 6.0, at least with Unicode_semantics=On I am wondering if it may not be time to break some more stuff and do a bit of spring cleaning. It would mean many apps would need so

Re: [PHP-DEV] Re: PHP 6.0 Wishlist

2005-08-13 Thread Andrey Hristov
Christian Schneider wrote: Rasmus Lerdorf wrote: 4. Include an opcode cache by default. A lot of work has gone into pecl/apc recently, but I am not hung up on which one goes in. Big +1 9. Named parameters. Preferred way would be via array()-less array collation as we are already using

Re: [PHP-DEV] Re: php-src /ext/com_dotnet com_handlers.c com_variant.c

2005-08-13 Thread Andrey Hristov
Just my $0.02, for the MS compilers wchar_t is 2 bytes while for gcc it is 4. Andrey Wez Furlong wrote: "the fundamental representation of text in Windows NT-based operating systems is UTF-16, and the WCHAR data type is a UTF-16 code unit" So, it looks like we don't need to do anything speci

Re: [PHP-DEV] Re: PHP 6.0 Wishlist

2005-08-13 Thread Andrey Hristov
George Schlossnagle wrote: On Aug 13, 2005, at 11:46 AM, Matthew Weier O'Phinney wrote: * Christian Schneider <[EMAIL PROTECTED]> : 9. Named parameters. Preferred way would be via array()-less array collation as we are already using this in our production system ;-) : foo('id' => 42, 'name'

Re: [PHP-DEV] Re: PHP 6.0 Wishlist

2005-08-13 Thread Andrey Hristov
George Schlossnagle wrote: On Aug 13, 2005, at 5:49 PM, Andrey Hristov wrote: George Schlossnagle wrote: On Aug 13, 2005, at 11:46 AM, Matthew Weier O'Phinney wrote: * Christian Schneider <[EMAIL PROTECTED]> : 9. Named parameters. Preferred way would be via array()

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

2005-08-16 Thread Andrey Hristov
Ilia Alshanetsky wrote: Shmop does just that, it takes a string of data (any data) and puts it in memory. Serialization is something sysvshm extension does. Ilia shmop is the solution if you want to store only strings but once you want to store arrays or objects then the ser/deser is needed.

Re: [PHP-DEV] PHP 5.0.5

2005-08-16 Thread Andrey Hristov
Derick Rethans wrote: On Tue, 16 Aug 2005, Zeev Suraski wrote: We're looking into rolling PHP 5.0.5 sometime soon. Does anybody have any outstanding patches they plan to put into it? If not and unless we hear objections, I'll roll RC1 later this week. I'll be rolling 4.4.1 alongside, so i

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

2005-08-16 Thread Andrey Hristov
[EMAIL PROTECTED] wrote: It will be nice to have functions like this: isNumber(char), isAlphabetic(char), isWhitespace(char) ... It is on the plan or not? its done already, just not committed yet... clayton ""Ondrej Ivanic"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]

Re: [PHP-DEV] Re: 5.1.0RC2

2005-09-15 Thread Andrey Hristov
Pierre Joye wrote: On 9/14/05, Greg Beaver <[EMAIL PROTECTED]> wrote: http://pear.php.net/go-pear.phar For the distros, let use the same system. If one would like to customize, he is free to use go.pear.phar at a later point. Regards, --PIerre go-phear.phear :) intall-phear :) Andrey

Re: [PHP-DEV] [PATCH] patch to make mysql select correct encoding on client libraries.

2005-10-17 Thread Andrey Hristov
Hi, the patch did not go through :( Andrey Quoting scuzzy <[EMAIL PROTECTED]>: Hi, I've attached a patch, that will allow people to be able to change the client default encoding type, as this was not possible before. I looked through the php mysql client source, and found no traces of somethin

Re: [PHP-DEV] PHP 6.0 Wishlist [$_PERSISTENT]

2005-10-22 Thread Andrey Hristov
Hi, DIY, it's not hard. You need a semaphore (*nix) and shared memory . Semaphores are not available on Windows but they are emulatable with ext/shmop. More info can be found here : http://hristov.com/andrey/projects/php_stuff/pres/writing_parallel_apps_with_PHP.pdf sources : http://hristov.com/a

Re: [PHP-DEV] Re: [PDO] [RFC] An Idea for PDO 2

2008-02-04 Thread Andrey Hristov
Hi, Pierre Joye wrote: > Hi, > > I think the biggest myths in this CLA discussion are: > >>> The main realization was that the vendors could not co-operate with >>> each other on code without a CLA in place, and that some of them would >>> not be able to co-operate with the community without a C

Re: [PHP-DEV] Add a memory limit in mysql ext

2008-03-31 Thread Andrey Hristov
Hi, Olivier Bonvalet wrote: Hello, I often host clients which have "bad" PHP/SQL code ; as for example a "select *" + mysql_row_nums on a 200Mo table just to count lines... So I add a little patch to throw a warning in case the result of mysql_query is larger than a specified limit. I use th

Re: [PHP-DEV] PHP 5.2.6RC5 Released

2008-04-11 Thread Andrey Hristov
updated quite a while. libmysql should be updated in all cases to at least 5.0.51. There is a nasty bug with long history which is fixed when using 5.0.51 . The my_thread_end bug. Let's smash it now and forever. regards holo Regards, Andrey -- Andrey Hristov, Connectors Software

Re: [PHP-DEV] [PATCH] More array filling optimizations

2008-04-25 Thread Andrey Hristov
Hi, Matt Wilmas wrote: Hi all, Expanding on the idea of passing a size other than 0 to zend_hash_init(), when possible, which was done awhile ago in a few areas (to save resize/rehash operations), I finally added an "array_init_size()" that can be used instead of array_init(), likewise, when a

Re: [PHP-DEV] Float comparison

2008-05-02 Thread Andrey Hristov
Thanks Never compare directly floats but subtract one from the other and check whether the difference is bigger or smaller than a small predefined number. Regards, Andrey -- Andrey Hristov, Connectors Software Developer Sun Microsystems GmbH, Sonnenallee 1, 85551 Kirchheim-Heimstetten Am

Re: [PHP-DEV] to be discussed items

2008-07-15 Thread Andrey Hristov
Lukas Kahwe Smith wrote: Hi, I am about to move all "to be discussed items" [1] to the future PHP release section (so after 5.3): 1) userspace streams filter that acts as a default filter through which require/include read their files (Sebastian, Sara) 2) XMLWriter: Add writeNode([xmlreader

[PHP-DEV] Re: [PHP-CVS] cvs: php-src /ext/mysql php_mysql.c /ext/mysqli mysqli.c /ext/mysqlnd mysqlnd.c mysqlnd_palloc.c mysqlnd_ps.c mysqlnd_wireprotocol.c

2008-07-15 Thread Andrey Hristov
Hi Marcus, Marcus Boerger wrote: Hello Andrey, Tuesday, July 15, 2008, 3:12:27 PM, you wrote: andrey Tue Jul 15 13:12:27 2008 UTC Modified files: /php-src/ext/mysql php_mysql.c /php-src/ext/mysqli mysqli.c /php-src/ext/mysqlndmysqlnd.c m

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php-src /ext/mysql php_mysql.c /ext/mysqli mysqli.c /ext/mysqlnd mysqlnd.c mysqlnd_palloc.c mysqlnd_ps.c mysqlnd_wireprotocol.c

2008-07-15 Thread Andrey Hristov
Marcus, Marcus Boerger wrote: Hello Ulf, Tuesday, July 15, 2008, 4:32:10 PM, you wrote: Pierre Joye schrieb: Drop the launchpad and use php's cvs. We have actually two development branches (5.3 until the 24th and HEAD) and PECL. The latter let you experiment as much as you wish. Pierre, you

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php-src /ext/mysql php_mysql.c /ext/mysqli mysqli.c /ext/mysqlnd mysqlnd.c mysqlnd_palloc.c mysqlnd_ps.c mysqlnd_wireprotocol.c

2008-07-15 Thread Andrey Hristov
Pierre, Pierre Joye wrote: Hi Ulf, On Tue, Jul 15, 2008 at 4:32 PM, Ulf Wendel <[EMAIL PROTECTED]> wrote: Pierre Joye schrieb: Drop the launchpad and use php's cvs. We have actually two development branches (5.3 until the 24th and HEAD) and PECL. The latter let you experiment as much as you w

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php-src /ext/mysql php_mysql.c /ext/mysqli mysqli.c /ext/mysqlnd mysqlnd.c mysqlnd_palloc.c mysqlnd_ps.c mysqlnd_wireprotocol.c

2008-07-15 Thread Andrey Hristov
Pierre, Pierre Joye wrote: On Tue, Jul 15, 2008 at 5:42 PM, Ulf Wendel <[EMAIL PROTECTED]> wrote: What's your point, what requests are you talking about? Please ask Johannes, I told them to him live last time we met. If there is doubts, I will happily repeat them. I saw one person complaini

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php-src /ext/mysql php_mysql.c /ext/mysqli mysqli.c /ext/mysqlnd mysqlnd.c mysqlnd_palloc.c mysqlnd_ps.c mysqlnd_wireprotocol.c

2008-07-15 Thread Andrey Hristov
Pierre Joye wrote: I have no clue if Andrey has combined several fixes in one commit. At this point I have to rely on him choosing a proper granularity for a commit. Too large commits can always happen. You can work for a month in your local CVS copy and commit 100k at one - no difference. Exce

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php-src /ext/mysql php_mysql.c /ext/mysqli mysqli.c /ext/mysqlnd mysqlnd.c mysqlnd_palloc.c mysqlnd_ps.c mysqlnd_wireprotocol.c

2008-07-15 Thread Andrey Hristov
Pierre Joye wrote: On Tue, Jul 15, 2008 at 7:47 PM, Andrey Hristov <[EMAIL PROTECTED]> wrote: Pierre Joye wrote: I have no clue if Andrey has combined several fixes in one commit. At this point I have to rely on him choosing a proper granularity for a commit. Too large commits can

Re: [PHP-DEV] CVS to SVN Migration

2008-07-25 Thread Andrey Hristov
Hi, David Soria Parra wrote: However I think we should provide the infrastructure for developers to setup a dvcs. I dont know if we want to standardize on a specific one. But collaboration on exterimental stuff that requires a dvcs should be possible on php.net servers. Maybe it's just about

Re: [PHP-DEV] CVS to SVN Migration

2008-07-25 Thread Andrey Hristov
Oops, Andrey Hristov wrote: Hi, David Soria Parra wrote: However I think we should provide the infrastructure for developers to setup a dvcs. I dont know if we want to standardize on a specific one. But collaboration on exterimental stuff that requires a dvcs should be possible on php.net

Re: [PHP-DEV] Inconsistencies in 5.3

2008-08-04 Thread Andrey Hristov
Hi, Lukas Kahwe Smith wrote: On 04.08.2008, at 10:41, Marcus Boerger wrote: Hello Lukas, Monday, August 4, 2008, 10:32:26 AM, you wrote: On 04.08.2008, at 10:28, Stefan Priebsch wrote: Hannes Magnusson schrieb: I don't think anyone but him likes multiple namespaces per file. I do reme

Re: [PHP-DEV] php7- dropping the $ from the variable name - rfc

2008-09-19 Thread Andrey Hristov
for programming (/me has nowadays US, DE and BG installed to handle all the communities I am involved in :) Best, Andrey -- Andrey Hristov, Connectors Software Developer, Database Group Sun Microsystems GmbH, Sonnenallee 1, 85551 Kirchheim-Heimstetten Amtsgericht Muenchen: HRB161028 Geschaeftsfu

Re: [PHP-DEV] Namespace Resolution

2008-11-04 Thread Andrey Hristov
Ryan Panning wrote: use 'NsA\NsB\NsC\func_c()'; OMG That looks UGLY1 $obj = new NsA\NsB\ClassB; $obj->methodB(); func_c(); ?> Best, Andrey -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] GSOC Idea, RPC Server

2009-03-19 Thread Andrey Hristov
http://www.vl-srm.net/ ? Cesar D. Rodas wrote: 2009/3/19 mike : ... Andrey -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] mysqlnd problems

2009-03-30 Thread Andrey Hristov
Hi, Ionut G. Stan wrote: Hi Ulf, Thanks for the answer, but let me understand this better. The old mysql API did not support the auth protocol of MySQL 4.1+, but only lower, while the new mysqlnd API only supports MySQL 4.1+ auth protocol. At least this is what I understand from the error me

[PHP-DEV] Re: [PATCH] mysqli #35203 / #48065 Eliminate special case for calling procedures in mysqli

2009-04-26 Thread Andrey Hristov
Hi, could you show how you want to express that in PHP code that will work with calling prepared statements. How the API should work? (Example PHP code that uses the new API). Best, Andrey Michael G Schwern wrote: This is a patch against 5.2.9 to fix mysqli::query so a user can call stored

[PHP-DEV] HASH_DEL_KEY_QUICK without any meaning?

2009-06-04 Thread Andrey Hristov
and...@winnie:~/dev/vanilla/php5/Zend$ grep HASH_DEL_KEY_QUICK * zend_hash.h:#define HASH_DEL_KEY_QUICK 2 zend_hash.h:zend_hash_del_key_or_index(ht, arKey, nKeyLength, h, HASH_DEL_KEY_QUICK) Can someone enlighten why do we need that, or it was something left unimplemented? Somethi

Re: [PHP-DEV] Other Integers for php 6

2006-02-09 Thread Andrey Hristov
Ezra Nugroho wrote: Uh, positive bits? A bitfield is a bitfield. Signedness is irrelevant. -Rasmus Yes. I probably should say integers that I can modify with bitwise operators comfortably without changing the signs. The problem is that people may want to do comparison after doing bitwi

Re: [PHP-DEV] GOTO and/or BREAK LABEL (conclusion)

2006-03-09 Thread Andrey Hristov
Hi, Dmitry Stogov wrote: I am indifferent - "goto" or "jump", but may be others don't. what about `escape`? Thanks. Dmitry. -Original Message- From: Derick Rethans [mailto:[EMAIL PROTECTED] Sent: Thursday, March 09, 2006 11:09 AM To: Dmitry Stogov Cc: internals@lists.php.net Su

Re: [PHP-DEV] GOTO and/or BREAK LABEL (conclusion)

2006-03-09 Thread Andrey Hristov
Hi, sorry for sending second email. Another choice could be `leave`, which seems better than `escape` (clashes with escaping sequences). Andrey Andrey Hristov wrote: Hi, Dmitry Stogov wrote: I am indifferent - "goto" or "jump", but may be others don't. what

Re: [PHP-DEV] GOTO and/or BREAK LABEL (conclusion)

2006-03-09 Thread Andrey Hristov
Jon Dowland wrote: At 1141902889, Andrey Hristov wrote: sorry for sending second email. Another choice could be `leave`, which seems better than `escape` (clashes with escaping sequences). I think `leave` has too many connotations with `break` and similar commands, and could be misleading

Re: [PHP-DEV] PHP Embedded

2006-03-14 Thread Andrey Hristov
Mark Evans wrote: Is this the right book as it has a publish date of March 2005. Hmm, it seems that amazon.co.uk are confused :-) Searching amazon.com gives me Extending and Embedding PHP (Paperback) by Sara Golemon * Paperback: 448 pages * Publisher: Sams (May 24, 2006) * Language: English

Re: [PHP-DEV] [Patch] tidy node and getParent

2006-03-23 Thread Andrey Hristov
Send a bottle of Stolichnaya, this could solve your issue :) Andrey Andi Gutmans wrote: Ilia, but don't worry, he's a good looking guy :) hehe At 03:16 AM 3/23/2006, Markus Fischer wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, okay, so with whom I've to sleep to get this patch

Re: [PHP-DEV] more candidates for PECL

2006-04-25 Thread Andrey Hristov
ts than this for having ext/pdo enabled by default, not the least being that it would make it a one-step process to install a PDO driver. Is there any reason it isn't? - Steph Andrey -- Andrey Hristov, Software Developer MySQL AB, www.mysql.com Walldorf, Germany Are you MySQL certif

Re: [PHP-DEV] resources vs objects?

2006-05-01 Thread Andrey Hristov
Hi, Brandon Fosdick wrote: From the point of view of an extension, what's the difference between a resource and an object? Is there any reason to favor one over the other? sqlite seems to use resources for the procedural interface and objects otherwise. Whereas mysqli uses objects all arou

Re: [PHP-DEV] persistent memory management

2006-12-03 Thread Andrey Hristov
Hi, Alexey Zakhlestin wrote: > Hi. > > I am trying to make my first php extension :) > I am sorry, if the question would be too newbiesh, but I just couldn't > find a more correct place to ask > > here is the code: > http://loccache.googlecode.com/svn/trunk/loccache.c > > I am trying to do the

  1   2   3   4   >