Re: [PHP-DEV] [PATCH] php4/win32/install.txt
On Tue, 19 Nov 2002, Philip Olson wrote: Hello all- Here's a small patch that mentions apache2 for windows users. Related bugs on this issue can be seen here: * http://bugs.php.net/bug.php?id=16744 * http://bugs.php.net/bug.php?id=18129 Bug #18129 virtually became a support thread for this topic. The following patch doesn't go into detail as I don't feel comfortable with the subject but it at least gives an idea on what to do. Anyone feel free to go into more detail or adjust the words below before commit :) Committed! -- --- Derick Rethans http://derickrethans.nl/ JDI Media Solutions --[ if you hold a unix shell to your ear, do you hear the c? ]- -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] CVS Account Request: hfdown
We want to setup a forum to exchange softwares -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] ZE2 and classes
php.net/get_defined_functions and php.net/get_class_methods not good enough for you? ;-) What's the long term aim? --Wez. On Tue, 19 Nov 2002, Marcus [iso-8859-1] Börger wrote: I have experimented with the code below. The main thing is to introduce a function that can return a list of all available functions (this is a first step to something bigger...). At this point i have three problems: 1) When i create a function it is shown in the result :-) 2) When i create a class it is shown twice (same goes with methods) :-( 3) When i look for internal classes there is the problem that the the function entries do not know there scope (class). In other words the connection between zend_class_entry.function_table - zend_function is a one way link because zend_function.scope==NULL :-(( For the moment: I know that i can fetch the scop easily if it is missing by using apply_func_args_t type functions instead of apply_func_arg_t and passing the scope to add_function_info. But for me it seems to be a problem in the zend engine. Example 1: [marcus@zaphod php4-HEAD]$ php -r 'class zz_c { function zz_c() {echozz_inst\n;}; static function zz_sf() {};};$o=new zz_c();$l=function_list();sort($l);var_dump($l);' | grep zz zz_inst string(10) class zz_c string(10) class zz_c string(18) static zz_c::zz_sf string(18) static zz_c::zz_sf string(2) zz string(10) zz_c::zz_c string(10) zz_c::zz_c Example 2: searching for methods of class defined in ext/xslt [marcus@zaphod php4-HEAD]$ php -r 'var_dump(function_list());' | grep domnode string(7) domnode string(7) domnode string(7) domnode string(7) domnode string(7) domnode string(7) domnode string(7) domnode string(7) domnode string(7) domnode string(7) domnode string(7) domnode string(7) domnode string(7) domnode string(7) domnode string(7) domnode string(7) domnode string(7) domnode /* {{{ add_function_info */ static int add_function_info(zend_function *func, zval *return_value TSRMLS_DC) { char *f; if (func-internal_function.handler != zif_display_disabled_function) { /* ?? internal_function-type = ZEND_INTERNAL_FUNCTION; */ if (func-common.scope) { if (func-common.is_static) { spprintf(f, 0, static %s::%s, func-common.scope-name, func-common.function_name); } else { spprintf(f, 0, %s::%s, func-common.scope-name, func-common.function_name); } } else { f = estrdup(func-common.function_name); } add_next_index_string(return_value, f, 0); } return 0; } /* }}} */ /* {{{ add_class_info */ static int add_class_info(zend_class_entry **zclass, zval *return_value TSRMLS_DC) { char *f; spprintf(f, 0, class %s, (*zclass)-name); add_next_index_string(return_value, f, 0); zend_hash_apply_with_argument((*zclass)-function_table, (apply_func_arg_t)add_function_info, return_value TSRMLS_CC); return 0; } /* }}} */ /* {{{ proto array function_list() Returns an array of all php functions */ PHP_FUNCTION(function_list) { if (ZEND_NUM_ARGS()) { WRONG_PARAM_COUNT; } if (array_init(return_value) == FAILURE) { php_error_docref(NULL TSRMLS_CC, E_ERROR, Unable to initialize array); RETURN_FALSE; } zend_hash_apply_with_argument(EG(function_table), (apply_func_arg_t)add_function_info, return_value TSRMLS_CC); zend_hash_apply_with_argument(EG(class_table), (apply_func_arg_t)add_class_info,return_value TSRMLS_CC); } /* }}} */ --- mailto:[EMAIL PROTECTED] -- We are animals among animals, all children of matter, save that we are the more disarmed. But since, unlike animals, we know that we must die, let us prepare for that moment by enjoying the life that has been given us by chance and for chance. Umberto Eco, The island of the day before - http://marcus-boerger.de - -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Mailparse extension
Is this going to be production stable in 4.3.0? Cheers, Mike -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Mailparse extension
Hi Mike, I'm ironing out a few nasty bugs; I'm aiming to have it stable either in time for 4.3 or very shortly afterwards. (It's not bundled with the core any longer - it's now in PECL) --Wez. On Tue, 19 Nov 2002, Mike Hall wrote: Is this going to be production stable in 4.3.0? Cheers, Mike -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Just a little question
Hi all, I have a chain charachter that look like this : *text*text*text*text*textetc I would like to cut off the FIRST star but not the others My chain is REALLY long. I made that script : $maxi=strlen($resultats)-2; $nb = 0; while ($nb=$maxi) { $results2 = $results2.$results[1+$nb]; $nb = $nb+1; } where $results is the chain It works perfectly but it takes over 5 minutes ! Do you have any idea on how to make it faster ? Thanks, Hacook -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Just a little question
$ar = array_diff(explode('*',$str), array()); Regards Andrey - Original Message - From: Hacook [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, November 19, 2002 11:47 AM Subject: [PHP-DEV] Just a little question Hi all, I have a chain charachter that look like this : *text*text*text*text*textetc I would like to cut off the FIRST star but not the others My chain is REALLY long. I made that script : $maxi=strlen($resultats)-2; $nb = 0; while ($nb=$maxi) { $results2 = $results2.$results[1+$nb]; $nb = $nb+1; } where $results is the chain It works perfectly but it takes over 5 minutes ! Do you have any idea on how to make it faster ? Thanks, Hacook -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] 4.2.3 mbstring patch?
Andrei Zmievski wrote: On Thu, 14 Nov 2002, lowbwtom wrote: Will there be a patch to fix the mbstring bug in 4.2.3? Any idea when? (specifically to fix the missing 4 characters in array posts) Some of us have been totally screwed by this bug - since our isp's have updated to 4.2.3 and left everyone's sites totally broken. They refuse to drop back to old version and are leaving everyone up the creek until php 4.3.0 is in final release or a 4.2.3 patch is released. For the love of PHP, give me relief! While it's not directly on topic of this post, this is *exactly* why mbstring will not be enabled by default in 4.3.0. This is one of the reason why we should *enable* mbstring by default i.e. discover sloppy patches to it. (BTW, I don't use array, since [] are illegal chars) Anyway, this the patch if you would like. http://cvs.php.net/diff.php/php4/ext/mbstring/mbstring.c?login=2r1=1.48.2.14r2=1.48.2.17ty=u -- Yasuo Ohgaki -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DEV] Just a little question
-Original Message- From: Hacook [mailto:[EMAIL PROTECTED]] Sent: 19 November 2002 09:48 I have a chain charachter that look like this : *text*text*text*text*textetc I would like to cut off the FIRST star but not the others My chain is REALLY long. I made that script : $maxi=strlen($resultats)-2; $nb = 0; while ($nb=$maxi) { $results2 = $results2.$results[1+$nb]; $nb = $nb+1; } where $results is the chain It works perfectly but it takes over 5 minutes ! Do you have any idea on how to make it faster ? (a) wrong list -- you want [EMAIL PROTECTED] (b) $results2 = substr($results, 1); Cheers! Mike - Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: [EMAIL PROTECTED] Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DEV] 4.2.3 mbstring patch?
-Original Message- From: Yasuo Ohgaki [mailto:[EMAIL PROTECTED]] Sent: 19 November 2002 10:19 Andrei Zmievski wrote: On Thu, 14 Nov 2002, lowbwtom wrote: Will there be a patch to fix the mbstring bug in 4.2.3? Any idea when? (specifically to fix the missing 4 characters in array posts) (BTW, I don't use array, since [] are illegal chars) Uh -- is this referring to form element name= attributes? Cheers! Mike - Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: [EMAIL PROTECTED] Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DEV] Just a little question (sidenote)
On a sidenote, is it possible in Zend to implmement something such as: $string = Foobar; $string = $string[1]; I actually thought that would work, however upon testing it throws an error... Just curious. John -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DEV] Just a little question (sidenote)
On Tue, 19 Nov 2002, John Coggeshall wrote: On a sidenote, is it possible in Zend to implmement something such as: $string = Foobar; $string = $string[1]; I actually thought that would work, however upon testing it throws an error... Just curious. No, this would not be possible to do, as a string in PHP is an continuues range of bytes, and not an array of 'character' zvals. Reference can only be made to zvals internally. Derick -- --- Derick Rethans http://derickrethans.nl/ JDI Media Solutions --[ if you hold a unix shell to your ear, do you hear the c? ]- -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] ZE2 and classes
I am thinking about about documentation assistance for user functions and for the documentation team. marcus At 10:41 19.11.2002, Wez Furlong wrote: php.net/get_defined_functions and php.net/get_class_methods not good enough for you? ;-) What's the long term aim? --Wez. On Tue, 19 Nov 2002, Marcus [iso-8859-1] Börger wrote: I have experimented with the code below. The main thing is to introduce a function that can return a list of all available functions (this is a first step to something bigger...). At this point i have three problems: 1) When i create a function it is shown in the result :-) 2) When i create a class it is shown twice (same goes with methods) :-( 3) When i look for internal classes there is the problem that the the function entries do not know there scope (class). In other words the connection between zend_class_entry.function_table - zend_function is a one way link because zend_function.scope==NULL :-(( For the moment: I know that i can fetch the scop easily if it is missing by using apply_func_args_t type functions instead of apply_func_arg_t and passing the scope to add_function_info. But for me it seems to be a problem in the zend engine. Example 1: [marcus@zaphod php4-HEAD]$ php -r 'class zz_c { function zz_c() {echozz_inst\n;}; static function zz_sf() {};};$o=new zz_c();$l=function_list();sort($l);var_dump($l);' | grep zz zz_inst string(10) class zz_c string(10) class zz_c string(18) static zz_c::zz_sf string(18) static zz_c::zz_sf string(2) zz string(10) zz_c::zz_c string(10) zz_c::zz_c Example 2: searching for methods of class defined in ext/xslt [marcus@zaphod php4-HEAD]$ php -r 'var_dump(function_list());' | grep domnode string(7) domnode string(7) domnode string(7) domnode string(7) domnode string(7) domnode string(7) domnode string(7) domnode string(7) domnode string(7) domnode string(7) domnode string(7) domnode string(7) domnode string(7) domnode string(7) domnode string(7) domnode string(7) domnode string(7) domnode /* {{{ add_function_info */ static int add_function_info(zend_function *func, zval *return_value TSRMLS_DC) { char *f; if (func-internal_function.handler != zif_display_disabled_function) { /* ?? internal_function-type = ZEND_INTERNAL_FUNCTION; */ if (func-common.scope) { if (func-common.is_static) { spprintf(f, 0, static %s::%s, func-common.scope-name, func-common.function_name); } else { spprintf(f, 0, %s::%s, func-common.scope-name, func-common.function_name); } } else { f = estrdup(func-common.function_name); } add_next_index_string(return_value, f, 0); } return 0; } /* }}} */ /* {{{ add_class_info */ static int add_class_info(zend_class_entry **zclass, zval *return_value TSRMLS_DC) { char *f; spprintf(f, 0, class %s, (*zclass)-name); add_next_index_string(return_value, f, 0); zend_hash_apply_with_argument((*zclass)-function_table, (apply_func_arg_t)add_function_info, return_value TSRMLS_CC); return 0; } /* }}} */ /* {{{ proto array function_list() Returns an array of all php functions */ PHP_FUNCTION(function_list) { if (ZEND_NUM_ARGS()) { WRONG_PARAM_COUNT; } if (array_init(return_value) == FAILURE) { php_error_docref(NULL TSRMLS_CC, E_ERROR, Unable to initialize array); RETURN_FALSE; } zend_hash_apply_with_argument(EG(function_table), (apply_func_arg_t)add_function_info, return_value TSRMLS_CC); zend_hash_apply_with_argument(EG(class_table), (apply_func_arg_t)add_class_info,return_value TSRMLS_CC); } /* }}} */ --- mailto:[EMAIL PROTECTED] -- We are animals among animals, all children of matter, save that we are the more disarmed. But since, unlike animals, we know that we must die, let us prepare for that moment by enjoying the life that has been given us by chance and for chance. Umberto Eco, The island of the day before - http://marcus-boerger.de - -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Have fun! 3 Days for free! or for one month! every day 24 hours!
Show this line! http://www.tgpfriendly2.com/members/switzerland/pussyline/ it\'s an switzerline Have fun! Days for free! http://www.tgpfriendly2.com/members/switzerland/pussyline/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] leak() crash()
As far as i can tell from the source there is ZEND_TEST_EXCEPTIONS to guard crash() but leak() isa allways there. Without debug leak() doesn't report anything but it produces a leak. marcus At 07:36 19.11.2002, Derick Rethans wrote: On Tue, 19 Nov 2002, Marcus Börger wrote: Shouldn't leak() and crash() be disabled or without functionality for normal use and instead have to be enabled with a configure option? --enable-debug is this switch AFAIK. Derick -- --- Derick Rethans http://derickrethans.nl/ JDI Media Solutions --[ if you hold a unix shell to your ear, do you hear the c? ]- -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Memory persistence with apache question
Unfortunately I can't ask my clients to upgrade to a CVS version - v1.3.2 isn't available yet :-( But more generally wouldn't it be nice if PHP could GUARANTEE that memory resources are recovered on script termination ? Lot's of scripts are written without proper consideration for memory - and ISPs suffer because of it. I use apache that forks children so I can sidestep the issue with MaxRequestsPerChild (at a performance hit for other clients)... What it I was using a threading model in apache 2.0 ? Mike On Mon, 2002-11-18 at 22:52, Marcus Börger wrote: Problems that could arise: The sytem tries to open images and does not unset the variables...and such. I guess when everything is working you cannot do anything against. If you want to investigate more you would need a debug version from php to verify if all memory is freed. But this is the post from the developer who is assigned to the bug on Sourceforge: Date: 2002-10-23 17:59 Sender: bharat Logged In: YES user_id=42211 This is fixed in v1.3.2 marcus At 04:33 19.11.2002, Mike Leddy wrote: Hello, I administer a linux 2.4.19/apache 1.3.26/php 4.1.2 server in an ISP. Recently some clients started using a gallery php script: http://gallery.sf.net that causes excessive memory utilization on the server: http://sourceforge.net/tracker/index.php?func=detailaid=498028group_id=7130atid=107130 So here goes the question: In what situations will memory allocated to a script remain with the apache process after the script has terminated ? I always thought that memory allocated would be released on script termination - Am I wrong in this assumption ? Could it be that the heap in the apache process stays at the maximally used level ? Thanks for any pointers or how I should approach resolving this problem. (I am already using 'MaxRequestsPerChild 5' in apache as a stopgap measure) Mike -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php -- Atenciosamente Mike Leddy, Systems Administrator, Braslink Network Inc., Miami, FL. Tel +1 305 279 3232 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] apache_hooks
What is apache_hooks SAPI module? It looks like it produces errors in my build... And no docs there. What's that? -- Stanislav Malyshev, Zend Products Engineer [EMAIL PROTECTED] http://www.zend.com/ +972-3-6139665 ext.109 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Re: is_*
What about making FALIASES so it can be found in is_*? Really easier for newbies. M.CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com Hébergement de sites internets. - Original Message - From: Hartmut Holzgraefe [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, November 14, 2002 10:21 AM Subject: Re: [PHP-DEV] Re: is_* [EMAIL PROTECTED] wrote: Okay, some of them are in ctype. But it should be easier to have them in standard so basic user should use them. ctype is enabled by default in 4.3 ... -- Six Offene Systeme GmbH http://www.six.de/ i.A. Hartmut Holzgraefe Email: [EMAIL PROTECTED] Tel.: +49-711-99091-77 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Re: is_*
On Thu, 14 Nov 2002 [EMAIL PROTECTED] wrote: What about making FALIASES so it can be found in is_*? Really easier for newbies. We generally don't want to clutter our function namespaces with aliases UNLESS there is a very good reason for. Derick -- --- Derick Rethans http://derickrethans.nl/ JDI Media Solutions --[ if you hold a unix shell to your ear, do you hear the c? ]- -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] RFC: ZE2 and abstract
The link below contain a patch that allows abstract functions in ZE2. http://marcus-boerger.de/php/ext/ze2 abstract [static] function '(' parameters ')' ';' it would be possible to make the ';' optional. When an abstract method is called a fatal error is generated and execution stops. Another way of handling abstract would be to generate an E_WARNING or throw an exception. I experimented with the second one already but do not like it. I favor the first over the third but haven't tried that yet. The thinks i did: introduce T_ABSTRACT = abstract and modified the parser. added is_abstract after is_static in zend_function (and such) emit an E_ERROR when is_abstract is set in zend_init_static_method_call_handler zend_init_method_call_handler marcus --- mailto:[EMAIL PROTECTED] -- We are animals among animals, all children of matter, save that we are the more disarmed. But since, unlike animals, we know that we must die, let us prepare for that moment by enjoying the life that has been given us by chance and for chance. Umberto Eco, The island of the day before - http://marcus-boerger.de -
Re: [PHP-DEV] apache_hooks
On Tue, 19 Nov 2002, Stanislav Malyshev wrote: What is apache_hooks SAPI module? It looks like it produces errors in my build... And no docs there. What's that? I think those errors should be fixed now. The config.m4 was just borked. --Jani -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] apache_hooks
Apache_hooks is an Apache 1.3 SAPI module which lets you execute PHP code at every stage of the Apache request handling cycle instead of just the content handling hook that the normal apache sapi module uses. It was a super experimental thing I put together ages ago that George and Lukas have now cleaned up/rewritten to be much more efficient and complete. -Rasmus On Tue, 19 Nov 2002, Stanislav Malyshev wrote: What is apache_hooks SAPI module? It looks like it produces errors in my build... And no docs there. What's that? -- Stanislav Malyshev, Zend Products Engineer [EMAIL PROTECTED] http://www.zend.com/ +972-3-6139665 ext.109 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] leak()
hi does anybody know how the function leak() works? can anybody explain? thanx, regards, jürg zgraggen -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] leak()
On Tue, 19 Nov 2002, Juerg Zgraggen wrote: hi does anybody know how the function leak() works? can anybody explain? It leaks memory, by only running an emalloc without a free: /* {{{ proto void leak(int num_bytes=3) Cause an intentional memory leak, for testing/debugging purposes */ ZEND_FUNCTION(leak) { int leakbytes=3; zval **leak; if (ZEND_NUM_ARGS()=1) { if (zend_get_parameters_ex(1, leak)==SUCCESS) { convert_to_long_ex(leak); leakbytes = (*leak)-value.lval; } } emalloc(leakbytes); } /* }}} */ Derick -- --- Derick Rethans http://derickrethans.nl/ JDI Media Solutions --[ if you hold a unix shell to your ear, do you hear the c? ]- -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] leak()
hi derick thanx for answering... do i understand it right? this function is used for generating a memory leak which you want to test? and whats about this function emalloc() ... i did not find it on php.net. i suppose it is used to alloc memory? regards, jürg zgraggen Derick Rethans [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Tue, 19 Nov 2002, Juerg Zgraggen wrote: hi does anybody know how the function leak() works? can anybody explain? It leaks memory, by only running an emalloc without a free: /* {{{ proto void leak(int num_bytes=3) Cause an intentional memory leak, for testing/debugging purposes */ ZEND_FUNCTION(leak) { int leakbytes=3; zval **leak; if (ZEND_NUM_ARGS()=1) { if (zend_get_parameters_ex(1, leak)==SUCCESS) { convert_to_long_ex(leak); leakbytes = (*leak)-value.lval; } } emalloc(leakbytes); } /* }}} */ Derick -- -- - Derick Rethans http://derickrethans.nl/ JDI Media Solutions --[ if you hold a unix shell to your ear, do you hear the c? ]- -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] leak()
On Tue, 19 Nov 2002, Juerg Zgraggen wrote: hi derick thanx for answering... do i understand it right? this function is used for generating a memory leak which you want to test? Yes it is. and whats about this function emalloc() ... i did not find it on php.net. i suppose it is used to alloc memory? It's the Zend memory manager version of C's malloc(); this version will dump errors when the script ends and it was not freed. This mechanism can be tested with the PHP leak() function. Derick -- --- Derick Rethans http://derickrethans.nl/ JDI Media Solutions --[ if you hold a unix shell to your ear, do you hear the c? ]- -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] leak()
thanx, regards, jürg Derick Rethans [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Tue, 19 Nov 2002, Juerg Zgraggen wrote: hi derick thanx for answering... do i understand it right? this function is used for generating a memory leak which you want to test? Yes it is. and whats about this function emalloc() ... i did not find it on php.net. i suppose it is used to alloc memory? It's the Zend memory manager version of C's malloc(); this version will dump errors when the script ends and it was not freed. This mechanism can be tested with the PHP leak() function. Derick -- -- - Derick Rethans http://derickrethans.nl/ JDI Media Solutions --[ if you hold a unix shell to your ear, do you hear the c? ]- -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] 4.2.3 mbstring patch?
Additional note, since it seems it's misleading. Yasuo Ohgaki wrote: This is one of the reason why we should *enable* mbstring by default i.e. discover sloppy patches to it. The bug was introduced between 4.2.2 and 4.2.3. -- Yasuo Ohgaki -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] RFC: ZE2 and abstract
Hi, I'm a bit behind my Email but I'll give you a quick answer. I think we can do abstract method's but I wouldn't want to do it the way you did because it adds an additional check in the method calling. It should create a function which will bailout. This might be a bit complicated to do so I'll put it on my TODO. Andi At 04:55 PM 11/19/2002 +0100, Marcus Börger wrote: The link below contain a patch that allows abstract functions in ZE2. http://marcus-boerger.de/php/ext/ze2 abstract [static] function '(' parameters ')' ';' it would be possible to make the ';' optional. When an abstract method is called a fatal error is generated and execution stops. Another way of handling abstract would be to generate an E_WARNING or throw an exception. I experimented with the second one already but do not like it. I favor the first over the third but haven't tried that yet. The thinks i did: introduce T_ABSTRACT = abstract and modified the parser. added is_abstract after is_static in zend_function (and such) emit an E_ERROR when is_abstract is set in zend_init_static_method_call_handler zend_init_method_call_handler marcus --- mailto:[EMAIL PROTECTED] -- We are animals among animals, all children of matter, save that we are the more disarmed. But since, unlike animals, we know that we must die, let us prepare for that moment by enjoying the life that has been given us by chance and for chance. Umberto Eco, The island of the day before - http://marcus-boerger.de - -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php