[PHP-DEV] PHP Xforms XML namespaces in POSTED Form variables
Hello Working on PHPortal (PHP replication of Zope) I noticed something Zope has/uses that PHP doesn't and I was wondering if there had been any consideration on this point. Namely, form element name variants. We all know in PHP form element names are interpolated by the values as HTTP POST VARS in a POSTed form. In Zope they use name spaces such as name=varname:int. The string following the colon reflects the type being posted such as string, int, datetime, base64, boolean etc... which is used in the processing and proper handling of the form's variables. Is this on the table for PHP development or not even a worthwhile after thought? -- Michael Glazer Information Architect www.4arrow.com [EMAIL PROTECTED] This electronic message and all contents and attachments contain information from 4Arrow.com (c) Copyright 2002, which may be privileged, confidential or otherwise protected from disclosure. The information is intended to be for the addressee only. If you are not the addressee, then any disclosure, copy, distribution or use of this message, or its contents or any of its attachments, is prohibited. If you have received this electronic message in error, please notify us immediately and destroy the original message and all copies. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] 2 failed compiles from CVS
On Tue, Jun 18, 2002 at 09:44:26AM +0200, Marc Boeren wrote : latest CVS with ZendEngine 2: /mnt/data1/Apps/CVS/PHP/php4/ext/dbx/dbx_sybasect.c:189: structure has no member named `properties' /mnt/data1/Apps/CVS/PHP/php4/ext/dbx/dbx_sybasect.c:226: structure has no member named `properties' These are both caused by using returned_zval-value.obj.properties instead of the proper macro Z_OBJPROP_P(returned_zval) If someone could please update this in cvs? I can't reach it right now... Done. - Markus -- GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Zend Constants PATCH
Andi Gutmans wrote: Hi, I'll try and get the patch into PHP soon (I was busy with other things) I want to rewrite it a bit to make it nicer. does the case-sensitive, then case-insensitive logic really make that much sense? wouldn't it be easier *and* more consistent to make zend_str_tolower() not use libc tolower() but some locale-insensitive code instead? or am i missing something? btw, the use of strtod() within the engine is a similar problem the lexer always looks for '.' as decimal_point (which is right) but then uses strtod() to convert the found string into a double without taking in account that the decimal_point in the current locale may be a different character so that parsing stops at the '.', cutting off all decimals so strtod() should be replaced by something not locale-aware (and no, atof() is not what we are looking for) or replace the '.' with whatever decimal_point is set to in the current locale first solution would perform better, but from looking at the OpenBSD implementation of strtod() i think the second has far less potential for problems while not performing to bad if decimal_point is cached somehow ... PS: IMHO we have to rethink the complete set_locale() stuff in PHP as there is absolutely no way to make it work in threaded SAPIs :( -- Hartmut Holzgraefe [EMAIL PROTECTED] http://www.six.de/ +49-711-99091-77 H.A.R.T.M.U.T.: Hydraulic Artificial Replicant Trained for Mathematics and Ultimate Troubleshooting -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] CVS fails to compile (ext/mysql)
From latest CVS (ZendEngine 1): gcc -Iext/mysql/ -I/mnt/data1/Apps/CVS/PHP/php4/ext/mysql/ -DPHP_ATOM_INC -I/mnt/data1/Apps/CVS/PHP/php4/include -I/mnt/data1/Apps/CVS/PHP/php4/main -I/mnt/data1/Apps/CVS/PHP/php4 -I/usr/local/include -I/usr/local/www/httpd2/include -I/mnt/data1/Apps/CVS/PHP/php4/Zend -I/usr/include/libxml2 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/c-client -I/usr/local/www/mysql4/include/mysql -I/usr/include/pspell -I/usr/include/ucd-snmp -D_REENTRANT -I/mnt/data1/Apps/CVS/PHP/php4/TSRM -g -O2 -pthread -Wall -DZTS -c /mnt/data1/Apps/CVS/PHP/php4/ext/mysql/php_mysql.c -fPIC -DPIC -o ext/mysql/php_mysql.lo In file included from /usr/local/www/mysql4/include/mysql/mysql.h:58, from /mnt/data1/Apps/CVS/PHP/php4/ext/mysql/php_mysql.c:65: /usr/local/www/mysql4/include/mysql/mysql_version.h:15: warning: `MYSQL_UNIX_ADDR' redefined /mnt/data1/Apps/CVS/PHP/php4/TSRM/../main/php_config.h:1592: warning: this is the location of the previous definition /mnt/data1/Apps/CVS/PHP/php4/ext/mysql/php_mysql.c: In function `zif_mysql_info': /mnt/data1/Apps/CVS/PHP/php4/ext/mysql/php_mysql.c:940: warning: `id' might be used uninitialized in this function /mnt/data1/Apps/CVS/PHP/php4/ext/mysql/php_mysql.c: In function `zif_mysql_fetch_object': /mnt/data1/Apps/CVS/PHP/php4/ext/mysql/php_mysql.c:1845: `ZEND_STANDARD_CLASS_DEF_PTR' undeclared (first use in this function) /mnt/data1/Apps/CVS/PHP/php4/ext/mysql/php_mysql.c:1845: (Each undeclared identifier is reported only once /mnt/data1/Apps/CVS/PHP/php4/ext/mysql/php_mysql.c:1845: for each function it appears in.) make: *** [ext/mysql/php_mysql.lo] Error 1 / Magnus -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DEV] CVS fails to compile (ext/mysql)
This would likely be me. what OS? can you give me a copy of config.log and php_config.h ? Thanks, -- James -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Re: getting form variables without posting
script var winImg = window.open('','myDoc','scrollbars=no,resizable=no,width=600,height=350'); document.forms[1].target = myDoc; document.forms[1].submit(); /script Dan Rossi [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... adding to my last question i'm needing to send the variables to a popup without actually sending the form how can i do this ? -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Small CGI Serve
I am trying to write a small CGI webserver. Having finally found out how to pass the Environment vars onto PHP, I am stumpted to find that PHP wasn't reading them and putting them in their place (GET vars). I tried changing the exe from the php-cli to just php. This now brings up a security error and I cannot find a solution Can anyone help? -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] ImageCreateFromGif
Hi there! I'm having problems with the GD extension on the latest Win32 download from php.net - when I try to use the above function, it says it is undefined (as iwth the JPG alternative), even though I have uncommented the line 'extension=php_gd.dll'. Any suggestions? Thanks! Andrew -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Re: Recommended XML parser?
I wrote something that did things to huge XML files (2meg+) and it took a long time! (around 10 mins) I used this code to read and process the XML into a arrays function GetChildren($vals, $i) { $children = array(); if ($vals[$i]['value']) array_push($children, $vals[$i]['value']); while (++$i count($vals)) { switch ($vals[$i]['type']) { case 'cdata': array_push($children, $vals[$i]['value']); break; case 'complete': $children[$vals[$i]['tag']] = $vals[$i]['value']; break; case 'open': $children[] = GetChildren($vals,$i); break; case 'close': return $children; break; } } } function GetXMLTree($XML) { $p = xml_parser_create(UTF-8); xml_parser_set_option($p, XML_OPTION_SKIP_WHITE, 1); xml_parse_into_struct($p, $XML, $vals, $index) OR DIE(Invalid XML file!); xml_parser_free($p); $i = 0; return GetChildren($vals, $i); } Hope that helps :P Blake Barnett [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... What is the recommended XML parser for use with PHP 4.2.1? (and also 4.1.0 if anyone is willing to answer that as well?) From reading the list archives I'm seeing a lot of people bash expat and lean toward libxml2, I just wanted to get the consensus before I commit a project to using one or the other. Thanks, -- Blake Barnett (bdb) [EMAIL PROTECTED] Sr. Unix Administrator DevelopOnline.com office: 480-377-6816 Learning is a skill, you get better at it with practice. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Re: ImageCreateFromGif
I have also had problems loading ANY dll in the new version (I was using mssql). A bug maybe? Andrew Milne [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi there! I'm having problems with the GD extension on the latest Win32 download from php.net - when I try to use the above function, it says it is undefined (as iwth the JPG alternative), even though I have uncommented the line 'extension=php_gd.dll'. Any suggestions? Thanks! Andrew -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Re: Session duplicated in url
Then turn it off? Marcus Boerger [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... When i have someone deactivating the cookies i get multiple PHPSESSIONID queries. What i do: I have a site that propageates some data with query strings. These i read from $_SERVER['QUERY_STRING'], modify and write them back as href. Everything is working fine but when cookies are disabled i have the PHPSESSIONID repeated. Example from logfile: 137.226.156.172 - - [17/Jun/2002:22:03:24 +0200] GET /?4PHPSESSID=8db991d1a3b1ee1a7a497b7644956085PHPSESSID=8db991d1a3b1ee1a7a4 97b7644956085PHPSESSID=8db991d1a3b1ee1a7a497b7644956085PHPSESSID=8db991d1a 3b1ee1a7a497b7644956085PHPSESSID=8db991d1a3b1ee1a7a497b7644956085PHPSESSID =8db991d1a3b1ee1a7a49 7b7644956085PHPSESSID=8db991d1a3b1ee1a7a497b7644956085PHPSESSID=8db991d1a3 b1ee1a7a497b7644956085 HTTP/1.1 200 2675 /?3PHPSESSID=8db991d1a3b1ee1a7a497b7644956085PHPSESSID=8db991d1a3b1ee1a7a 497b7644956085PHPSESSID=8db991d1a3b1ee1a7a497b7644956085PHPSESSID=8db991d1 a3b1ee1a7a49 Example code snippet: $server_query = $_SERVER['QUERY_STRING']; $pos = strpos($server_query,''); $q_ext = ''; if ($pos !== false) { $extern_query = substr($server_query,$pos); } else { $extern_query = ''; } $idx_href = './?-'.$extern_query; echo a href='$idx_href' .. What i do is cutting the first query entry which i allways have. Setting a new one and adding rest of original query. Suppose i have /?4 this would be rewritten with session id to /?4PHPSESSID=xxx The snipped above sees '' present and sets $extern_query to PHPSESSID=xxx. Then it sets $idx_ref to ./?-PHPSESSID=xxx So i suggest there could be something wrong with detection of query strings that have entries without an equal sign? Any hints what i am doing wrong or what is wrong? marcus - mailto:[EMAIL PROTECTED] Wir sind allzumal Tiere unter Tieren, Kinder der Materie wie sie, nur wehrloser. Doch da wir im Unterschied zu den Tieren wissen, dass wir sterben muessen, wollen wir uns auf jenen Augenblick vorbereiten, indem wir das Leben geniessen, das uns durch Zufall und vom Zufall gegeben ist. Umberto Eco, Die Insel des vorigen Tages --- http://www.marcus-boerger.de --- -- Tel. 0241 / 874 09-7 ### 0179 / 29 14 980 -- -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Re: getting form variables without posting (note)
This method submits the form to the newly opened page, the original page remains intact, hope this is what you wanted Bb [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... script var winImg = window.open('','myDoc','scrollbars=no,resizable=no,width=600,height=350'); document.forms[1].target = myDoc; document.forms[1].submit(); /script Dan Rossi [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... adding to my last question i'm needing to send the variables to a popup without actually sending the form how can i do this ? -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Re: passing variable to a popup
You could use javascript to grab the data from the various fields then use window.open adding the variables values to the URL GET style. Dan Rossi wrote: hi i am creating a preview page for a cms , i was wondering how i can pass form variable to a popup window , is this possible ? -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Re: passing variable to a popup
This is the wrong list to discusss this, please move to the php-general list. Derick On Tue, 18 Jun 2002, Andrew Milne wrote: You could use javascript to grab the data from the various fields then use window.open adding the variables values to the URL GET style. Dan Rossi wrote: hi i am creating a preview page for a cms , i was wondering how i can pass form variable to a popup window , is this possible ? -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php --- Did I help you? http://www.derickrethans.nl/link.php?url=giftlist Frequent ranting: http://www.derickrethans.nl/ --- PHP: Scripting the Web - [EMAIL PROTECTED] All your branches are belong to me! SRM: Script Running Machine - www.vl-srm.net --- -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Re: html tidy
Electroteque [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... hi guys is it possible to pass a string through html tidy and output the cleaned up content ? yes i dont really want to have to create temporary files alover the place let us know http://www.php.net/manual/en/function.shell-exec.php man tidy You'll find more support on php.general, php-dev is for developing PHP itself, not for developing with php. regards, Toby -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] html tidy
Zitat von electroteque [EMAIL PROTECTED]: hi guys is it possible to pass a string through html tidy and output the cleaned up content ? i dont really want to have to create temporary files alover the place let us know You can use output buffering for this. Btw, this question belongs to the php-general mailing list. This list is for developers that develop PHP not with PHP. Jan. -- http://www.horde.org - The Horde Project http://www.ammma.de - discover your knowledge http://www.tip4all.de - Deine private Tippgemeinschaft -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] [PATCH REPOST] Suggested fix for #16458: header() does not replace headers but always produces duplicates
I've commited the patch to CVS. Thanks for your help. Just a small note: strnicmp() is not available on unix, it's called strncasecmp(). PHP uses a macro to wrap strncasecmp() to strncasecmp() on Windows. Sander On Mon, Jun 17, 2002 at 02:12:17PM -0700, Michael Sisolak wrote: Bug #16458 reports that the header() command does not correctly use the replace parameter (i.e., a header of the same name should be replaced if this parameter is true). The problem is that the standard sapi_add_header_ex function assumes that the sapi being used with deal with any header replacements. For Apache that works fine as the Apache sapi correctly used the replace parameter. The IIS sapi, however, defaults to the standard funtionality in sapi_add_header_ex (as does the CGI). The default handler just calls zend_llist_add_element to add the header to the header list thus appending even if replace was requested. Attached is a suggested patch that first removes the header from the list if it already exists if we are in replace mode. This works for the Win32 IIS and CGI builds, but I don't have a way to test any possible interaction this might have with the other sapi modules (or under GCC). Michael Sisolak [EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com Content-Description: sapi.c.patch --- sapi.cTue May 14 16:11:31 2002 +++ sapi.c.newTue May 14 16:29:23 2002 @@ -385,6 +385,11 @@ return code; } +static int sapi_find_matching_header(void *element1, void *element2) +{ + return strnicmp(((sapi_header_struct*)element1)-header, (char*)element2, strlen((char*)element2)) == 0; +} + /* This function expects a *duplicated* string, that was previously emalloc()'d. * Pointers sent to this functions will be automatically freed by the framework. */ @@ -551,6 +556,19 @@ zend_llist_clean(SG(sapi_headers).headers); } if (retval SAPI_HEADER_ADD) { + /* in replace mode first remove the header if it already exists in the headers llist */ + if (replace) { + colon_offset = strchr(header_line, ':'); + if (colon_offset) { + char sav; + colon_offset++; + sav = *colon_offset; + *colon_offset = 0; + zend_llist_del_element(SG(sapi_headers).headers, header_line, (int(*)(void*, void*))sapi_find_matching_header); + *colon_offset = sav; + } + } + zend_llist_add_element(SG(sapi_headers).headers, (void *) sapi_header); } if (free_header) { -- 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] Wez r u alive?
I'm still alive, just buried under a lot of work, as I stated a week ago on this list. I'm really appreciative of your feedback, but I'm booked up for another 6-7 weeks with only limited time at weekends for PHP work. I'm sorry if that doesn't help you out right now, but these clients pay my mortgage :-/ --Wez. On 18/06/02, moshe doron [EMAIL PROTECTED] wrote: Wez, i did serious QA and find a lot of annoyed bug on ActivePHP IE for example that code load blank page (or crash the browser) if u just clicking on the link enough times (on my computer 9 is enought) script language=ActivePHP $document-write(a href='?'just click on that text enought time and.../a); /script do u still work on it's? coz i c on the cvs there is no change for weeks. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Zend Constants PATCH
On June 18, 2002 05:32 am, Hartmut Holzgraefe wrote: Andi Gutmans wrote: Hi, I'll try and get the patch into PHP soon (I was busy with other things) I want to rewrite it a bit to make it nicer. does the case-sensitive, then case-insensitive logic really make that much sense? wouldn't it be easier *and* more consistent to make zend_str_tolower() not use libc tolower() but some locale-insensitive code instead? or am i missing something? btw, the use of strtod() within the engine is a similar problem the lexer always looks for '.' as decimal_point (which is right) but then uses strtod() to convert the found string into a double without taking in account that the decimal_point in the current locale may be a different character so that parsing stops at the '.', cutting off all decimals so strtod() should be replaced by something not locale-aware (and no, atof() is not what we are looking for) or replace the '.' with whatever decimal_point is set to in the current locale first solution would perform better, but from looking at the OpenBSD implementation of strtod() i think the second has far less potential for problems while not performing to bad if decimal_point is cached somehow ... By using a functiont that does not support lowercasing, would also cause problems, since if a constant name contains non english characters it would break. IMHO the best implementation is to simply not lowercase constant names unless the user specifically whats case insensetive locale. PS: IMHO we have to rethink the complete set_locale() stuff in PHP as there is absolutely no way to make it work in threaded SAPIs :( Doesn't work, simply not true. My PHP code uses locales extensively and it works just fine on Apache 2.0 (threads model) and on IIS, which uses threads. Ilia -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Zend Constants PATCH
Ilia A. wrote: By using a functiont that does not support lowercasing, would also cause problems, since if a constant name contains non english characters it would break. IMHO the best implementation is to simply not lowercase constant names unless the user specifically whats case insensetive locale. the language parser should not be affected by locale settings at all, so we need a locale independant zend_str_tolower() function or make sure we have 'C' or 'POSIX' locale this does not only affect constants but also function names and unless we are going to roll up the complete case sensitivity threads *again* rolling our own tolower() function instead of using the one in libc is the only way to go IMHO PS: IMHO we have to rethink the complete set_locale() stuff in PHP as there is absolutely no way to make it work in threaded SAPIs :( Doesn't work, simply not true. My PHP code uses locales extensively and it works just fine on Apache 2.0 (threads model) and on IIS, which uses threads. ok, bad wording Sure set_locale() *works* for threaded environments, but it sets the locale globaly for *all* threads, while it should the current PHP thread only. Even worse: setting the locale may affect other components within the webserver totally unrelated to PHP (or trigger the now known tolower() and strtod() problems in other PHP threads, leading to wrong parser behaviour) just imagine an ISP hosting a threaded server for international customers or a big multinational company (or even a small one with multi-lingual web pages) where a lot of scripts running in parallel use set_locale() - each of them overwrites the current locale for all the other runnning scripts ... GOTCHA -- Hartmut Holzgraefe [EMAIL PROTECTED] http://www.six.de/ +49-711-99091-77 H.A.R.T.M.U.T.: Hydraulic Artificial Replicant Trained for Mathematics and Ultimate Troubleshooting -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Recommended XML parser?
On Tue, 2002-06-18 at 02:18, Blake Barnett wrote: What is the recommended XML parser for use with PHP 4.2.1? (and also 4.1.0 if anyone is willing to answer that as well?) From reading the list archives I'm seeing a lot of people bash expat and lean toward libxml2, I just wanted to get the consensus before I commit a project to using one or the other. Depends a bit on what you want to do with it. If you are processing huge amounts of xml data, you can get away with much lower memory consuption with expat. But if you must have a tree representation of your XML, using the domxml extension is probably better. - Stig -- Stig Sæther Bakken, Fast Search Transfer ASA, Trondheim, Norway http://pear.php.net/wishlist.php/ssb -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Small CGI Serve
On Tue, 2002-06-18 at 13:25, BB wrote: I am trying to write a small CGI webserver. Having finally found out how to pass the Environment vars onto PHP, I am stumpted to find that PHP wasn't reading them and putting them in their place (GET vars). I tried changing the exe from the php-cli to just php. This now brings up a security error and I cannot find a solution The CLI version of PHP is not designed to be run from a web server like this. If anything, you can write CGI scripts with it, where you have to import the environment variables yourself (sounds silly doesn't it? :). The security error you're getting is probably related to force-redirect, could you provide the error message? - Stig -- Stig Sæther Bakken, Fast Search Transfer ASA, Trondheim, Norway http://pear.php.net/wishlist.php/ssb -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Small CGI Serve
It is exactly that. Content-type: text/html Security Alert! The PHP CGI cannot be accessed directly. This PHP CGI binary was compiled with force-cgi-redirect enabled. This means that a page will only be served up if the REDIRECT_STATUS CGI variable is set, e.g. via an Apache Action directive. For more information as to why this behaviour exists, see the manual page for CGI security. For more information about changing this behaviour or re-enabling this webserver, consult the installation file that came with this distribution, or visit the manual page. I've tried changing the PHP.ini setting cgi.force_redirect to off, 0, no and any other negative thing I could think of to no avail Stig S. Bakken [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Tue, 2002-06-18 at 13:25, BB wrote: I am trying to write a small CGI webserver. Having finally found out how to pass the Environment vars onto PHP, I am stumpted to find that PHP wasn't reading them and putting them in their place (GET vars). I tried changing the exe from the php-cli to just php. This now brings up a security error and I cannot find a solution The CLI version of PHP is not designed to be run from a web server like this. If anything, you can write CGI scripts with it, where you have to import the environment variables yourself (sounds silly doesn't it? :). The security error you're getting is probably related to force-redirect, could you provide the error message? - Stig -- Stig Sæther Bakken, Fast Search Transfer ASA, Trondheim, Norway http://pear.php.net/wishlist.php/ssb -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] problem with post data
Hi. I'm Rang. Now I try develop with php. But when I pass data from the Form why I can not get it. I code it follow : form.html html body form method=POST action=form.php inut type=text name=txtname input type=submit value=submit /body/html form.php ? echo data pass from form is :$txtname; ? Yes, when I try to submit the form the error is : Notice: Undefined variable: NAME in d:\inetpub\wwwroot\php\testform\formtest.php on line 2 How it is wrong ! It wrong my configuration. Please help me to correct this problem. Thanks in advance. Bye bye. - Do You Yahoo!? Sign-up for Video Highlights of 2002 FIFA World Cup
Re: [PHP-DEV] Zend Constants PATCH
Ilia A. wrote: Well, that is true for any external variable not just locale. For example if you export TZ variable in a threaded enviroment all threads would be affected. Exporting a TZ would be even more dangerous since it would affect a commonly used data, dates, which are used in majority of PHP script. messing around with the process environment is one thing, using an official PHP function is a different story ... I do not see how this issue can be resolved, unless PHP does some internal enviroment variable tracking as well as internal locale tracking. environment variable tracking is not needed, PHP has just to implement its own versions of locale dependant functions, track requested locale internaly as a thread variable and leave the global locale setting alone there are about 20 functions that need changes applied, most of them just use toupper()/tolower() or ctype is***() functions which can easily be replaced only things like printf(), scanf() and strftime() are a bit more difficult. For printf() and scanf() we already have our own versions that we just need to modify, and for strftime() we should bundle our own version anyway, as there are way to much problems with esp. windows users not knowing (and not reading in the docs) that not all of strftime()'s format placeholders work in every strftime() implementation i've already assigned this to me as a task for this weekend, maybe i'll find time to publish a small RFC/Whitepaper about the issues at hand tomorrow (detailed description of planned changes, affected functions, list of bugs that will be solved by the changes ...) -- Hartmut Holzgraefe [EMAIL PROTECTED] http://www.six.de/ +49-711-99091-77 H.A.R.T.M.U.T.: Hydraulic Artificial Replicant Trained for Mathematics and Ultimate Troubleshooting -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Re: Calling other PHP functions from your extension
And thanks for the additional head's up! I had to go read the zend api headers to get it working -- I think you're rigyt, call_user_function() is sufficient for me in this case. I just got phpinfo() working, I'll try getting eval() going in a few minutes. eval() is actually a language construct that just happens to look like a function. You won't be able to call it via call_user_function(). Instead, use zend_eval_string(). -Andrei http://www.gravitonic.com/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
FW: [PHP-DEV] Recommended XML parser?
It can depend on what your needs are. Are you going to employ DOM or do narrative type parsing? Joel Dudley Faculty Research Associate Arizona State University Kumar Laboratory of Evolutionary Functional Genomics http://lsweb.la.asu.edu/skumar/ -Original Message- From: Blake Barnett [mailto:[EMAIL PROTECTED]] Sent: Monday, June 17, 2002 5:18 PM To: [EMAIL PROTECTED] Subject: [PHP-DEV] Recommended XML parser? What is the recommended XML parser for use with PHP 4.2.1? (and also 4.1.0 if anyone is willing to answer that as well?) From reading the list archives I'm seeing a lot of people bash expat and lean toward libxml2, I just wanted to get the consensus before I commit a project to using one or the other. Thanks, -- Blake Barnett (bdb) [EMAIL PROTECTED] Sr. Unix Administrator DevelopOnline.com office: 480-377-6816 Learning is a skill, you get better at it with practice. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] CVS Account Request: busterb
I wish to continue work with PEAR and checkin a few packages; namely, work on PHPDoc, a DBA abstraction class, Validation class work, other bits. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] How to make mod_php4 read from a fd instead of a filename ?
Hello, When I look at PHP sources, it appears the parser handles two kinds of data sources: ZEND_HANDLE_FILENAME and ZEND_HANDLE_FD. How could I force mod_php4 to read data from a file descriptor (fd) instead of a filename ? I succeeded but with an ugly patch. Is there a clean way to do it ? Thanks, Jerome -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] phpopengl
A while ago I made php-opengl. The extension lets you create ither interactive opengl programs (with the help of glut) or what I was working using OSMesa is to allow php to create 3d images Off Screen (OS). This can be used for a bunch of things. (3d graphs, generation of 3d text), (i got it to work on windows but it was screwing up some colors on linux). It currently is up on sourceforge http://phpopengl.sourceforge.net/. I don't do any current development on it. I've been focusing on php-soap. Are there any developers out there interested in moving it to pecl and creating some documentation? Someone recently asked me how to install it so this is why im bringing it up now. - brad __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] zend_bailout() crash.
coz Wez 2 busy i'm tring to debug ActivePHP myself but i'have no actual experience debuging php so i need some help. can some1 tell me if running into zend_bailout()? on the main extuce loop: switch(EX(opline)-opcode){ case ZEND_EXIT: have to indicating me that something got wrong? the module crash on that's line (zend.c;550): longjmp(EG(bailout), FAILURE); btw, that crash appears on that minimal script: script language=ActivePHP exit; /script - thnks moshe -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Re: Maximum Size Of PHP File?
I've looked over the file thoroughly and still can't find anything. Attached is the php file if anyone wants to troubleshoot (include file not attached). Any help would be greatly appreciated. Bruce Bruce Miller [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... I have a summary page (php file) at the end of a 7 page application that displays all the content of the previous 7 pages. When the summary page displays, ASCII symbols appear at the bottom. I think I've reached the limit of this PHP files capabilities, but the file doesn't appear to be too large. Any help would be appreciated. begin 666 irasum.php M/#]P:' @:6YC;'5D92 G;6%I;DER82YP:' G(#\^#0H\:'1M;#X-CQH96%D M/B -CQT:71L93X-B @( @(%1R861I=EO;F%L+!2;W1H+!315 @25)! MR!!8V-O=6YT($%PQI8V%T:6]N( T*( @(#PO=ET;4^#0H@( @/UE M=$@:'1TUE75I=CTB8V]N=5N=UT7!E(B!C;VYT96YT/2)T97AT+VAT M;6P[(-H87)S970]:7-O+3@X-3DM,2(^#0H@( @/UE=$@:'1TUE75I M=CTB97AP:7)ER(@8V]N=5N=#TB,(^#0H@( @/UE=$@:'1TUE75I M=CTB')A9VUA(B!C;VYT96YT/2)N;RUC86-H92(^#0H@( @/UE=$@:'1T MUE75I=CTB8V%C:4M8V]N=')O;(@8V]N=5N=#TB;F\M8V%C:4B/B - M@D\;EN:R!R96P](G-T6QEVAE970B(AR968](G-T6QEVAE970N8W-S M(CX-@D\V-R:7!T(QA;F=U86=E/2)J879AV-R:7!T(B!SF,](FUA:6Y) MF$N:G,B/CPOV-R:7!T/@T*3QS8W)I'0@;%N9W5A9V4](FIA=F%S8W)I M'0B('-R8STB;6%I;BYJR(^/]S8W)I'0^#0H\+VAE860^#0H\8F]D2!L M:6YK/2(C-3@X-$(P(B!V;EN:STB(S4X.#1,(@86QI;FL](B,U.#@T0C B M()G8V]L;W(](B-1D91D8B(QE9G1M87)G:6X](C B('1OUAF=I;CTB M,(@;6%R9VEN=VED=@](C B(UAF=I;FAE:6=H=#TB,(^#0H-CQF;W)M M(YA;64](F9OFTB(%C=EO;CTB/#]P:' @96-H;R D4$A07U-%3$8_/B(@ M;65T:]D/2)03U-4(CX-B @/'1A8FQE('=I9'1H/2(W-C B()OF1ECTB M,(@8V5L;'-P86-I;F](C B(-E;QP861D:6YG/2(P(CX-B @( \='(^ M#0H@( @( \=0^5AA;FMS(9OB!T:4@87!P;EC871I;VX@W5B;6ES MVEO;BX@0F5L;W@:7,@82!S=6UM87)Y(]F('1H92!A'!L:6-A=EO;BX@ M#0H@( @( @(%!L96%S92!PFEN=!T:ES(9OB!Y;W5R(')E8V]R9',N M(%1H:7,@W5M;6%R2!IR!A=F%I;%B;4@;VX@;W5R(%=E8G-I=4@#0H@ M( @( @(9OB Y,!D87ES+CPO=0^#0H@( @/]TCX-B @( \='(^ M( T*( @( @/'1D/B9N8G-P.SPO=0^#0H@( @/]TCX-B @( \='(^ M( T*( @( @/'1D/B -B @( @( @/@R/E-T97 @,2!396QE8W0@66]U MB!=6YD/]H,CX-B @( @(#PO=0^#0H@( @/]TCX-B @( \='(^ M( T*( @( @/'1D/B!4:4@;6EN:6UU;2!I;G9EW1M96YT(9OB!A($IA M;65S($%D=F%N=%G92!=6YDR!R971IF5M96YT(%C8V]U;G0@#0H@( @ M( @(ES(0U,# @5R(9U;F0N(%=E(%LV\@;V9F97(@=AE(#4P+S4P M(%C8V]U;G0L('EO=2!M=7-T(EN:71I86QL2 -B @( @( @:6YV97-T M($@;6EN:6UU;2!O9B D-3 @5R(9U;F0@86YD(%GF5E('1O($@;6]N M=AL2!A91I=EO;B!T;R!T:4@#0H@( @( @(%C8V]U;G0@;V8@870@ M;5AW0@)#4P('=H:6-H('=I;P@8F4@875T;VUA=EC86QL2!W:71H9')A M=VX@9G)O;2!Y;W5R( T*( @( @(!C:5C:VEN9R!OB!S879I;F=S(%C M8V]U;G0N($UA:V4@8VAE8VMS('!A6%B;4@=\Z($IA;65S($%D=F%N=%G M92!=6YDRX@#0H@( @( \+W1D/@T*( @(#PO='(^#0H@( @/'1R/B - MB @( @(#QT9#XF;F)S#L\+W1D/@T*( @(#PO='(^#0H@( @/'1R/B - MB @( @(#QT9!H96EG:'0](C$S-B(^( T*( @( @( \=%B;4@=VED M=@](CV,(@8F]R95R/2(P(B!C96QLW!A8VEN9STB,(@8V5L;'!A91I M;F](C B('9A;EG;CTB=]P(B!A;EG;CTB;5F=(^#0H@( @( @( @ M/'1R/B -B @( @( @( @(#QT9!W:61T:#TQ.2!H96EG:'0](C$U.(^ M)FYBW [/]T9#X-B @( @( @( @(#QT9!W:61T:#TR-38@:5I9VAT M/2(Q-3@B(%L:6=N/2)L969T(B!V86QI9VX](G1O(^( T*( @( @( @ M( @( \=%B;4@8F]R95R/2(P(B!W:61T:#TB,C(S(CX-B @( @( @ M( @( @( \='(^( T*( @( @( @( @( @( @/'1D('=I9'1H/2(Q M-CDB/@T*0D)3P_AP#0H)0D)6EF(@D:7)A1G5N9T^9FY;(G)0;)= M(#T]((B*2![#0H)0D)0EE8VAO((\8CY=6YD(%!L86X@3F]T(%-E;5C M=5D/]B/B([#0H)0D)7T@96QS92![#0H)0D)0EE8VAO((\8CY0;%N M(%-E;5C=5D.CPO8CXB.PT*0D)0E]#0H)0D)/SX-@D)0D@( \+W1D M/@T*( @( @( @( @( @(#PO='(^#0H@( @( @( @( @( @/'1R M/B -B @( @( @( @( @( @(#QT9!W:61T:#TB,38Y(CX@#0H)0D) M3P_AP( T*0D)0D):68@*1IF%=6YD+3YG971#:5C:V5D*))5F5S M=(I/3TB8VAE8VME9(I(5C:\@(CQB/DEN:71I86P@26YV97-T;65N= H M)#4P,D\+V(^(CL-@D)0D)6EF(@D:7)A1G5N9T^9V5T0VAE8VME9@B M-3 U,(I/3TB8VAE8VME9(I('L-@D)0D)/SX-@D)0D)( @( @(#QB M/C4P+S4P(%!L86X@)#4P('1O('-T87)T(T@)#4P($@;6]N=@\+V(^#0H) M0D)0D)3PO=0^#0H)0D@( @( @( @( @( @/]TCX-B @( @ M( @( @( D)2 @( \='(^( T*( @( @( @( @0D)( @( @/'1D M('=I9'1H/2Q-CDG/B -B @( @( @( @( D)2 @( @( @/@T/E!L M96%S92!S964@=AE(%!R;W-P96-T=7,@9F]R(-O;7!L971E(EN9F]R;6%T M:6]N/]H-#X-@D)0D)/#]P:' -@D)0D)7T-@D)0D)/SX-@D)0D) M/]T9#X-B @( @( @( @( @( \+W1R/@T*( @( @( @( @( \ M+W1A8FQE/@T*( @( @( @( @/]T9#X-B @( @( @( @(#QT9!W M:61T:#TT-SD@=F%L:6=N/2)T;W B(%L:6=N/2)L969T(B!H96EG:'0](C$U M.(^( T*( @( @( @( @( \=%B;4@8F]R95R/2(P(B!W:61T:#TB M-#DQ(CX-B @( @( @( @( @( \='(^( T*( @( @( @( @( @ M( @/'1D('=I9'1H/2(R-#8B/CQB/D9U;F0@3F%M92 H1G5N9!.=6UB97(I M/]B/CPO=0^#0H@( @( @( @( @( @( \=0@=VED=@](C$R,2(@ M86QI9VX](G)I9VAT(CX\8CY9;W5R(0@06UO=6YT/]B/CPO=0^#0H@( @ M( @( @( @( @( \=0@=VED=@](C$S(B!A;EG;CTBFEG:'0B/F]R M/]T9#X-B @( @( @( @( @( @(#QT9!W:61T:#TB.#$B(%L:6=N M/2)R:6=H=(^/(^45R8V5N=%G93PO8CX\+W1D/@T*( @( @( @( @ M( @(#PO='(^#0H@( @( @( @( @( @/'1R/B -B @( @( @( @ M( @( @(#QT9!W:61T:#TB,C0V(CY4:4@1V]L95N(%)A:6YB;W@1G5N M9 H,S$I/]T9#X-B @( @( @( @( @( @(#QT9!W:61T:#TB,3(Q M(B!A;EG;CTBFEG:'0B/B D/#]P:' @96-H;R D:7)A1G5N9T^9FY;(G0S M,4%M=)=(#\^( T*( @( @( @( @( @( @/]T9#X-B @( @( @ M( @( @( @(#QT9!W:61T:#TB,3,B(%L:6=N/2)R:6=H=(^)FYBW [ M/]T9#X-B @( @( @( @( @( @(#QT9!W:61T:#TB.#$B(%L:6=N
Re: [PHP-DEV] zend_bailout() crash.
Is there somewhere a zend_try { } zend_try_catch statement around the execution loop ? It is needed, maybe it's missing? - Markus On Tue, Jun 18, 2002 at 08:34:48PM +0200, moshe doron wrote : coz Wez 2 busy i'm tring to debug ActivePHP myself but i'have no actual experience debuging php so i need some help. can some1 tell me if running into zend_bailout()? on the main extuce loop: switch(EX(opline)-opcode){ case ZEND_EXIT: have to indicating me that something got wrong? the module crash on that's line (zend.c;550): longjmp(EG(bailout), FAILURE); btw, that crash appears on that minimal script: script language=ActivePHP exit; /script - thnks moshe -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php -- GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc Did I help you?http://guru.josefine.at/wish_en Konnte ich helfen? http://guru.josefine.at/wish_de uhmm.. the dates in the bug db.. aren't they printed a bit wrong, i mean, did i miss when we changed to 53 days/month ( +2002-02-53) ? =P - N0v3ll -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Zend Constants PATCH
Well, that is true for any external variable not just locale. For example if you export TZ variable in a threaded enviroment all threads would be affected. Exporting a TZ would be even more dangerous since it would affect a commonly used data, dates, which are used in majority of PHP script. I do not see how this issue can be resolved, unless PHP does some internal enviroment variable tracking as well as internal locale tracking. Uh, it does. (env var tracking) -Rasmus -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] static not working as expected
?php class Counter { var $counter = 0; function increment_and_print() { print ++$this-counter; print \n; } } class SingletonCounter { static $m_instance = NULL; // throwing error here function Instance() { if (self::$m_instance == NULL) { self::$m_instance = new Counter(); } return self::$m_instance; } } SingletonCounter::Instance()-increment_and_print(); SingletonCounter::Instance()-increment_and_print(); SingletonCounter::Instance()-increment_and_print(); ? is throwing the following error Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /singleton.php on line 15
Re: [PHP-DEV] static not working as expected
'statis' is ONLY used inside functions. You need the 'var' keyword to define class property. This is true for ZE1, I can't tell if ZE2 has static class properties, anyone else? - Markus On Tue, Jun 18, 2002 at 10:42:43AM -0700, Purushotham Komaravolu wrote : ?php class Counter { var $counter = 0; function increment_and_print() { print ++$this-counter; print \n; } } class SingletonCounter { static $m_instance = NULL; // throwing error here function Instance() { if (self::$m_instance == NULL) { self::$m_instance = new Counter(); } return self::$m_instance; } } SingletonCounter::Instance()-increment_and_print(); SingletonCounter::Instance()-increment_and_print(); SingletonCounter::Instance()-increment_and_print(); ? is throwing the following error Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /singleton.php on line 15 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] static not working as expected
Thanks for your prompt answer.If that's the case then, how do I define a singleton class? Regards, Puru - Original Message - From: Markus Fischer [EMAIL PROTECTED] To: Purushotham Komaravolu [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, June 18, 2002 10:58 AM Subject: Re: [PHP-DEV] static not working as expected 'statis' is ONLY used inside functions. You need the 'var' keyword to define class property. This is true for ZE1, I can't tell if ZE2 has static class properties, anyone else? - Markus On Tue, Jun 18, 2002 at 10:42:43AM -0700, Purushotham Komaravolu wrote : ?php class Counter { var $counter = 0; function increment_and_print() { print ++$this-counter; print \n; } } class SingletonCounter { static $m_instance = NULL; // throwing error here function Instance() { if (self::$m_instance == NULL) { self::$m_instance = new Counter(); } return self::$m_instance; } } SingletonCounter::Instance()-increment_and_print(); SingletonCounter::Instance()-increment_and_print(); SingletonCounter::Instance()-increment_and_print(); ? is throwing the following error Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /singleton.php on line 15 -- 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] static not working as expected
Markus Fischer wrote: can't tell if ZE2 has static class properties, anyone else? Yes, just have a look at ZendEngine2/ZEND_CHANGES. -- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/ Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] CVS Account Request: msopacua
Maintaining www.php.net Bugs and QA-web mainly -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Zend Constants PATCH
At 04:07 PM 6/18/2002 +0200, Hartmut Holzgraefe wrote: Ilia A. wrote: By using a functiont that does not support lowercasing, would also cause problems, since if a constant name contains non english characters it would break. IMHO the best implementation is to simply not lowercase constant names unless the user specifically whats case insensetive locale. the language parser should not be affected by locale settings at all, so we need a locale independant zend_str_tolower() function or make sure we have 'C' or 'POSIX' locale Right. For example, decimal's in PHP use a . (e.g. 3.14). This should always be the case even if the locale uses a different separator like , in German. Andi -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Zend Constants PATCH
Hey, Please test the attached patch and let me know if it works for you. I haven't really had the chance to test it too much. Andi At 06:21 PM 6/15/2002 -0400, Ilia A. wrote: Andi, I wrote another patch, this time a 'proper' way, which means the old functionality of case insensetivity is supported. Please look it over, hopefuly this is good enough to commit. I've also attached a small php test script you can use to see the problem in non patched PHPs. Ilia On June 15, 2002 03:25 pm, Andi Gutmans wrote: Ilia, I remember now the problem you're talking about. It has been discussed here in the past and I don't recall us having found a good solution. Basically we need a solution which is backwards compatible but will allow TEST and test to co-exist if case sensitivity was chosen for them. It's something to think about and not create a quick 2 line patch for the problem. I think one of the suggestions was using two hash tables. First doing a case-sensitive lookup and only if the constant isn't found doing a case-insensitive lookup. Andi At 03:40 PM 6/15/2002 -0400, Ilia A. wrote: Andi, Yes, you are correct in that respect, my patch would accomplish just that. No where in PHP documentation does it say that you cannot have TEST and test defines in the same script. Unless you specifically tell the define() function to treat the define as case insensitive. Because the defines are always lowercased unless the defines for i18n systems are always declared in lower case any define with a letter 'I' for example would break on a system using most non English locales. This is a VERY serious problems, for example consider the reversal of the htmlenteties() function. The following code: get_html_translation_table (HTML_ENTITIES); will break if a ru_UI or tr_TR or any other number of non-English locales are exported. In addition because all locales are lower cased defines suffer large performance degradation when compared to other variables because another copy of the define name needs to be allocated and then lower cased every single time a define is declared or retrieved. As far as I know, php variables are always case sensitive and there is now way to make them not, why an exception was made for defines I do not know, especially when you consider that in C and C++ defines are ALWAYS case sensitive. IMHO this is a very bad feature, that not only implements useless functionality but actually causes PHP code to break. Therefor, I humbly ask that you reconsider your position on this issue. Ilia On June 15, 2002 03:03 pm, you wrote: Ilia, Your patch basically makes PHP constants case sensitive. Changing this is a very big backwards compatibility problem. You're not supposed to register two define's with the same letters but different case. Andi At 01:21 PM 6/15/2002 -0400, Ilia A. wrote: Hello, While developing software in PHP that supports i18n I've come across several problems that affect defines made in PHP. The first problem is that when a define is declared and its name contains upper case characters such as I, the define becomes unusable if a locale, which does not support those chracters is exported, such as tr_TR or ru_IU. Bug Report at: http://bugs.php.net/bug.php?id=16865 There is a problem with case sensetivity of defines, for example, if you create a case sensetive define 'TEST' and then a case sensetive define 'test', the latter define's value will be lost. Bug Report at: http://bugs.php.net/?id=17658 The problem occurs because zend internally (zend_constants.c) seems to always lowecase the define before it is fetched/added to the hash table of defines. This causes problem for i18n because the define is lowercased using c's tolower function, which is affected by locale settings. Because it is stored as lower case, having 2 defines with the same name but in different case also becomes impossible to do. Attached is a patch against zend_constants.c CVS revision 1.38 that fixes both of these bugs, I hope the developers would consider adding this patch to the CVS. Ilia -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php Index: zend_constants.c === RCS file: /repository/ZendEngine2/zend_constants.c,v retrieving revision 1.39 diff -u -r1.39 zend_constants.c --- zend_constants.c6 Jan 2002 15:21:35 - 1.39 +++ zend_constants.c18 Jun 2002 19:10:38 - -220,26 +220,27 { zend_constant *c; char *lookup_name; - int retval; + int retval = 1; - lookup_name = do_alloca(name_len+1); - memcpy(lookup_name, name, name_len+1); - -
Re: [PHP-DEV] problem with post data
The reason for this is most likely that your PHP configuration is not setup to create global variables for data contained in a POST. You'll probably find more help on the [EMAIL PROTECTED] mailing list. This list is for the development of PHP only. Chris rang pheng wrote: Hi. I'm Rang. Now I try develop with php. But when I pass data from the Form why I can not get it. I code it follow : form.html html body form method=POST action=form.php inut type=text name=txtname input type=submit value=submit /body/html form.php ? echo data pass from form is :$txtname; ? Yes, when I try to submit the form the error is : Notice: Undefined variable: NAME in d:\inetpub\wwwroot\php\testform\formtest.php on line 2 How it is wrong ! It wrong my configuration. Please help me to correct this problem. Thanks in advance. Bye bye. - Do You Yahoo!? Sign-up for Video Highlights of 2002 FIFA World Cup -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] CVS Account Request: msopacua
Patch for php-bugs-web attached. Partial for bug #17391 -- Adds general 'warning' system -- Adds warning for ignored words -- Adds ASC/DESC in search form (saves initial queries) -- Fixes 'previous search' -- Fixes short opens -- Make installation of database framework easier -- centralizes MATCH queries, for further optimisation -- Adds 'debug mode' to make debugging that match thingy easier :-) Melvyn Sopacua said at 20:50 18-6-2002: Maintaining www.php.net Bugs and QA-web mainly -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.371 / Virus Database: 206 - Release Date: 13-6-2002 Met vriendelijke groeten / With kind regards, IDG.nl Melvyn Sopacua Webmaster -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Re: Bug #14491 Updated: Parser warning that should be parse error
This is obvious syntax error that should stop execution. There are other warnings that continue with warning message with obvious syntax error. (such as malformed break statement) IMO, language should raise fatal error for syntax errors instead of warning and let programmer fix errors for these kind of errors. Or do we have policy that make execution continue much as possible? It's fair policy for scripting language, but this policy makes difficult to write robust scripts especially for newbies. We may want to change the behavior for ZE2. Let's make clear where we're heading. -- Yasuo Ohgaki PHP Bug Database wrote: ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=14491edit=2 ID: 14491 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Analyzed +Status: Closed Bug Type: Scripting Engine problem Operating System: Linux PHP Version: 4.1.0 New Comment: It's fine as it is Previous Comments: [2001-12-14 12:53:18] [EMAIL PROTECTED] Bad english correction ;) Shoud this be an error? instead of warning? Status = Analyzed [2001-12-13 14:12:56] [EMAIL PROTECTED] Is't this should be an error? instead of warning? ?php \ echo aa; ? gives Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/yohgaki/public_html/bugs/test.php on line 2 aa -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] CVS Account Request: mignoni
I want translate documentation -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php