,
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
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
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
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
)?
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
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
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
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
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
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
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
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
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
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]"
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
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
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
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
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
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
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
)
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
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
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
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
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
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
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
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:
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
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
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
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
to discuss
PHP5 ?
l0t3k
--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php
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,
+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?
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
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
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
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 =
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 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
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
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,
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/
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
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
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:
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
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
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(),
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.
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
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
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
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
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
--
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
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 =
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]
.
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
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
62 matches
Mail list logo