Re: [PHP-DEV] Reusing PHP string value pointers
At 02:50 28/11/2002, Marshall A. Greenblatt wrote: Apologies in advance if this is the wrong mailing list. Please direct me to a more appropriate mailing list if there is one :-) When a PHP string variable is changed via a PHP script, such as: $foo = 'new value'; what happens to the `value.str.val' pointer internally? Is it possible to have the new value assigned to the same `value.str.val' pointer that the variable is currently using instead of having that pointer replaced by a pointer to the new value? No, it's not possible (not in a reliable way anyway). Zeev -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] PHP 4 Bug Summary Report
PHP 4 Bug Database summary - http://bugs.php.net Num Status Summary (983 total including feature requests) ===[*Configuration Issues] 13561 Assigned --without-pear prevent install of php-config,phpize,... 19282 Won't fix Place php4ts.dll into \sapi 20490 Open enable versioning not supported on OSX ===[*General Issues]== 20195 Open make install doesnt set permissions 20577 Open security vulnerability ===[*Languages/Translation]=== 11975 Won't fix mix of hebrew english 13014 Won't fix hebrevc () 20166 Open Unicode (Slovenian) characters are not displayed correctly 20468 Feedback strcoll doesn't work ===[*Network Functions]=== 15639 Suspended detecting end of UDP packets ===[*PDF functions]=== 20225 Feedback a pdflib bug ===[Apache related]=== 14401 Open Wrong include_path from Apache Directory config 14409 Open request for nonexistent file does not return 404 error 15529 Open ap_cleanup_for_exec not used when creating 17837 Won't fix PHP 'handles' permission problems rather than letting Apache do it 18523 Open httpd Memory consumption with new PHP 19113 Open HTTP status 200 returned on HTTP CONNECT when mod_proxy not in use 19292 Critical random error: open_basedir restriction in effect. File is in wrong directory 19378 Open Parse error in PHP executable as Apache CGI 20053 Open apachesuexecphp-cgiignore_user_abort - problem with cancelled connections 20104 Open unhandled exception with multiple requests 20190 Critical Random mem corruption: zend_get_executed_filename() mismatch 20476 Open Apache cannot load libphp4.so into server. Undefined symbol IS_SLASH_P ===[Apache2 related]== 17098 Analyzed apache sending 304 - not modified header 17414 Open Segfaults on restart 17566 Open phpinfo() causes load of 2+ 17868 Verified Doesn't work two and more !--include-- directives of PHP code on different OS 18371 Open --enable-discard-path breaks php-cgi 18957 Won't fix multiple definitions 19452 Open Apache2 with php4 freeze on HP-UX 11.00 19739 Open php-4.2.3 fails to Install with Apache 2.0.42 on AIX 5.1 ML2 19787 Won\'t fix Can not load module 19918 Open no libphp4.so produced 20568 Feedback Apache2/PHP 4.2.3 File Upload Corruption 20569 Open Apache fails when restarting ===[Arrays related]=== 8353 Open foreach modify array pointer 18829 Won\'t fix array_pop, array_shift, array_push... functions very slow with large arrays 20251 Won\'t fix Can't assign values to array in loop. ===[BC math related]== 13551 Open BC functions apply decimal places argument also on arguments 20495 Open BC Math is not Thread Safe, but is in Win32 TS distribution ===[CCVS related]= 10447 Won\'t fix ccvs_*() functions segfault when given invalid session ID ===[Class/Object related]= 15675 Suspended get_class() returns only lower chars 17637 Analyzed constructors in classes (Back to PHP3) 20065 Open References to object members seem to be backwards 20520 Open Nonsymetric data syncronization with references 20531 Open Object property association broken ===[COM related]== 15771 Suspended cannot pass value to image field by ado 16375 Suspended Feature: Support for VARIANT multi dimensional arrays 19150 Open Overloaded COM Property Set Leaks Memory 20100 Open Com Performance/Memory issues 20282 Open COM memory leak ===[Compile Failure]== 1298 Verified need to use -taso with Netscape LDAP libs 7643 Open APXS compile fails with not a DSO 10108 Open cc 1501:218 file XXX contains an incorrect file suffix 14245 Verified make install fails on apxs 15587 Open basic_functions.c and dns.c fail to compile due to incompatible parameters 17820 Won't fix php.ini-dist not copied 18358 Won't fix Recode doesn't compile with apache2 19555 Open GNU pthreads issue? 19973 Open compile zlib and pcre as shared fails 20336 Feedback won't compile with gcc 3.2 20385 Feedback After a previous compile error, a new one when installing php4-STABLE-latest.ta 20395 Feedback A handful of #ifdef's to compile under AIX using xlC 20429 Feedback ./configure gettext error 20444 Won\'t fix Various compile warnings and
Re: Re: [PHP-DEV] OCI patch
hi everyone what happened to the patch i submitted? is it of such bad quality? ;-) maybe someone can tell me more..? :-) thanks, Abdul - Original Message - From: [EMAIL PROTECTED] To: MaximMaletsky [EMAIL PROTECTED]; [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, October 17, 2002 12:55 PM Subject: Re: Re: [PHP-DEV] OCI patch Ok, I've attached a pretty ok version. I had to update the config.m4 to inculde a HAVE_OCI9 define, but since I'm not really good in this kind of thing, buildconf now reports a warning autoheader: No template for symbol `HAVE_OCI9' don't know what to do about it. otherwise everything compiles and runs smoothly, so I hope you'll enjoy :-). Abdul Maxim Maletsky [EMAIL PROTECTED] schrieb am 17.10.02 12:45:57: OK, then. -- Maxim Maletsky [EMAIL PROTECTED] [EMAIL PROTECTED] wrote... : Thies, Maxim, if you could hang on for a few hours I'll be back with a few ideas and a cleaned up version of the patches + a switch for oracle 9+ to enable the new nls functions. Abdul --- oci8.c Wed Oct 9 16:55:16 2002 +++ oci8.c Thu Oct 17 13:32:09 2002 @@ -20,7 +20,7 @@ +--+ */ -/* $Id: oci8.c,v 1.176 2002/09/12 09:48:02 thies Exp $ */ +/* $Id: oci8.c,v 1.175 2002/08/20 07:26:50 edink Exp $ */ /* TODO list: * @@ -199,7 +199,7 @@ static oci_server *_oci_open_server(char *dbname,int persistent); static void _oci_close_server(oci_server *server); -static oci_session *_oci_open_session(oci_server* server,char *username,char *password,int persistent,int exclusive); +static oci_session *_oci_open_session(oci_server* server,char *username,char *password,int persistent,int exclusive,char *charset); static void _oci_close_session(oci_session *session); static sb4 oci_bind_in_callback(dvoid *, OCIBind *, ub4, ub4, dvoid **, ub4 *, ub1 *, dvoid **); @@ -451,7 +451,7 @@ OCI_DEFAULT, 0, NULL)); - + CALL_OCI(OCIHandleAlloc( OCI(pEnv), (dvoid **)OCI(pError), @@ -631,7 +631,7 @@ php_info_print_table_start(); php_info_print_table_row(2, OCI8 Support, enabled); - php_info_print_table_row(2, Revision, $Revision: 1.176 $); + php_info_print_table_row(2, Revision, $Revision: 1.175 $); #ifndef PHP_WIN32 php_info_print_table_row(2, Oracle Version, PHP_OCI8_VERSION ); php_info_print_table_row(2, Compile-time ORACLE_HOME, PHP_OCI8_DIR ); @@ -1158,9 +1158,9 @@ php_error(E_WARNING, Unknown descriptor type %d.,Z_TYPE_P(descr)); return 0; } - + CALL_OCI_RETURN(OCI(error), OCIDescriptorAlloc( - OCI(pEnv), + connection-session-pEnv, (dvoid*)(descr-ocidescr), Z_TYPE_P(descr), (size_t) 0, @@ -1244,7 +1244,7 @@ oci_debug(_oci_make_zval: %16s,retlen = %4d,retlen4 = %d,storage_size4 = %4d,indicator %4d, retcode = %4d, column-name,column-retlen,column-retlen4,column-storage_size4,column-in dicator,column-retcode); - if ((! statement-has_data) || (column-indicator == -1)) { /* column is NULL or statment has no current data */ + if (column-indicator == -1) { /* column is NULL */ ZVAL_NULL(value); return 0; } @@ -1351,14 +1351,14 @@ statement = ecalloc(1,sizeof(oci_statement)); CALL_OCI(OCIHandleAlloc( - OCI(pEnv), + connection-session-pEnv, (dvoid **)statement-pStmt, OCI_HTYPE_STMT, 0, NULL)); CALL_OCI(OCIHandleAlloc( - OCI(pEnv), + connection-session-pEnv, (dvoid **)statement-pError, OCI_HTYPE_ERROR, 0, @@ -1392,9 +1392,7 @@ if (query) { statement-last_query = estrdup(query); } - statement-conn = connection; - statement-has_data = 0; statement-id = zend_list_insert(statement,le_stmt); @@ -1771,7 +1769,6 @@ } statement-error = 0; /* OCI_NO_DATA is NO error for us!!! */ - statement-has_data = 0; return 0; } @@ -1831,16 +1828,12 @@ _oci_make_zval(column-define-zval,statement,column,OCIFetch,0 TSRMLS_CC); } - statement-has_data = 1; - return 1; } oci_error(statement-pError, func, statement-error); oci_handle_error(statement-conn, statement-error); - statement-has_data = 0; - return 0; } @@ -1855,8 +1848,8 @@ ub4 siz = 0; ub4 readlen = 0; char *buf; + TSRMLS_FETCH(); - *loblen = 0; if (Z_TYPE_P(mydescr) == OCI_DTYPE_FILE) { @@ -1888,17 +1881,17 @@ buf = emalloc(readlen + 1); while (readlen 0) { /* thies loop should not be entered on readlen == 0 */ - CALL_OCI_RETURN(connection-error, OCILobRead( + CALL_OCI_RETURN(connection-error, OCILobRead( connection-pServiceContext, connection-pError, mydescr-ocidescr, - readlen, /* IN/OUT bytes toread/read */ + readlen, /* IN/OUT bytes toread/read */ siz + 1, /* offset (starts with 1) */ (dvoid *) ((char *) buf + siz), readlen, /* size of buffer */ (dvoid *)0,
Re: [PHP-DEV] OCI patch
Thies was on it. But, I think he is pretty busy right now. Resubmit it to me and I will look instead of him. Meanwhile, if Thies has time he will spare the light on the issue. -- Maxim Maletsky [EMAIL PROTECTED] Abdul-Kareem Abo-Namous [EMAIL PROTECTED] wrote... : hi everyone what happened to the patch i submitted? is it of such bad quality? ;-) maybe someone can tell me more..? :-) thanks, Abdul - Original Message - From: [EMAIL PROTECTED] To: MaximMaletsky [EMAIL PROTECTED]; [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, October 17, 2002 12:55 PM Subject: Re: Re: [PHP-DEV] OCI patch Ok, I've attached a pretty ok version. I had to update the config.m4 to inculde a HAVE_OCI9 define, but since I'm not really good in this kind of thing, buildconf now reports a warning autoheader: No template for symbol `HAVE_OCI9' don't know what to do about it. otherwise everything compiles and runs smoothly, so I hope you'll enjoy :-). Abdul Maxim Maletsky [EMAIL PROTECTED] schrieb am 17.10.02 12:45:57: OK, then. -- Maxim Maletsky [EMAIL PROTECTED] [EMAIL PROTECTED] wrote... : Thies, Maxim, if you could hang on for a few hours I'll be back with a few ideas and a cleaned up version of the patches + a switch for oracle 9+ to enable the new nls functions. Abdul --- oci8.c Wed Oct 9 16:55:16 2002 +++ oci8.c Thu Oct 17 13:32:09 2002 @@ -20,7 +20,7 @@ +--+ */ -/* $Id: oci8.c,v 1.176 2002/09/12 09:48:02 thies Exp $ */ +/* $Id: oci8.c,v 1.175 2002/08/20 07:26:50 edink Exp $ */ /* TODO list: * @@ -199,7 +199,7 @@ static oci_server *_oci_open_server(char *dbname,int persistent); static void _oci_close_server(oci_server *server); -static oci_session *_oci_open_session(oci_server* server,char *username,char *password,int persistent,int exclusive); +static oci_session *_oci_open_session(oci_server* server,char *username,char *password,int persistent,int exclusive,char *charset); static void _oci_close_session(oci_session *session); static sb4 oci_bind_in_callback(dvoid *, OCIBind *, ub4, ub4, dvoid **, ub4 *, ub1 *, dvoid **); @@ -451,7 +451,7 @@ OCI_DEFAULT, 0, NULL)); - + CALL_OCI(OCIHandleAlloc( OCI(pEnv), (dvoid **)OCI(pError), @@ -631,7 +631,7 @@ php_info_print_table_start(); php_info_print_table_row(2, OCI8 Support, enabled); - php_info_print_table_row(2, Revision, $Revision: 1.176 $); + php_info_print_table_row(2, Revision, $Revision: 1.175 $); #ifndef PHP_WIN32 php_info_print_table_row(2, Oracle Version, PHP_OCI8_VERSION ); php_info_print_table_row(2, Compile-time ORACLE_HOME, PHP_OCI8_DIR ); @@ -1158,9 +1158,9 @@ php_error(E_WARNING, Unknown descriptor type %d.,Z_TYPE_P(descr)); return 0; } - + CALL_OCI_RETURN(OCI(error), OCIDescriptorAlloc( - OCI(pEnv), + connection-session-pEnv, (dvoid*)(descr-ocidescr), Z_TYPE_P(descr), (size_t) 0, @@ -1244,7 +1244,7 @@ oci_debug(_oci_make_zval: %16s,retlen = %4d,retlen4 = %d,storage_size4 = %4d,indicator %4d, retcode = %4d, column-name,column-retlen,column-retlen4,column-storage_size4,column-in dicator,column-retcode); - if ((! statement-has_data) || (column-indicator == -1)) { /* column is NULL or statment has no current data */ + if (column-indicator == -1) { /* column is NULL */ ZVAL_NULL(value); return 0; } @@ -1351,14 +1351,14 @@ statement = ecalloc(1,sizeof(oci_statement)); CALL_OCI(OCIHandleAlloc( - OCI(pEnv), + connection-session-pEnv, (dvoid **)statement-pStmt, OCI_HTYPE_STMT, 0, NULL)); CALL_OCI(OCIHandleAlloc( - OCI(pEnv), + connection-session-pEnv, (dvoid **)statement-pError, OCI_HTYPE_ERROR, 0, @@ -1392,9 +1392,7 @@ if (query) { statement-last_query = estrdup(query); } - statement-conn = connection; - statement-has_data = 0; statement-id = zend_list_insert(statement,le_stmt); @@ -1771,7 +1769,6 @@ } statement-error = 0; /* OCI_NO_DATA is NO error for us!!! */ - statement-has_data = 0; return 0; } @@ -1831,16 +1828,12 @@ _oci_make_zval(column-define-zval,statement,column,OCIFetch,0 TSRMLS_CC); } - statement-has_data = 1; - return 1; } oci_error(statement-pError, func, statement-error); oci_handle_error(statement-conn, statement-error); - statement-has_data = 0; - return 0; } @@ -1855,8 +1848,8 @@ ub4 siz = 0; ub4 readlen = 0; char *buf; + TSRMLS_FETCH(); - *loblen = 0; if (Z_TYPE_P(mydescr) == OCI_DTYPE_FILE) { @@ -1888,17 +1881,17 @@ buf = emalloc(readlen + 1); while
[PHP-DEV] Patch for bug #20539
Hi Sascha, The attached patch fixes a crash in CLI when php.ini contains: session.auto_start=1 magic_quotes_gpc=1 Could you please review it? Edin Index: session.c === RCS file: /repository/php4/ext/session/session.c,v retrieving revision 1.336.2.1 diff -u -3 -p -r1.336.2.1 session.c --- session.c 20 Nov 2002 17:49:57 - 1.336.2.1 +++ session.c 28 Nov 2002 13:06:46 - @@ -1031,7 +1031,8 @@ PHPAPI void php_session_start(TSRMLS_D) smart_str_appendc(var, '='); smart_str_appends(var, PS(id)); smart_str_0(var); - REGISTER_STRINGL_CONSTANT(SID, var.c, var.len, 0); + REGISTER_STRINGL_CONSTANT(SID, var.c, var.len, CONST_PERSISTENT | +CONST_CS); + smart_str_free(var); } else { REGISTER_STRINGL_CONSTANT(SID, empty_string, 0, 0); } -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Re: setting PHP_INI_SYSTEM config. variables in VHost sections (bug 20009)
Yasuo Ohgaki [EMAIL PROTECTED] wrote: - Matus Fantomas Uhlar wrote: - Therefore I propose a change: - - PHP_INI_SYSTEM variables should be allowed to change by admin - in - system-wide php.ini or httpd.conf, no matter if it's VHost or not. - - I've never tried to use php_value/php_admin_value/php_flag/php_admin_flag - in global httpd.conf context. Does it work with Apache1.x SAPI? Well, it does work. - Have you tried php_admin_vlaue/php_admin_flag? - (PHP_INI_ALL directives can be modified in script at least under 4.3.0-dev, - though) I tried php_admin_flag which worked strange (did set some variables, did not set others) php_admin_value seems to work correct. The fault was in me - I used php_admin_flag where I should use value. However I wonder why php_admin_flag worked correctly with text values... I will check it once more. - There may be things that are behaving differently from Apache SAPI. - Please report it bug, see if Apache2 SAPI can be made work like - Apache SAPI. (Search bug db first, 1 bug/report, please) I won't try apache2.x now. - PHP_INI_PERDIR would be then made useless and .htaccess things can be - checked with PHP_INI_USER. - I probably don't understand this line correctly. I mean it this way: Either variables/flags are admin-only: only admin can change them in httpd's config, independently if it's global or virtualhost section or they are user-settable - user can set them in .htaccess or scripts. So I only see reason for PHP_INI_SYSTEM and PHP_INI_USER (or let's call it PHP_INI_ALL?) The variable PHP_INI_PERDIR seems to be useless to me - I can't find any valid reason to use it this way. -- Matus fantomas Uhlar, [EMAIL PROTECTED] ; http://www.fantomas.sk/ Warning: I don't wish to receive spam to this address. Varovanie: Nezelam si na tuto adresu dostavat akukolvek reklamnu postu. 42.7 percent of all statistics are made up on the spot. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Patch for bug #20539
Forget the patch, its not working well. The problem is that with session autostart SID constant gets defined in rinit and gets destroyed twice. Edin - Original Message - From: Edin Kadribasic [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, November 28, 2002 2:11 PM Subject: [PHP-DEV] Patch for bug #20539 Hi Sascha, The attached patch fixes a crash in CLI when php.ini contains: session.auto_start=1 magic_quotes_gpc=1 Could you please review it? Edin -- 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] PHP Beginner
Hi, I'm a beginner in PHP. I'm looking for ressources (templates, samples, ...) which can help me. Where can I find it. Thanks -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] PHP Beginner
1. This is not the right list for asking the question - join the other mailing list at [EMAIL PROTECTED] which is right for that. 2. You already answered yourself: PHP Beginner (www.phpbeginner.com). If that does not satisfy you try the other sites within the links section of www.php.net -- Maxim Maletsky [EMAIL PROTECTED] Mahamadou ZERBO [EMAIL PROTECTED] wrote... : Hi, I'm a beginner in PHP. I'm looking for ressources (templates, samples, ...) which can help me. Where can I find it. Thanks -- 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] PHP Beginner
I'm a beginner in PHP. I'm looking for ressources (templates, samples, ...) which can help me. Where can I find it. Maybe you post to wrong mailing list. At this list the subject is developing the php, not developing _in_ php. I suggest you to look around at http://www.php.net/mailing-lists.php and choose the 'General user list'. M. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] ZE2 question
This is may be a nice token name, but i do not understand it. When trying to execute: $c-parent::function() I receive: Parse error: parse error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /usr/src/ph Not that anywhere it is said this should work but i did an error and found the error message not helpfull. marcus -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] ZE2 and standard class initialization
In ZE2 zend.c there is a structure member not initialized for. See patch below. marcus Index: Zend/zend.c === RCS file: /repository/ZendEngine2/zend.c,v retrieving revision 1.191 diff -u -r1.191 zend.c --- Zend/zend.c 24 Nov 2002 20:15:56 - 1.191 +++ Zend/zend.c 28 Nov 2002 16:24:02 - @@ -289,6 +289,8 @@ zend_standard_class_def-handle_property_get = NULL; zend_standard_class_def-handle_property_set = NULL; zend_standard_class_def-refcount = 1; + zend_standard_class_def-constants_updated = 0; zend_hash_add(GLOBAL_CLASS_TABLE, stdclass, sizeof(stdclass), zend_standard_class_def, sizeof(zend_class_entry *), NULL); } -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] ZE2 question
On Thu, 28 Nov 2002, Marcus Börger wrote: This is may be a nice token name, but i do not understand it. When trying to execute: $c-parent::function() I receive: Parse error: parse error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /usr/src/ph It means ::. See also: http://www.php.net/manual/en/tokens.php Derick -- - Derick Rethans http://derickrethans.nl/ PHP Magazine - PHP Magazine for Professionals http://php-mag.net/ - -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DEV] ZE2 question
it means double colon in hebrew... i think Zeev and Andi must not have known what to call it in english when they put it in... but hey, it was the first i18n'ized error message :) -- jamess -Original Message- From: Marcus Borger [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 28, 2002 4:28 PM To: [EMAIL PROTECTED] Subject: [PHP-DEV] ZE2 question This is may be a nice token name, but i do not understand it. When trying to execute: $c-parent::function() I receive: Parse error: parse error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /usr/src/ph Not that anywhere it is said this should work but i did an error and found the error message not helpfull. marcus -- 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] ZE2 question
Derick Rethans wrote: On Thu, 28 Nov 2002, Marcus Börger wrote: This is may be a nice token name, but i do not understand it. When trying to execute: $c-parent::function() I receive: Parse error: parse error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /usr/src/ph It means ::. See also: http://www.php.net/manual/en/tokens.php And I still think it should be nekudatayim ;) Derick -- Tal Peer [EMAIL PROTECTED] -- 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
From: Zeev Suraski [EMAIL PROTECTED] When a PHP string variable is changed via a PHP script, such as: $foo = 'new value'; what happens to the `value.str.val' pointer internally? Is it possible to have the new value assigned to the same `value.str.val' pointer that the variable is currently using instead of having that pointer replaced by a pointer to the new value? No, it's not possible (not in a reliable way anyway). What about being able to register a callback function for variable assignment? That way I can keep track of the pointer myself and copy the new value to it when the variable value is changed in the PHP script. Would anybody else be interested in this functionality? Zeev Thanks, Marshall -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Hello ! How to write a PHP porgramme which run in given time ?
Dear all , Hello ! I am a student and going to write a suit of programme . The producers as follow producer 1. User A add an new appointment A ( open Winamp at 2:30 on computer B) through IE in his local computer A . producer 2. Computer A send the message to server A through http . The Servlet / ASP.net which locates on server A receives the message and send message to computer B (IP or domain name of computer B is given , named www.computerB.com) . producer 3. Computer B receives the message from server A through http at 1:01 . It is expected to implement the new added appointment A ( open Winamp at 2:30 on computer B ) at given time . I know what to implement the producer 1 and 2. However , I don't know how to implement producer 3. Do you mind to tell me how to make an PHP programme to execute a centian routine at a given time ? Thank you ! Jonathan -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] ZE2 + public/protected/private/final
With current ZE2 it is possible to instanciate an abstract class. That is a class that has at least one abstract method. When we add a flag field to class_entry struct we can handle this. We simply need to set an abstract flag for the class entry when any abstract method is added or inherited. I updated the full patch to do it that way: http://marcus-boerger.de/php/ext/ze2/ze2-f3p-21128.diff.txt marcus At 18:10 25.11.2002, Marcus Börger wrote: After Andi had commited some cleanups my version from PPP is a bit smaller. My version is of cause only my private idea of implementing PPP. The solution i went on has some advantages and disadvantages. One of the disadvantage is that i do not allow redeclaring of private member functions. On the other hand and from my current perspective this should allow a faster implementation. But especially here i would appreciate every hint for alternatives. Besides public/protected/private i introduced final which is available as a smaller patch without public/protected/private stuff. Final can be used if you do not want anybody to modify (overload) one of your methods. The implementation is very simple since only one new keyword final is used which can be stored in fn_flags of methods. While inheriting there needs to be one additional check: A final function cannot be redeclared. And i added two compiler errors in the language parser to have better messages when someone tries to declare a method final and abstract. The main disadvantage here is that final needs the a keyword. You can download updated patches and test files here: http://marcus-boerger.de/php/ext/ze2 Comments welcome !!! -- 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] [PATCH] Redirect on Error
Just an update, I have made a 117m thread on PHP-IT wondering what Italian users think of porting error messages to their language. Apparently, users seemed to be already used to English errors and this idea wasn't completely accepted by everyone (some people agreed, though). Objections to it were similar to what we had here. However, error codes were very well welcomed because of several reasons including searching the docs and for web help, eventual ability catching/recognizing errors run-time, possibility of triggering core errors, etc. Shall we still consider introducing error codes to PHP? IMO, it does not represent any enormous maintenance increase while has some positive points. -- Maxim Maletsky [EMAIL PROTECTED] -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] [PATCH] Redirect on Error
On November 28, 2002 12:56 pm, Maxim Maletsky wrote: Shall we still consider introducing error codes to PHP? IMO, it does not represent any enormous maintenance increase while has some positive points. Do you have an effecient manner in which to implement the introduction of error codes? Ilia -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] [PATCH] Redirect on Error
At 18:59 28.11.2002, Ilia A. wrote: On November 28, 2002 12:56 pm, Maxim Maletsky wrote: Shall we still consider introducing error codes to PHP? IMO, it does not represent any enormous maintenance increase while has some positive points. Do you have an effecient manner in which to implement the introduction of error codes? Ilia That's not the problem (see patch below). The problem is changing the whole source to use error-codes and having a scheme for the codes. marcus cvs -z3 -q diff main.c php.h (in directory S:\php4-HEAD\main) Index: main.c === RCS file: /repository/php4/main/main.c,v retrieving revision 1.518 diff -u -r1.518 main.c --- main.c 21 Nov 2002 14:56:06 - 1.518 +++ main.c 28 Nov 2002 18:06:48 - @@ -385,16 +385,25 @@ /* }}} */ /* {{{ php_verror */ +PHPAPI void php_verror(const char *docref, const char *params, int type, const char *format, va_list args TSRMLS_DC) +{ + php_verror_ex(NULL, docref, params, type, format, args TSRMLS_CC); +} +/* }}} */ + +/* {{{ php_verror_ex */ /* php_verror is called from php_error_docrefn functions. * Its purpose is to unify error messages and automatically generate clickable * html error messages if correcponding ini setting (html_errors) is activated. * See: CODING_STANDARDS for details. */ -PHPAPI void php_verror(const char *docref, const char *params, int type, const char *format, va_list args TSRMLS_DC) +PHPAPI void php_verror_ex(const char *error_code, const char *docref, const char *params, int type, const char *format, va_list args TSRMLS_DC) { char *buffer = NULL, *docref_buf = NULL, *ref = NULL, *target = NULL; char *docref_target = , *docref_root = ; char *function, *p; + char *error_code_separator1 = error_code ? : ; + char *error_code_separator2 = error_code ? : ; int buffer_len = 0; buffer_len = vspprintf(buffer, 0, format, args); @@ -442,9 +451,9 @@ } } if (PG(html_errors)) { - php_error(type, %s(%s) [a href='%s%s%s'%s/a]: %s, get_active_function_name(TSRMLS_C), params, docref_root, docref, docref_target, docref, buffer); + php_error(type, %s(%s) [a href='%s%s%s'%s/a]: %s%s%s%s, get_active_function_name(TSRMLS_C), params, docref_root, docref, docref_target, docref, error_code_separator1, error_code, error_code_separator2, buffer); } else { - php_error(type, %s(%s) [%s%s%s]: %s, get_active_function_name(TSRMLS_C), params, docref_root, docref, docref_target, buffer); + php_error(type, %s(%s) [%s%s%s]: %s%s%s%s, get_active_function_name(TSRMLS_C), params, docref_root, docref, docref_target, error_code_separator1, error_code, error_code_separator2, buffer); } if (target) { efree(target); @@ -453,7 +462,7 @@ docref = get_active_function_name(TSRMLS_C); if (!docref) docref = Unknown; - php_error(type, %s(%s): %s, docref, params, buffer); + php_error(type, %s(%s): %s%s%s%s, docref, params, error_code_separator1, error_code, error_code_separator2, buffer); } if (PG(track_errors) EG(active_symbol_table)) { @@ -475,6 +484,18 @@ } /* }}} */ +/* {{{ php_error_ex */ +/* See: CODING_STANDARDS for details. */ +PHPAPI void php_error_ex(const char *error_code, const char *docref TSRMLS_DC, int type, const char *format, ...) +{ + va_list args; + + va_start(args, format); + php_verror_ex(error_code, docref, , type, format, args TSRMLS_CC); + va_end(args); +} +/* }}} */ + /* {{{ php_error_docref */ /* See: CODING_STANDARDS for details. */ PHPAPI void php_error_docref(const char *docref TSRMLS_DC, int type, const char *format, ...) @@ -487,6 +508,18 @@ } /* }}} */ +/* {{{ php_error_ex1 */ +/* See: CODING_STANDARDS for details. */ +PHPAPI void php_error_ex1(const char *error_code, const char *docref TSRMLS_DC, const char *param1, int type, const char *format, ...) +{ + va_list args; + + va_start(args, format); + php_verror_ex(error_code, docref, param1, type, format, args TSRMLS_CC); + va_end(args); +} +/* }}} */ + /* {{{ php_error_docref1 */ /* See: CODING_STANDARDS for details. */ PHPAPI void php_error_docref1(const char *docref TSRMLS_DC, const char *param1, int type, const char *format, ...) @@ -499,6 +532,21 @@ } /* }}} */ +/* {{{ php_error_ex2 */ +/* See: CODING_STANDARDS for details. */ +PHPAPI void php_error_ex2(const char *error_code, const char *docref TSRMLS_DC, const char *param1, const char *param2, int type, const char *format, ...) +{ +
Re: [PHP-DEV] [PATCH] Redirect on Error
Ilia A. [EMAIL PROTECTED] wrote... : On November 28, 2002 12:56 pm, Maxim Maletsky wrote: Shall we still consider introducing error codes to PHP? IMO, it does not represent any enormous maintenance increase while has some positive points. Do you have an effecient manner in which to implement the introduction of error codes? I believe that it could be done gradually like the way docref was introduced. It might also be an alternative function of something similar. One important things will remain is the naming convention for errors - allocating the numbers in a logical ways. In my first thoughts I'd propose this format: PHP1234 where 12 means the extension and 34 is the error. This way, one could check things by parsing error strings or by calling some built in function which returns the extension name for the error, for instance. I think there could be many utilities for it. -- Maxim Maletsky [EMAIL PROTECTED] -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Patch for bug #20539
On Thu, 28 Nov 2002, Edin Kadribasic wrote: Forget the patch, its not working well. The problem is that with session autostart SID constant gets defined in rinit and gets destroyed twice. Yes, that's why I don't like to rely on internals of something which should be a black box. The constants API needs an interface for deleting entries. - Sascha -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Re: Patch for bug #20539
The attached patch fixes a crash in CLI when php.ini contains: session.auto_start=1 magic_quotes_gpc=1 Could you please review it? SID is neither persistent nor case-sensitive. We should resort to such a hack only, if there is no proper bug fix. - Sascha -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] New vpopmail extension for PHP
Hi there, I made a new vpopmail extension for php based on current vpopmail extension, vpopmail and qmailadmin, below is a complete list for all functions available from the extension. I would like to know if there is any interest on making it available on the standard php dist, if so, i'd need some directions on what to do next. my best wishes to all, Rui Barreiros vpopmail function list: The commented functions are being developed, expecting to finish them this weekend. PHP_FE(vpopmail_add_domain, NULL) PHP_FE(vpopmail_del_domain, NULL) PHP_FE(vpopmail_add_aliasdomain, NULL) PHP_FE(vpopmail_getdomains, NULL) PHP_FE(vpopmail_getdomaindir, NULL) PHP_FE(vpopmail_getdomainuid, NULL) PHP_FE(vpopmail_getdomaingid, NULL) PHP_FE(vpopmail_getdomainusers, NULL) PHP_FE(vpopmail_is_aliasdomain, NULL) // User Functions PHP_FE(vpopmail_add_user, NULL) PHP_FE(vpopmail_del_user, NULL) PHP_FE(vpopmail_add_alias, NULL) PHP_FE(vpopmail_del_alias, NULL) PHP_FE(vpopmail_get_alias, NULL) PHP_FE(vpopmail_del_aliasline, NULL) PHP_FE(vpopmail_add_forward, NULL) PHP_FE(vpopmail_del_forward, NULL) PHP_FE(vpopmail_get_forwards, NULL) PHP_FE(vpopmail_del_forwardline, NULL) PHP_FE(vpopmail_chkpwd, NULL) PHP_FE(vpopmail_passwd, NULL) PHP_FE(vpopmail_setuserquota, NULL) PHP_FE(vpopmail_clearuserflags, NULL) PHP_FE(vpopmail_setuserflags, NULL) PHP_FE(vpopmail_userflagchk, NULL) // Info retrieval Functions PHP_FE(vpopmail_getuserquota, NULL) PHP_FE(vpopmail_getuserquotausage, NULL) PHP_FE(vpopmail_getuserdir, NULL) PHP_FE(vpopmail_getuserlastauth, NULL) PHP_FE(vpopmail_getuserlastauthip, NULL) PHP_FE(vpopmail_getuserflags, NULL) // Forward and vacation functions //PHP_FE(vpopmail_enableforward, NULL) //PHP_FE(vpopmail_disableforward, NULL) //PHP_FE(vpopmail_add_vacation, NULL) //PHP_FE(vpopmail_del_vacation, NULL) //PHP_FE(vpopmail_get_vacations, NULL) // Auto functions //PHP_FE(vpopmail_add_mailrobot, NULL) //PHP_FE(vpopmail_del_mailrobot, NULL) //PHP_FE(vpopmail_get_mailrobot, NULL) // Global settings Functions PHP_FE(vpopmail_setcatchall, NULL) PHP_FE(vpopmail_getcatchall, NULL) // Utility Functions PHP_FE(vpopmail_verror, NULL) -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] New vpopmail extension for PHP
vpopmail is not part of the core anymore, it has been moved to PECL (see pear.php.net.) However, I suggest contacting the current (former?) owner(s) of the extension, afaik it's not orphaned yet. On Thu, Nov 28, 2002 at 07:27:05PM +, Rui Barreiros wrote : Hi there, I made a new vpopmail extension for php based on current vpopmail extension, vpopmail and qmailadmin, below is a complete list for all functions available from the extension. I would like to know if there is any interest on making it available on the standard php dist, if so, i'd need some directions on what to do next. my best wishes to all, Rui Barreiros vpopmail function list: The commented functions are being developed, expecting to finish them this weekend. PHP_FE(vpopmail_add_domain, NULL) PHP_FE(vpopmail_del_domain, NULL) PHP_FE(vpopmail_add_aliasdomain, NULL) PHP_FE(vpopmail_getdomains, NULL) PHP_FE(vpopmail_getdomaindir, NULL) PHP_FE(vpopmail_getdomainuid, NULL) PHP_FE(vpopmail_getdomaingid, NULL) PHP_FE(vpopmail_getdomainusers, NULL) PHP_FE(vpopmail_is_aliasdomain, NULL) // User Functions PHP_FE(vpopmail_add_user, NULL) PHP_FE(vpopmail_del_user, NULL) PHP_FE(vpopmail_add_alias, NULL) PHP_FE(vpopmail_del_alias, NULL) PHP_FE(vpopmail_get_alias, NULL) PHP_FE(vpopmail_del_aliasline, NULL) PHP_FE(vpopmail_add_forward, NULL) PHP_FE(vpopmail_del_forward, NULL) PHP_FE(vpopmail_get_forwards, NULL) PHP_FE(vpopmail_del_forwardline, NULL) PHP_FE(vpopmail_chkpwd, NULL) PHP_FE(vpopmail_passwd, NULL) PHP_FE(vpopmail_setuserquota, NULL) PHP_FE(vpopmail_clearuserflags, NULL) PHP_FE(vpopmail_setuserflags, NULL) PHP_FE(vpopmail_userflagchk, NULL) // Info retrieval Functions PHP_FE(vpopmail_getuserquota, NULL) PHP_FE(vpopmail_getuserquotausage, NULL) PHP_FE(vpopmail_getuserdir, NULL) PHP_FE(vpopmail_getuserlastauth, NULL) PHP_FE(vpopmail_getuserlastauthip, NULL) PHP_FE(vpopmail_getuserflags, NULL) // Forward and vacation functions //PHP_FE(vpopmail_enableforward, NULL) //PHP_FE(vpopmail_disableforward, NULL) //PHP_FE(vpopmail_add_vacation, NULL) //PHP_FE(vpopmail_del_vacation, NULL) //PHP_FE(vpopmail_get_vacations, NULL) // Auto functions //PHP_FE(vpopmail_add_mailrobot, NULL) //PHP_FE(vpopmail_del_mailrobot, NULL) //PHP_FE(vpopmail_get_mailrobot, NULL) // Global settings Functions PHP_FE(vpopmail_setcatchall, NULL) PHP_FE(vpopmail_getcatchall, NULL) // Utility Functions PHP_FE(vpopmail_verror, NULL) -- 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] New vpopmail extension for PHP
it's not orphaned, i'm nursing it back to life :) -- james -Original Message- From: Markus Fischer [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 28, 2002 8:53 PM To: Rui Barreiros Cc: [EMAIL PROTECTED] Subject: Re: [PHP-DEV] New vpopmail extension for PHP vpopmail is not part of the core anymore, it has been moved to PECL (see pear.php.net.) However, I suggest contacting the current (former?) owner(s) of the extension, afaik it's not orphaned yet. On Thu, Nov 28, 2002 at 07:27:05PM +, Rui Barreiros wrote : Hi there, I made a new vpopmail extension for php based on current vpopmail extension, vpopmail and qmailadmin, below is a complete list for all functions available from the extension. I would like to know if there is any interest on making it available on the standard php dist, if so, i'd need some directions on what to do next. my best wishes to all, Rui Barreiros vpopmail function list: The commented functions are being developed, expecting to finish them this weekend. PHP_FE(vpopmail_add_domain, NULL) PHP_FE(vpopmail_del_domain, NULL) PHP_FE(vpopmail_add_aliasdomain, NULL) PHP_FE(vpopmail_getdomains, NULL) PHP_FE(vpopmail_getdomaindir, NULL) PHP_FE(vpopmail_getdomainuid, NULL) PHP_FE(vpopmail_getdomaingid, NULL) PHP_FE(vpopmail_getdomainusers, NULL) PHP_FE(vpopmail_is_aliasdomain, NULL) // User Functions PHP_FE(vpopmail_add_user, NULL) PHP_FE(vpopmail_del_user, NULL) PHP_FE(vpopmail_add_alias, NULL) PHP_FE(vpopmail_del_alias, NULL) PHP_FE(vpopmail_get_alias, NULL) PHP_FE(vpopmail_del_aliasline, NULL) PHP_FE(vpopmail_add_forward, NULL) PHP_FE(vpopmail_del_forward, NULL) PHP_FE(vpopmail_get_forwards, NULL) PHP_FE(vpopmail_del_forwardline, NULL) PHP_FE(vpopmail_chkpwd, NULL) PHP_FE(vpopmail_passwd, NULL) PHP_FE(vpopmail_setuserquota, NULL) PHP_FE(vpopmail_clearuserflags, NULL) PHP_FE(vpopmail_setuserflags, NULL) PHP_FE(vpopmail_userflagchk, NULL) // Info retrieval Functions PHP_FE(vpopmail_getuserquota, NULL) PHP_FE(vpopmail_getuserquotausage, NULL) PHP_FE(vpopmail_getuserdir, NULL) PHP_FE(vpopmail_getuserlastauth, NULL) PHP_FE(vpopmail_getuserlastauthip, NULL) PHP_FE(vpopmail_getuserflags, NULL) // Forward and vacation functions //PHP_FE(vpopmail_enableforward, NULL) //PHP_FE(vpopmail_disableforward, NULL) //PHP_FE(vpopmail_add_vacation, NULL) //PHP_FE(vpopmail_del_vacation, NULL) //PHP_FE(vpopmail_get_vacations, NULL) // Auto functions //PHP_FE(vpopmail_add_mailrobot, NULL) //PHP_FE(vpopmail_del_mailrobot, NULL) //PHP_FE(vpopmail_get_mailrobot, NULL) // Global settings Functions PHP_FE(vpopmail_setcatchall, NULL) PHP_FE(vpopmail_getcatchall, NULL) // Utility Functions PHP_FE(vpopmail_verror, NULL) -- 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 Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Reusing PHP string value pointers
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 Suraski [EMAIL PROTECTED] When a PHP string variable is changed via a PHP script, such as: $foo = 'new value'; what happens to the `value.str.val' pointer internally? Is it possible to have the new value assigned to the same `value.str.val' pointer that the variable is currently using instead of having that pointer replaced by a pointer to the new value? No, it's not possible (not in a reliable way anyway). What about being able to register a callback function for variable assignment? That way I can keep track of the pointer myself and copy the new value to it when the variable value is changed in the PHP script. Would anybody else be interested in this functionality? Zeev Thanks, Marshall -- 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
Or use the overload extension in ZE1. The real question is why you really need/want to do this. George On Thursday, November 28, 2002, at 04:37 PM, l0t3k wrote: 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 Suraski [EMAIL PROTECTED] When a PHP string variable is changed via a PHP script, such as: $foo = 'new value'; what happens to the `value.str.val' pointer internally? Is it possible to have the new value assigned to the same `value.str.val' pointer that the variable is currently using instead of having that pointer replaced by a pointer to the new value? No, it's not possible (not in a reliable way anyway). What about being able to register a callback function for variable assignment? That way I can keep track of the pointer myself and copy the new value to it when the variable value is changed in the PHP script. Would anybody else be interested in this functionality? Zeev Thanks, Marshall -- 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] C++ extensions and ext_skel
A couple of times a month, I get questions about from people looking to use C++ with PHP. Apparently, a lot of people end up reading some post I made to php.dev or something a year or so ago about C++, and although it worked at the time, the procedure I describe has become stale. I messed around a bit with ext_skel and ext/skeleton today and added an option to ext_skel (--cpp) that creates a basic C++ extension rather than the standard C extension. The C++ extension is pretty much the same as the standard C extension, with the exception of some extern C linkage, modifications to config.m4 and Makefile.in and a small C++ class thrown in for fun. Would this be worth adding to PHP proper? I have patches available for 4.2.3, but if it's worthy, I can whip it up for 4.3 or whatever. It'll save me some email bandwidth if it could be used. J -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DEV] C++ extensions and ext_skel
AFAIK, PHP is designed to function on any standard ANSI-compatible C compiler (as a goal). Unless this has changed, I don't know if opening the door for C++ development is the best of ideas (IMHO) John -Original Message- From: J Smith [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 28, 2002 5:25 PM To: [EMAIL PROTECTED] Subject: [PHP-DEV] C++ extensions and ext_skel A couple of times a month, I get questions about from people looking to use C++ with PHP. Apparently, a lot of people end up reading some post I C++ made to php.dev or something a year or so ago about C++, and although it worked at the time, the procedure I describe has become stale. I messed around a bit with ext_skel and ext/skeleton today and added an option to ext_skel (--cpp) that creates a basic C++ extension rather than the standard C extension. The C++ extension is pretty much the same as the standard C extension, with the exception of some extern C linkage, modifications to config.m4 and Makefile.in and a small C++ class thrown in for fun. Would this be worth adding to PHP proper? I have patches available for 4.2.3, but if it's worthy, I can whip it up for 4.3 or whatever. It'll save me some email bandwidth if it could be used. J -- 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] C++ extensions and ext_skel
I think that would be quite cool, save me from having to do it manualy. Shane J Smith wrote: A couple of times a month, I get questions about from people looking to use C++ with PHP. Apparently, a lot of people end up reading some post I made to php.dev or something a year or so ago about C++, and although it worked at the time, the procedure I describe has become stale. I messed around a bit with ext_skel and ext/skeleton today and added an option to ext_skel (--cpp) that creates a basic C++ extension rather than the standard C extension. The C++ extension is pretty much the same as the standard C extension, with the exception of some extern C linkage, modifications to config.m4 and Makefile.in and a small C++ class thrown in for fun. Would this be worth adding to PHP proper? I have patches available for 4.2.3, but if it's worthy, I can whip it up for 4.3 or whatever. It'll save me some email bandwidth if it could be used. J -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DEV] C++ extensions and ext_skel
The door has always been open, as it has always been possible. For instance, the qtdom extension has some C++ components, as does the dotnet extension. This just sort of facilitates the, uh, moving through said door. If you're using ANSI/ISO-compliant (or mostly compliant) C and C++ compilers, like the gcc suite or MSVC++, there shouldn't be any problems. (Famous last words, I know.) I get at least two emails a week about this sort of thing, so clearly there is interest. It seems that everyone who emails me is looking to do it on either a personal basis or for some proprietary extension, so it's not like PHP itself would suddenly become polluted with C++. J John Coggeshall wrote: AFAIK, PHP is designed to function on any standard ANSI-compatible C compiler (as a goal). Unless this has changed, I don't know if opening the door for C++ development is the best of ideas (IMHO) John -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] C++ extensions and ext_skel
I concur, that would be cool. Patches should be against HEAD. George On Thursday, November 28, 2002, at 05:33 PM, Shane Caraveo wrote: I think that would be quite cool, save me from having to do it manualy. Shane J Smith wrote: A couple of times a month, I get questions about from people looking to use C++ with PHP. Apparently, a lot of people end up reading some post I made to php.dev or something a year or so ago about C++, and although it worked at the time, the procedure I describe has become stale. I messed around a bit with ext_skel and ext/skeleton today and added an option to ext_skel (--cpp) that creates a basic C++ extension rather than the standard C extension. The C++ extension is pretty much the same as the standard C extension, with the exception of some extern C linkage, modifications to config.m4 and Makefile.in and a small C++ class thrown in for fun. Would this be worth adding to PHP proper? I have patches available for 4.2.3, but if it's worthy, I can whip it up for 4.3 or whatever. It'll save me some email bandwidth if it could be used. J -- 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] Zend Engine 2
Hello i was wondering when this is becoming available with the possibilities of private and public class features ? -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DEV] C++ extensions and ext_skel
Well, Personally I don't have any problem with introducing C++ into PHP so no argument there from me. I'm curious if using C++ as opposed to C would cause a performace hit? John -Original Message- From: J Smith [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 28, 2002 5:43 PM To: [EMAIL PROTECTED] Subject: RE: [PHP-DEV] C++ extensions and ext_skel The door has always been open, as it has always been possible. For instance, the qtdom extension has some C++ components, as does the dotnet extension. This just sort of facilitates the, uh, moving through said door. If you're using ANSI/ISO-compliant (or mostly compliant) C and C++ compilers, like the gcc suite or MSVC++, there shouldn't be any problems. (Famous last words, I know.) I get at least two emails a week about this sort of thing, so clearly there is interest. It seems that everyone who emails me is looking to do it on either a personal basis or for some proprietary extension, so it's not like PHP itself would suddenly become polluted with C++. J John Coggeshall wrote: AFAIK, PHP is designed to function on any standard ANSI-compatible C compiler (as a goal). Unless this has changed, I don't know if opening the door for C++ development is the best of ideas (IMHO) John -- 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] Zend Engine 2
At 00:07 29.11.2002, electroteque wrote: Hello i was wondering when this is becoming available with the possibilities of private and public class features ? You can use ZE2 with public, protected and private class variables. Some work is already going on for methods but no real solution is out yet and there is no time frame for that. marcus -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Bug #2965
This bug was changed to a documentation problem, and I'm a bit confused as to what exactly the issue is For($i = 'A'; $i = 'Z' $i++) echo $i; I'm assuming this *should* echo the A-Z alphabet (which it doesn't).. But, since it was changed to a documentation problem -- is the current form intended behavior? John -Original Message- From: electroteque [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 28, 2002 6:07 PM To: [EMAIL PROTECTED] Subject: [PHP-DEV] Zend Engine 2 Hello i was wondering when this is becoming available with the possibilities of private and public class features ? -- 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] Bug #2965
This bug was changed to a documentation problem, and I'm a bit confused as to what exactly the issue is For($i = 'A'; $i = 'Z' $i++) echo $i; I'm assuming this *should* echo the A-Z alphabet (which it doesn't).. But, since it was changed to a documentation problem -- is the current form intended behavior? John -Original Message- From: electroteque [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 28, 2002 6:07 PM To: [EMAIL PROTECTED] Subject: [PHP-DEV] Zend Engine 2 Hello i was wondering when this is becoming available with the possibilities of private and public class features ? -- 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] Zend Engine 2
yes i know , what i meant is when will it be available in which php version ? also i am interested in learning some c ++ and doing some php source where could i start with that ? i'd be keen on helping with bug testing etc -Original Message- From: Marcus Borger [mailto:[EMAIL PROTECTED]] Sent: Friday, November 29, 2002 10:58 AM To: electroteque Cc: [EMAIL PROTECTED] Subject: Re: [PHP-DEV] Zend Engine 2 At 00:07 29.11.2002, electroteque wrote: Hello i was wondering when this is becoming available with the possibilities of private and public class features ? You can use ZE2 with public, protected and private class variables. Some work is already going on for methods but no real solution is out yet and there is no time frame for that. marcus -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] RE: Bug #2965
i'd try use chr($i) or something like that and start @ A value -Original Message- From: John Coggeshall [mailto:[EMAIL PROTECTED]] Sent: Friday, November 29, 2002 11:00 AM To: 'electroteque'; [EMAIL PROTECTED] Subject: Bug #2965 This bug was changed to a documentation problem, and I'm a bit confused as to what exactly the issue is For($i = 'A'; $i = 'Z' $i++) echo $i; I'm assuming this *should* echo the A-Z alphabet (which it doesn't).. But, since it was changed to a documentation problem -- is the current form intended behavior? John -Original Message- From: electroteque [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 28, 2002 6:07 PM To: [EMAIL PROTECTED] Subject: [PHP-DEV] Zend Engine 2 Hello i was wondering when this is becoming available with the possibilities of private and public class features ? -- 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] RE: Bug #2965
That's not the issue... In C, the behavior is to actually print the alphabet A-Z... It looks like our implementation is messed up, but the bug report is a bit misleading as to if I should fix the documentation to say you CAN'T do this, or fix the code so you can :) John -Original Message- From: Dan Rossi [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 28, 2002 7:06 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP-DEV] RE: Bug #2965 i'd try use chr($i) or something like that and start @ A value -Original Message- From: John Coggeshall [mailto:[EMAIL PROTECTED]] Sent: Friday, November 29, 2002 11:00 AM To: 'electroteque'; [EMAIL PROTECTED] Subject: Bug #2965 This bug was changed to a documentation problem, and I'm a bit confused as to what exactly the issue is For($i = 'A'; $i = 'Z' $i++) echo $i; I'm assuming this *should* echo the A-Z alphabet (which it doesn't).. But, since it was changed to a documentation problem -- is the current form intended behavior? John -Original Message- From: electroteque [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 28, 2002 6:07 PM To: [EMAIL PROTECTED] Subject: [PHP-DEV] Zend Engine 2 Hello i was wondering when this is becoming available with the possibilities of private and public class features ? -- 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 Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Default Return-Path with mail() and qmail
hi, I was fed up with getting a lot of bounce mails of users on my host, who apparently just have discovered the mail() function in PHP and are writing mails to bogus recipients. Apparently, the default Return-Path that is being set by our MTA (qmail) is Return-Path: anonymous@myhost, even if the user has set a From: header. I thought this was quite counter-intuitive, as any error messages, such as not available mailboxes etc.. were bouncing back to me instead of the users. Instead of documenting this behaviour and telling all users that they should also add a Return-Path to their mail() commands, I decided to write a patch which, if no Return-Path header was set, would use the From header instead (if it existed, of course). I'm pretty sure this is not the right thing (tm) to do, as I should rather fix this problem with my MTA. However, I am currently too dumb to understand qmail's sources (DJB should have really commented his sourcecode), therefore I just did this quick fix. I posted it here because I heard others having the same problem. All others please just ignore this posting :) Warning(s): - This is NOT a general-purpose patch (do not apply to main branch) - This patch probably breaks all rules on coding style and consistency (malloc instead of emalloc etc..) - I know C for only a couple of weeks. Don't blame me if everything crashes and your machine burns down. -daniel -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Default Return-Path with mail() and qmail
--- php-4.2.3/ext/standard/mail.c Thu Nov 28 11:37:12 2002 +++ php-4.2.3-daniel/ext/standard/mail.cFri Nov 29 01:50:09 2002 @@ -21,6 +21,7 @@ #include stdlib.h #include ctype.h #include stdio.h +#include string.h #include php.h #include ext/standard/info.h #if !defined(PHP_WIN32) @@ -124,6 +125,66 @@ } /* }}} */ +char *get_header(char *header_name, char *headers) +{ + char *tmp; + char *header_value = NULL; + int len=0, i; + + do { + if(*headers == '\n' || *headers == '\0') { + if(len strlen(header_name)) { + len = 0; + continue; + } + + if((tmp = (char *)malloc(strlen(header_name) + 1)) == NULL) + return NULL; + + /* rewind pointer */ + for(i = 0; i len; ++i) + --headers; + + /* copy data */ + for(i = 0; i strlen(header_name); ++i) { + tmp[i] = *headers++; + } + + tmp[i] = '\0'; + + /* compare */ + if(strcasecmp(header_name, tmp) == 0) { + header_value = (char *)malloc(len - +strlen(header_name) - 2 /* colon and space */ + 1); + + *headers++; /* colon */ + *headers++; /* space */ + + for(i = 0; i len - strlen(header_name) - 2 /* colon +and space */; ++i) { + header_value[i] = *headers++; + } + + header_value[i] = '\0'; + } + else { + /* fast foward pointer :) */ + for(i = strlen(header_name); i len; ++i) { + headers++; + } + } + + free(tmp); + + len = 0; + } + else { + ++len; + } + } + while(*headers++ header_value == NULL); + + return header_value; +} + /* {{{ php_mail */ PHPAPI int php_mail(char *to, char *subject, char *message, char *headers, char *extra_cmd) @@ -135,6 +196,7 @@ int ret; char *sendmail_path = INI_STR(sendmail_path); char *sendmail_cmd = NULL; + char *return_path; if (!sendmail_path) { #ifdef PHP_WIN32 @@ -169,6 +231,21 @@ fprintf(sendmail, To: %s\n, to); fprintf(sendmail, Subject: %s\n, subject); if (headers != NULL) { + + if((return_path = get_header(Return-Path, headers)) == NULL) +{ + if((return_path = get_header(From, headers)) != +NULL) { + if(strchr(return_path, '')) + fprintf(sendmail, Return-Path: %s\n, +return_path); + else + fprintf(sendmail, Return-Path: +%s\n, return_path); + + free(return_path); + } + } + else { + free(return_path); + } + fprintf(sendmail, %s\n, headers); } fprintf(sendmail, \n%s\n, message); -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Default Return-Path with mail() and qmail
I'm a big -1 on this. The patch will not actually solve the root problem. On Unix systems, the MTA needs to know that the webserver user is 'trusted' to masquerade as another user. In exim this would be the 'trusted-users' directive, sendmail, qmail, and postfix have similar directives. On Windows systems it is necessary to use ini_set() to change the value of sendmail_from, though this won't necessarily work with all MTAs. It doesn't help that the behavior of mail() varies so greatly between platforms. I agree that the documentation could use some updating in this regard and would be happy to make that modification after I collect up some examples of the correct directives to use on common systems. -Pollita I was fed up with getting a lot of bounce mails of users on my host, who apparently just have discovered the mail() function in PHP and are writing mails to bogus recipients. Apparently, the default Return-Path that is being set by our MTA (qmail) is Return-Path: anonymous@myhost, even if the user has set a From: header. I thought this was quite counter-intuitive, as any error messages, such as not available mailboxes etc.. were bouncing back to me instead of the users. Instead of documenting this behaviour and telling all users that they should also add a Return-Path to their mail() commands, I decided to write a patch which, if no Return-Path header was set, would use the From header instead (if it existed, of course). I'm pretty sure this is not the right thing (tm) to do, as I should rather fix this problem with my MTA. However, I am currently too dumb to understand qmail's sources (DJB should have really commented his sourcecode), therefore I just did this quick fix. I posted it here because I heard others having the same problem. All others please just ignore this posting :) Warning(s): - This is NOT a general-purpose patch (do not apply to main branch) - This patch probably breaks all rules on coding style and consistency (malloc instead of emalloc etc..) - I know C for only a couple of weeks. Don't blame me if everything crashes and your machine burns down. -daniel -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] C++ extensions and ext_skel
On Thu, 28 Nov 2002, J Smith wrote: A couple of times a month, I get questions about from people looking to use C++ with PHP. Apparently, a lot of people end up reading some post I made to php.dev or something a year or so ago about C++, and although it worked at the time, the procedure I describe has become stale. I messed around a bit with ext_skel and ext/skeleton today and added an option to ext_skel (--cpp) that creates a basic C++ extension rather than the standard C extension. The C++ extension is pretty much the same as the standard C extension, with the exception of some extern C linkage, modifications to config.m4 and Makefile.in and a small C++ class thrown in for fun. Cannot those be unified? - Sascha -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DEV] C++ extensions and ext_skel
AFAIK, PHP is designed to function on any standard ANSI-compatible C compiler (as a goal). Unless this has changed, I don't know if opening the door for C++ development is the best of ideas (IMHO) That just means that the core and standard extensions need to be written in ISO C and does not preclude C++ extensions (which have existed for some time). - Sascha -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Re: PHP 4.3.0RC2 released
Archive php-4.3.0RC2.tar.gz contain directory autom4te-2.53.cache. With this directory I can't build my own extension, because buildconf can't find their. Vadim Tkachenko. Andrei Zmievski [EMAIL PROTECTED] ???/ ? ?: [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... The second release candidate of the inimitably fabulous PHP version 4.3.0 is out. It can be downloaded from http://qa.php.net. Give it a good testing! -Andrei -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] lstat in php
Placed At : MAATDLN Murali P@SATYAM 11/29/2002 10:09 AM Hi All, I have got a doubt regarding the way php works, wrt its FS implementation. Assuming I run apache as my webserver and I enable the option, SymLinksIfOwnerMatch, in my URL-space, apache issues extra system calls to check on symlinks. One extra systemcall per filename component. There is however a way to disable the same check. I have 2 queries here : 1.) Why should an application like php (basically does parsing of the php file does whatever code is written in the file as work/job) be bothered about symlinks ? 2.) Even if this check has been incorporated in the code, there shd be an option like apache to disable the same (Is there one?) Whatever finetuning is done wrt FS in the apache code/config, performance is nullified when php goes about stat 'ing the same file starting from the toplevel directory. So : 1.) Is there an option to disable the symlink check being made by php ? a.) If yes, could someone tell me how do I go about doing it ? b.) If not, could someone tell me the filename/function name where the lstat's are done in php code ? Note: I find that for one file, thrice symlink checks are being made ?? Thanks P.Murali -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] C++ extensions and ext_skel
There is nothing about using a C++ compiler that makes your code less efficient. The primary determinant is still overwhelmingly the programmer. C++ has *never* gotten in my way when writing extremely efficient programs, and in fact I find it a great help. The flip side is I've seen a lot of hideously inefficient C code. You can write inefficient code in any language. Keep in mind that PHP is a (usually) compile-at-runtime, interpreted language :). John Coggeshall wrote: Well, Personally I don't have any problem with introducing C++ into PHP so no argument there from me. I'm curious if using C++ as opposed to C would cause a performace hit? -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DEV] RE: Bug #2965
At 07:09 PM 11/28/02 -0500, John Coggeshall wrote: That's not the issue... In C, the behavior is to actually print the alphabet A-Z... It looks like our implementation is messed up, but the bug report is a bit misleading as to if I should fix the documentation to say you CAN'T do this, or fix the code so you can :) May I suggest the best choice is to fix the code. The current action is bizarre! A to Z followed by AA - AZ, BA - BZ ... up to YA-YZ, then if finally stops. A lower case range acts the same way with lower case characters. If that isn't bad enough for you, try the range from A to z. After 30 seconds it got up to AUHXT. Rick -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Bug #20308 (Feature Request)
I disagree with this, the current behaviour is imho wrong. mailto: is a url, rejecting the patch because it introduces a special case, is not a good thing. parse_url() is for _all_ url's, not just http:// url's, and besides, the current syntax for mailto is completely valid, and should be parsed anyway. (ie, a special case shouldn't be required if the url parser was rfc compliant). PHP's php_url_parse() function is not in any way limited to http:// as you claim, it support a large variety of valid URLs, take a look at the very extensive test for parse_url() function located here: ext/standard/tests/strings/url_t.phpt. Even the regular expression described in RFC 2396 does not recognize mailto: any differently the our very own parse_url(). It looks like php_url_parse can be modified to return user and host for mailto schemes without making it a 'special case', but that would also remove the current 'path' index which would break existing PHP code ((bad)). So we can (A) put in a special case, or (B) not modify the function at all. Either way leaves someone unhappy so in the absence of a majority I can't help but do nothing. This request will have to remain open, at least for now. -Pollita -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Default Return-Path with mail() and qmail
At 06:28 PM 11/28/02 -0800, Sara Pollita Golemon wrote: I'm a big -1 on this. The patch will not actually solve the root problem. On Unix systems, the MTA needs to know that the webserver user is 'trusted' to masquerade as another user. In exim this would be the 'trusted-users' directive, sendmail, qmail, and postfix have similar directives. I agree that the documentation could use some updating in this regard and would be happy to make that modification after I collect up some examples of the correct directives to use on common systems. Qmail seems to trust everyone on the system by default. I did nothing special to allow 'nobody' rights to use sendmail -f to set the From: address. (Running Qmail's sendmail wrapper.) You might consider recommending a configuration setting like the following in each VirtualHost block on a multi-domain Apache server. This sends bounces and replies to the webmaster of the domain if no attempt is made to set the From: and Reply-to: headers when mail() is used. VirtualHost www.mydomain.com pph_admin_value sendmail_path /usr/sbin/sendmail -t [EMAIL PROTECTED] I think sendmail requires the user to be a member of the 'trusted' group, but I yield to anyone who knows more about it. Rick -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DEV] RE: Bug #2965
I'm conflicted on this one. On the one hand you've got PHP somewhat at fault for treating letters as special characters (such that 'Z'+1 == 'AA') rather than as their ordinal equivalents (such that 'Z'+1 == ord('Z')+1 == 91 == ord('[') == '[' ) which IMO is an ugly thing. I personally like the C-consistency here, at least on this issue. On the other hand, while it's inconsistent with C, it's perfectly in line with Perl and it's a performance trend which is presumably being relied upon by some. I can certainly see where such behavior (heretofore unexpected by me) would come in handy in fact. Where possibly would this behavior of 'Z'+1 = 'AA' be useful? Against my better judgement, I'm voting to leave the interpreter as is and make notes in the documentation to clarify behavior. Given the choice, I'm personally for having single-characters treated as ordinals when appropiate. John -Pollita -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Bug #2965
On Thu, 28 Nov 2002, John Coggeshall wrote: This bug was changed to a documentation problem, and I'm a bit confused as to what exactly the issue is For($i = 'A'; $i = 'Z' $i++) echo $i; I'm assuming this *should* echo the A-Z alphabet (which it doesn't).. But, since it was changed to a documentation problem -- is the current form intended behavior? Yes, it is. (And it has been like this for years) Derick -- - Derick Rethans http://derickrethans.nl/ PHP Magazine - PHP Magazine for Professionals http://php-mag.net/ - -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] C++ extensions and ext_skel
On Thu, Nov 28, 2002 at 06:41:09PM -0500, John Coggeshall wrote : Well, Personally I don't have any problem with introducing C++ into PHP so no argument there from me. I'm curious if using C++ as opposed to C would cause a performace hit? It's not about performance but about an PHP extension which e.g. binds to a 3rd party library written in C++ . -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php