Re: [PHP-DEV] [PATCH] Add 'Z' flag to zend_parse_parameters*()

2003-07-08 Thread Josh Fuhs
Certainly. One cannot use the convert_to_*_ex() functions unless you have a zval**. A couple people have suggested that I just use "z/", but this forces a separation and I may not need that. I want to be able to pass an array or an object to a group of functions. An object simply gets converte

Re: [PHP-DEV] [PATCH] Add 'Z' flag to zend_parse_parameters*()

2003-07-08 Thread Andi Gutmans
I don't quite understand how this is of added value over the existing "z". Can you please explain in more detail? Thanks, Andi At 07:05 PM 8/7/2003 -0500, [EMAIL PROTECTED] wrote: One more time. I hope it's not too obvious that I'm new at this :) This patch would add a 'Z' flag to zend_parse_param

[PHP-DEV] ext/ming/ming.c

2003-07-08 Thread Frank M. Kromann
Hi iliaa, You made a change to this file rev 1.48 with the comment Fixed a crash when text is added before a font is specified This fix makes the module compile with warnings and crash on Win32 (when compiled with ming-cvs). This fix is not needed at the ming functions do check for a valid fon

Re: [PHP-DEV] [PATCH] Add 'Z' flag to zend_parse_parameters*()

2003-07-08 Thread Jon Parise
On Tue, Jul 08, 2003 at 07:05:18PM -0500, [EMAIL PROTECTED] wrote: > One more time. I hope it's not too obvious that I'm new at this :) > > This patch would add a 'Z' flag to zend_parse_parameters*(). > > Example: > #typdef zvar zval** > zvar a_zvar; > zend_parse_parameters(ZEND_NUM_

Re: [PHP-DEV] [PATCH] Add 'Z' flag to zend_parse_parameters*()

2003-07-08 Thread fuhs
One more time. I hope it's not too obvious that I'm new at this :) This patch would add a 'Z' flag to zend_parse_parameters*(). Example: #typdef zvar zval** zvar a_zvar; zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Z", &zvar); Josh Index: zend_API.c =

[PHP-DEV] [PATCH] Add 'Z' flag to zend_parse_parameters*()

2003-07-08 Thread fuhs
Second time around. This patch would add a 'Z' flag to zend_parse_parameters*(). Example: #typdef zvar zval** zvar a_zvar; zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Z", &zvar); Index: zend_API.c === RCS file: /

Re: Re[2]: [PHP-DEV] Question: How do you get a zval** in a non-deprecated way?

2003-07-08 Thread Wez Furlong
make it a unified diff (see the README.SUBMITTING-PATCH doc in the php source). You probably want to CC the revised patch to [EMAIL PROTECTED] as well as the list. --Wez. - Original Message - From: <[EMAIL PROTECTED]> To: "Marcus Börger" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: T

Re: Re[2]: [PHP-DEV] Question: How do you get a zval** in a non-deprecated way?

2003-07-08 Thread fuhs
I had asked about this before, but I ran into some kind of confirmation thing and the discussion stopped. This patch would add a 'Z' flag to zend_parse_parameters*(). Example: #typdef zvar zval** zvar a_zvar; zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Z", &zvar); Zend/zend

Re[2]: [PHP-DEV] Question: How do you get a zval** in a non-deprecated way?

2003-07-08 Thread Marcus Börger
Hello fuhs, Tuesday, July 8, 2003, 11:58:24 PM, you wrote: fpe> Ok, thanks. fpe> Is there a reason why this functionality is not supported in the new API? Lazyness? Provide a patch and maybe someone adds it. I guess you're not the own who ran into this :-) -- Best regards, Marcus

Re: [PHP-DEV] Question: How do you get a zval** in a non-deprecated way?

2003-07-08 Thread fuhs
Ok, thanks. Is there a reason why this functionality is not supported in the new API? Josh Quoting Sascha Schumann <[EMAIL PROTECTED]>: > On Tue, 8 Jul 2003 [EMAIL PROTECTED] wrote: > > > Hello, > > > > I would like to use zend_parse_parameters() to retrieve a zval** but it > > currently does

Re: [PHP-DEV] Inheritance and Static Methods

2003-07-08 Thread Phil Dier
On Tue, 8 Jul 2003 23:35:14 +0200 [EMAIL PROTECTED] (Marcus Börger) wrote: [snip] > - the method is defined in class a so pre is correct > - backtrace @[0] sees the top caller class that's b that's correct > - get_class($var) sees the class of the variable. In you static case that is > NULL whic

Re: [PHP-DEV] Question: How do you get a zval** in a non-deprecatedway?

2003-07-08 Thread Sascha Schumann
On Tue, 8 Jul 2003 [EMAIL PROTECTED] wrote: > Hello, > > I would like to use zend_parse_parameters() to retrieve a zval** but it > currently does not do this. get_parameters() which does return zval**'s has been > deprecated. I don't want to use the '/' option with zend_parse_parameters() > becaus

[PHP-DEV] ImageCopyRotated Patch

2003-07-08 Thread William N Ross
Hi, I'm not sure of the correct submission procedures, but I have just completed a compatiblity patch on the gd extension to allow it to use GD 2.0.12's gdImageCopyRotated function. Based on what I have read on the newsgroups, I have not incorporated the function from Boutell's library but rath

Re: [PHP-DEV] Inheritance and Static Methods

2003-07-08 Thread Marcus Börger
Hello Phil, Tuesday, July 8, 2003, 11:11:49 PM, you wrote: PD> Is there a function that can be used to retrieve the name of a statically PD> called child class from within an inherited method? debug_backtrace() works PD> for this purpose, but I've seen people say that it is slow. Consider the PD>

[PHP-DEV] Question: How do you get a zval** in a non-deprecated way?

2003-07-08 Thread fuhs
Hello, I would like to use zend_parse_parameters() to retrieve a zval** but it currently does not do this. get_parameters() which does return zval**'s has been deprecated. I don't want to use the '/' option with zend_parse_parameters() because zval separation may not be necessary, and I would like

[PHP-DEV] Inheritance and Static Methods

2003-07-08 Thread Phil Dier
Is there a function that can be used to retrieve the name of a statically called child class from within an inherited method? debug_backtrace() works for this purpose, but I've seen people say that it is slow. Consider the example code below. Is this a planned feature for PHP 5, or could this possi

Re: [PHP-DEV] PHP-4.3.2 Crashes with OCI8 extention (Bug?)

2003-07-08 Thread Levi Dixon
OCI_SHARED mode was used as in initilizaiton param to OCIInit() in php 4.3.2. This caused problems in cgi mode or cli mode (and some other conditions w/the apache module) because the OCI libs seg fault while attempting to use the same shared memory areas between processes. They must use a static

Re: [PHP-DEV] exceptions question

2003-07-08 Thread George Schlossnagle
That's not the way exceptions work in any language I know. On Tuesday, July 8, 2003, at 01:29 PM, Greg Beaver wrote: Hi, In experimenting with exceptions, I notice that throw() always jumps to the first catch() (as expected), and there is no way to return to the line after the throw(). Are w

Re: [PHP-DEV] exceptions question

2003-07-08 Thread Wez Furlong
> In experimenting with exceptions, I notice that throw() always jumps to > the first catch() (as expected), and there is no way to return to the > line after the throw(). That is precisely how exceptions are supposed to work. > Are we forced to use trigger_error() or some > custom function for

[PHP-DEV] exceptions question

2003-07-08 Thread Greg Beaver
Hi, In experimenting with exceptions, I notice that throw() always jumps to the first catch() (as expected), and there is no way to return to the line after the throw(). Are we forced to use trigger_error() or some custom function for this kind of exception, or is there a way to tell PHP 5 "g

Re: [PHP-DEV] Warning in Windows build (related tosafe_emalloc)

2003-07-08 Thread Frank M. Kromann
Hi Zeev, Casting offset to long should be enough. - Frank > C:\Projects\php5\Zend\zend_alloc.c(231) : warning C4018: '<' : > signed/unsigned mismatch > > It appears that VC doesn't like the comparison: > lval < LONG_MAX - offset > > because offset is unsigned, it turns LONG_MAX-offset to unsi

[PHP-DEV] cvs karma for PEAR

2003-07-08 Thread Greg Beaver
Hi, could I have cvs karma for the PEAR module in order to add and maintain the PHP_Parser package? My username is CelloG Thanks, Greg -- phpDocumentor http://www.phpdoc.org -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Warning in Windows build (related to safe_emalloc)

2003-07-08 Thread Zeev Suraski
C:\Projects\php5\Zend\zend_alloc.c(231) : warning C4018: '<' : signed/unsigned mismatch It appears that VC doesn't like the comparison: lval < LONG_MAX - offset because offset is unsigned, it turns LONG_MAX-offset to unsigned as well, and ends up comparing an signed with unsigned. Maybe we shou

Re: [PHP-DEV] PHP-4.3.2 Crashes with OCI8 extention (Bug?)

2003-07-08 Thread Antony Dovgal
On Tue, 8 Jul 2003 01:09:00 +0200 "Edin Kadribasic" <[EMAIL PROTECTED]> wrote: > Tried latest stable snap from http://snaps.php.net/ ? Yep, I discovered this bug too. It seems that this bug exists only in 4.3.2, but 4.3.1 & 4.3.3rc1 seem to be working almost ok. As I understand this problem is co

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

2003-07-08 Thread Zeev Suraski
At 02:37 08/07/2003, l0t3k wrote: Zeev, i know we're in beta, but has the API version number been bumped subsequent to these changes ? Not yet, but it should before beta 2. There are a few other API-breaking changes still to be committed... Zeev -- PHP Internals - PHP Runtime Development Mai