Re: [PHP-DEV] Renaming namespaces to packages

2007-08-22 Thread l0t3k
"Jani Taskinen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "package" is also shorter than "namespace". Just commit the stuff, it's > pointless to argue about it. Majority rules. and it makes for great alliteration can you say "Peter picked a Pack of Pecl PHP Packages" ;-) --

[PHP-DEV] Re: PHP ICU project announcement

2007-07-14 Thread l0t3k
i18n functionality that i'd like to submit pending discussion and approval.... l0t3k "Stanislav Malyshev" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all! > > We have started a project to make it easier to support international > markets using

Re: [PHP-DEV] PHP 6 Preview

2007-05-16 Thread l0t3k
"Michael Wallner" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > l0t3k wrote: >>> Where? Will it be "eat it or die" when you're done? >>> There've been no replies from core developers to my postings on >>> php-i18n

Re: [PHP-DEV] PHP 6 Preview

2007-05-16 Thread l0t3k
"Michael Wallner" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Where? Will it be "eat it or die" when you're done? > There've been no replies from core developers to my postings on > php-i18n about providing ResourceBundle API except a single notice > from Andrei. i think i chi

Re: [PHP-DEV] PHP 6 Preview

2007-05-16 Thread l0t3k
if someone has specific ICU tasks, i can pitch in. i have some (calendar) locale info fetching code i've been meaning to finish off.. "Stanislav Malyshev" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >> And besides this filter issue, what are the remaining pieces to be done? > >

[PHP-DEV] Re: TSRMLS_D/C persistence

2006-06-30 Thread l0t3k
x)in that function, and the macro TSRMLS_FETCH_FROM_CTX(ctx->thread_ctx);in the callback php_enum_char_type_range()l0t3k ""Andrew MatherBt"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > How long are the TSRMLS_D/C parameters good for? &

Re: [PHP-DEV] Karma Request

2006-04-21 Thread l0t3k
> On Apr 21, 2006, at 5:22 PM, l0t3k wrote: > >> Pierre, >> i've been working extensively (in private) with the ICU API [1], so >> that's >> my primary focus. in the immediate term i >> have a patch against the CVS collator code to add support for

Re: [PHP-DEV] Karma Request

2006-04-21 Thread l0t3k
Pierre, i've been working extensively (in private) with the ICU API [1], so that's my primary focus. in the immediate term i have a patch against the CVS collator code to add support for sort keys, as well as a patch for ICU error code to string [2]. Clayton aka l0t3k [1] An old

[PHP-DEV] Re: php-src /ext/standard array.c php_array.h /ext/unicode collator.c config.m4 config.w32 php_unicode.h unicode.c

2006-03-26 Thread l0t3k
rictly C) which switches between ucol_compare and sort-key generation after a threshold, but i havent had time to work on it. l0t3k ""Derick Rethans"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > derick Sun Mar 26 11:06:24 2006 UTC > > Added files:

[PHP-DEV] Re: Declaring php-class static member functions from within C/C++

2006-03-17 Thread l0t3k
> How then can I inform zend/php of my intent to supply a static member > function, such that I can call for example myclass::somestaticfunc() PHP_ME(myclass, getValue, NULL, ZEND_ACC_PUBLIC | ZEND_ACC_STATIC ) -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http:

[PHP-DEV] Re: Declaring php-class static member functions from within C/C++

2006-03-17 Thread l0t3k
> How then can I inform zend/php of my intent to supply a static member > function, such that I can call for example myclass::somestaticfunc() PHP_ME(myclass, getValue, NULL, ZEND_ACC_PUBLIC | ZEND_ACC_STATIC ) -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http:

[PHP-DEV] Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_compile.c php-src/tests/classes ctor_in_interface_01.phpt ctor_in_interface_02.phpt ctor_in_interface_03.phpt ctor_in_interface_04.phpt interfa

2006-03-06 Thread l0t3k
This should cause much fun with classes implementing multiple interfaces ""Dmitry Stogov"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Well :) > > I don't say that the patch is wrong, the question itself is disputable. > > PHP doesn't allow multiple constructors, so if some

[PHP-DEV] Re: php-src /ext/unicode unicode_iterators.c /ext/unicode/tests .cvsignore iterator_001.phpt

2006-02-16 Thread l0t3k
""Marcus Boerger"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > helly Wed Feb 15 21:34:21 2006 UTC > +static inline text_iter_obj* text_iter_to_obj(zend_object_iterator *iter) > +{ > + static text_iter_obj adr; > + static int ofs = (char*)&adr.iter - (char*)&adr; > + > + return (t

[PHP-DEV] Re: php-src /ext/unicode unicode_iterators.c /ext/unicode/tests .cvsignore iterator_001.phpt

2006-02-16 Thread l0t3k
""Marcus Boerger"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > helly Wed Feb 15 21:34:21 2006 UTC > +static inline text_iter_obj* text_iter_to_obj(zend_object_iterator *iter) > +{ > + static text_iter_obj adr; > + static int ofs = (char*)&adr.iter - (char*)&adr; > + > + return (

Re: [PHP-DEV] C Level Iterators and Userland Classes

2006-02-16 Thread l0t3k
Marcus, one last question ... > You should never touch the data member of that iterator does this mean that i should make a copy of whatever i get from the get_current_data() handler ? There seems to be a bit of inconsistency in dealing with the current element in the iterators For example, the

Re: [PHP-DEV] C Level Iterators and Userland Classes

2006-02-15 Thread l0t3k
> ic, sounds interesting. Actually Andrei doesn't it look like something for > ext/unicode? that's what it's for, actually... >>> The second thing is that you did not use the dtor() handler so you have >>> a memory leak. >> which dtor handler ? > > Zend/zend_iterators.h: > typedef struct _zend_ob

Re: [PHP-DEV] C Level Iterators and Userland Classes

2006-02-15 Thread l0t3k
"Marcus Boerger" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello l0t3k, > > first of all your question does not make any sense to me whatsoever. What im trying to allow for is sorting by iterator as well as standard arrays, for example : // assum

[PHP-DEV] C Level Iterators and Userland Classes

2006-02-15 Thread l0t3k
userland iterators as well ? l0t3k begin 666 sort.txt M4$A07TDQ.$Y?05!)('IE;F1?8F]O;"!I8W5?8V]L;&%T;W)?F5N9%]B M;V]L(&%S8V5N9&[EMAIL PROTECTED])"0D)"[EMAIL PROTECTED])E7,@/2!.54Q,.PT*"[EMAIL PROTECTED];G1R>3L-"@EZ M=F%L("IZ:71E;7,@/2!.54Q,.PT*"[EMA

[PHP-DEV] [PATCH] Re: php-src /ext/unicode unicode_iterators.c

2006-02-10 Thread l0t3k
Andrei, check out this diff. It adds config protection for break iteration.. Clayton ""Andrei Zmievski"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > andrei Sat Feb 11 00:16:43 2006 UTC > > Modified files: >/php-src/ext/unicode unicode_iterators.c > Log: > Implement char

[PHP-DEV] [PATCH] Re: php-src /ext/unicode unicode_iterators.c

2006-02-10 Thread l0t3k
Andrei, check out this diff. It adds config protection for break iteration.. Clayton ""Andrei Zmievski"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > andrei Sat Feb 11 00:16:43 2006 UTC > > Modified files: >/php-src/ext/unicode unicode_iterators.c > Log: > Implement cha

Re: [PHP-DEV] JSON inclusion in core

2006-01-23 Thread l0t3k
be the general case. If so, we should by all means optimize for this case. PDO and SOAP have mapping code, so there is prior art we can refer to. l0t3k -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Re: phpnamespaces.org!

2005-12-01 Thread l0t3k
this, but does PHP use :: as the global scope resolver as in C++ ? if so, namespaced A==>$A global A ==> ::$A l0t3k -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Re: Desired namespace behavoir

2005-12-01 Thread l0t3k
d absolutely NOT depend on an .ini setting. l0t3k -- 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-14 Thread l0t3k
d cons. i for one only use English identifiers (though i do speak French), but if i someone can get a Japanese source-code contract which specifies identifiers must be Katakana, then more power to us all if PHP is the language chosen to implement it. l0t3k -- PHP Internals - PHP Ru

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

2005-08-22 Thread l0t3k
i think that create_function() does an eval() at runtime, which is more expensive. anonymous functions would be handled in the compiler. l0t3k "Stanislav Malyshev" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Just out of curiosity, what's bad in creat

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

2005-08-22 Thread l0t3k
i think that create_function() does an eval() at runtime, which is more expensive. anonymous functions would be handled in the compiler. l0t3k "Stanislav Malyshev" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Just out of curiosity, what's bad in creat

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

2005-08-16 Thread l0t3k
> Please don't use stupid caps, these are functions not methods. > > > Andrey of course not. see http://icu.sourceforge.net/apiref/icu4c/uchar_8h.html , but note that functions conform to PHP's function naming conventions ( lower_case_words_separated_by_underscores() ). clayton -- PHP Internal

Re: [PHP-DEV] Re: php-src /ext/dom attr.c cdatasection.c characterdata.c comment.c document.c documentfragment.c dom_iterators.c domexception.c domimplementation.c element.c entityreference.c namednod

2005-08-12 Thread l0t3k
"Andrei Zmievski" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Yes, this is pretty high impact as far as code changes are concerned. > Since one should not attempt to access a class entry without > U_CLASS_ENTRY() macro, should it even be optional? my uneasiness with this is th

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

2005-08-03 Thread l0t3k
Jesse, another thing to consider (if you havent already) is extension support. IOW, how do i place my extension-created class into a namespace. Is this as simple as declaring the class name as Ns:Class ? l0t3k -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit

Re: [PHP-DEV] ext/soap parse error in HEAD

2005-05-11 Thread l0t3k
Antony, i've had a similar issue with extensions i've written. i get "Undeclared identifer" problems under VS.NET if TSRMLS_FETCH() does not appear after all other declarations. l0t3k "Antony Dovgal" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PR

[PHP-DEV] INI directive processing order

2005-04-04 Thread l0t3k
At what point in the module or request lifetime are INI directives handled (specifically, when are ini handler callbacks invooked) ? i have some objects stored as module globals which are affected by ini settings, so i need to know how to do proper cleanup/initiation. l0t3k -- PHP Internals

[PHP-DEV] Re: [PHP-CVS] cvs: php-src / NEWS /ext/pgsql config.m4 config.w32pgsql.c /ext/pgsql/tests 08escape.phpt 25async_query_params.phpt

2005-03-29 Thread l0t3k
string from pgsql, you have to estrdup() it, otherwise Bad Things (tm) happen. take a look at the RETURN_STRING[L] macro. the last argument determines whether the string passed to it is duplicated by PHP before returning it to the user. l0t3k -- PHP Internals - PHP Runtime Developmen

Re: [PHP-DEV] Serialization question

2005-03-20 Thread l0t3k
Marcus, i just read through var.c (specifically php_var_serialize_intern) and it seems as if the properties hash is handled correctly if the user specifies __sleep and __wakeup. IOW, the custom callback is called, then _sleep is called to determine how to further handle properties. l0t3k

[PHP-DEV] Serialization question

2005-03-19 Thread l0t3k
} else { loc = new Locale(); } *object = php_locale_new(loc TSRMLS_CC); return SUCCESS; } /* }}} */ l0t3k -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Re: par/phar/jar (was zend_stream_fixup)

2005-03-10 Thread l0t3k
d into the files, so if companies want to encrypt source/data, they are able to do so (and use a PHP stream filter to extract/decrypt). l0t3k "Daniel Convissor" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Thu, Mar 10, 2005 at 22:25:39 +0800, Marcus Boerg

[PHP-DEV] Re: Object custom serializing infrastructure

2005-02-23 Thread l0t3k
Stas, can the serialized representation contain high-bit/control chars or would we need to base64 encode or similar in that case ? l0t3k "Stanislav Malyshev" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I have added the callbacks to class_entry struc

Re: [PHP-DEV] Re: Before March 1st aka PHP 5.1 beta

2005-02-17 Thread l0t3k
"Ron Korving" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > So why is this such a big "no"? Implementation problem or is it against a > certain PHP philosophy? Just do a google search on the cons of MI (narrow it to C++ if you please). it's much more a philosophical issue, altho

[PHP-DEV] Re: Before March 1st aka PHP 5.1 beta

2005-02-17 Thread l0t3k
Marcus, a minor but important issue (to me, at least) is the consistent use of SPL exceptions throughout OOP based extensions... "Marcus Boerger" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello internals, > > before we rush into another version, how about clearing some o

Re: [PHP-DEV] Re: Please test PDO

2005-02-15 Thread l0t3k
aha !!! http://www4.dogus.edu.tr/bim/bil_kay/prog_dil/c++/index.htm chapters 16 - 21. now off to the dungeon "L0t3k" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >i think i may have found enough info to do a "Hello World" driver. there >actual

Re: [PHP-DEV] Re: Please test PDO

2005-02-15 Thread l0t3k
i think i may have found enough info to do a "Hello World" driver. there actually used to be a full book online describing DB programming under VC++ (with some decent code examples), but i've long since lost the link. i'll google till i find it. "Wez Furlong" <[EMAIL PROTECTED]> wrote in messag

Re: [PHP-DEV] Re: Please test PDO

2005-02-15 Thread l0t3k
thanks Wez, i'll take a look. if it gets too hairy, i'll investigate ADO ... "Wez Furlong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I heard from Frank that it's really painful. > > You should be able to find the SDK on msdn.microsoft.com somewhere. > > --Wez. > -- PHP Intern

Re: [PHP-DEV] Re: Please test PDO

2005-02-15 Thread l0t3k
Wez, do you know if some resources for ole-db ? when i was silly enough to try and write my own abstraction layer, that was the one that got away. if i had some code/samples/documentation, i'd try my hand at supporting it "Wez Furlong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PR

[PHP-DEV] Re: [PECL-CVS] cvs: pecl /xmlrpci CREDITS EXPERIMENTALconfig.m4 config.w32 php_xmlrpci.h xmlrpci.c

2005-02-14 Thread l0t3k
i've only looked at it briefly, but seems to use PHP5 method overloading to support cleaner remote calls $client = new xmlrpc($remote_ip); $result = $client->remoteMethodName($args); "Andi Gutmans" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hey John, > > Didn't comp

Re: [PHP-DEV] how to make nasty code less nasty (obtaining sqlite db handle)

2005-02-04 Thread l0t3k
i found this http://www.zend.com/lists/php-dev/200204/msg01083.html "Wez Furlong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > The extension deps framework (that orders the initialization done in > internal_functions.c) is already in HEAD; I was talking about the > extension "

Re: [PHP-DEV] Re: PHP 5.1

2005-02-01 Thread l0t3k
Andi, good enough for me. "Andi Gutmans" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Yeah, that's what I meant. I.e. add them to not screw up the API > afterwards but leave it up to the extensions to implement the callbacks > when the authors have time pre or post 5.1. >

[PHP-DEV] Re: PHP 5.1

2005-02-01 Thread l0t3k
Andi, i guess this means that proper serialization support for internal classes will have to wait till 5.2 ? l0t3k -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

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

2004-11-17 Thread l0t3k
;d prefer not to redefine those and risk registration errors later if both extensions are used simultaneously. l0t3k "Marcus Boerger" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello Andi, > > Tuesday, November 16, 2004, 11:56:48 PM, you wrote: > >

[PHP-DEV] Issues with VS.NET

2004-11-06 Thread l0t3k
VS.NET reports project corruption (ZendTS.dsp, Zend.dsp, fastCGI.dsp, phpActivescript.dsp) when trying to load the PHP project files. Things seem ok in VC6. Unfortunately, the IDE was not specific, so i dont know enough to fix the error. l0t3k -- PHP Internals - PHP Runtime Development Mailing

Re: [PHP-DEV] Re: php-src /ext/spl php_spl.c spl.php spl_array.c spl_array.h /ext/spl/tests spl_002.phpt /ext/standard array.c

2004-11-01 Thread l0t3k
"Marcus Boerger" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello l0t3k, > > it's a pain in the ass right now. I have some ideas right now but want to > discuss on frankfurt conf with some others first. Generally my idea is to > allow to s

[PHP-DEV] Re: php-src /ext/spl php_spl.c spl.php spl_array.c spl_array.h /ext/spl/tests spl_002.phpt /ext/standard array.c

2004-11-01 Thread l0t3k
Marcus, since you seem to be on a productivity binge, can we please have Serializable ? :-) Actually serialization needs a once-over for 5.1 . Internal class serialization is problematic at the moment. l0t3k "Marcus Boerger" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PR

[PHP-DEV] Re: ZendEngine2 / README.ZEND_VM zend_compile.h zend_vm_execute.h zend_vm_gen.php

2004-10-27 Thread l0t3k
Andi, there may be a speling error in zend_vm_execute.skl specifically {%INTERANL_LABELS%} on line 8 l0t3k "Andi Gutmans" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > andi Wed Oct 27 13:58:47 2004 EDT > > Modified files: > /ZendEngine2 R

Re: [PHP-DEV] Fwd: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend.h zend_variables.c zend_variables.h

2004-09-26 Thread l0t3k
> > Andi > Well, the binary serialization module is not still in PECL's CVS. > Fumanchi is quite quiet lately > im not 100% sure, but bcompiler may be affected, but i seriously doubt its being used heavily at this point. l0t3k -- PHP Internals - PHP Runtime Develop

[PHP-DEV] Minor fix for pedantic compiler

2004-09-19 Thread l0t3k
i'm compiling a C++ extension and the smart_str macros are causing MSVC to spill warnings about converting void* to char *. Casting the return from the SMART_STR_REALLOC macro seems to fix it. #ifdef SMART_STR_USE_REALLOC -#define SMART_STR_REALLOC(a,b,c) realloc((a),(b)) +#define SMART_STR_REALL

[PHP-DEV] CVS account change request.

2004-09-13 Thread l0t3k
i need to commit an extension to PECL, but i havent used my CVS account in ages (since 4.0B). i dont recall my password and i've long since changed ISPs and email addresses. what do i need to do ? BTW : cvs username is ccollie l0t3k aka clayton collie -- PHP Internals - PHP Runtime Develo

[PHP-DEV] Re: info needed regarding TSRM thread local storage

2004-09-09 Thread l0t3k
uilty party appears to be Marcus. i presume he can answer the rest of your questions. l0t3k -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Re: notes on hashes in globals

2004-09-03 Thread l0t3k
, and this should work nicely. l0t3k "Alan Knowles" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > If anyone has time to comment on this - it's a summary of how to store > an hash of user defined structs in extension globals. > > http://www.akbkhome.com/w

[PHP-DEV] php stream filters

2004-08-23 Thread l0t3k
use it. l0t3k -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: Win32 Build Error w HEAD

2004-08-08 Thread l0t3k
"Wez Furlong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Use the new build system instead i'm using the IDE for debugging currently... > or, fix the .dsp to generate the > message cataglog using mc.exe. excuse me for being slow, but where is the message resource (source) file

[PHP-DEV] Re: Win32 Build Error w HEAD

2004-08-08 Thread l0t3k
Additional info : VC6, building from .dsp , under Windows XP l0t3k -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Win32 Build Error w HEAD

2004-08-08 Thread l0t3k
C:\projects\php-src\win32\wsyslog.c(60) : fatal error C1083: Cannot open include file: 'wsyslog.h': No such file or directory l0t3k -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Document call_time_pass_reference

2004-08-04 Thread l0t3k
ntract" with the caller of the function. However, allowing call_time_pass_reference violates this by bypassing the programmer's explicit intention in not declaring a parameter by reference. l0t3k -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] New construct discussion Summary

2004-07-13 Thread l0t3k
> LOL. I sure as hell don't know what color to paint a nuclear power plant. > flourescent green ? -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] New construct discussion Summary (was: what happened to that new isset() like language construct)

2004-07-12 Thread l0t3k
"Andi Gutmans" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > How about default($var, expr)? my only reservation is that "default" is already part of a language construct : switch ($param = $_GET["param"]) { case "foo" : bar(); break; case "this" : that();

[PHP-DEV] Please confirm behaviour of ZEND_ACC_STATIC

2004-07-02 Thread l0t3k
e properly passed. is this a WAD. if so, is it possible (at least for internal functions) for a method to be called statically as well as in an object context ? l0t3k -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Please confirm behaviour of ZEND_ACC_STATIC

2004-07-02 Thread l0t3k
e properly passed. is this a WAD. if so, is it possible (at least for internal functions) for a method to be called statically as well as in an object context ? l0t3k -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Some Needed Macros for OOP extensions

2004-06-30 Thread l0t3k
currently there exists REGISTER_XXX_CONSTANT macros for procedural extensions. we need their counterparts (REGISTER_CLASS_XXX_CONSTANT) to populate the constants_table of internal classes. l0t3k -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net

[PHP-DEV] Re: A couple of potential security issues with sessions and glob() in safe_mode

2004-06-30 Thread l0t3k
Peter, although he hangs out here from time to time, you may want to forward this to Stefan Esser of HardenedPHP http://www.hardened-php.net/ l0t3k -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Receiving arguments by ref...

2004-06-29 Thread l0t3k
FAILURE) { return; } zval_dtor(name); ZVAL_STRING(name, "Hello World", 1); } or do we need to use "z/" as a parameter specifier. 2. what does the "Z" (capital z) specifier to zend_parse_parameters do 3. am i stuck using the old parameter fetching API ? l0t3k -- P

[PHP-DEV] libxml2 and compilation under Win32

2004-06-22 Thread l0t3k
where can i get a version of libxml2 that will compile properly against CVS on win32 ? the one at zlatkovic's site was built with VC++7 but im using V6. l0t3k -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] libxml2 and compilation under Win32

2004-06-22 Thread l0t3k
where can i get a version of libxml2 that will compile properly against CVS on win32 ? the one at zlatkovic's site was built with VC++7 but im using V6. l0t3k -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Pack function : a suggestion - allow array as second argument.

2004-06-13 Thread l0t3k
thanks, i hadn't noticed that. still in the interest of efficiency i think an array should be allowed. or am i the only one having to use Pack on large sets of data ? "Derick Rethans" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Sun, 13 Jun 2004, l0t

[PHP-DEV] Pack function : a suggestion - allow array as second argument.

2004-06-13 Thread l0t3k
convert is fairly static, but there are other data files which the extension user may customize, or that may need to be corrected. in that case, a simple PHP script can be run to create the binary file. No compiler or PHP build environment is necessary, and there is no need to wait for a new releas

[PHP-DEV] That should be " ZE2 and NON static methods"

2004-06-09 Thread l0t3k
lets try again in an OOP extension using methods NOT tagged as ZEND_ACC_STATIC, does ZE2 prevent them from being called statically or do i always need to do : if (!getThis()) { ERROR("Cannot call this method statically"); RETURN_FALSE; } l0t3

[PHP-DEV] ZE2 and static methods

2004-06-09 Thread l0t3k
in an OOP extension using methods tagged as ZEND_ACC_STATIC, does ZE2 prevent them from being called statically or do i always need to do : if (!getThis()) { ERROR("Cannot call this method statically"); RETURN_FALSE; } l0t3k -- PHP Internals - P

[PHP-DEV] Re: expected __METHOD__ behavior

2004-05-21 Thread l0t3k
s designed. __METHOD__ is a compile-time evaluated token, not a runtime evaluated function. l0t3k -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Class Constant Memory Allocation

2004-05-21 Thread l0t3k
is it possible to have a MAKE_INTERNAL_ZVAL macro to pair with zval_internal_dtor (im using class constants heavily in my extension)? of course i could just create my own and use it in my extension, but i think its good to be symmetrical. l0t3k -- PHP Internals - PHP Runtime Development Mailing

[PHP-DEV] Minor Zend Engine Niggle

2004-05-17 Thread l0t3k
ber); } in read_property and write_property handlers. l0t3k -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Inheriting from internal classes

2004-05-14 Thread l0t3k
Wez and Marcus (and anyone else), is there a way with the current CVS to permit subclassing of internal, overloaded classes without seg faulting ? or is this a known problem. i ask this based on my reading of the source for PDO. l0t3k -- PHP Internals - PHP Runtime Development Mailing List To

[PHP-DEV] Serialization And Internal Objects

2004-05-10 Thread l0t3k
looking through the serialization code, it appears that the read_property handler is not called for variable names returned from __sleep. IOW serialization is currenty only useful for userland objects. is this on the TODO list for PHP5 ? l0t3k -- PHP Internals - PHP Runtime Development Mailing

[PHP-DEV] PHP 5 Beta 3

2003-11-12 Thread l0t3k
zend_object_handlers structure ? l0t3k -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] ZE2 and order of initialization (quick question)

2003-11-09 Thread l0t3k
Am i correct in my understanding that the object store is not initialized before MINIT is run ? l0t3k -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] ZE2 and order of initialization (quick question)

2003-11-09 Thread l0t3k
Am i correct in my understanding that the object store is not initialized before MINIT is run ? l0t3k -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Repost : 64 Bit Integer support

2003-11-05 Thread l0t3k
on 64bit support would eliminate a significant supported platform. as i current only have access to MSVC and gcc, i wanted to do a quick shout to see if someone knew offhand which of the popular compilers would have an issue. l0t3k p.s.. its a largish codebase with 2 developers, so i wouldn

[PHP-DEV] Repost : 64 Bit Integer support

2003-11-05 Thread l0t3k
Question : is there any one of the supported platforms that dont support a 64 bit integer type. i'm not referring to the native int size. for one i can think of Windows 95/98. i'm porting a library and i need to know this so i can determine how to proceed. l0t3k -- PHP Inter

[PHP-DEV] [PHP-Internals] 64 bit int support

2003-11-01 Thread l0t3k
Question : is there any one of the supported platforms that dont have a 64 bit integer type. i'm not referring to the native int size. for one i can think of Windows 95/98. i'm porting a library and i need to know this so i can determine how to proceed. l0t3k -- PHP Internals - P

[PHP-DEV] CVS Error on Win32

2003-10-27 Thread l0t3k
Configuration: php4dllts - Win32 Debug_TS Linking... Creating library ..\Debug_TS/php4ts_debug.lib and object ..\Debug_TS/php4ts_debug.exp basic_functions.obj : error LNK2001: unresolved external symbol _zif_uudecode basic_functions.obj : error LNK2001: un

[PHP-DEV] Re: PHP 5 Beta 2

2003-10-20 Thread l0t3k
personally with the beta. otherwise the current CVS works well. ive tested the new read/write dimension hooks, object level iterators, as well as casting, and they work as expected. l0t3k "Andi Gutmans" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hey, > >

[PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] [patch] __string() method

2003-09-04 Thread l0t3k
> It's just one of my trivial ideas, that why don't us make it capable of > arbitrary casting operation rather than limiting it just for string casts? i agree here. this can be important for external integration e.g. Java and COM > Moriyoshi -- PHP Internals - PHP Runtime Development Mailing Li

[PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] [patch] __string() method

2003-09-04 Thread l0t3k
> It's just one of my trivial ideas, that why don't us make it capable of > arbitrary casting operation rather than limiting it just for string casts? i agree here. this can be important for external integration e.g. Java and COM > Moriyoshi -- PHP Internals - PHP Runtime Development Mailing Li

Re: [PHP-DEV] Constant Scope PHP5

2003-08-23 Thread l0t3k
ernative to the runtime define(). l0t3k "Zeev Suraski" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > At 07:03 23/08/2003, DvDmanDT wrote: > >Wait a sec... When did const become a keyword? > > In PHP 5.0. > > >And since when can you >

[PHP-DEV] PHP5 - Beta 2

2003-08-18 Thread l0t3k
inst a released beta. thanx, l0t3k -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] PHP5 - Beta 2

2003-08-18 Thread l0t3k
inst a released beta. thanx, l0t3k -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Re: implementing a JDBC like api in PHP

2003-08-08 Thread l0t3k
archive of the work i put into the one i was writing (currently abandoned). l0t3k -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Re: ZendEngine2 / zend_execute.c zend_object_handlers.c zend_object_handlers.h zend_objects_API.c

2003-07-07 Thread l0t3k
Zeev, i know we're in beta, but has the API version number been bumped subsequent to these changes ? l0t3k "Zeev Suraski" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > zeev Mon Jul 7 06:53:28 2003 EDT > > Modified files: >

[PHP-DEV] Re: ZendEngine2 / zend_execute.c zend_object_handlers.c zend_object_handlers.h zend_objects_API.c

2003-07-07 Thread l0t3k
Zeev, i know we're in beta, but has the API version number been bumped subsequent to these changes ? l0t3k "Zeev Suraski" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > zeev Mon Jul 7 06:53:28 2003 EDT > > Modified files: >

[PHP-DEV] PHP5 - OO extensions and naming conventions.

2003-07-02 Thread l0t3k
having both constitute bloat. i ask because im implementing a series of classes mirroring those in the Caffeinated Language (tm) so familiarity could be an asset. l0t3k (*) i wonder if this should be more formalized before the next major release. major extensions like dom/xsl are already using the

[PHP-DEV] Re: Class Entry memleak..

2003-07-01 Thread l0t3k
i dont know why this is just showing up (i sent it at least a day ago), but Moriyoshi has already identified the issue and possible solution. See the thread "Registering constants to internal classes (ZE2)" l0t3k -- PHP Internals - PHP Runtime Development Mailing List To unsubscr

[PHP-DEV] Class Entry memleak..

2003-07-01 Thread l0t3k
key_len, (void *) &tmp, sizeof(zval *), NULL); } for some reason the memory allocated here by MAKE_STD_ZVL is not reclaimed at process termination. i get the same problem in cgi as well as cli mode. any ideas of why cleanup isnt happening properly ? l0t3k -- PHP Internals -

[PHP-DEV] To infinity, and Beyond !

2003-06-24 Thread l0t3k
). l0t3k -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] php5 beta

2003-06-20 Thread l0t3k
"George Schlossnagle" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > On Friday, June 20, 2003, at 10:04 AM, l0t3k wrote: > Why don't use just throw an exception yourself in your extension code? > I'm for errors as exceptions (obviously), b

  1   2   >