[PHP-DEV] Need some ZE2 functions exported.

2003-03-12 Thread l0t3k
, name_length+1, pce, sizeof(zend_class_entry *), NULL); free(lowercase_name); return pce; } /* }}} */ l0t3k -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Need some ZE2 functions exported.

2003-03-12 Thread l0t3k
Marcus, i tried to use spl_functions.c and got the same errors. i think that because im building php as shared that those symbols must be exported for my code to work. l0t3k Marcus Börger [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] At 15:54 12.03.2003, l0t3k wrote: im trying

[PHP-DEV] New constants proposal

2003-03-11 Thread l0t3k
i suggest that we implement the constants NaN, as well as INFINITY (pos and neg if the RTL supports it). i have need of them in an extension, but they should be implemented in core or ext/standard. l0t3k -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http

Re: [PHP-DEV] Namespaces

2003-03-08 Thread l0t3k
in message news:[EMAIL PROTECTED] On Sat, 8 Mar 2003, l0t3k wrote: this may be a bit premature, but how do i inject the classes, functions and constants in my extension into a namespace ? You can't do that. Derick -- my other box is your windows PC

Re: [PHP-DEV] Namespaces

2003-03-08 Thread l0t3k
)? l0t3k Marcus Börger [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] At 08:10 08.03.2003, l0t3k wrote: this may be a bit premature, but how do i inject the classes, functions and constants in my extension into a namespace ? l0t3k See below :-) -- PHP Development Mailing

[PHP-DEV] Re: iterating objects with interfaces

2003-03-08 Thread l0t3k
with the opcode handlers ? l0t3k btw - im currently marooned on windoze until my mdk box is fixed, so could you post a tar.gz ? bz2 gives PowerArchiver the hiccups. Marcus Börger [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, i've just done the first step for a new extension which shall

[PHP-DEV] Specifying pass-by-ref parameters

2003-03-07 Thread l0t3k
im a bit rusty, so could someone explain how i would set up a function to accept a byref parameter ? no zend api documentation i ran across is clear on this issue. l0t3k -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Namespaces

2003-03-07 Thread l0t3k
this may be a bit premature, but how do i inject the classes, functions and constants in my extension into a namespace ? l0t3k -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Namespaces

2003-03-07 Thread l0t3k
this may be a bit premature, but how do i inject the classes, functions and constants in my extension into a namespace ? l0t3k -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Re: Announcement: Next generation ext_skel

2003-02-25 Thread l0t3k
Hartmut, will this also generate zend_parse_parameters calls based on prototype ? l0t3k Hartmut Holzgraefe [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] i've just added the first working results of a replacement for the good old ext_skel script in php/scripts/ext_skel_ng

Re: [PHP-DEV] OO in PHP5 (was zend_API.c on php-dev)

2003-02-05 Thread l0t3k
in the module. for the most part (except for programming incompetence on my end), there would not be a need to inherit from them l0t3k -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] php_stream size

2003-01-25 Thread l0t3k
afterwards. for the moment, this is ok since im currently only using file-based streams. but i'd like to be able to be as generic as possible. l0t3k ps. would it make sense to have a get_size stream op ? -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http

[PHP-DEV] Re: how build komplex array

2003-01-10 Thread l0t3k
Johannes, could you perhaps show a bit of the schema and your expected array output in print_r format ? Johannes G. Arlt [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello all, I need a very complex array from a mysql-statement like DB::getAssoc but more

[PHP-DEV] Re: Win32 Build Quirks

2002-12-29 Thread l0t3k
it also seems as if we need to link against zlibstat.lib, but zlib.lib is given in the MSVC project (php4dllts) as the library to link against. Sebastian Bergmann [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... For a long time I could use the following commands to build PHP on

Re: [PHP-DEV] Location of getopt function

2002-12-16 Thread l0t3k
Markus, thanks for the link, but i was looking for the implementation of the PHP function as documented here http://www.php.net/manual/en/function.getopt.php i searched for PHP_FUNCTION(getopt) but got no hits... l0t3k Markus Fischer [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]"

Re: [PHP-DEV] Location of getopt function

2002-12-16 Thread l0t3k
Thanks Kjartan (and all who responded). give me a few days and i'll report back on the win32 version. Kjartan Mannes [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Monday, December 16, 2002, 5:07:52 PM, l0t3k wrote: Markus, thanks for the lin

Re: [PHP-DEV] PHP-4.3.0RC3 Windows - getopt function

2002-12-15 Thread l0t3k
Hartmut, point me to some docs and i'll see what i can do. i have an opt parser from another project that i can possibly modify, and i have PHP setup as a project in MSVC. l0t3k Hartmut Holzgraefe [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Kjarta

Re: [PHP-DEV] PHP-4.3.0RC3 Windows - getopt function

2002-12-15 Thread l0t3k
is plain vanilla C so it can be used for all supported platforms. l0t3k Hartmut Holzgraefe [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Kjartan Mannes wrote: The NEWS file mentions a new function getopt(), but I can not get this to work under

[PHP-DEV] Location of getopt function

2002-12-15 Thread l0t3k
i've checked LXR, but i cant locate the implementation of getopt in CVS. im trying to provide a Windows implementation. l0t3k -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Reusing PHP string value pointers

2002-11-28 Thread l0t3k
if you have the option of using ZE2, make the thing an object and use the property get/set handlers to take care of things for you Marshall A. Greenblatt [EMAIL PROTECTED] wrote in message 000d01c296fe$b0ff82f0$6601a8c0@Marshall">news:000d01c296fe$b0ff82f0$6601a8c0@Marshall... From: Zeev

[PHP-DEV] Re: ZE2 object constructor question

2002-11-13 Thread l0t3k
To answer myself... i just did the following : *return_value = *(getThis()); zval_copy_ctor(return_value); and everything seems to be working ok... L0t3k [EMAIL PROTECTED] wrote in message news:20021112210753.3233.qmail;pb1.pair.com... im creating some classes in an extension and i have

[PHP-DEV] ZE2 object constructor question

2002-11-12 Thread l0t3k
object. the question is , do i still have to explicitly set return_value, given that getThis() is already a valid object zval ? l0t3k -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Can't build PHP 4.2.3-RC2 on Windows

2002-09-02 Thread l0t3k
hear, hear.. my Linux box is perpetually broken, and the Visual Studio debugger is very nice... Zeev Suraski [EMAIL PROTECTED] wrote in message 5.1.0.14.2.20020902182321.0387b4b0@localhost">news:5.1.0.14.2.20020902182321.0387b4b0@localhost... I still object because I use them every once in a

[PHP-DEV] Possible leak in zend_llist ?

2002-08-27 Thread l0t3k
) if ((l)-dtor) {\ (l)-dtor((current)-data);\ pefree((current), (l)-persistent);\ }\ with zend_llist_destroy if (l-dtor) { l-dtor(current-data); } pefree(current, l-persistent); l0t3k -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http

[PHP-DEV] ZE2 and object destruction ...

2002-08-27 Thread l0t3k
which handles its own cleanup (the cleanup function is called in RSHUTDOWN). forgive me if this reveals my ignorance of engine internals, but shouldnt the object destruction sequence precede a module's request shutdown ? l0t3k -- PHP Development Mailing List http://www.php.net/ To unsubscribe

[PHP-DEV] [PHP-Dev] ZE2 Favour..

2002-08-14 Thread l0t3k
Andi, along the lines of my previous request, is it possible to also export zend_register_functions ? actually a more general request would be to evaluate the codebase to determine which functions are likely candidates... thanks, l0t3k BTW - i'll try again to subscribe to the ZE2 mailing list

[PHP-DEV] Re: INTERNAL FEATURE request

2002-07-19 Thread l0t3k
Sam, i dont know if this will happen in ZE1, but it exists already in ZE2. my workaround was to prepend a header containing a resource id and the corresponding ZVAL wrapper to all my structs, and use some funky macros. its ugly, but it works. Sam Liddicott [EMAIL PROTECTED] wrote in

[PHP-DEV] [ZE2] clone_obj function and __clone method

2002-07-17 Thread l0t3k
A quick question about the above... what is the relationship between the clone_obj handler and the __clone method. For instance, if i define the clone_obj handler, do i need to define the a __clone method on the same object ? is clone_obj for a shallow and __clone for deep copying ? l0t3k

[PHP-DEV] Re: Registering Classes Into a Namespace

2002-07-05 Thread l0t3k
i think ive discovered a lead. in zend_execute.c there is a function create_nested_class which may be drafted for this purpose. unfortunately, its declared as static. can we please make this function visible to the outside world ? L0t3k [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED

[PHP-DEV] ZE2 and Exceptions - One for Zeev/Andi

2002-06-11 Thread l0t3k
for property access and method calls). is the current state transitional (i.e. should all code going forward use only the zend_object_handlers way ?) then again i guess thats what macros and such are for l0t3k -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http

[PHP-DEV] Re: RFI: Request for Interfaces

2002-04-23 Thread l0t3k
Wez, im +2^LONG_MAX-1 on the idea. the one possible addition is that in addition to resouces, i'd like objects to support interfaces as well (i havent given though to implementations as yet, though). -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit:

Re: [PHP-DEV] streams and options

2002-04-19 Thread l0t3k
Wez, scream at me if it seems dumb, but in my never-finished extension, each plugin accepts an option hash in the init callback which is used to set up the object. the framework also stores this hash as an member of the object, and there are accessor methods to query the options. this

Re: [PHP-DEV] ZendEngine 2

2002-04-01 Thread l0t3k
Andi Stas, since were on the subject, will the preview release have the code for the rewritten Java extension. i'd like to use it as a guide for some code im working on -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Advice on design issues (long)...

2002-03-25 Thread l0t3k
John Lim [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I have always wondered, how do you pronounce L0t3k? actually low-tech. most days i dream of woodworking g Seriously, if you are duplicating Metabase's effort, but in C, why not work with th

Re: [PHP-DEV] Advice on design issues (long)...

2002-03-25 Thread l0t3k
he above the mailinglists are participating. im an active lurker on the binarycloud and metabase lists. i throw my $0.02 in periodically. l0t3k -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Advice on design issues (long)...

2002-03-22 Thread l0t3k
to discuss PHP5 ? l0t3k -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Re: user-space streams ?

2002-03-18 Thread l0t3k
Wez, +2e32-1 you read my mind ! but does this also entails having an OO interface to the streams as they are. it would be very annoying to have a cool stream abstraction interface, but then have to check for every resource list entry under the sun to access the stream_ops (le_ftp,

[PHP-DEV] Re: php_copy_file

2002-03-15 Thread l0t3k
+1 i need this for stuff im doing anyway... Wez Furlong [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Any objections to stream enabling the php_copy_file function; this will allow copying to/from anything that can be accessed by the stream fopen wrappers?

[PHP-DEV] Re: php_copy_file

2002-03-15 Thread l0t3k
Wez, i keep forgetting to ask you to add a standard stream copy function (perhaps using a configurable buffer). that way, i can write me a simple streamer by fopening my favorite MP3 and copying it to a socket g Wez Furlong [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL

Re: [PHP-DEV] Re: php_copy_file

2002-03-15 Thread l0t3k
t copies until EOF. It has some sense to use mmap when the source is a plain file too. Howzat? --Wez. On 16/03/02, l0t3k [EMAIL PROTECTED] wrote: Wez, i keep forgetting to ask you to add a standard stream copy function (perhaps using a configurable buffer). that way, i can write me

[PHP-DEV] Re: freeing zvals

2002-03-06 Thread l0t3k
Klaus, anything zval * put in a symboltable is automatically managed. Currently it looks to me, that I don't need to free zvals which I have exported to a symbol table, because PHP already frees the zval on module shutdown. Is that correct? Or do I need to remove the zval from the symbol

[PHP-DEV] Re: Get object name

2002-03-04 Thread l0t3k
you can do this only with a not-so nice hack. essentially you have to manually search the active symbol table stack for a zval * which equals your variable. zend_hash_find wont help you, since you're doing a reverse lookup. so the process is something like (totally OTTOMH) HashTable *table =

[PHP-DEV] CRC32

2002-02-20 Thread l0t3k
could someone with karma please move the CRC32 macro and crc table to a header so it can be generally accessible to modules ? id hate to duplicate it. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] PHP Executable

2002-02-19 Thread l0t3k
RE: [PHP-DEV] PHP ExecutableBTW - with the current CVS version there's also a CLI (command line interface) version, perfect for shell scripting and such.. Ray Hunter [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Thanks, I will try that. I am new to php and have

[PHP-DEV] Re: Nuking issock - PHP Streams

2002-02-14 Thread l0t3k
Wez, if you include your memory stream in the TODO list, i'd be mucho happy ... and i completely agree that the streams interface is the way to go in PHP5.. Wez Furlong [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi All, I'd like to see streams enabled

[PHP-DEV] Re: global HashTables

2002-02-14 Thread l0t3k
Brad, [snip] /* {{{ php_test_init_globals */ static void php_test_init_globals(zend_test_globals *test_globals) { test_globals-global_hash = emalloc(sizeof(HashTable)); zend_hash_init(test_globals-global_hash, 0, NULL, delete_friggin_type, 0); zend_hash_add(test_globals-global_hash, mykey,

Re: [PHP-DEV] Re: global HashTables

2002-02-14 Thread l0t3k
Brad, Techincally i don't need to call efree() cause it will do it for me?? now that i know that i can be lazy with all of my emallocs :) technically, probably... but to me its always good form to match allocations with deallocations. -- PHP Development Mailing List http://www.php.net/

Re: [PHP-DEV] PHP 4.2.0 / PHP 5.0.0-alpha

2002-02-04 Thread l0t3k
Andi Gutmans [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... However, I really want to get the object overloading stuff into the Zend Engine 2 before this happens (hopefully this week). It pretty much abstracts all object manipulation making it possible to

[PHP-DEV] [PHP-Dev] semi-advanced question re timers

2002-01-30 Thread l0t3k
of investigation i came across the timeout code in zend_execute_api.c, and im wondering if its safe to use a similar method in my extension to harvest stale resources. l0t3k -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

[PHP-DEV] Re: Bug #15095: use of references in arguments with defaults

2002-01-18 Thread l0t3k
i think it was recently added to the Zend cvs for ZE2. in other words, its likely to be in PHP5 [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... From: [EMAIL PROTECTED] Operating system: linux PHP version: 4.1.1 PHP Bug Type:

Re: [PHP-DEV] Preview of PHP 5

2002-01-18 Thread l0t3k
Jan Lehnardt [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, On Fri, 18 Jan 2002 18:18:26 +0200 (IST) Andi Gutmans [EMAIL PROTECTED] wrote: I agree. I think alpha is better. what about pre-alpha to make things re-al-ly clear? Jan ++1; -- PHP

[PHP-DEV] [Php-Dev] One Bug Down..

2002-01-04 Thread l0t3k
i can reliably report that Bug #4769 can be expired (the author made the appropriate changes in the code itself). -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

Re: [PHP-DEV] multiple inheritance ext

2001-12-08 Thread l0t3k
asbestos_suit if you need a name, use bless() for perl consistency /asbestos_suit Be careful with the function names, as bind() is already being used by the sockets extension. See: http://www.php.net/manual/en/function.bind.php I believe the new sockets extension names it socket_bind(),

[PHP-DEV] Re: HOW2 on making C++ extensions in 4.1.0 (and 4.0.6?)

2001-12-04 Thread l0t3k
Lars, check out ext/satellite, and also the author's site. he has an upcoming? framework for producing PHP extensions in C++ Lars Knudsen [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Does anyone have some (WORKING!) howto's on using C++ in extensions.

[PHP-DEV] Zend Hash Question

2001-12-04 Thread l0t3k
something that has confused me for a second is the use of HashTables to store a user defined type. the constructor is fine, its just insertion and querying that's mildly confusing. for instance, it seems as if zend_hash_add takes sizeof(struct) as an argument as opposed to sizeof(struct *) when i

[PHP-DEV] PHP Manual

2001-11-30 Thread l0t3k
i just downloaded the Windows PHP manual, and all i can say is -- DAMN -- are you sure no one gets paid to do this G ??? kudos to the doc team for what has to be the finest user docs in open source. l0t3k -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL

[PHP-DEV] Class Struggle

2001-11-27 Thread l0t3k
im having a tough time getting PHP to execute a method of a function defined in an extension. the extension compiles fine, shows up in phpinfo(), and calling get_declared_classes() returns the class names as expected. in addition, calling get_class_methods(class_name) lists the method im

Re: [PHP-DEV] Class Struggle

2001-11-27 Thread l0t3k
PROTECTED] Newsgroups: php.dev To: l0t3k [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, November 27, 2001 9:21 AM Subject: Re: [PHP-DEV] Class Struggle Did you name all your classes and methods as lowercase ones when declaring them? -Andrei -- PHP Development Mailing List http

[PHP-DEV] Re: PHP 4.1.0RC2 - can we roll?

2001-11-12 Thread l0t3k
Make it so, Number One !! g damn, ive wanted to say that for a while... Zeev Suraski [EMAIL PROTECTED] wrote in message 5.1.0.14.2.2003012523.05456108@localhost">news:5.1.0.14.2.2003012523.05456108@localhost... I'm going to roll PHP 4.1.0RC2 in an hour if nobody shouts. Zeev --

Re: [PHP-DEV] Re: Bug #13700: Database Abstraction API

2001-10-29 Thread l0t3k
that the work being done on a new extension will make your work easier by being able to focus more on portability issues, which is Metabase's strength (imo) and which should be dealt with in PHP. l0t3k Manuel Lemos [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL P

Re: [PHP-DEV] mysql prepared statements

2001-10-26 Thread l0t3k
im working on this. contact me via email if you'd like to help... Andrew Watson [EMAIL PROTECTED] wrote in message 5.1.0.14.0.20011026220832.00a20c40@pop-server">news:5.1.0.14.0.20011026220832.00a20c40@pop-server... for example in PERL DBD::mysql you can prepare statements like so: $sql =

[PHP-DEV] expat and Namespaces

2001-10-24 Thread l0t3k
Does the bundled expat handle namespaces ? l0t3k -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP-DEV] For Wez : Stream Abstraction over a String

2001-10-23 Thread l0t3k
. in any case, its a pain to have to write two sets of code to write to a 'proper' stream (file or sockets) , and to write another set of routines to store to a string. with a unified approach, you get the flexibility you need all for free. l0t3k Andrei Zmievski [EMAIL PROTECTED] wrote

[PHP-DEV] For Wez : Stream Abstraction over a String

2001-10-22 Thread l0t3k
be helpful for an extension im working on. i'd rather have only one 'logical' way of generating output, as opposed to having two separate methods for files and strings. l0t3k -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail