[PHP-DEV] Accept null type hint in C

2005-10-26 Thread Bob Silva
pass NULL, it fails on the grounds that it isn't a ZObject. Also, Could someone explain the purpose of the zend_parse_method_parameters function as opposed to using the zend_parse_parameters? Thanks Bob Silva -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit:

RE: [PHP-DEV] Accept null type hint in C

2005-10-27 Thread Bob Silva
parameter in C. I'll keep playing around with parameter combinations and see what works. Thanks Bob Silva -Original Message- From: Marcus Boerger [mailto:[EMAIL PROTECTED] Sent: Thursday, October 27, 2005 12:06 AM To: Bob Silva Cc: internals@lists.php.net Subject: Re: [PHP-DE

RE: [PHP-DEV] Accept null type hint in C

2005-10-27 Thread Bob Silva
ook a bit to debug since it is kinda outta step with the way Zend handles zvals elsewhere. BTW Marcus, nice work on the SPL stuff. Bob -Original Message- From: Marcus Boerger [mailto:[EMAIL PROTECTED] Sent: Thursday, October 27, 2005 11:40 AM To: Rob Richards Cc: Bob Silva; inte

[PHP-DEV] Question on arrays as properties

2005-10-27 Thread Bob Silva
#x27;d prefer not to have this constraint). Thanks Bob Silva

[PHP-DEV] Follow the object constructor chain ... options

2005-10-28 Thread Bob Silva
few ideas that have to do with looping through ce->parent and zend_call_function. Was wondering if you guys can offer some of your experience on how you would approach this problem. Bob Silva

RE: [PHP-DEV] Follow the object constructor chain ... options

2005-10-29 Thread Bob Silva
give me if its crude, but it appears to work. Bob -Original Message- From: Bob Silva [mailto:[EMAIL PROTECTED] Sent: Friday, October 28, 2005 7:35 PM To: internals@lists.php.net Subject: [PHP-DEV] Follow the object constructor chain ... options What would be the suggested method of simula

RE: [PHP-DEV] Follow the object constructor chain ... options

2005-10-29 Thread Bob Silva
> Sent: Saturday, October 29, 2005 3:58 AM > To: Bob Silva > Cc: internals@lists.php.net > Subject: Re: [PHP-DEV] Follow the object constructor chain ... options > > Hello Bob, > > why so complex and potential wrong? > > zend_class_entry *ce = Z_OBJ_CE(object); >

RE: [PHP-DEV] what happened to that new isset() like language

2005-10-29 Thread Bob Silva
ible in the engine is out of my range of knowledge. Bob Silva > -Original Message- > From: Edin Kadribasic [mailto:[EMAIL PROTECTED] > Sent: Saturday, October 29, 2005 4:19 PM > To: Sebastian > Cc: internals@lists.php.net > Subject: Re: [PHP-DEV] what happened to that

RE: [PHP-DEV] what happened to that new isset() like language

2005-10-29 Thread Bob Silva
L PROTECTED] > Sent: Saturday, October 29, 2005 6:17 PM > To: internals@lists.php.net > Subject: Re: [PHP-DEV] what happened to that new isset() like language > > Bob Silva wrote: > > This makes perfect sense (to me at least): > > > > $localvar = isset($_REQUEST['g

[PHP-DEV] Question on return_value

2005-10-31 Thread Bob Silva
Hi, I have an internal function defined that returns an array zval: zval *pow_zstring_internal_split(Z_STRVAL_P(ivalue), separator, count, 0 TSRMLS_DC); When I call it like this, return_value is NULL in userland. return_value = pow_zstring_internal_split(Z_STRVAL_P(ivalue), sepa

[PHP-DEV] [PATCH] - Standardize argument parsing of objects

2005-11-04 Thread Bob Silva
Please take under consideration this patch to fully utilize cast_object handlers in the new parameter parsing API. The old parameter API forced the called function to validate and convert its arguments using the convert_to_* functions. The convert_to_* functions make use of cast_object handlers if

RE: [PHP-DEV] [PATCH] - Standardize argument parsing of objects

2005-11-04 Thread Bob Silva
to turn it into a PECL extension. Why program if you can't have fun doing it? Bob > -Original Message- > From: Marcus Boerger [mailto:[EMAIL PROTECTED] > Sent: Friday, November 04, 2005 12:29 AM > To: Bob Silva > Cc: internals@lists.php.net > Subject: Re: [PHP-DEV] [

RE: [PHP-DEV] [PATCH] - Standardize argument parsing of objects

2005-11-04 Thread Bob Silva
ple that are looking for a strongly typed PHP may find it useful once I complete the rest of the object framework. Next up is Collections. Again, I really appreciate you taking the time to reply to my questions and point me in the right direction. Bob > -Original Message- > From: M

RE: [PHP-DEV] [PATCH] - Standardize argument parsing of objects

2005-11-04 Thread Bob Silva
e at work, so it would have to wait till Monday). > > (IMHO, I still think a core String class would be very useful. There are > many extensions that provide both a procedural and OOP interface. Take for > example SQLite. You can either use the sqlite_* functions or use the > SQLiteDa

[PHP-DEV] Good memory management

2005-11-09 Thread Bob Silva
I destruct the objects myself before replacing the property (Array) with the new one? Depending on the answer, what is the process to destruct an object? Just ZVAL_DEL_REF it and let the engine GC do the rest? Thanks Bob Silva

RE: [PHP-DEV] date() behaviour changed in 5.1?

2005-11-15 Thread Bob Silva
y extension is dependent on it. On a side note, are there instructions on how to PECL'ize an extension so I can release a first revision? Thanks Bob Silva > -Original Message- > From: Lukas Smith [mailto:[EMAIL PROTECTED] > Sent: Tuesday, November 15, 2005 12:44 PM

RE: [PHP-DEV] More docs about making PHP extensions?

2005-11-17 Thread Bob Silva
f the skeleton extension as a starting point. Sara's articles are good for understanding the ZVAL's usage within PHP. Also, looking at some of the newer extensions like SPL are good starting points to get some of the base concepts down. Good luck, it isn't so hard once you get

RE: [PHP-DEV] Upgrade notes for PHP 5.1 - 4th draft

2005-11-17 Thread Bob Silva
Hi Steph, Maybe in section 4, explain what the result of the change is. You explain what was wrong in the past, but don't really cover what the new behavior is. Bob > -Original Message- > From: Steph Fox [mailto:[EMAIL PROTECTED] > Sent: Thursday, November 17, 2005 9:11 PM > To: internal

[PHP-DEV] Help with object creation

2005-11-20 Thread Bob Silva
is_ref? Aren't objects treated as is_ref natively throughout the engine? Or is this just old code from PHP 4 days that is still hanging around? Thanks for the understanding. Bob Silva

RE: AW: [PHP-DEV] PDM Meeting Notes

2005-11-22 Thread Bob Silva
le of the section indicates it was the first preference. Thanks Bob Silva > -Original Message- > From: Marcus Boerger [mailto:[EMAIL PROTECTED] > Sent: Tuesday, November 22, 2005 2:45 PM > To: Matthias Pigulla > Cc: internals > Subject: Re: AW: [PHP-DEV] PDM Meeting No

[PHP-DEV] Reflection API idea

2005-11-22 Thread Bob Silva
p;& memcmp(fptr->common.scope->name, ce->name)) { string_printf(str, " inherited from %s", fptr->common.scope->name); } string_printf(str, " ] {\n"); Not sure if this works in all situations, I'll leave that for you guys to determine if you think this

RE: [PHP-DEV] Reflection API idea

2005-11-22 Thread Bob Silva
Whoops, that memcmp should be a strcmp. > -Original Message- > From: Bob Silva [mailto:[EMAIL PROTECTED] > Sent: Tuesday, November 22, 2005 8:19 PM > To: 'internals' > Subject: [PHP-DEV] Reflection API idea > > Here's an idea for the maintainer of the

RE: [PHP-DEV] Reflection API idea

2005-11-23 Thread Bob Silva
Nope, sorry, I'll do my homework next time. Bob > -Original Message- > From: Marcus Boerger [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 23, 2005 12:39 AM > To: Bob Silva > Cc: 'internals' > Subject: Re: [PHP-DEV] Reflection API idea > &g

RE: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-25 Thread Bob Silva
EAR is let off the hook, as am I and many other developers who have existing classes that will conflict with any core objects in the future. Bob Silva > -Original Message- > From: Marcus Boerger [mailto:[EMAIL PROTECTED] > Sent: Friday, November 25, 2005 11:28 AM > To: Christia

RE: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-25 Thread Bob Silva
27;s just plain awkward IMO. Bob Silva > -Original Message- > From: Christian Schneider [mailto:[EMAIL PROTECTED] > Sent: Friday, November 25, 2005 4:42 PM > To: Marcus Boerger > Cc: PHP internals > Subject: Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out &

RE: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-25 Thread Bob Silva
that aren't bound to the funkiness of using PEAR and all its dependencies like PEAR_Error (which is my own personal reason for not giving PEAR a second look). Bob Silva > -Original Message- > From: Gareth Ardron [mailto:[EMAIL PROTECTED] > Sent: Friday, November 25, 200

RE: [PHP-DEV] Solution to date issue in 5.1

2005-11-25 Thread Bob Silva
ndication to me that more things need to be worked out before the first core class is "officially" released. Bob Silva > -Original Message- > From: Ilia Alshanetsky [mailto:[EMAIL PROTECTED] > Sent: Friday, November 25, 2005 8:50 PM > To: internals@lists.php.net &

RE: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-25 Thread Bob Silva
ason enough for such an awkward syntax. Any core functionality that uses globals now that is moved to an object will require code modifications anyways, so I don't think thatÂ’s a valid argument for the need of namespace constants. Bob Silva > -Original Message- > From: Jessie Hernande

RE: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-26 Thread Bob Silva
Very good points Kevin since I was accused of wanting to turn PHP into C++ earlier just for not liking the \ separator. I suppose the person that selected the -> object operator had the same intentions :) Bob > -Original Message- > From: Kevin Brown [mailto:[EMAIL PROTECTED] > Sent: Satur

RE: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-28 Thread Bob Silva
ch will ever be accepted if we don't have agreement of what namespaces should do and not do. Bob Silva -Original Message- From: Jessie Hernandez [mailto:[EMAIL PROTECTED] Sent: Monday, November 28, 2005 8:03 AM To: internals@lists.php.net Subject: Re: [PHP-DEV] Re: PHP 5.1 (Or How

RE: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-28 Thread Bob Silva
Just as easy namespace Foo { class Foo { const XYZ = 42; } class Bar { const = Foo::XYZ; //... } class Baz { const = Foo::XYZ; //... } } -Original Message- From: Marcus Boerger [mailto:[EMAIL PROTECTED] Sent: Monday, Novemb

RE: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-28 Thread Bob Silva
Can someone explain why you wouldn't want private and/or protected classes within a namespace? I imagine it would be due to problems with implementation... thanks for an explanation. Bob -Original Message- From: Marcus Boerger [mailto:[EMAIL PROTECTED] Sent: Monday, November 28, 2005 12:

RE: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-28 Thread Bob Silva
when it was first tried in the early 5.0 development. Bob Silva > -Original Message- > From: Marcus Boerger [mailto:[EMAIL PROTECTED] > Sent: Monday, November 28, 2005 2:43 PM > To: Bob Silva > Cc: 'Jessie Hernandez'; internals@lists.php.net > Subject: Re: [PHP-DEV]

[PHP-DEV] Desired namespace behavoir

2005-11-29 Thread Bob Silva
Looking for some feedback on what the expected behavior should be for class and/or constant ambiguity within namespaces. For instance: Classes.php: namespace A { const FOO = 123; class Bar { . } class FooBaz { . } } namespace B { const FOO = 456; class Bar { .

RE: [PHP-DEV] Re: Desired namespace behavoir

2005-12-01 Thread Bob Silva
If Mike doesn't want to use namespaces, then Mike shouldn't use Jessies package. Bob > -Original Message- > From: Bart de Boer [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 30, 2005 11:45 PM > To: internals@lists.php.net > Subject: [PHP-DEV] Re: Desired namespace behavoir > > >>

RE: [PHP-DEV] Re: Documentation for creating PECL extension

2005-12-08 Thread Bob Silva
ara's articles on zend.com to understand the zval structure and parameter parsing api, once you have these down the rest flows pretty well even without a background in C. Hope this helps, Bob Silva > -Original Message- > From: Sara Golemon [mailto:[EMAIL PROTECTED] > Sent: Th