[PHP-DEV] Documentation for How to write php extensions
Hi, Where can I find the latest documentation on how to write php extensions? The only documentation I found is: http://www.zend.com/zend/api.php But the api documentation is outdated. Thanks for your help very much. Regards, Shao. -- Shao Zhang Tel: (02) 9209 4838 Software Engineer Fax: (02) 9209 4992 Redfern Broadband Networks (RBN)Mail: [EMAIL PROTECTED] -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Current CVS crash (latest Zend changes)
At 02:49 09-08-01, Simon Roberts wrote: Aiee! I'd just done that, when I got your message. I'd deleted my entire php4 source dir, downloaded from CVS, rebuilt, and it appears to be working. Aiee. I'll keep an eye on it. Bugger (Sorry Zeev) That's fine. Self-repairing bugs are the ones I like best ;) Zeev -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12636 Updated: non-linked libpam function?
ID: 12636 Updated by: sniper Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: IMAP related Operating System: Linux (SuSE 7.1) PHP Version: 4.0.6 New Comment: First, this should work fine with PHP 4.0.6. Where is the libpam.so in your system? Is the path to that file in your /etc/ld.so.conf ?? Have you tried to run '/sbin/ldconfig' ever? Try with fresh sources after these requirements are filled. --Jani Previous Comments: [2001-08-08 18:00:37] [EMAIL PROTECTED] i should say, after i removed the --with-imap option, `configure' worked and i typed `make', it got exactly that far. I fiddled with the makefile a little, but couldn't fix it. (i don't know anything about yacc..) [2001-08-07 19:59:53] [EMAIL PROTECTED] However, it doesn't compile. There seems to be a bug in the Zend thing. This is as far as it got: Making all in Zend make[1]: Entering directory `/root/phptmp/php4-200108071635/Zend' /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main -DEAPI_MM -DSINGLE_LISTEN_UNSERIALIZED_ACCEPT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHARD_SERVER_LIMIT=2048 -DDYNAMIC_MODULE_LIMIT=128 -DLINUX=22 -DMOD_SSL=208100 -DEAPI -DUSE_EXPAT -I../TSRM -g -O2 -prefer-pic -c zend_language_parser.c /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main -DEAPI_MM -DSINGLE_LISTEN_UNSERIALIZED_ACCEPT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHARD_SERVER_LIMIT=2048 -DDYNAMIC_MODULE_LIMIT=128 -DLINUX=22 -DMOD_SSL=208100 -DEAPI -DUSE_EXPAT -I../TSRM -g -O2 -prefer-pic -c zend_language_scanner.c zend_language_scanner.c:2697: warning: parameter names (without types) in function declaration yacc -p ini_ -v -d ./zend_ini_parser.y -o zend_ini_parser.c usage: yacc [-dlrtv] [-b file_prefix] [-p symbol_prefix] filename make[1]: *** [zend_ini_parser.c] Error 1 make[1]: Leaving directory `/root/phptmp/php4-200108071635/Zend' make: *** [all-recursive] Error 1 [2001-08-07 19:51:49] [EMAIL PROTECTED] ah... last time i tried to use cvs it was so annoying i decided it's an unnecessary evil. I was under the impression they were patches. well, whatever. anyhow, in the latest cvs, this problem is caught by the makefile. well, sort of. in config.log i see normal ``undefined reference to `whatever''' lines.. all starting with pam_. It can't find the libpam library. Which is weird, since it's in my LD_LIBRARY_PATH and all... The message configure itself gives is: ``configure: error: This c-client library is build with SSL support.'', and the message to ``Add --with-imap-ssl=DIR to your configure line. Check config.log for details.'' The relevant part of config.log: configure:24000: checking for IMAP support configure:24287: checking for pam_start in -lpam configure:24306: gcc -o conftest -g -O2 -DEAPI_MM -DSINGLE_LISTEN_UNSERIALIZED_ACCEPT -D_LARGEF/usr/i486-suse-linux/bin/ld: cannot find -lpam collect2: ld returned 1 exit status configure: failed program was: #line 24295 configure #include confdefs.h /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char pam_start(); int main() { pam_start() ; return 0; } configure:24334: checking for crypt in -lcrypt configure:24850: gcc -o conftest -g -O2 -DEAPI_MM -DSINGLE_LISTEN_UNSERIALIZED_ACCEPT -D_LARGEF/usr/lib/libc-client.so: undefined reference to `pam_end' /usr/lib/libc-client.so: undefined reference to `pam_authenticate' /usr/lib/libc-client.so: undefined reference to `pam_setcred' /usr/lib/libc-client.so: undefined reference to `pam_acct_mgmt' /usr/lib/libc-client.so: undefined reference to `pam_start' collect2: ld returned 1 exit status configure: failed program was: #line 24825 configure #include confdefs.h void mm_log(void){} void mm_dlog(void){} void mm_flags(void){} void mm_fatal(void){} void mm_critical(void){} void mm_nocritical(void){} void mm_notify(void){} void mm_login(void){} void mm_diskerror(void){} void mm_status(void){} void mm_lsub(void){} void mm_list(void){} void mm_exists(void){} void mm_searched(void){} void mm_expunged(void){} char mail_open(); int main() { mail_open(0,,0); return 0; } [2001-08-07 19:21:35] [EMAIL PROTECTED] Goto snaps.php.net, and get the latest .gz. It works exactly the same as the official release, and is lagging no more than 3 hours to CVS -
RE: [PHP-DEV] Re: compile fails on html.c (CODESET undeclared)
I suspect this can be fixed by changing line 231 to be #if HAVE_LANGINFO_H HAVE_LOCALE_H defined(CODESET) Done. Please let me know if it doesn't work... Just wanting to let you know it _does_ work :-) Cheerio, Marc. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12642 Updated: Loading php_oci8 fails
ID: 12642 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Bogus Bug Type: OCI8 related Operating System: Windows 2000 PHP Version: 4.0.6 New Comment: But why worls my other Applications whcih are using OCI, too. It seems more to be a compile/linking error. Because it happens on the first call of the DLL. Are there any differences between the both Binaries (IIS and CGI/Apache)? I saw, that thy have the same date, bit not the same time. And where are the DLL's for the IIS Shipment? There are no DLL's within the ZIP-File. (The File's only 738 K). I've tested the same with the other DLL's out of the CGI-Shipment together IIS PHP.EXE Here I have the same calling Problemm i.e. PHP_LDAP.DLL, PHP_MSSQL.DLL, PHP_PRINTER.DLL. I have a complete MS SQL-Workbench on my machine, too. I don't think it's a PATH-Problem Here's the complete PATH from my machine: %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Oracle\Ora81\bin;C:\Program Files\Oracle\jre\1.1.7\bin;C:\PROGRA~1\COMMON~1\RandSync\TRANSL~1\LtNts4\;C:\Oracle\Ora81\orb\bin;C:\MYSQL\BIN;C:\PHP;C:\PHP\DLL;C:\PHP\EXTENSIONS; And the ORACLE-Settings are standard. Previous Comments: [2001-08-09 02:33:26] [EMAIL PROTECTED] I'm sorry to say this, but if the dll is there as you say it is, and you still get that message, then that means your Oracle install isn't all that well. It requires some Oracle dlls in the %PATH%, and it's your responsibility to have them properly installed. [2001-08-09 02:04:48] [EMAIL PROTECTED] I'm sorry to say this, but I have a complete ORACLE-Installation (Client, Development, Administration), instead other Applications won't run and I have to administrate our ORACLE Installations. The Do's and Don'ts says nothing about missing PHP-Files like PHP_OCI8.DLL within the distribution of the WIndows Installer for IIS. This File won't come with ORACLE. After some looks I'm missing other PHP_*.DLL's within this distribution, too. Where can I get these files for the PHP.EXE in this distribution. As you can see below, the other DLL's (Windows Distribution CGI - Apache) won't work with this PHP.EXE [2001-08-08 13:03:54] [EMAIL PROTECTED] You need to have the oracle client installed on your system. And you need to read bugs-dos-and-donts BEFORE you submit any 'bug' reports. --Jani [2001-08-08 03:55:02] [EMAIL PROTECTED] I'm using PHP 4.0.6 on a Windows 2000 + IIS 5 Server. I've downloaded the Binary with the Installer for Windows with IIS. After Installation there are nor php_*.dll Files. Now I've downloaded the Windows/Apache Binary. There are php_*.dll's in the extensions directory. But when I try to use them (php.ini is setup up!!), I'll get an erro Message: Unable to load dynamic link library 'C:\Program Files\PHP\extensions\php_oci8.dll' The specified module could not be found. But the DLL is there. Where can I get the correct dll's for the Windows IIS-Binary which are not within the installer or what else can I do?? Thanks for your Support Edit this bug report at http://bugs.php.net/?id=12642edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12642 Updated: Loading php_oci8 fails
ID: 12642 Updated by: cynic Reported By: [EMAIL PROTECTED] Status: Bogus Bug Type: OCI8 related Operating System: Windows 2000 PHP Version: 4.0.6 New Comment: which of the directories in your %PATH% contains oci.dll? Previous Comments: [2001-08-09 04:25:14] [EMAIL PROTECTED] But why worls my other Applications whcih are using OCI, too. It seems more to be a compile/linking error. Because it happens on the first call of the DLL. Are there any differences between the both Binaries (IIS and CGI/Apache)? I saw, that thy have the same date, bit not the same time. And where are the DLL's for the IIS Shipment? There are no DLL's within the ZIP-File. (The File's only 738 K). I've tested the same with the other DLL's out of the CGI-Shipment together IIS PHP.EXE Here I have the same calling Problemm i.e. PHP_LDAP.DLL, PHP_MSSQL.DLL, PHP_PRINTER.DLL. I have a complete MS SQL-Workbench on my machine, too. I don't think it's a PATH-Problem Here's the complete PATH from my machine: %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Oracle\Ora81\bin;C:\Program Files\Oracle\jre\1.1.7\bin;C:\PROGRA~1\COMMON~1\RandSync\TRANSL~1\LtNts4\;C:\Oracle\Ora81\orb\bin;C:\MYSQL\BIN;C:\PHP;C:\PHP\DLL;C:\PHP\EXTENSIONS; And the ORACLE-Settings are standard. [2001-08-09 02:33:26] [EMAIL PROTECTED] I'm sorry to say this, but if the dll is there as you say it is, and you still get that message, then that means your Oracle install isn't all that well. It requires some Oracle dlls in the %PATH%, and it's your responsibility to have them properly installed. [2001-08-09 02:04:48] [EMAIL PROTECTED] I'm sorry to say this, but I have a complete ORACLE-Installation (Client, Development, Administration), instead other Applications won't run and I have to administrate our ORACLE Installations. The Do's and Don'ts says nothing about missing PHP-Files like PHP_OCI8.DLL within the distribution of the WIndows Installer for IIS. This File won't come with ORACLE. After some looks I'm missing other PHP_*.DLL's within this distribution, too. Where can I get these files for the PHP.EXE in this distribution. As you can see below, the other DLL's (Windows Distribution CGI - Apache) won't work with this PHP.EXE [2001-08-08 13:03:54] [EMAIL PROTECTED] You need to have the oracle client installed on your system. And you need to read bugs-dos-and-donts BEFORE you submit any 'bug' reports. --Jani [2001-08-08 03:55:02] [EMAIL PROTECTED] I'm using PHP 4.0.6 on a Windows 2000 + IIS 5 Server. I've downloaded the Binary with the Installer for Windows with IIS. After Installation there are nor php_*.dll Files. Now I've downloaded the Windows/Apache Binary. There are php_*.dll's in the extensions directory. But when I try to use them (php.ini is setup up!!), I'll get an erro Message: Unable to load dynamic link library 'C:\Program Files\PHP\extensions\php_oci8.dll' The specified module could not be found. But the DLL is there. Where can I get the correct dll's for the Windows IIS-Binary which are not within the installer or what else can I do?? Thanks for your Support Edit this bug report at http://bugs.php.net/?id=12642edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Re: [PHP-CVS] cvs: php4 / NEWS /ext/standard info.c /main main.c
[Zeev Suraski [EMAIL PROTECTED]] At 20:27 08-08-01, Andrei Zmievski wrote: On Wed, 08 Aug 2001, Zeev Suraski wrote: Good question, open for debate... Generally I consider GPC as a group of data which cannot be trusted, since it's coming from the user. But I'm not sure. Perhaps we need a different name, $_USER? Anyway, I'm just thinking out loud - it's interesting to see what others think about this... I'd prefer $_USER over $_FORM any day. Today's Wednesday, which qualifies :) I tend to lean towards changing it from $_FORM too. Andi suggested $_CLIENT. Let's hear some feedback: - Keep it as $_FORM - $_USER - $_CLIENT - Be extra careful - $_UNTRUSTED - $_INPUT Of these I think $_INPUT bears the least confusion. To me, $_USER sounds like something session-related, $_CLIENT sounds like something to do with user-agent. - Stig -- Stig Sæther Bakken [EMAIL PROTECTED] Fast Search Transfer ASA, Trondheim, Norway -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] PHP 4.0.7
Quoting Zeev Suraski [EMAIL PROTECTED]: This change was my last major TODO item for PHP 4.0.7. At this point, we should try to get PHP 4.0.7 out the door soon. I suggest we branch 4.0.7 away next Tuesday, and start the QA process. This should give people enough time to make any final changes they want to put into 4.0.7. Would you like Universe to be included in the CVS before the branch? (If someone did not notice, Universe is my new CORBA extension that will replace Satellite.) http://universe.2good.nu/ Regards, -\- David Eriksson -/- An expert in a particular computer language is really an expert in the work-arounds necessary to use this language to perform useful work. - Richard B. Johnson -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] PHP 4.0.7
We can add it as an experimental, sure. When do you think it'd be ready? Zeev At 12:14 09-08-01, David Eriksson wrote: Quoting Zeev Suraski [EMAIL PROTECTED]: This change was my last major TODO item for PHP 4.0.7. At this point, we should try to get PHP 4.0.7 out the door soon. I suggest we branch 4.0.7 away next Tuesday, and start the QA process. This should give people enough time to make any final changes they want to put into 4.0.7. Would you like Universe to be included in the CVS before the branch? (If someone did not notice, Universe is my new CORBA extension that will replace Satellite.) http://universe.2good.nu/ Regards, -\- David Eriksson -/- An expert in a particular computer language is really an expert in the work-arounds necessary to use this language to perform useful work. - Richard B. Johnson -- Zeev Suraski [EMAIL PROTECTED] CTO co-founder, Zend Technologies Ltd. http://www.zend.com/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Re: The new $_GET/POST/ENV (was: Re: [PHP-CVS] cvs: php4 / NEWS...)
Hi Jason! On Wed, 08 Aug 2001, Jason Greene wrote: From: Zeev Suraski [EMAIL PROTECTED] My top of the list is: $_REQUEST $_EVIL (Andi and I think it's really pretty good, but we both figured we'll end up going with a different alternative :) What about $_TAINTED ? for non-english ppl REQUEST is a more familiar word that TAINTED. I only encountered it when studying JS security. -- teodor -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] SOCKS support patch
Quoting Zeev Suraski [EMAIL PROTECTED]: This change was my last major TODO item for PHP 4.0.7. At this point, we should try to get PHP 4.0.7 out the door soon. I suggest we branch 4.0.7 away next Tuesday, and start the QA process. This should give people enough time to make any final changes they want to put into 4.0.7. Would you like SOCKS support to be included in the CVS before the branch? I enclose the diff file. Regards, Paolo Prandini S.P.E.Sistemi e Progetti Elettronici s.a.s. Via Liguria 5 I-25125 Brescia (BS) Tel +39 0302427266 Fax +39 0302449252 Email [EMAIL PROTECTED] World Wide Web http://www.spe.it diff file: diff -urN php-4.0.6.orig/ext/standard/Makefile.in php-4.0.6/ext/standard/Makefile.in --- php-4.0.6.orig/ext/standard/Makefile.in Mon Nov 20 11:05:57 2000 +++ php-4.0.6/ext/standard/Makefile.in Thu Aug 9 11:14:51 2001 @@ -7,7 +7,7 @@ link.c mail.c math.c md5.c metaphone.c microtime.c pack.c pageinfo.c \ parsedate.c quot_print.c rand.c reg.c soundex.c string.c scanf.c \ syslog.c type.c uniqid.c url.c url_scanner.c var.c output.c assert.c \ - strnatcmp.c levenshtein.c incomplete_class.c url_scanner_ex.c \ + strnatcmp.c levenshtein.c incomplete_class.c url_scanner_ex.c socks.c \ ftp_fopen_wrapper.c http_fopen_wrapper.c php_fopen_wrapper.c credits.c include $(top_srcdir)/build/dynlib.mk diff -urN php-4.0.6.orig/ext/standard/basic_functions.c php-4.0.6/ext/standard/basic_functions.c --- php-4.0.6.orig/ext/standard/basic_functions.c Sun May 20 02:31:45 2001 +++ php-4.0.6/ext/standard/basic_functions.cThu Aug 9 11:21:32 2001 @@ -644,6 +644,15 @@ PHP_INI_ENTRY_EX(safe_mode_protected_env_vars, SAFE_MODE_PROTECTED_ENV_VARS, PHP_INI_SYSTEM, OnUpdateSafeModeProtectedEnvVars, NULL) PHP_INI_ENTRY_EX(safe_mode_allowed_env_vars, SAFE_MODE_ALLOWED_ENV_VARS, PHP_INI_SYSTEM, OnUpdateSafeModeAllowedEnvVars, NULL) STD_PHP_INI_ENTRY(session.use_trans_sid, 1, PHP_INI_ALL,OnUpdateBool, use_trans_sid, php_basic_globals, basic_globals) + +PHP_INI_ENTRY(socks.user,,PHP_INI_ALL,NULL) +PHP_INI_ENTRY(socks.pass,,PHP_INI_ALL,NULL) +PHP_INI_ENTRY(socks.default_pass,,PHP_INI_SYSTEM,NULL) +PHP_INI_ENTRY(socks.default_user,,PHP_INI_SYSTEM,NULL) +PHP_INI_ENTRY(socks.server,,PHP_INI_SYSTEM,NULL) +PHP_INI_ENTRY(socks.type,4,PHP_INI_SYSTEM,NULL) +PHP_INI_ENTRY(socks.port,,PHP_INI_SYSTEM,NULL) +PHP_INI_ENTRY(socks.local,,PHP_INI_SYSTEM,NULL) PHP_INI_END() diff -urN php-4.0.6.orig/ext/standard/socks.c php-4.0.6/ext/standard/socks.c --- php-4.0.6.orig/ext/standard/socks.c Thu Jan 1 01:00:00 1970 +++ php-4.0.6/ext/standard/socks.c Thu Aug 9 11:16:38 2001 @@ -0,0 +1,791 @@ +/* + + phpsocks - an extension to php for use with socks proxies + Copyright (C) 2000 Paolo Prandini + + liberally derived from: + TSOCKS - Wrapper library for transparent SOCKS + Copyright (C) 2000 Shaun Clowes + + + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +*/ + +/* PreProcessor Defines */ +#define DEBUG 1 /* Show error messages? */ + +/* Header Files */ +#include php.h +#include php_ini.h + +#include stdio.h +#include stdlib.h +#include unistd.h +#include dlfcn.h +#include sys/types.h +#include sys/socket.h +#include string.h +#include netinet/in.h +#include arpa/inet.h +#include pwd.h +#include errno.h +#include fcntl.h +#include stdarg.h + +struct socksent { +struct in_addr localip; +struct in_addr localnet; + struct socksent *next; +}; + +struct sockaddr_link { +struct sockaddr_in ip; + struct sockaddr_link *next; +}; + +struct sockreq { +int8_t version; +int8_t command; +int16_t dstport; +int32_t dstip; +/* A null terminated username goes here */ +}; + +struct sockrep { +int8_t version; +int8_t result; +int16_t ignore1; +int32_t ignore2; +}; + +/* Global Declarations */ +static struct socksent *localnets = NULL; +static int initialized = 0; +static int servertype = 0; +static int servervalid = 0; +static unsigned short int
[PHP-DEV] Bug #12642 Updated: Loading php_oci8 fails
ID: 12642 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Bogus Bug Type: OCI8 related Operating System: Windows 2000 PHP Version: 4.0.6 New Comment: The OCI.DLL is within C:\Oracle\Ora81\bin; which is in the PATH Previous Comments: [2001-08-09 04:47:46] [EMAIL PROTECTED] which of the directories in your %PATH% contains oci.dll? [2001-08-09 04:25:14] [EMAIL PROTECTED] But why worls my other Applications whcih are using OCI, too. It seems more to be a compile/linking error. Because it happens on the first call of the DLL. Are there any differences between the both Binaries (IIS and CGI/Apache)? I saw, that thy have the same date, bit not the same time. And where are the DLL's for the IIS Shipment? There are no DLL's within the ZIP-File. (The File's only 738 K). I've tested the same with the other DLL's out of the CGI-Shipment together IIS PHP.EXE Here I have the same calling Problemm i.e. PHP_LDAP.DLL, PHP_MSSQL.DLL, PHP_PRINTER.DLL. I have a complete MS SQL-Workbench on my machine, too. I don't think it's a PATH-Problem Here's the complete PATH from my machine: %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Oracle\Ora81\bin;C:\Program Files\Oracle\jre\1.1.7\bin;C:\PROGRA~1\COMMON~1\RandSync\TRANSL~1\LtNts4\;C:\Oracle\Ora81\orb\bin;C:\MYSQL\BIN;C:\PHP;C:\PHP\DLL;C:\PHP\EXTENSIONS; And the ORACLE-Settings are standard. [2001-08-09 02:33:26] [EMAIL PROTECTED] I'm sorry to say this, but if the dll is there as you say it is, and you still get that message, then that means your Oracle install isn't all that well. It requires some Oracle dlls in the %PATH%, and it's your responsibility to have them properly installed. [2001-08-09 02:04:48] [EMAIL PROTECTED] I'm sorry to say this, but I have a complete ORACLE-Installation (Client, Development, Administration), instead other Applications won't run and I have to administrate our ORACLE Installations. The Do's and Don'ts says nothing about missing PHP-Files like PHP_OCI8.DLL within the distribution of the WIndows Installer for IIS. This File won't come with ORACLE. After some looks I'm missing other PHP_*.DLL's within this distribution, too. Where can I get these files for the PHP.EXE in this distribution. As you can see below, the other DLL's (Windows Distribution CGI - Apache) won't work with this PHP.EXE [2001-08-08 13:03:54] [EMAIL PROTECTED] You need to have the oracle client installed on your system. And you need to read bugs-dos-and-donts BEFORE you submit any 'bug' reports. --Jani The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/?id=12642 Edit this bug report at http://bugs.php.net/?id=12642edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12642 Updated: Loading php_oci8 fails
ID: 12642 Updated by: cynic Reported By: [EMAIL PROTECTED] Old Status: Bogus Status: Feedback Bug Type: OCI8 related Operating System: Windows 2000 PHP Version: 4.0.6 New Comment: could you try opening php_oci8.dll in Dependency Walker (http://www.dependencywalker.com/)? does it report any problems? Previous Comments: [2001-08-09 05:56:01] [EMAIL PROTECTED] The OCI.DLL is within C:\Oracle\Ora81\bin; which is in the PATH [2001-08-09 04:47:46] [EMAIL PROTECTED] which of the directories in your %PATH% contains oci.dll? [2001-08-09 04:25:14] [EMAIL PROTECTED] But why worls my other Applications whcih are using OCI, too. It seems more to be a compile/linking error. Because it happens on the first call of the DLL. Are there any differences between the both Binaries (IIS and CGI/Apache)? I saw, that thy have the same date, bit not the same time. And where are the DLL's for the IIS Shipment? There are no DLL's within the ZIP-File. (The File's only 738 K). I've tested the same with the other DLL's out of the CGI-Shipment together IIS PHP.EXE Here I have the same calling Problemm i.e. PHP_LDAP.DLL, PHP_MSSQL.DLL, PHP_PRINTER.DLL. I have a complete MS SQL-Workbench on my machine, too. I don't think it's a PATH-Problem Here's the complete PATH from my machine: %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Oracle\Ora81\bin;C:\Program Files\Oracle\jre\1.1.7\bin;C:\PROGRA~1\COMMON~1\RandSync\TRANSL~1\LtNts4\;C:\Oracle\Ora81\orb\bin;C:\MYSQL\BIN;C:\PHP;C:\PHP\DLL;C:\PHP\EXTENSIONS; And the ORACLE-Settings are standard. [2001-08-09 02:33:26] [EMAIL PROTECTED] I'm sorry to say this, but if the dll is there as you say it is, and you still get that message, then that means your Oracle install isn't all that well. It requires some Oracle dlls in the %PATH%, and it's your responsibility to have them properly installed. [2001-08-09 02:04:48] [EMAIL PROTECTED] I'm sorry to say this, but I have a complete ORACLE-Installation (Client, Development, Administration), instead other Applications won't run and I have to administrate our ORACLE Installations. The Do's and Don'ts says nothing about missing PHP-Files like PHP_OCI8.DLL within the distribution of the WIndows Installer for IIS. This File won't come with ORACLE. After some looks I'm missing other PHP_*.DLL's within this distribution, too. Where can I get these files for the PHP.EXE in this distribution. As you can see below, the other DLL's (Windows Distribution CGI - Apache) won't work with this PHP.EXE The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/?id=12642 Edit this bug report at http://bugs.php.net/?id=12642edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Re: The new $_GET/POST/ENV
JG How about $_COULDCONTAINSHELLCODE? Well, also $_BIGSECURITYHOLE, $_HACKMEHARDER and $_0WNM3P13453P13453... Let your imagination go wild. -- Stanislav Malyshev, Zend Products Engineer [EMAIL PROTECTED] http://www.zend.com/ +972-3-6139665 ext.115 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Latest CVS Problem
ZS internet with the latest cvs... ZS ZS ? ZS $file=fopen(http://php.net/,r;); ZS fpassthru($file); ZS ? ZS Will produce Segmentation Fault (core dumped) There was a bug in URL fopen some days ago. Should be fixed in current CVS. I can't check it since I didn't update to current CVS yet, but generally the patch that looks like it should fix it was committed some days ago :) -- Stanislav Malyshev, Zend Products Engineer [EMAIL PROTECTED] http://www.zend.com/ +972-3-6139665 ext.115 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12658 Updated: set_error_handler() not working properly (with 'Call to undefined function')
ID: 12658 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Analyzed Bug Type: Scripting Engine problem Operating System: Red Hat Linux, Win2000 sp2 PHP Version: 4.0.6 New Comment: Encountered the error eat up too... The description was brief, not to be flamed for flooding or boring :) I believe that's just a simple bug somewhere in the routines... Can't wait to see it fixed, while those fatals damage my web layout. regards Previous Comments: [2001-08-08 16:36:15] [EMAIL PROTECTED] Using: error_reporting(E_ERROR); does not work (same result as E_ALL), even though in Zend/zend_execute.c that is the error level raised. In Zend/zend.c the zend_error() function hands the error to zend_error_cb, which points to one of the utility functions created during zend_startup() (called in main/main.c) I cannot track the chain down more, my C is very rusty. [2001-08-08 16:18:00] [EMAIL PROTECTED] My mistake, did not understood the bug report correctly. More testing shows that calls to undefined functions do not generate an error level that can be catched by the error handling mechanism. Not even when using: error_reporting(E_ALL); which just aborts execution of the script and gives the msg: bFatal error/b: Call to undefined function: whatever() in bjunk.php/b on line b24/bbr whereas when using: error_reporting(E_CORE); just eats up the error (i.e. no fatal error msg is generated by the interpreter), and the error handling function does not have time to do anything, so the script aborts w/o any output. Two issues need to be addressed: 1) The inconsitent behavior of E_CORE vs E_ALL (PHP 4.0.6), in view of the fact the E_ALL includes E_CORE (as per Zend/zend_errors.h) 2) Whether is desirable to allow catching of fatal errors using the set_error_handler() and error_reporting() functions If the answer to (2) is no, then this should be clarified in the manual. [2001-08-08 15:48:54] [EMAIL PROTECTED] The assertion ... Seems that PHP cannot redirect 'Call to undefined function' errors to a custom error handler... is incorrect. This seems to be a problem w/ the person reporting the bug *not* using the error_reporting() function, as it is clearly noted in the manual example, changing the code to read: ?php define (ERROR,E_USER_WARNING); define (WARNING,E_USER_NOTICE); // set the error reporting level for this script error_reporting (FATAL | ERROR | WARNING); // Define a simple error handler function error_handler ($level, $message, $file, $line, $context) { echo An error of level $level was generated in file $file on line $line. \nThe error message was: $message \nThe following variables were set in the scope that the error occurred in: blockquote ; print_r ($context); print \n/blockquote; } // Set the error handler to the error_handler() function set_error_handler ('error_handler'); trigger_error (Some other error); whatever(); ? The output is: An error of level 1024 was generated in file bugtest.php on line 20. The error message was: Some other error The following variables were set in the scope that the error occurred in: blockquote Array ( [PWD] = /tmp [... snip ...] [_] = /usr/local/bin/php [PHP_SELF] = [argv] = Array ( [0] = bugtest.php ) [argc] = 1 [HTTP_POST_VARS] = Array ( ) [HTTP_GET_VARS] = Array [...snip...] /blockquote This was tested with 4.0.6 on RH 7.1, more information is requested from the person reporting the bug, before it is reclassified as bogus. [2001-08-08 13:23:32] [EMAIL PROTECTED] Seems that PHP cannot redirect 'Call to undefined function' errors to a custom error handler... A sample (taken partly from the manual): pre ?php // Define a simple error handler function error_handler ($level, $message, $file, $line, $context) { echo An error of level $level was generated in file $file on line $line. \nThe error message was: $message \nThe following variables were set in the scope that the error occurred in: blockquote ; print_r ($context); print \n/blockquote; } // Set the error handler to the error_handler() function set_error_handler ('error_handler'); trigger_error (Some other error); whatever(); // - this will crash make the script die without calling the custom error_handler ? Edit this bug report at http://bugs.php.net/?id=12658edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For
Re: [PHP-DEV] Latest CVS Problem
S/he might have had the same problem as I did, with a slight messy build. It was that issue that I was chasing at the time :) Make a completely clean build, see if it helps. - Original Message - From: Stanislav Malyshev [EMAIL PROTECTED] To: Zeev Suraski [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, August 09, 2001 10:17 PM Subject: Re: [PHP-DEV] Latest CVS Problem ZS internet with the latest cvs... ZS ZS ? ZS $file=fopen(http://php.net/,r;); ZS fpassthru($file); ZS ? ZS Will produce Segmentation Fault (core dumped) There was a bug in URL fopen some days ago. Should be fixed in current CVS. I can't check it since I didn't update to current CVS yet, but generally the patch that looks like it should fix it was committed some days ago :) -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12673: virtual function
From: [EMAIL PROTECTED] Operating system: freebsd 4.3-stable PHP version: 4.0.6 PHP Bug Type: Apache related Bug description: virtual function Calling the function virtual with relative path as a parameter changes current working dirrectory -- Edit bug report at: http://bugs.php.net/?id=12673edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12495 Updated: when PHP configured with --enable-dmalloc Apache crashes
ID: 12495 Updated by: joey Reported By: [EMAIL PROTECTED] Old Status: Feedback Status: Bogus Bug Type: Reproducible crash Operating System: Linux 2.4.3 [ Mandrake 8.0 ] PHP Version: 4.0.6 New Comment: Moving to gcc 3.0 solved the dmalloc issues. Not a PHP bug. Previous Comments: [2001-08-03 20:08:29] [EMAIL PROTECTED] User replied by email: What Linux distro are you running? Mandrake 8.0, compiler gcc 2.96 Which version of dmalloc? dmalloc 4.8.2 GCC 2.96 is an unstable compiler release which never should have been included in a distro (see http://gcc.gnu.org/gcc-2.96.html for more info). Reccomended that the user try gcc 2.95.x or 3.0, and see if the bug goes away. [2001-08-01 03:34:19] [EMAIL PROTECTED] Didn't notice that Mandrake was listed in the bug report. (Was too busy looking for --enable-dmalloc in the configure line. :) [2001-08-01 03:20:21] [EMAIL PROTECTED] What Linux distro are you running? Which version of dmalloc? And I don't see --enable-dmalloc anywhere in the config line you pasted below I have been using dmalloc for over a year, with no problems, so I expect it has something to do with a particular configuration on your system. I'm thinking something like one of the other packages you are compiling in is linked to an older, different dmalloc version that PHP is trying to link agains, or something like that. Anyways, this clearly is not enough information, so let's start by getting informed. [2001-07-31 15:27:59] [EMAIL PROTECTED] When is PHP configured with --enable dmalloc, the Apache crashes with can't compile regexp at line Apache 1.3.19, Mandrake 8.0, --prefix=?pkg_install_prefix/?pkg_install_dir --with-config-file-path=?pkg_dir('apache')/conf --with-apxs=?pkg_dir('apache')/bin/apxs --enable-sysvsem --enable-sysvshm --enable-magic-quotes --enable-memory-limit --enable-track-vars --enable-versioning --enable-trans-sid --with-gettext --with-recode --with-readline --with-ldap=?pkg_dir('openldap') --with-ttf --with-gd --enable-gd-native-ttf --with-gdbm --with-db3 --with-unixodbc=?pkg_dir('unixodbc') --with-mysql=?pkg_dir('mysql') --with-pgsql=?pkg_dir('postgres') --with-sybase-ct=?pkg_dir('sybase') --enable-ftp --with-xml --with-zlib Edit this bug report at http://bugs.php.net/?id=12495edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #8922 Updated: @xmldoc(...) doesn't quite suppress errors
ID: 8922 Updated by: joey Reported By: [EMAIL PROTECTED] Old Status: Open Status: Assigned Bug Type: DOM XML related Operating System: RH 7.0 PHP Version: 4.0 Latest CVS (25/01/2001) Old Assigned To: Assigned To: joey Edit this bug report at http://bugs.php.net/?id=8922edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12642 Updated: Loading php_oci8 fails
ID: 12642 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Old Status: Feedback Status: Open Bug Type: OCI8 related Operating System: Windows 2000 PHP Version: 4.0.6 New Comment: I'm not very familiar with the Dependency Walker. As far as I can see, there are no errors logged. But I can send you the DWI-File if you want to see the Image. Previous Comments: [2001-08-09 06:02:27] [EMAIL PROTECTED] could you try opening php_oci8.dll in Dependency Walker (http://www.dependencywalker.com/)? does it report any problems? [2001-08-09 05:56:01] [EMAIL PROTECTED] The OCI.DLL is within C:\Oracle\Ora81\bin; which is in the PATH [2001-08-09 04:47:46] [EMAIL PROTECTED] which of the directories in your %PATH% contains oci.dll? [2001-08-09 04:25:14] [EMAIL PROTECTED] But why worls my other Applications whcih are using OCI, too. It seems more to be a compile/linking error. Because it happens on the first call of the DLL. Are there any differences between the both Binaries (IIS and CGI/Apache)? I saw, that thy have the same date, bit not the same time. And where are the DLL's for the IIS Shipment? There are no DLL's within the ZIP-File. (The File's only 738 K). I've tested the same with the other DLL's out of the CGI-Shipment together IIS PHP.EXE Here I have the same calling Problemm i.e. PHP_LDAP.DLL, PHP_MSSQL.DLL, PHP_PRINTER.DLL. I have a complete MS SQL-Workbench on my machine, too. I don't think it's a PATH-Problem Here's the complete PATH from my machine: %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Oracle\Ora81\bin;C:\Program Files\Oracle\jre\1.1.7\bin;C:\PROGRA~1\COMMON~1\RandSync\TRANSL~1\LtNts4\;C:\Oracle\Ora81\orb\bin;C:\MYSQL\BIN;C:\PHP;C:\PHP\DLL;C:\PHP\EXTENSIONS; And the ORACLE-Settings are standard. [2001-08-09 02:33:26] [EMAIL PROTECTED] I'm sorry to say this, but if the dll is there as you say it is, and you still get that message, then that means your Oracle install isn't all that well. It requires some Oracle dlls in the %PATH%, and it's your responsibility to have them properly installed. The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/?id=12642 Edit this bug report at http://bugs.php.net/?id=12642edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Buildproblems in latest CVS
In article [EMAIL PROTECTED], Jani Taskinen [EMAIL PROTECTED] wrote: Well, the latest CVS only supports these: libtool 1.4 autoconf 2.13 automake 1.4 I think you only need to downgrade autoconf. That was my original thought, however a downgrade yields: aj@uranos% ./buildconf buildconf: checking installation... buildconf: autoconf version 2.13 (ok) buildconf: automake version 1.4-p4 (ok) buildconf: libtool version 1.4b 1996, (ok) rebuilding Makefile templates automake: configure.in: installing `Zend/ylwrap' rebuilding configure FATAL ERROR: Autoconf version 2.50 or higher is required for this script rebuilding acconfig.h rebuilding main/php_config.h.in FATAL ERROR: Autoconf version 2.50 or higher is required for this script Best regards Anders Johannsen -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Re: [PEAR-DEV] DB : affectedRows() on an UPDATE query ?
[Manuel Lemos [EMAIL PROTECTED]] Ok, but it is fair to say that it is not supported in all PEAR-DB backends even if it is just a limitation of PHP Interbase API. Maybe sometime later somebody adds a ibase_affected_rows() function, but PHP scripts can't assume that the function exists because the PHP version that is installed may not have such function yet. I suggest that somebody apply that patch and PHP scripts that use function_exists() function to figure if PHP Interbase API can figure the number of affected rows. Jouni Ahto has said he'll commit the ibase_affected_rows() patch and other patches soon when he gets some time. We'll add it to PEAR DB then, and return not capable if the function does not exist. Hopefully we'll have it by PHP 4.0.7. - Stig -- Stig Sæther Bakken [EMAIL PROTECTED] Fast Search Transfer ASA, Trondheim, Norway -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Re: [PHP-QA] PHP 4.0.7
Sounds good to me - I will set aside some time to work on QA. --zak - Original Message - From: Zeev Suraski [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, August 08, 2001 12:48 PM Subject: [PHP-QA] PHP 4.0.7 As those of you who are subscribed to php-cvs may have noticed, Andi and I implemented today the functionality I suggested to replace register_globals: - $_GET, $_POST, $_COOKIE, $_FILES, $_ENV and $_SERVER replace $HTTP_*_VARS (the old vars still remain for downwards compatibility) - The new variables are auto-globals - they're available in all function contexts - there's no need to import them using the 'global' statement or reference them using $GLOBALS. - $_REQUEST (this name might change) - includes the data from $_GET, $_POST, $_COOKIE and $_FILES, all in one array, for those users who don't really care to differentiate between the various types of input. This change was my last major TODO item for PHP 4.0.7. At this point, we should try to get PHP 4.0.7 out the door soon. I suggest we branch 4.0.7 away next Tuesday, and start the QA process. This should give people enough time to make any final changes they want to put into 4.0.7. One other idea I'd like to pitch is releasing 4.0.7 and 4.1.0 simultaneously, with the only difference between them being the default value for register_globals. This would create lots of noise and encourage people to start actually using the new $_GETfriends features, which can otherwise go unnoticed. Zeev -- PHP Quality Assurance Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12674: string + 'true', types misunderstanding (?)
From: [EMAIL PROTECTED] Operating system: Win2000 sp2 PHP version: 4.0.6 PHP Bug Type: Scripting Engine problem Bug description: string + 'true', types misunderstanding (?) Hmm... why is that ? Am I reading manual too briefly, or is there something with the operators ? might be bogus, but please enlighten me:P btw: I thought that there's no seperate boolean type =] ? function foo(){ return true; } if(foo() == 'whatever you like'){ echo '!?!? why is that equal ?'; } ? ? function paranoid(){ return 1; } if(!(paranoid() == (string) 'whatever you like')){ echo 'hmm??'; } ? -- Edit bug report at: http://bugs.php.net/?id=12674edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12672 Updated: ifx_connect does not return when base not present
ID: 12672 Updated by: alindeman Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: Informix related Operating System: Linux RH 6.2 PHP Version: 4.0.6 New Comment: please include a sample script... Previous Comments: [2001-08-09 04:09:35] [EMAIL PROTECTED] (command line mode) if the database (i.e. informix) is not up the ifx_connect function hangs. One would expect to return some meaningfull information. OS: Linux giant-a 2.2.14-5.0smp #1 SMP Tue Mar 7 21:01:40 EST 2000 i686 unknown conf: ./configure' --enable-trans-sid' '--enable-dbase' '--enable-track-vars' '--with-informix' '--with-t1lib=/usr/local/src/T1-1.0.1/' '--with-zlib-dir=/usr/local/src/zlib-1.1.3/' '--with-gd=/usr/local/src/gd-1.8.4/' '--with-jpeg-dir=/usr/local/src/jpeg-6b/' '--with-ttf=/usr/local/src/freetype-1.3.1/' '--with-png-dir=/usr/local/src/libpng-1.0.8/' Edit this bug report at http://bugs.php.net/?id=12672edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12674 Updated: string +' true', types misunderstanding (?)
ID: 12674 Updated by: alindeman Reported By: [EMAIL PROTECTED] Old Summary: string + 'true', types misunderstanding (?) Old Status: Open Status: Bogus Bug Type: Scripting Engine problem Operating System: Win2000 sp2 PHP Version: 4.0.6 New Comment: any non-empty string will evaluate true! Previous Comments: [2001-08-09 08:18:08] [EMAIL PROTECTED] Hmm... why is that ? Am I reading manual too briefly, or is there something with the operators ? might be bogus, but please enlighten me:P btw: I thought that there's no seperate boolean type =] ? function foo(){ return true; } if(foo() == 'whatever you like'){ echo '!?!? why is that equal ?'; } ? ? function paranoid(){ return 1; } if(!(paranoid() == (string) 'whatever you like')){ echo 'hmm??'; } ? Edit this bug report at http://bugs.php.net/?id=12674edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12674 Updated: string +' true', types misunderstanding (?)
ID: 12674 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Bogus Bug Type: Scripting Engine problem Operating System: Win2000 sp2 PHP Version: 4.0.6 New Comment: Geez... THAT'll make some people quite confused/lost, when analysing the results from a function with if/elseif or switch. Consider: ? function foo(){ #... return true; #...or... return 'works ok'; } $foo = foo(); if(!$foo){ #whatever }elseif($foo == 'works ok'){ #this will hit }else{ #or else... } ? Previous Comments: [2001-08-09 08:32:38] [EMAIL PROTECTED] any non-empty string will evaluate true! [2001-08-09 08:18:08] [EMAIL PROTECTED] Hmm... why is that ? Am I reading manual too briefly, or is there something with the operators ? might be bogus, but please enlighten me:P btw: I thought that there's no seperate boolean type =] ? function foo(){ return true; } if(foo() == 'whatever you like'){ echo '!?!? why is that equal ?'; } ? ? function paranoid(){ return 1; } if(!(paranoid() == (string) 'whatever you like')){ echo 'hmm??'; } ? Edit this bug report at http://bugs.php.net/?id=12674edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12674 Updated: string +' true', types misunderstanding (?)
ID: 12674 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Bogus Bug Type: Scripting Engine problem Operating System: Win2000 sp2 PHP Version: 4.0.6 New Comment: I've come from perl, so it's quite easy for me to swallow that :) ... but others may stuck. I suggest dropping a line about this one in the manual.. a workaround is to use '===' as the operator(PHP4) - of course as long as people would like to stuck to their current switch/if schemes. Previous Comments: [2001-08-09 08:46:19] [EMAIL PROTECTED] Geez... THAT'll make some people quite confused/lost, when analysing the results from a function with if/elseif or switch. Consider: ? function foo(){ #... return true; #...or... return 'works ok'; } $foo = foo(); if(!$foo){ #whatever }elseif($foo == 'works ok'){ #this will hit }else{ #or else... } ? [2001-08-09 08:32:38] [EMAIL PROTECTED] any non-empty string will evaluate true! [2001-08-09 08:18:08] [EMAIL PROTECTED] Hmm... why is that ? Am I reading manual too briefly, or is there something with the operators ? might be bogus, but please enlighten me:P btw: I thought that there's no seperate boolean type =] ? function foo(){ return true; } if(foo() == 'whatever you like'){ echo '!?!? why is that equal ?'; } ? ? function paranoid(){ return 1; } if(!(paranoid() == (string) 'whatever you like')){ echo 'hmm??'; } ? Edit this bug report at http://bugs.php.net/?id=12674edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12668 Updated: unexpected behavior of preg_replace
ID: 12668 Updated by: andrei Reported By: [EMAIL PROTECTED] Old Status: Open Status: Analyzed Bug Type: PCRE related Operating System: FreeBSD 4.0 PHP Version: 4.0.6 New Comment: This is because preg_replace() runs addslashes() internally on the captured subpatterns before substrituting them into the replacement string. It didn't used to but a few people complained that it was really hard to pass $n to a function because of single and double-quote conflicts. To be frank, I'm not sure how to solve this problem adequately, one group of people want the addslashes() run, the other one doesn't. Previous Comments: [2001-08-08 21:06:50] [EMAIL PROTECTED] Simple problem - the script: ?php echo preg_replace(/'/e, \$0\, '); // that's double-quote, slash, single-quote, slash, e, double-quote // then double-quote, escaped double-quote, $0, escaped double-quote, double-quote // then double-quote, single-quote, double-quote // meaning = replace all occurrences of single-quote with the same string matched during the search - i.e. single-quote ? should produce one plain single-quote, but instead it produces an escaped single-quote. No other character seems to exhibit this behavior. Configuration: './configure' '--prefix=/usr/local/php4' '--with-mysql' '--with-apxs=/usr/local/sbin/apxs' '--enable-track-vars' '--with-gd=/usr/local' '--with-zlib-dir=shared' '--with-ttf' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr/local' '--with-tiff-dir=/usr/local' '--with-mcrypt' '--with-pdflib' No other unusual configuration setups Edit this bug report at http://bugs.php.net/?id=12668edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12668 Updated: unexpected behavior of preg_replace
ID: 12668 Updated by: alindeman Reported By: [EMAIL PROTECTED] Status: Analyzed Bug Type: PCRE related Operating System: FreeBSD 4.0 PHP Version: 4.0.6 New Comment: how about creating either two different functions, or another attribute to preg_replace, that you can set true/false to run that add_slashes or not? Previous Comments: [2001-08-09 09:03:31] [EMAIL PROTECTED] This is because preg_replace() runs addslashes() internally on the captured subpatterns before substrituting them into the replacement string. It didn't used to but a few people complained that it was really hard to pass $n to a function because of single and double-quote conflicts. To be frank, I'm not sure how to solve this problem adequately, one group of people want the addslashes() run, the other one doesn't. [2001-08-08 21:06:50] [EMAIL PROTECTED] Simple problem - the script: ?php echo preg_replace(/'/e, \$0\, '); // that's double-quote, slash, single-quote, slash, e, double-quote // then double-quote, escaped double-quote, $0, escaped double-quote, double-quote // then double-quote, single-quote, double-quote // meaning = replace all occurrences of single-quote with the same string matched during the search - i.e. single-quote ? should produce one plain single-quote, but instead it produces an escaped single-quote. No other character seems to exhibit this behavior. Configuration: './configure' '--prefix=/usr/local/php4' '--with-mysql' '--with-apxs=/usr/local/sbin/apxs' '--enable-track-vars' '--with-gd=/usr/local' '--with-zlib-dir=shared' '--with-ttf' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr/local' '--with-tiff-dir=/usr/local' '--with-mcrypt' '--with-pdflib' No other unusual configuration setups Edit this bug report at http://bugs.php.net/?id=12668edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12668 Updated: unexpected behavior of preg_replace
ID: 12668 Updated by: alindeman Reported By: [EMAIL PROTECTED] Status: Analyzed Bug Type: PCRE related Operating System: FreeBSD 4.0 PHP Version: 4.0.6 New Comment: of course I meant addslashes() Previous Comments: [2001-08-09 09:18:47] [EMAIL PROTECTED] how about creating either two different functions, or another attribute to preg_replace, that you can set true/false to run that add_slashes or not? [2001-08-09 09:03:31] [EMAIL PROTECTED] This is because preg_replace() runs addslashes() internally on the captured subpatterns before substrituting them into the replacement string. It didn't used to but a few people complained that it was really hard to pass $n to a function because of single and double-quote conflicts. To be frank, I'm not sure how to solve this problem adequately, one group of people want the addslashes() run, the other one doesn't. [2001-08-08 21:06:50] [EMAIL PROTECTED] Simple problem - the script: ?php echo preg_replace(/'/e, \$0\, '); // that's double-quote, slash, single-quote, slash, e, double-quote // then double-quote, escaped double-quote, $0, escaped double-quote, double-quote // then double-quote, single-quote, double-quote // meaning = replace all occurrences of single-quote with the same string matched during the search - i.e. single-quote ? should produce one plain single-quote, but instead it produces an escaped single-quote. No other character seems to exhibit this behavior. Configuration: './configure' '--prefix=/usr/local/php4' '--with-mysql' '--with-apxs=/usr/local/sbin/apxs' '--enable-track-vars' '--with-gd=/usr/local' '--with-zlib-dir=shared' '--with-ttf' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr/local' '--with-tiff-dir=/usr/local' '--with-mcrypt' '--with-pdflib' No other unusual configuration setups Edit this bug report at http://bugs.php.net/?id=12668edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12672 Updated: ifx_connect does not return when base not present
ID: 12672 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Old Status: Feedback Status: Open Bug Type: Informix related Operating System: Linux RH 6.2 PHP Version: 4.0.6 New Comment: ? echo (before\n); $id = ifx_connect(base,user,pass); echo (after\n); ? if ifx is up you get before after otherwise you get before (program does not return) Previous Comments: [2001-08-09 08:22:49] [EMAIL PROTECTED] please include a sample script... [2001-08-09 04:09:35] [EMAIL PROTECTED] (command line mode) if the database (i.e. informix) is not up the ifx_connect function hangs. One would expect to return some meaningfull information. OS: Linux giant-a 2.2.14-5.0smp #1 SMP Tue Mar 7 21:01:40 EST 2000 i686 unknown conf: ./configure' --enable-trans-sid' '--enable-dbase' '--enable-track-vars' '--with-informix' '--with-t1lib=/usr/local/src/T1-1.0.1/' '--with-zlib-dir=/usr/local/src/zlib-1.1.3/' '--with-gd=/usr/local/src/gd-1.8.4/' '--with-jpeg-dir=/usr/local/src/jpeg-6b/' '--with-ttf=/usr/local/src/freetype-1.3.1/' '--with-png-dir=/usr/local/src/libpng-1.0.8/' Edit this bug report at http://bugs.php.net/?id=12672edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP-DEV] Re: compile fails on html.c (CODESET undeclared)
On 09/08/01, Marc Boeren [EMAIL PROTECTED] wrote: I suspect this can be fixed by changing line 231 to be #if HAVE_LANGINFO_H HAVE_LOCALE_H defined(CODESET) Done. Please let me know if it doesn't work... Just wanting to let you know it _does_ work :-) Great :) --Wez. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP4.0.6, php_iconv bugs
Hello, I have noticed that php_iconv sometimes fails to convert the string due to invalid sequence of characters on input, and there is no way to find out where the bad sequence is. I think there should be an optional parameter added to iconv() function, a variable passed by reference. If used, iconv would in case of an error return partially converted string, and set this variable to character index at which the conversion failed. Also, php_iconv makes a wrong assumption that the longest sequence representing one char is as long as sizeof(ucs4_t). For example, unicode combined characters can easily be longer, the same applies to encodings like 'JAVA' (\u). -- Best regards, Piotr Pawlow mailto:[EMAIL PROTECTED] -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12675: Link errors caused by new Oracle 8i LOB functions
From: [EMAIL PROTECTED] Operating system: Digital Unix V4.0F (Rev. 1229) PHP version: 4.0.6 PHP Bug Type: Compile Failure Bug description: Link errors caused by new Oracle 8i LOB functions When trying to link, the following dependancies were not satisfied by our Oracle release (8.1.6): OCILobOpen OCILobClose OCILobCreateTemp ? Evidently these routines are in a different library, but if that library is linked as well, many more errors are generated. Perhaps the new LOB function additions will only build work if you have a later (or different) version of Oracle? -- Edit bug report at: http://bugs.php.net/?id=12675edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] RE: Bug #12666 Updated: undefined symbol: mxdriver when I start apache
Thank you,, It's worked with the lastest snapshot version of php. (php4-200108091035.tar.gz) -Mensaje original- De: Bug Database [mailto:[EMAIL PROTECTED]] Enviado el: Miércoles, 08 de Agosto de 2001 10:14 p.m. Para: [EMAIL PROTECTED] Asunto: Bug #12666 Updated: undefined symbol: mxdriver when I start apache ID: 12666 Updated by: sniper Reported By: [EMAIL PROTECTED] Old Status: Feedback Status: Closed Old Bug Type: *Compile Issues Bug Type: IMAP related Operating System: Red Hat 7.1 PHP Version: 4.0.6 New Comment: This should be fixed in CVS now. Try the latest snapshot: http://snaps.php.net/ --Jani Previous Comments: [2001-08-08 18:24:56] [EMAIL PROTECTED] try reading http://php.net/bugs.php?id=10759 tell me if this helps. [2001-08-08 18:16:56] [EMAIL PROTECTED] I'm having a problem when I try to compile APACHE + PHP + IMAP . The OS that I using is: 2.4.2-SGI_XFS_1.0 #1 Fri Apr 27 19:30:49 CDT 2001 i 686 unknown apache 1.3.20 php 4.0.6 imap-4.7c / imap-4.7a / imap-2001.BETA.SNAP-0107221451 Here is the problem When I try to compile doing this: (here is the exact commands) Firts I compile the apache with all modules (just in case) cd apache_1.3.20 ./configure --prefix=/usr/local/apache --enable-module=all make make install and php with this ./configure --with-apxs --with-imap=../imap-4.7c --with-mysql --with-ldap make make install /usr/local/apache/bin/apachectl start Syntax error on line 762 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/php-4.0.6/libs/libphp4.so into server: /usr/local/php-4.0.6/libs/libphp4.so: undefined symbol: mxdriver ./apachectl start: httpd could not be started I tried this with a lot a diferents source imap and still make me the same. I trie puting that and still doesn't work export LDFLAGS=-L/usr/kerberos/lib -lkrb5 -lgssapi_krb5 -lpam ldconfig BEFOR compiling Apache. Any assistance would be of great help! Thank Sebastian [EMAIL PROTECTED] ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=12666edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12668 Updated: unexpected behavior of preg_replace
ID: 12668 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Analyzed Bug Type: PCRE related Operating System: FreeBSD 4.0 PHP Version: 4.0.6 New Comment: Ah - I see - so what I'm seeing is actually a symptom of the basic issue that addslashes() is not a perfect reciprocal to putting addslashes-affected characters inside a string - i.e.: ?php // double-quoted strings echo \; // produces echo \\; // produces \ // but echo \'; // produces \' // single-quoted strings echo '\''; // produces ' echo '\\'; // produces \ // but echo '\'; // produces \ ? whereas in mysql: select \; # produces select \\; # produces \ select \'; # produces ' and perl is yet again different (with strings in single-quotes anyway): print \; # produces print \\; # produces \ print \'; # produces ' print '\''; # produces ' print '\\'; # produces \\ print '\'; # produces I suppose backward compatibility would prevent this core behavior from being changed at this stage - it's just kinda screwy that both single-quoting and double-quoting of strings is a bit of a compromise in terms of slashed characters. Perhaps instead of sending preg_replace carry-forward values through the entire addslashes routine, only and \ could be returned as slashed, and users could stick with using double-quotes for strings within the (eval'd) replace string... that would prevent people from having to use a hack get it to work as expected. Thanks, Chuck Previous Comments: [2001-08-09 09:19:18] [EMAIL PROTECTED] of course I meant addslashes() [2001-08-09 09:18:47] [EMAIL PROTECTED] how about creating either two different functions, or another attribute to preg_replace, that you can set true/false to run that add_slashes or not? [2001-08-09 09:03:31] [EMAIL PROTECTED] This is because preg_replace() runs addslashes() internally on the captured subpatterns before substrituting them into the replacement string. It didn't used to but a few people complained that it was really hard to pass $n to a function because of single and double-quote conflicts. To be frank, I'm not sure how to solve this problem adequately, one group of people want the addslashes() run, the other one doesn't. [2001-08-08 21:06:50] [EMAIL PROTECTED] Simple problem - the script: ?php echo preg_replace(/'/e, \$0\, '); // that's double-quote, slash, single-quote, slash, e, double-quote // then double-quote, escaped double-quote, $0, escaped double-quote, double-quote // then double-quote, single-quote, double-quote // meaning = replace all occurrences of single-quote with the same string matched during the search - i.e. single-quote ? should produce one plain single-quote, but instead it produces an escaped single-quote. No other character seems to exhibit this behavior. Configuration: './configure' '--prefix=/usr/local/php4' '--with-mysql' '--with-apxs=/usr/local/sbin/apxs' '--enable-track-vars' '--with-gd=/usr/local' '--with-zlib-dir=shared' '--with-ttf' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr/local' '--with-tiff-dir=/usr/local' '--with-mcrypt' '--with-pdflib' No other unusual configuration setups Edit this bug report at http://bugs.php.net/?id=12668edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #11058 Updated: php_network_getaddresses: getaddrinfo failed
ID: 11058 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: HTTP related Operating System: OpenBSD 2.6 PHP Version: 4.0.6 New Comment: Still not resolved. I commented out the line: #define HAVE_GETADDRINFO 1 from my main/php_config.h file, did a make, then a make install. Recompiled Apache, stopped and started the server, and still have the same errors. I also tried changing the value to 0, and did the same to #define LIBRESOLV 1 to see if that was the problem (for some reason there are 2 identical lines with LIBRESOLV in my php_config.h file). Nothing. Any ideas? This was working perfectly before upgrading to PHP4, and I haven't touched the box except to upgrade Apache and install OpenSSL. Previous Comments: [2001-08-07 12:56:13] [EMAIL PROTECTED] Still having the same issue with 4.0.6 now. I'll try and recompile without the GETADDRINFO line and see what happens. [2001-08-03 22:53:11] [EMAIL PROTECTED] What's the status for this?? [2001-07-22 04:45:41] [EMAIL PROTECTED] Could you try to comment out the line #define HAVE_GETADDRINFO 1 in main/php_config.h and rebuild without doing configure? Does it work then? There are some broken getaddrinfo() implementations out there, but I would be surprised if there were problems with OpenBSD in general. Might be something wrong with your resolver library. OTH, you also have a problem with fsockopen() and that uses the old gethostbyname() I think, so it seems to be resolving in general. [2001-07-21 21:47:35] [EMAIL PROTECTED] Please check that your nameserver is running and setup correctly. Check the same with your internet server. [2001-05-23 11:58:00] [EMAIL PROTECTED] I've seen this issue posted here a few times, and I think my problem is similar to Bug id #7880. fopen(), fsockopen(), and file() will not work with URL or IP address parameters. include() has the same issue. I believe it has something to do with getaddrinfo. Before upgrading to PHP4, I was running 3.0.16 and all of these functions were working perfectly with URL parameters. My configure script looks like this: ./configure --with-apache=/usr/temp/apache_1.3.19 --with-mysql=/usr/local --enable-track-vars --with-xml --with-openssl=/usr/local/ssl My php.ini DOES contain the line allow_url_fopen = On The fopen() script looks like this: $fd = fopen( http://www.php.net/;, r ); if( !$fd ) { echo Cannot open URL; } else { while ( !feof( $fd ) ) { $buffer = fgets( $fd, 4096 ); echo $buffer; } fclose ( $fd ); } and produces this output: Warning: php_network_getaddresses: getaddrinfo failed: name or service is not known in /var/www/patrickhaney.com/www/weather/test.php on line 24 Warning: fopen(http://www.php.net/,r;) - Bad file descriptor in /var/www/patrickhaney.com/www/weather/test.php on line 24 Cannot open URL and yes, I can resolve php.net to 208.247.106.187. Using the IP address in place of the hostname produces the same output. If I use the fsockopen() function with this script: fsockopen(http://www.php.net/;, 80, $errno, $errstr, 30); if(!$fp) { echo Error: $errstr ($errno)br\n; } else { fputs($fp,GET / HTTP/1.0\n\n); while(!feof($fp)) { echo fgets($fp,128); } fclose($fp); } I get this output: Error: (0) Edit this bug report at http://bugs.php.net/?id=11058edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12636 Updated: non-linked libpam function?
ID: 12636 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Old Status: Feedback Status: Open Bug Type: IMAP related Operating System: Linux (SuSE 7.1) PHP Version: 4.0.6 New Comment: obviously it should. just a obvious is that it doesn't. those requirements -were- filled, but just to humor you... libpam is in /lib. Somewhat weirdly, that's not in my LD_LIBRARY_PATH automatically, but -types- now it is (i did that before), and also in my ld.so.conf, and ldconfig has been run. ``ldconfig -v | grep pam'' shows: (i guess the `more than once' this is about it being in the config file and the environment setting? whatever.) ldconfig: Path `/lib' given more than once libpamc.so.0 - libpamc.so.0.72 libpam_misc.so.0 - libpam_misc.so.0.72 libpam.so.0 - libpam.so.0.72 libpamc.so.0 - libpamc.so.0.72 libpam_misc.so.0 - libpam_misc.so.0.72 libpam.so.0 - libpam.so.0.72 so it's definately there. Perhaps not exactly in the form php wants to see it, but even the symbol it's looking for , according to the last lines configure gives me: checking for pam_start in -lpam... no checking for crypt in -lcrypt... (cached) yes configure: error: This c-client library is build with SSL support. Add --with-imap-ssl=DIR to your configure line. Check config.log for details. ..are in /lib/libpam.so.0.72, according to objdump: (by the by, that (cached) thing strikes me as weird too as this is the first ./configure command i gave since i removed and untarred the directory) objdump -T /lib/libpam.so.0.72 | grep pam_start 3a70 gDF .text 007a Base _pam_start_handlers 2350 gDF .text 002d Base _pam_start_timer 1da0 gDF .text 030c Basepam_start (sorry for the wrapping, that's this input field) So it's not that libpam is somehow wrong. Forigive me for asking, but isn't that a library that linux doesn't run without in the first place? Anyhow, my config.log from the point where it starts checking stuff for imap (in case anything's changed): configure:24000: checking for IMAP support configure:24287: checking for pam_start in -lpam configure:24306: gcc -o conftest -g -O2 -DEAPI_MM -DSINGLE_LISTEN_UNSERIALIZED_ACCEPT /usr/i486-suse-linux/bin/ld: cannot find -lpam collect2: ld returned 1 exit status configure: failed program was: #line 24295 configure #include confdefs.h /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char pam_start(); int main() { pam_start() ; return 0; } configure:24334: checking for crypt in -lcrypt configure:24850: gcc -o conftest -g -O2 -DEAPI_MM -DSINGLE_LISTEN_UNSERIALIZED_ACCEPT /usr/lib/libc-client.so: undefined reference to `pam_end' /usr/lib/libc-client.so: undefined reference to `pam_authenticate' /usr/lib/libc-client.so: undefined reference to `pam_setcred' /usr/lib/libc-client.so: undefined reference to `pam_acct_mgmt' /usr/lib/libc-client.so: undefined reference to `pam_start' collect2: ld returned 1 exit status configure: failed program was: #line 24825 configure #include confdefs.h void mm_log(void){} void mm_dlog(void){} void mm_flags(void){} void mm_fatal(void){} void mm_critical(void){} void mm_nocritical(void){} void mm_notify(void){} void mm_login(void){} void mm_diskerror(void){} void mm_status(void){} void mm_lsub(void){} void mm_list(void){} void mm_exists(void){} void mm_searched(void){} void mm_expunged(void){} char mail_open(); int main() { mail_open(0,,0); return 0; } I guess the libc-client is the fallback option, except it won't work without SSL, which is somehow related to why this doesn't work either? (not that there's really an humanly (user-ly, whatever) understandable reason, or suggestion or alternative listed) As to the thing not compiling even without this imap weirdness, do i just start another bug thread? (oh, i guess i search for it first...) Previous Comments: [2001-08-09 03:27:12] [EMAIL PROTECTED] First, this should work fine with PHP 4.0.6. Where is the libpam.so in your system? Is the path to that file in your /etc/ld.so.conf ?? Have you tried to run '/sbin/ldconfig' ever? Try with fresh sources after these requirements are filled. --Jani [2001-08-08 18:00:37] [EMAIL PROTECTED] i should say, after i removed the --with-imap option, `configure' worked and i typed `make', it got exactly that far. I fiddled with the makefile a little, but couldn't fix it. (i don't know
[PHP-DEV] Bug #12676: strpos() ignores first character in haystack
From: [EMAIL PROTECTED] Operating system: FreeBSD 4.3 PHP version: 4.0.6 PHP Bug Type: Scripting Engine problem Bug description: strpos() ignores first character in haystack When performing a string search with strpos() on a string variable the function totally ignores the first character. For example: $astring = abc defg hij kl; if (strpos($astring, abc)) { echo(found\n); } else { echo(not found\n); } When running the above script not found is echoed instead when, in fact, found should be echoed. Here's my ./configure from phpinfo(): ./configure' '--with-config-file-path=/usr/local/etc/php.standalone' '--disable-pear' '--enable-versioning' '--with-system-regex' '--disable-debug' '--enable-track-vars' '--without-gd' '--without-mysql' '--with-zlib' '--with-mysql=/usr/local' '--enable-ftp' '--with-curl=/usr/local' '--enable-sockets' '--prefix=/usr/local' 'i386--freebsd4.3' A possible workaround would be: $astring = abc defg hij kl; $astring = . $astring; if (strpos($astring, abc)) { echo(found\n); } else { echo(not found\n); } The above code echoes found. Regards, Aragon Gouveia -- Edit bug report at: http://bugs.php.net/?id=12676edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12677: setcookie() with one argument segfaults apache
From: [EMAIL PROTECTED] Operating system: debian linux PHP version: 4.0.6 PHP Bug Type: Reproducible crash Bug description: setcookie() with one argument segfaults apache The following simple script: ?php setcookie(mycookie); echo Cookie set!; ? crashes the apache process running it. (Segfault in error_log) if I change it to setcookie(mycookie, ); it works correctly. Yes, it's a stupid thing to do. I found it when I upgraded to 4.0.6 (I believe from 4.0.5, but not sure. I wasn't the one who did the upgrade) and a braindead script failed. I'm using the debian php_4.0.6-4 package if this isn't reproducable with a stock build. --Dan -- Edit bug report at: http://bugs.php.net/?id=12677edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12676 Updated: strpos() ignores first character in haystack
ID: 12676 Updated by: rasmus Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: Scripting Engine problem Operating System: FreeBSD 4.3 PHP Version: 4.0.6 New Comment: Please read the documentation: http://php.net/strpos Nothing is ignored, you are checking the returned value incorrectly. strpos() returns false when it doesn't find something and the position starting at 0 when it does find a match. Previous Comments: [2001-08-09 15:22:19] [EMAIL PROTECTED] When performing a string search with strpos() on a string variable the function totally ignores the first character. For example: $astring = abc defg hij kl; if (strpos($astring, abc)) { echo(found\n); } else { echo(not found\n); } When running the above script not found is echoed instead when, in fact, found should be echoed. Here's my ./configure from phpinfo(): ./configure' '--with-config-file-path=/usr/local/etc/php.standalone' '--disable-pear' '--enable-versioning' '--with-system-regex' '--disable-debug' '--enable-track-vars' '--without-gd' '--without-mysql' '--with-zlib' '--with-mysql=/usr/local' '--enable-ftp' '--with-curl=/usr/local' '--enable-sockets' '--prefix=/usr/local' 'i386--freebsd4.3' A possible workaround would be: $astring = abc defg hij kl; $astring = . $astring; if (strpos($astring, abc)) { echo(found\n); } else { echo(not found\n); } The above code echoes found. Regards, Aragon Gouveia Edit this bug report at http://bugs.php.net/?id=12676edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12677 Updated: setcookie() with one argument segfaults apache
ID: 12677 Updated by: rasmus Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: Reproducible crash Operating System: debian linux PHP Version: 4.0.6 New Comment: Fixed in CVS a while ago Previous Comments: [2001-08-09 15:29:00] [EMAIL PROTECTED] The following simple script: ?php setcookie(mycookie); echo Cookie set!; ? crashes the apache process running it. (Segfault in error_log) if I change it to setcookie(mycookie, ); it works correctly. Yes, it's a stupid thing to do. I found it when I upgraded to 4.0.6 (I believe from 4.0.5, but not sure. I wasn't the one who did the upgrade) and a braindead script failed. I'm using the debian php_4.0.6-4 package if this isn't reproducable with a stock build. --Dan Edit this bug report at http://bugs.php.net/?id=12677edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12678: gethostbyname returns hostname instead of adresss
From: [EMAIL PROTECTED] Operating system: Linux 2.2.16-22 PHP version: 4.0.6 PHP Bug Type: Network related Bug description: gethostbyname returns hostname instead of adresss I'm having a problem where gethostbyname is returning the hostname not the IP address. Resolving hosts works fine on the command line with nslookup, host, etc. This is the exact problem as bug #8856. Andy said it should be resolved in 4.06, but I'm having problems. Thanks. Adam -- Edit bug report at: http://bugs.php.net/?id=12678edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12678 Updated: gethostbyname returns hostname instead of adresss
ID: 12678 Updated by: alindeman Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: Network related Operating System: Linux 2.2.16-22 PHP Version: 4.0.6 New Comment: Can you access the internet from a browser? gethostbyname() returns the hostname when it can't find the IP (invalid address.) Make sure your nameserver's are setup correctly. Previous Comments: [2001-08-09 15:57:51] [EMAIL PROTECTED] I'm having a problem where gethostbyname is returning the hostname not the IP address. Resolving hosts works fine on the command line with nslookup, host, etc. This is the exact problem as bug #8856. Andy said it should be resolved in 4.06, but I'm having problems. Thanks. Adam Edit this bug report at http://bugs.php.net/?id=12678edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12679: Session variables not Saved
From: [EMAIL PROTECTED] Operating system: Windows 2000 Professional PHP version: 4.0.6 PHP Bug Type: Session related Bug description: Session variables not Saved Running on Apache 1.3.20 with PHP 4.0.6, no aditional modules loaded. The following script does NOT increment the $myvar variable and results in a new session file being created on every page view: ?php error_reporting(E_ALL); session_start(); session_register('myvar'); if(!isset($myvar)) $myvar = 0; echo $myvar++; ? The contents of EVERY session file created are as follows: myvar|i:1; The value is never incremented, and 0 is displayed on every page view. register_globals = On session.save_handler = files session.save_path = D:\Inetpub\php\session session.use_cookies = 1 session.name = PHPSESSID session.auto_start = 0 session.cookie_lifetime = 0 session.cookie_path = / session.cookie_domain = *.hotgazpacho.org session.serialize_handler = php session.gc_probability = 1 session.gc_maxlifetime = 1440 session.referer_check = session.entropy_length = 0 session.entropy_file = ;session.entropy_length = 16 ;session.entropy_file = /dev/urandom session.cache_limiter = nocache session.cache_expire = 180 session.use_trans_sid = 1 url_rewriter.tags = a=href,area=href,frame=src,input=src,form=fakeentry -- Edit bug report at: http://bugs.php.net/?id=12679edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12678 Updated: gethostbyname returns hostname instead of adresss
ID: 12678 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Old Status: Feedback Status: Open Bug Type: Network related Operating System: Linux 2.2.16-22 PHP Version: 4.0.6 New Comment: Can you access the internet from a browser? Yes, I can resolve any hostname using nslookup, host, etc. This machine accesses the internet just fine. ie. from the command line: [hydro@mail htdocs]$ host calc.intershipper.net calc.intershipper.net is a nickname for www.intershipper.net www.intershipper.net has address 216.58.153.11 [hydro@mail htdocs]$ but from PHP ?php echo gethostbyname (calc.intershipper.net); ? calc.intershipper.net Make sure your nameserver's are setup correctly. To the best of my knowledge, they are. Previous Comments: [2001-08-09 16:02:33] [EMAIL PROTECTED] Can you access the internet from a browser? gethostbyname() returns the hostname when it can't find the IP (invalid address.) Make sure your nameserver's are setup correctly. [2001-08-09 15:57:51] [EMAIL PROTECTED] I'm having a problem where gethostbyname is returning the hostname not the IP address. Resolving hosts works fine on the command line with nslookup, host, etc. This is the exact problem as bug #8856. Andy said it should be resolved in 4.06, but I'm having problems. Thanks. Adam Edit this bug report at http://bugs.php.net/?id=12678edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12679 Updated: Session variables not Saved
ID: 12679 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Session related Operating System: Windows 2000 Professional PHP Version: 4.0.6 New Comment: If I modify the script to include the flowwong line, the value is incremented and displayed: echo bra href=\$PHP_SELF\again/a; It appears then, that the problem would be with the setting of the cookie, as a simple page reload starts a new session, but clicking the link preservers the session id. I am beginning to suspect that it is my cookie configuartion in php.ini The LIVE url for that test script is http://www.hotgazpacho.org/sessbugtest/ I apologize in advance if this is not truly a bug, but simply my failure to configure PHP properly. Previous Comments: [2001-08-09 16:07:10] [EMAIL PROTECTED] Running on Apache 1.3.20 with PHP 4.0.6, no aditional modules loaded. The following script does NOT increment the $myvar variable and results in a new session file being created on every page view: ?php error_reporting(E_ALL); session_start(); session_register('myvar'); if(!isset($myvar)) $myvar = 0; echo $myvar++; ? The contents of EVERY session file created are as follows: myvar|i:1; The value is never incremented, and 0 is displayed on every page view. register_globals = On session.save_handler = files session.save_path = D:\Inetpub\php\session session.use_cookies = 1 session.name = PHPSESSID session.auto_start = 0 session.cookie_lifetime = 0 session.cookie_path = / session.cookie_domain = *.hotgazpacho.org session.serialize_handler = php session.gc_probability = 1 session.gc_maxlifetime = 1440 session.referer_check = session.entropy_length = 0 session.entropy_file = ;session.entropy_length = 16 ;session.entropy_file = /dev/urandom session.cache_limiter = nocache session.cache_expire = 180 session.use_trans_sid = 1 url_rewriter.tags = a=href,area=href,frame=src,input=src,form=fakeentry Edit this bug report at http://bugs.php.net/?id=12679edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12672 Updated: ifx_connect does not return when base not present
ID: 12672 Updated by: sniper Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: Informix related Operating System: Linux RH 6.2 PHP Version: 4.0.6 New Comment: I tried this with latest CVS and it works just fine. ie. it gives an error for it. Please try it: http://www.php.net/ --Jani Previous Comments: [2001-08-09 09:59:10] [EMAIL PROTECTED] ? echo (before\n); $id = ifx_connect(base,user,pass); echo (after\n); ? if ifx is up you get before after otherwise you get before (program does not return) [2001-08-09 08:22:49] [EMAIL PROTECTED] please include a sample script... [2001-08-09 04:09:35] [EMAIL PROTECTED] (command line mode) if the database (i.e. informix) is not up the ifx_connect function hangs. One would expect to return some meaningfull information. OS: Linux giant-a 2.2.14-5.0smp #1 SMP Tue Mar 7 21:01:40 EST 2000 i686 unknown conf: ./configure' --enable-trans-sid' '--enable-dbase' '--enable-track-vars' '--with-informix' '--with-t1lib=/usr/local/src/T1-1.0.1/' '--with-zlib-dir=/usr/local/src/zlib-1.1.3/' '--with-gd=/usr/local/src/gd-1.8.4/' '--with-jpeg-dir=/usr/local/src/jpeg-6b/' '--with-ttf=/usr/local/src/freetype-1.3.1/' '--with-png-dir=/usr/local/src/libpng-1.0.8/' Edit this bug report at http://bugs.php.net/?id=12672edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12672 Updated: ifx_connect does not return when base not present
ID: 12672 Updated by: sniper Reported By: [EMAIL PROTECTED] Status: Feedback Bug Type: Informix related Operating System: Linux RH 6.2 PHP Version: 4.0.6 New Comment: Oops. The correct url to snapshots is: http://snaps.php.net/ --Jani Previous Comments: [2001-08-09 16:33:43] [EMAIL PROTECTED] I tried this with latest CVS and it works just fine. ie. it gives an error for it. Please try it: http://www.php.net/ --Jani [2001-08-09 09:59:10] [EMAIL PROTECTED] ? echo (before\n); $id = ifx_connect(base,user,pass); echo (after\n); ? if ifx is up you get before after otherwise you get before (program does not return) [2001-08-09 08:22:49] [EMAIL PROTECTED] please include a sample script... [2001-08-09 04:09:35] [EMAIL PROTECTED] (command line mode) if the database (i.e. informix) is not up the ifx_connect function hangs. One would expect to return some meaningfull information. OS: Linux giant-a 2.2.14-5.0smp #1 SMP Tue Mar 7 21:01:40 EST 2000 i686 unknown conf: ./configure' --enable-trans-sid' '--enable-dbase' '--enable-track-vars' '--with-informix' '--with-t1lib=/usr/local/src/T1-1.0.1/' '--with-zlib-dir=/usr/local/src/zlib-1.1.3/' '--with-gd=/usr/local/src/gd-1.8.4/' '--with-jpeg-dir=/usr/local/src/jpeg-6b/' '--with-ttf=/usr/local/src/freetype-1.3.1/' '--with-png-dir=/usr/local/src/libpng-1.0.8/' Edit this bug report at http://bugs.php.net/?id=12672edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Re: The new $_GET/POST/ENV (was: Re: [PHP-CVS] cvs: php4 / NEWS...)
What about $_TAINTED ? for non-english ppl REQUEST is a more familiar word that TAINTED. I only encountered it when studying JS security. +1, tainted? I needed a dictionary for that... -- teodor -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] PHP 4.0.7
As the satellite extension has been experimental all of it's lifetime, and it doesn't even compile (at least very easily :) I'd say nuke that one, and put Universe in the CVS. Also, add a warning to configure for satellite '--with-satellite' which breaks the configure and instructs to use '--with-universe' instead and points to the README in there. Would this be good time to create that 'old_extensions' module/directory? And start moving those deprecated extensions there?? And as of 4.1 remove them from the release. A good thing might be to have one central config.m4 which holds all the old configure options, and warns people if they use them? ---Jani On Thu, 9 Aug 2001, Zeev Suraski wrote: We can add it as an experimental, sure. When do you think it'd be ready? Zeev At 12:14 09-08-01, David Eriksson wrote: Quoting Zeev Suraski [EMAIL PROTECTED]: This change was my last major TODO item for PHP 4.0.7. At this point, we should try to get PHP 4.0.7 out the door soon. I suggest we branch 4.0.7 away next Tuesday, and start the QA process. This should give people enough time to make any final changes they want to put into 4.0.7. Would you like Universe to be included in the CVS before the branch? (If someone did not notice, Universe is my new CORBA extension that will replace Satellite.) http://universe.2good.nu/ Regards, -\- David Eriksson -/- An expert in a particular computer language is really an expert in the work-arounds necessary to use this language to perform useful work. - Richard B. Johnson -- Zeev Suraski [EMAIL PROTECTED] CTO co-founder, Zend Technologies Ltd. http://www.zend.com/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Buildproblems in latest CVS
On Thu, 9 Aug 2001, Anders Johannsen wrote: In article [EMAIL PROTECTED], Jani Taskinen [EMAIL PROTECTED] wrote: Well, the latest CVS only supports these: libtool 1.4 autoconf 2.13 automake 1.4 I think you only need to downgrade autoconf. That was my original thought, however a downgrade yields: aj@uranos% ./buildconf buildconf: checking installation... buildconf: autoconf version 2.13 (ok) buildconf: automake version 1.4-p4 (ok) buildconf: libtool version 1.4b 1996, (ok) rebuilding Makefile templates automake: configure.in: installing `Zend/ylwrap' rebuilding configure FATAL ERROR: Autoconf version 2.50 or higher is required for this script rebuilding acconfig.h rebuilding main/php_config.h.in FATAL ERROR: Autoconf version 2.50 or higher is required for this script Well, seems you need to downgrade also automake and libtool too. --Jani -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12635 Updated: href=#botton gives wrong url
ID: 12635 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Session related Operating System: ? PHP Version: 4.0.4 New Comment: The workaround href=/programs/mypage.php#bottom does not work, for session_id= is inserted between mypage.php and #bottom This works : script language=JavaScript var str1=a hr; var str2=ef; document.write(str1+str2+='#REPLY'go to bottom/a); /script (Writing href in one string makes php transform the address) But when reloading the page with the reload button, the get arguments are added once again behind the address of the link. The link still works, but the page is reloaded again ! Previous Comments: [2001-08-07 19:16:58] [EMAIL PROTECTED] URL's matching ^# should be left alone by the transparent session-id-adder, since they are internal to that page. Workaround: Write href=/programs/mypage.php#bottom [2001-08-07 19:05:17] [EMAIL PROTECTED] When using a session together with an internal link, say : a href=#bottomgo to bottom/a the resulting url is say : http://www.tre.dds/programs/?session_id=3l344l4j3l#bottom which directs to : http://www.tre.dds/programs instead of sayhttp://www.tre.dds/programs/mypage.php#bottom [2001-08-07 19:00:55] [EMAIL PROTECTED] when using a session together with an internal link, say : a href=#bottomgo to bottom/a the resulting url is say : http://www.tre.dds/programs/?session_id=3l344l4j3l#bottom which directs to : http://www.tre.dds/programs instead of say http://www.tre.dds/programs/mypage.php#bottom?session_id= 3l344l4j3l Edit this bug report at http://bugs.php.net/?id=12635edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12675 Updated: Link errors caused by new Oracle 8i LOB functions
ID: 12675 Updated by: sniper Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: Compile Failure Operating System: Digital Unix V4.0F (Rev. 1229) PHP Version: 4.0.6 New Comment: I have the same version but I don't get any link errors. What is your configure line and what exactly are the errors? --Jani Previous Comments: [2001-08-09 13:40:24] [EMAIL PROTECTED] When trying to link, the following dependancies were not satisfied by our Oracle release (8.1.6): OCILobOpen OCILobClose OCILobCreateTemp ? Evidently these routines are in a different library, but if that library is linked as well, many more errors are generated. Perhaps the new LOB function additions will only build work if you have a later (or different) version of Oracle? Edit this bug report at http://bugs.php.net/?id=12675edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12680: mail() is sent with incorrect timezone
From: [EMAIL PROTECTED] Operating system: Windows NT 4.0 SP6 PHP version: 4.0.6 PHP Bug Type: Mail related Bug description: mail() is sent with incorrect timezone I think I have a bug with the Win32 version of php.exe (perhaps the ISAPI version also?) where the SENT time on every email that goes out shows up as incorrect. I've tried it several times, even with multiple versions (also tested 4.0.4pl1 and 4.0.5). No matter what I try, any email sent by php's mail() function is received with the wrong timezone (so mail time appears correct, but received from earlier time because of zone). I am not using any addons for PHP. I have IIS 4.0 using PHP in CGI mode, with the SMTP service loaded locally. I am also running mySQL 3.23.37. I can successfully telnet to port 25 on that server and send myself an email using SMTP commands. I'll post my mail script shortly. Any thoughts? -- Edit bug report at: http://bugs.php.net/?id=12680edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12680 Updated: Re: mail() is sent with incorrect timezone
ID: 12680 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Old Summary: mail() is sent with incorrect timezone Status: Open Bug Type: Mail related Operating System: Windows NT 4.0 SP6 PHP Version: 4.0.6 New Comment: Here's the portion of the script that governs mail: if (isset($mail_from) || isset($mail_cc)) { $mail_headers = From: $mail_from\r\nReply-to: $mail_from\r\n; if (isset($mail_cc) ($mail_cc != )) { $mail_headers = $mail_headers . Cc: $mail_cc\r\n; } } else { $mail_headers = ; } if (isset($mail_to) isset($mail_subject) isset($mail_body) isset($mail_headers) ($submit == Submit)) { mail($mail_to, $mail_subject, $mail_body, $mail_headers); Previous Comments: [2001-08-09 17:23:17] [EMAIL PROTECTED] I think I have a bug with the Win32 version of php.exe (perhaps the ISAPI version also?) where the SENT time on every email that goes out shows up as incorrect. I've tried it several times, even with multiple versions (also tested 4.0.4pl1 and 4.0.5). No matter what I try, any email sent by php's mail() function is received with the wrong timezone (so mail time appears correct, but received from earlier time because of zone). I am not using any addons for PHP. I have IIS 4.0 using PHP in CGI mode, with the SMTP service loaded locally. I am also running mySQL 3.23.37. I can successfully telnet to port 25 on that server and send myself an email using SMTP commands. I'll post my mail script shortly. Any thoughts? Edit this bug report at http://bugs.php.net/?id=12680edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12635 Updated: href=#botton gives wrong url
ID: 12635 Updated by: jeroen Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Session related Operating System: ? PHP Version: 4.0.4 New Comment: It should, or am I wrong? the ?-part is of the page-part of it, and the # is for the section. Doesn't ? go BEFORE the # in HTTP-specs? Can someone verify that, since I 'forgot' the RFC-nr ;-) Since PHP is inserting it between, I'm quite sure it should go before, otherwise the person who wrote it wouldn't have taken the trouble to do so :) Does your browser have problems with that? Previous Comments: [2001-08-09 17:13:07] [EMAIL PROTECTED] The workaround href=/programs/mypage.php#bottom does not work, for session_id= is inserted between mypage.php and #bottom This works : script language=JavaScript var str1=a hr; var str2=ef; document.write(str1+str2+='#REPLY'go to bottom/a); /script (Writing href in one string makes php transform the address) But when reloading the page with the reload button, the get arguments are added once again behind the address of the link. The link still works, but the page is reloaded again ! [2001-08-07 19:16:58] [EMAIL PROTECTED] URL's matching ^# should be left alone by the transparent session-id-adder, since they are internal to that page. Workaround: Write href=/programs/mypage.php#bottom [2001-08-07 19:05:17] [EMAIL PROTECTED] When using a session together with an internal link, say : a href=#bottomgo to bottom/a the resulting url is say : http://www.tre.dds/programs/?session_id=3l344l4j3l#bottom which directs to : http://www.tre.dds/programs instead of sayhttp://www.tre.dds/programs/mypage.php#bottom [2001-08-07 19:00:55] [EMAIL PROTECTED] when using a session together with an internal link, say : a href=#bottomgo to bottom/a the resulting url is say : http://www.tre.dds/programs/?session_id=3l344l4j3l#bottom which directs to : http://www.tre.dds/programs instead of say http://www.tre.dds/programs/mypage.php#bottom?session_id= 3l344l4j3l Edit this bug report at http://bugs.php.net/?id=12635edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12680 Updated: Re: mail() is sent with incorrect timezone
ID: 12680 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Old Summary: mail() is sent with incorrect timezone Status: Open Bug Type: Mail related Operating System: Windows NT 4.0 SP6 PHP Version: 4.0.6 New Comment: Here's headers from a bad email: Return-Path: [EMAIL PROTECTED] Received: from XXX.wcomnet.com ([XXX.XXX.XXX.XXX]) by XXX.XXX.XXX.XXX (Netscape Messaging Server 4.15) with ESMTP id GHT2IQ00.KNI; Thu, 9 Aug 2001 14:49:38 + Return-path: [EMAIL PROTECTED] Received: from CONVERSION-DAEMON by dgismtp03.wcomnet.com (PMDF V5.2-33 #42262) id [EMAIL PROTECTED]; Thu, 9 Aug 2001 14:49:37 + (GMT) Received: from XXX.wcomnet.com by XXX.wcomnet.com (PMDF V5.2-33 #42262) with SMTP id [EMAIL PROTECTED]; Thu, 09 Aug 2001 14:49:36 + (GMT) Received: from XXX.wcomnet.com ([XXX.XXX.XXX.XXX]) by XXX.wcomnet.com (PMDF V5.2-33 #42262) with ESMTP id [EMAIL PROTECTED]; Thu, 09 Aug 2001 14:49:14 + (GMT) Received: from XXX.XXX.XXX.XXX by XXX.wcomnet.com with Microsoft SMTPSVC(5.5.1774.114.11); Thu, 09 Aug 2001 09:41:11 -0500 Date: Thu, 09 Aug 2001 09:41:11 +0600 From: [EMAIL PROTECTED] Subject: XXX X-Sender: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Reply-to: [EMAIL PROTECTED] Message-id: [EMAIL PROTECTED] Previous Comments: [2001-08-09 17:27:30] [EMAIL PROTECTED] Here's the portion of the script that governs mail: if (isset($mail_from) || isset($mail_cc)) { $mail_headers = From: $mail_from\r\nReply-to: $mail_from\r\n; if (isset($mail_cc) ($mail_cc != )) { $mail_headers = $mail_headers . Cc: $mail_cc\r\n; } } else { $mail_headers = ; } if (isset($mail_to) isset($mail_subject) isset($mail_body) isset($mail_headers) ($submit == Submit)) { mail($mail_to, $mail_subject, $mail_body, $mail_headers); [2001-08-09 17:23:17] [EMAIL PROTECTED] I think I have a bug with the Win32 version of php.exe (perhaps the ISAPI version also?) where the SENT time on every email that goes out shows up as incorrect. I've tried it several times, even with multiple versions (also tested 4.0.4pl1 and 4.0.5). No matter what I try, any email sent by php's mail() function is received with the wrong timezone (so mail time appears correct, but received from earlier time because of zone). I am not using any addons for PHP. I have IIS 4.0 using PHP in CGI mode, with the SMTP service loaded locally. I am also running mySQL 3.23.37. I can successfully telnet to port 25 on that server and send myself an email using SMTP commands. I'll post my mail script shortly. Any thoughts? Edit this bug report at http://bugs.php.net/?id=12680edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12680 Updated: Re: mail() is sent with incorrect timezone
ID: 12680 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Old Summary: mail() is sent with incorrect timezone Status: Open Bug Type: Mail related Operating System: Windows NT 4.0 SP6 PHP Version: 4.0.6 New Comment: Here's the headers from the email I sent via telnet: Return-Path: [EMAIL PROTECTED] Received: from XXX.wcomnet.com ([XXX.XXX.XXX.XXX]) by XXX.wcomnet.com (Netscape Messaging Server 4.15) with ESMTP id GHTIG600.IEW for [EMAIL PROTECTED]; Thu, 9 Aug 2001 20:33:42 + Return-path: [EMAIL PROTECTED] Received: from CONVERSION-DAEMON by XXX.wcomnet.com (PMDF V5.2-33 #42262) id [EMAIL PROTECTED] for [EMAIL PROTECTED]; Thu, 9 Aug 2001 20:33:42 + (GMT) Received: from XXX.wcomnet.com by XXX.wcomnet.com (PMDF V5.2-33 #42262) with SMTP id [EMAIL PROTECTED] for [EMAIL PROTECTED]; Thu, 09 Aug 2001 20:33:39 + (GMT) Received: from XXX.wcomnet.com ([XXX.XXX.XXX.XXX]) by XXX.wcomnet.com (PMDF V5.2-33 #42262) with ESMTP id [EMAIL PROTECTED] for [EMAIL PROTECTED]; Thu, 09 Aug 2001 20:32:57 + (GMT) Received: from XXX.XXX.XXX.XXX by XXX.wcomnet.com with Microsoft SMTPSVC(5.5.1774.114.11); Thu, 09 Aug 2001 15:24:25 -0500 Date: Thu, 09 Aug 2001 15:24:52 -0500 From: [EMAIL PROTECTED] Bcc: Message-id: [EMAIL PROTECTED] This is a test message Previous Comments: [2001-08-09 17:32:37] [EMAIL PROTECTED] Here's headers from a bad email: Return-Path: [EMAIL PROTECTED] Received: from XXX.wcomnet.com ([XXX.XXX.XXX.XXX]) by XXX.XXX.XXX.XXX (Netscape Messaging Server 4.15) with ESMTP id GHT2IQ00.KNI; Thu, 9 Aug 2001 14:49:38 + Return-path: [EMAIL PROTECTED] Received: from CONVERSION-DAEMON by dgismtp03.wcomnet.com (PMDF V5.2-33 #42262) id [EMAIL PROTECTED]; Thu, 9 Aug 2001 14:49:37 + (GMT) Received: from XXX.wcomnet.com by XXX.wcomnet.com (PMDF V5.2-33 #42262) with SMTP id [EMAIL PROTECTED]; Thu, 09 Aug 2001 14:49:36 + (GMT) Received: from XXX.wcomnet.com ([XXX.XXX.XXX.XXX]) by XXX.wcomnet.com (PMDF V5.2-33 #42262) with ESMTP id [EMAIL PROTECTED]; Thu, 09 Aug 2001 14:49:14 + (GMT) Received: from XXX.XXX.XXX.XXX by XXX.wcomnet.com with Microsoft SMTPSVC(5.5.1774.114.11); Thu, 09 Aug 2001 09:41:11 -0500 Date: Thu, 09 Aug 2001 09:41:11 +0600 From: [EMAIL PROTECTED] Subject: XXX X-Sender: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Reply-to: [EMAIL PROTECTED] Message-id: [EMAIL PROTECTED] [2001-08-09 17:27:30] [EMAIL PROTECTED] Here's the portion of the script that governs mail: if (isset($mail_from) || isset($mail_cc)) { $mail_headers = From: $mail_from\r\nReply-to: $mail_from\r\n; if (isset($mail_cc) ($mail_cc != )) { $mail_headers = $mail_headers . Cc: $mail_cc\r\n; } } else { $mail_headers = ; } if (isset($mail_to) isset($mail_subject) isset($mail_body) isset($mail_headers) ($submit == Submit)) { mail($mail_to, $mail_subject, $mail_body, $mail_headers); [2001-08-09 17:23:17] [EMAIL PROTECTED] I think I have a bug with the Win32 version of php.exe (perhaps the ISAPI version also?) where the SENT time on every email that goes out shows up as incorrect. I've tried it several times, even with multiple versions (also tested 4.0.4pl1 and 4.0.5). No matter what I try, any email sent by php's mail() function is received with the wrong timezone (so mail time appears correct, but received from earlier time because of zone). I am not using any addons for PHP. I have IIS 4.0 using PHP in CGI mode, with the SMTP service loaded locally. I am also running mySQL 3.23.37. I can successfully telnet to port 25 on that server and send myself an email using SMTP commands. I'll post my mail script shortly. Any thoughts? Edit this bug report at http://bugs.php.net/?id=12680edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12681: php cannot convert dates to string and save it as (vchar) in Mysql
From: [EMAIL PROTECTED] Operating system: Windows2000 PHP version: 4.0.6 PHP Bug Type: Date/time related Bug description: php cannot convert dates to string and save it as (vchar) in Mysql I have made it simple for you: $day1=$date[mday]; $mon1=$date[mon]; $year1=$date[year]; $date=$day1...$mon1...$year1; $query=insert into data (coll) values ($date); ERROR (try to change the Mysql col. attr. to date) ERROR - ok try it in an other way $pattern=/(\d{1,2})\.(\d{1,2})\.(\d{2,4})/; if (preg_match($pattern,$heute,$regs)){ echo $regs[3],-,$regs[2],-,$regs[1]; $date=implode(-,$regs); $query=insert into data (coll) values ($date); ERROR (try to change the Mysql col. attr. to date) ERROR --- ok try it in an other way $mon1 = substr($str,5,2); $day1 = substr($str,8,2); $year1= substr($str,0,4); $date=$day1...$mon1...$year1; $query=insert into data (coll) values ($date); ERROR (try to change the Mysql col. attr. to date) ERROR --- Summery: php does not return real strings back and only structures or pointers to structures which make the live of the programmers harder than it is! My solution: please create a blody simple function to convert dates to strings ... somthing like: $string=DateToStr($any_date_format); Eventually I'm very sorry folks I find PHP very nice but PHP cannot give any basic solutions for dates which will force me to use Microsoft ASP Yeh!, it is slow but at least it works -- Edit bug report at: http://bugs.php.net/?id=12681edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] PHP 4.0.7
I won't have time to mess with this... Everyone should make sure that they get their stuff in by Tuesday :) Zeev At 23:47 09-08-01, Jani Taskinen wrote: As the satellite extension has been experimental all of it's lifetime, and it doesn't even compile (at least very easily :) I'd say nuke that one, and put Universe in the CVS. Also, add a warning to configure for satellite '--with-satellite' which breaks the configure and instructs to use '--with-universe' instead and points to the README in there. Would this be good time to create that 'old_extensions' module/directory? And start moving those deprecated extensions there?? And as of 4.1 remove them from the release. A good thing might be to have one central config.m4 which holds all the old configure options, and warns people if they use them? ---Jani On Thu, 9 Aug 2001, Zeev Suraski wrote: We can add it as an experimental, sure. When do you think it'd be ready? Zeev At 12:14 09-08-01, David Eriksson wrote: Quoting Zeev Suraski [EMAIL PROTECTED]: This change was my last major TODO item for PHP 4.0.7. At this point, we should try to get PHP 4.0.7 out the door soon. I suggest we branch 4.0.7 away next Tuesday, and start the QA process. This should give people enough time to make any final changes they want to put into 4.0.7. Would you like Universe to be included in the CVS before the branch? (If someone did not notice, Universe is my new CORBA extension that will replace Satellite.) http://universe.2good.nu/ Regards, -\- David Eriksson -/- An expert in a particular computer language is really an expert in the work-arounds necessary to use this language to perform useful work. - Richard B. Johnson -- Zeev Suraski [EMAIL PROTECTED] CTO co-founder, Zend Technologies Ltd. http://www.zend.com/ -- Zeev Suraski [EMAIL PROTECTED] CTO co-founder, Zend Technologies Ltd. http://www.zend.com/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Satellite (Was: Re: [PHP-DEV] PHP 4.0.7)
On Thursday 09 August 2001 22:47, Jani Taskinen wrote: As the satellite extension has been experimental all of it's lifetime, and it doesn't even compile (at least very easily :) I'd say nuke that one, and put Universe in the CVS. Also, add a warning to configure for satellite '--with-satellite' which breaks the configure and instructs to use '--with-universe' instead and points to the README in there. I just refreshed the Satellite extension a little, and set up a demo server at http://satellite.2good.nu so you can see that it actually works! :-) But Universe is still better as it uses MICO and not the crappy ORBit. Would this be good time to create that 'old_extensions' module/directory? And start moving those deprecated extensions there?? And as of 4.1 remove them from the release. A good thing might be to have one central config.m4 which holds all the old configure options, and warns people if they use them? Good idea! :-) -\- David Eriksson -/- An expert in a particular computer language is really an expert in the work-arounds necessary to use this language to perform useful work. - Richard B. Johnson -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Satellite (Was: Re: [PHP-DEV] PHP 4.0.7)
I just refreshed the Satellite extension a little, and set up a demo server at http://satellite.2good.nu so you can see that it actually works! :-) I get a no data from that URL. -Rasmus -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Satellite (Was: Re: [PHP-DEV] PHP 4.0.7)
Rasmus Lerdorf wrote: demo server at http://satellite.2good.nu I get a no data from that URL. Works fine for me. regards Wagner -- Madness takes its toll. Please have exact change. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Satellite (Was: Re: [PHP-DEV] PHP 4.0.7)
On Friday 10 August 2001 00:13, Rasmus Lerdorf wrote: I just refreshed the Satellite extension a little, and set up a demo server at http://satellite.2good.nu so you can see that it actually works! :-) I get a no data from that URL. It's a redirect to a different port: http://satellite.2good.nu:1082 Or maybe it just doesn't work... -\- David Eriksson -/- An expert in a particular computer language is really an expert in the work-arounds necessary to use this language to perform useful work. - Richard B. Johnson -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12636 Updated: non-linked libpam function?
ID: 12636 Updated by: sniper Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: IMAP related Operating System: Linux (SuSE 7.1) PHP Version: 4.0.6 New Comment: I should have guessed this before: You haven't installed the pam-devel.rpm Install it, and you will have no more troubles with it. Same goes for every other package PHP might need. Just install them as you come across same kind of problems. Also, remember to delete config.cache before configure (after installing a devel package) and do 'make clean' after configure. -Jani Previous Comments: [2001-08-09 15:07:30] [EMAIL PROTECTED] obviously it should. just a obvious is that it doesn't. those requirements -were- filled, but just to humor you... libpam is in /lib. Somewhat weirdly, that's not in my LD_LIBRARY_PATH automatically, but -types- now it is (i did that before), and also in my ld.so.conf, and ldconfig has been run. ``ldconfig -v | grep pam'' shows: (i guess the `more than once' this is about it being in the config file and the environment setting? whatever.) ldconfig: Path `/lib' given more than once libpamc.so.0 - libpamc.so.0.72 libpam_misc.so.0 - libpam_misc.so.0.72 libpam.so.0 - libpam.so.0.72 libpamc.so.0 - libpamc.so.0.72 libpam_misc.so.0 - libpam_misc.so.0.72 libpam.so.0 - libpam.so.0.72 so it's definately there. Perhaps not exactly in the form php wants to see it, but even the symbol it's looking for , according to the last lines configure gives me: checking for pam_start in -lpam... no checking for crypt in -lcrypt... (cached) yes configure: error: This c-client library is build with SSL support. Add --with-imap-ssl=DIR to your configure line. Check config.log for details. ..are in /lib/libpam.so.0.72, according to objdump: (by the by, that (cached) thing strikes me as weird too as this is the first ./configure command i gave since i removed and untarred the directory) objdump -T /lib/libpam.so.0.72 | grep pam_start 3a70 gDF .text 007a Base _pam_start_handlers 2350 gDF .text 002d Base _pam_start_timer 1da0 gDF .text 030c Basepam_start (sorry for the wrapping, that's this input field) So it's not that libpam is somehow wrong. Forigive me for asking, but isn't that a library that linux doesn't run without in the first place? Anyhow, my config.log from the point where it starts checking stuff for imap (in case anything's changed): configure:24000: checking for IMAP support configure:24287: checking for pam_start in -lpam configure:24306: gcc -o conftest -g -O2 -DEAPI_MM -DSINGLE_LISTEN_UNSERIALIZED_ACCEPT /usr/i486-suse-linux/bin/ld: cannot find -lpam collect2: ld returned 1 exit status configure: failed program was: #line 24295 configure #include confdefs.h /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char pam_start(); int main() { pam_start() ; return 0; } configure:24334: checking for crypt in -lcrypt configure:24850: gcc -o conftest -g -O2 -DEAPI_MM -DSINGLE_LISTEN_UNSERIALIZED_ACCEPT /usr/lib/libc-client.so: undefined reference to `pam_end' /usr/lib/libc-client.so: undefined reference to `pam_authenticate' /usr/lib/libc-client.so: undefined reference to `pam_setcred' /usr/lib/libc-client.so: undefined reference to `pam_acct_mgmt' /usr/lib/libc-client.so: undefined reference to `pam_start' collect2: ld returned 1 exit status configure: failed program was: #line 24825 configure #include confdefs.h void mm_log(void){} void mm_dlog(void){} void mm_flags(void){} void mm_fatal(void){} void mm_critical(void){} void mm_nocritical(void){} void mm_notify(void){} void mm_login(void){} void mm_diskerror(void){} void mm_status(void){} void mm_lsub(void){} void mm_list(void){} void mm_exists(void){} void mm_searched(void){} void mm_expunged(void){} char mail_open(); int main() { mail_open(0,,0); return 0; } I guess the libc-client is the fallback option, except it won't work without SSL, which is somehow related to why this doesn't work either? (not that there's really an humanly (user-ly, whatever) understandable reason, or suggestion or alternative listed) As to the thing not compiling even without this imap weirdness, do i just start another bug thread? (oh, i guess i search for it first...) [2001-08-09 03:27:12] [EMAIL PROTECTED] First, this should work fine with PHP 4.0.6. Where is the libpam.so in your
Re: [PHP-DEV] Satellite (Was: Re: [PHP-DEV] PHP 4.0.7)
I get a no data from that URL. It's a redirect to a different port: http://satellite.2good.nu:1082 Or maybe it just doesn't work... It is working now. Check your error_log. I bet you have a few segvs listed. -Rasmus -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12682: res://c:\windows\system\shdoclc.dll/dnserror.htm
From: [EMAIL PROTECTED] Operating system: windows ME PHP version: 4.0.6 PHP Bug Type: Any Bug description: res://c:\windows\system\shdoclc.dll/dnserror.htm i had to format my hard drive when i got back online i get this error res://c:\windows\system\shdoclc.dll/dnserror.htm i cant get on any page, need help anything will be helpful thanks -- Edit bug report at: http://bugs.php.net/?id=12682edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12682 Updated: res://c:\windows\system\shdoclc.dll/dnserror.htm
ID: 12682 Updated by: jeroen Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: Any Operating System: windows ME PHP Version: 4.0.6 New Comment: Call your helpdesk! Previous Comments: [2001-08-09 18:26:40] [EMAIL PROTECTED] i had to format my hard drive when i got back online i get this error res://c:\windows\system\shdoclc.dll/dnserror.htm i cant get on any page, need help anything will be helpful thanks Edit this bug report at http://bugs.php.net/?id=12682edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12679 Updated: Session variables not Saved
ID: 12679 Updated by: sniper Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: Session related Operating System: Windows 2000 Professional PHP Version: 4.0.6 New Comment: Leave the * out of the session.cookie_domain setting. --Jani Previous Comments: [2001-08-09 16:31:21] [EMAIL PROTECTED] If I modify the script to include the flowwong line, the value is incremented and displayed: echo bra href=\$PHP_SELF\again/a; It appears then, that the problem would be with the setting of the cookie, as a simple page reload starts a new session, but clicking the link preservers the session id. I am beginning to suspect that it is my cookie configuartion in php.ini The LIVE url for that test script is http://www.hotgazpacho.org/sessbugtest/ I apologize in advance if this is not truly a bug, but simply my failure to configure PHP properly. [2001-08-09 16:07:10] [EMAIL PROTECTED] Running on Apache 1.3.20 with PHP 4.0.6, no aditional modules loaded. The following script does NOT increment the $myvar variable and results in a new session file being created on every page view: ?php error_reporting(E_ALL); session_start(); session_register('myvar'); if(!isset($myvar)) $myvar = 0; echo $myvar++; ? The contents of EVERY session file created are as follows: myvar|i:1; The value is never incremented, and 0 is displayed on every page view. register_globals = On session.save_handler = files session.save_path = D:\Inetpub\php\session session.use_cookies = 1 session.name = PHPSESSID session.auto_start = 0 session.cookie_lifetime = 0 session.cookie_path = / session.cookie_domain = *.hotgazpacho.org session.serialize_handler = php session.gc_probability = 1 session.gc_maxlifetime = 1440 session.referer_check = session.entropy_length = 0 session.entropy_file = ;session.entropy_length = 16 ;session.entropy_file = /dev/urandom session.cache_limiter = nocache session.cache_expire = 180 session.use_trans_sid = 1 url_rewriter.tags = a=href,area=href,frame=src,input=src,form=fakeentry Edit this bug report at http://bugs.php.net/?id=12679edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #8754 Updated: gethostbyname() fails
ID: 8754 Updated by: sniper Reported By: [EMAIL PROTECTED] Status: Feedback Bug Type: Network related Operating System: Linux 2.2.16 (RH7) PHP Version: 4.0.4pl1 New Comment: First, update to PHP 4.0.6. Then try both gethostbyname() and gethostbynamel() to see if either works. --Jani Previous Comments: [2001-07-22 16:03:02] [EMAIL PROTECTED] Ooops, I read that too fast. Ok, so it works on the command line, but not in PHP. Does this still happen in the current version? [2001-07-21 21:03:44] [EMAIL PROTECTED] Please make sure that you're DNS server is setup correctly and you have access to it and the internet. Try running netconfig as root from a prompt. Also, try running linuxconf and make sure the order in which hostnames are setup is correct (i recommend hosts,dns) Also, try upgrading to the latest version of PHP. [2001-01-17 03:53:54] [EMAIL PROTECTED] When trying to resolv the ip address of a hostname given in /etc/hosts, gethostbyname() works fine. It does NOT work when trying to resolv an ip address which must be looked up via the DNS server though. In the latter case, gethostbyname($hostname) always returns $hostname, i.e. it behaves like the hostname does not exist. However, doing a command line nslookup, the hostname is found, so it DOES exist. The problem occurs with version 4.0.4pl1 (compiled on the target system) as well as with version 4.0.1pl2 that comes with RedHat 7.0. I'm using kernel version 2.2.16 and a vanilla (i.e. non-updated) RedHat 7.0. Thanks in advance... Edit this bug report at http://bugs.php.net/?id=8754edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12683: Safe mode (apache with mod_perl) uses incorrect uid
From: [EMAIL PROTECTED] Operating system: Solaris 5.8 PHP version: 4.0.6 PHP Bug Type: Apache related Bug description: Safe mode (apache with mod_perl) uses incorrect uid In PHP 4.0.6 (and 4.0.5) using apache with mod_perl and php4 compiled in (statically), safe mode denies access to all files, believing that it is running as UID 1 [basically this is like bug # 7744 ]. Recompiling apache and leaving out mod perl, allows the php pages to be accessed with safe mode. Not running with safe mode while mod_perl is compiled in, allows the php pages to be accessed. Only when mod_perl is compiled in and safe mode is running does every single page (even a simple phpinfo() or something with a single print() ) returns the following (this was a request for /test.php): [08-Aug-2001 13:00:11] PHP Warning: SAFE MODE Restriction in effect. The script whose uid is 1 is not allowed to access /var/htdocs/test.php owned by uid 0 in Unknown on line 0 [08-Aug-2001 13:00:11] PHP Warning: Failed opening '/var/htdocs/test.php' for inclusion (include_path='.:/usr/local/lib/php') in Unknown on line 0 Granted root owns it in the above example, but it does not matter if the uid is that of me, the webserver, or someone else. Note that the original request is for test.php. As no includes, system calls, etc... are done in test.php, it should work regardless of who actually owns that file. It seems to be looking for an owner uid of 1. I tried putting some printf's in the code and it seems that the stat struct that is returned from sapi_get_stat() - I think the one directly from the apache request object - is messed up. It always has a uid of 1, a size of 0, and a inode of 0. Mod perl is before php in the activate-modules directives given when building apache, and it shows up above php when running httpd -l. If I didn't know any better, I'd think this was a perl bug, but it is php that isn't working. -- Edit bug report at: http://bugs.php.net/?id=12683edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12684: Unable to fork with CGI/ISAPI
From: [EMAIL PROTECTED] Operating system: Win32 PHP version: 4.0.6 PHP Bug Type: Reproducible crash Bug description: Unable to fork with CGI/ISAPI I get this warning everytime I try to execute anything. Warning: Unable to fork [c:\mytest.exe] in D:/Program Files/Apache Group/Apache/htdocs/display.php on line 9 I found all of the bug reports from earlier versions and they all say, fixed in 4.0.6. Help? -- Edit bug report at: http://bugs.php.net/?id=12684edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12636 Updated: non-linked libpam function?
ID: 12636 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Bogus Bug Type: IMAP related Operating System: Linux (SuSE 7.1) PHP Version: 4.0.6 New Comment: that did it. i actually had to do that for half a dozen other packages, but here the error message just seemed to hint nothing in the direction that that would help... I gues i'll just download the latest cvs (the one that came out two days after the one i got) about the Zend thing.. Joy, more to download... Previous Comments: [2001-08-09 18:15:53] [EMAIL PROTECTED] I should have guessed this before: You haven't installed the pam-devel.rpm Install it, and you will have no more troubles with it. Same goes for every other package PHP might need. Just install them as you come across same kind of problems. Also, remember to delete config.cache before configure (after installing a devel package) and do 'make clean' after configure. -Jani [2001-08-09 15:07:30] [EMAIL PROTECTED] obviously it should. just a obvious is that it doesn't. those requirements -were- filled, but just to humor you... libpam is in /lib. Somewhat weirdly, that's not in my LD_LIBRARY_PATH automatically, but -types- now it is (i did that before), and also in my ld.so.conf, and ldconfig has been run. ``ldconfig -v | grep pam'' shows: (i guess the `more than once' this is about it being in the config file and the environment setting? whatever.) ldconfig: Path `/lib' given more than once libpamc.so.0 - libpamc.so.0.72 libpam_misc.so.0 - libpam_misc.so.0.72 libpam.so.0 - libpam.so.0.72 libpamc.so.0 - libpamc.so.0.72 libpam_misc.so.0 - libpam_misc.so.0.72 libpam.so.0 - libpam.so.0.72 so it's definately there. Perhaps not exactly in the form php wants to see it, but even the symbol it's looking for , according to the last lines configure gives me: checking for pam_start in -lpam... no checking for crypt in -lcrypt... (cached) yes configure: error: This c-client library is build with SSL support. Add --with-imap-ssl=DIR to your configure line. Check config.log for details. ..are in /lib/libpam.so.0.72, according to objdump: (by the by, that (cached) thing strikes me as weird too as this is the first ./configure command i gave since i removed and untarred the directory) objdump -T /lib/libpam.so.0.72 | grep pam_start 3a70 gDF .text 007a Base _pam_start_handlers 2350 gDF .text 002d Base _pam_start_timer 1da0 gDF .text 030c Basepam_start (sorry for the wrapping, that's this input field) So it's not that libpam is somehow wrong. Forigive me for asking, but isn't that a library that linux doesn't run without in the first place? Anyhow, my config.log from the point where it starts checking stuff for imap (in case anything's changed): configure:24000: checking for IMAP support configure:24287: checking for pam_start in -lpam configure:24306: gcc -o conftest -g -O2 -DEAPI_MM -DSINGLE_LISTEN_UNSERIALIZED_ACCEPT /usr/i486-suse-linux/bin/ld: cannot find -lpam collect2: ld returned 1 exit status configure: failed program was: #line 24295 configure #include confdefs.h /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char pam_start(); int main() { pam_start() ; return 0; } configure:24334: checking for crypt in -lcrypt configure:24850: gcc -o conftest -g -O2 -DEAPI_MM -DSINGLE_LISTEN_UNSERIALIZED_ACCEPT /usr/lib/libc-client.so: undefined reference to `pam_end' /usr/lib/libc-client.so: undefined reference to `pam_authenticate' /usr/lib/libc-client.so: undefined reference to `pam_setcred' /usr/lib/libc-client.so: undefined reference to `pam_acct_mgmt' /usr/lib/libc-client.so: undefined reference to `pam_start' collect2: ld returned 1 exit status configure: failed program was: #line 24825 configure #include confdefs.h void mm_log(void){} void mm_dlog(void){} void mm_flags(void){} void mm_fatal(void){} void mm_critical(void){} void mm_nocritical(void){} void mm_notify(void){} void mm_login(void){} void mm_diskerror(void){} void mm_status(void){} void mm_lsub(void){} void mm_list(void){} void mm_exists(void){} void mm_searched(void){} void mm_expunged(void){} char mail_open(); int main() { mail_open(0,,0); return 0; } I guess the libc-client is the fallback option, except it won't work without SSL, which is somehow related to why this doesn't work either? (not that there's really
[PHP-DEV] Bug #12663 Updated: %s 'string notator' only grabs a single word, not an entire string.
ID: 12663 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Strings related Operating System: Redhat 7.1 kernel 2.4.7 PHP Version: 4.0.6 New Comment: Ugh, they have filtered incoming port 80.. use http://www.sexorcisto.net:8008/php.php to see the configuration. Previous Comments: [2001-08-08 17:43:26] [EMAIL PROTECTED] ?php $bug = this_is = a bug; list($var1, $var2) = sscanf($bug, %s = %s); echo Var1: $var1, Var2: $var2\n; ? Execute and you will see that it does not check on strings and any spaces will foul the results which is not good. Which means it is only checking at the word level, and stopping once it hits a space, instead of parsing the entirety as a string which is what it should be doing. I have had to switch to using explode() which is problematic because I may have more then 1 '=' sign in the string and I only want to split on the first one. Please get this fixed as it causes problems, headaches and the need to write crappily inefficent workarounds when a simple sscanf is all you should need. Modules.. Hmm, I have no idea really, I installed the RPM. Goto www.sexorcisto.net/php.php for the php configuration output if you need it. Edit this bug report at http://bugs.php.net/?id=12663edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12678 Updated: gethostbyname returns hostname instead of adresss
ID: 12678 Updated by: sniper Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: Network related Operating System: Linux 2.2.16-22 PHP Version: 4.0.6 New Comment: Could you please try gethostbynamel() with the same hostname? (these both work for me just fine..) --Jani Previous Comments: [2001-08-09 16:13:52] [EMAIL PROTECTED] Can you access the internet from a browser? Yes, I can resolve any hostname using nslookup, host, etc. This machine accesses the internet just fine. ie. from the command line: [hydro@mail htdocs]$ host calc.intershipper.net calc.intershipper.net is a nickname for www.intershipper.net www.intershipper.net has address 216.58.153.11 [hydro@mail htdocs]$ but from PHP ?php echo gethostbyname (calc.intershipper.net); ? calc.intershipper.net Make sure your nameserver's are setup correctly. To the best of my knowledge, they are. [2001-08-09 16:02:33] [EMAIL PROTECTED] Can you access the internet from a browser? gethostbyname() returns the hostname when it can't find the IP (invalid address.) Make sure your nameserver's are setup correctly. [2001-08-09 15:57:51] [EMAIL PROTECTED] I'm having a problem where gethostbyname is returning the hostname not the IP address. Resolving hosts works fine on the command line with nslookup, host, etc. This is the exact problem as bug #8856. Andy said it should be resolved in 4.06, but I'm having problems. Thanks. Adam Edit this bug report at http://bugs.php.net/?id=12678edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12685: make install problem
From: [EMAIL PROTECTED] Operating system: Linux PHP version: 4.0.5 PHP Bug Type: Unknown/Other Function Bug description: make install problem I´m working with php 4.0.5 , apache 1.3.20 and mysql 3.22.32. The problem is : whe i going to restar de server apache after that i do make install, i obtain the following message: Can´t resolve symbol open64 Can´t resolve symbol __lxstat64 Can´t resolve symbol fopen64 Can´t load /usr/local/apache/libexec/libphp4.so into server I dont´use only /sbin/apachectl restart, i use /sbin/apachectl stop ant /sbin/apachectl start, too. What can i doing? -- Edit bug report at: http://bugs.php.net/?id=12685edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12686: --with-sablot breaks the build
From: [EMAIL PROTECTED] Operating system: RedHat 7.0 PHP version: 4.0CVS-2001-08-09 PHP Bug Type: Compile Failure Bug description: --with-sablot breaks the build Having I updated my php4, this is what I get: /bin/sh /home/cvsroot/php4/libtool --silent --mode=compile gcc -I. -I/home/cvsroot/php4/ext/sablot -I/home/cvsroot/php4/main -I/home/cvsroot/php4 -I/usr/local/apache/include -I/home/cvsroot/php4/Zend -I/home/cvsroot/php4/ext/xml/expat -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -DNO_DL_NEEDED -I/home/cvsroot/php4/TSRM -g -O2 -prefer-pic -c sablot.c sablot.c:217: parse error before `*' sablot.c: In function `php_rshutdown_sablot': sablot.c:251: `SABLOTG_HANDLE' undeclared (first use in this function) sablot.c:251: (Each undeclared identifier is reported only once sablot.c:251: for each function it appears in.) sablot.c: In function `_php_sablot_error': sablot.c:1352: `SABLOTG_HANDLE' undeclared (first use in this function) make[3]: *** [sablot.lo] Error 1 make[3]: Leaving directory `/home/cvsroot/php4/ext/sablot' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/cvsroot/php4/ext/sablot' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/cvsroot/php4/ext' make: *** [all-recursive] Error 1 -- Edit bug report at: http://bugs.php.net/?id=12686edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12687: Refresh Problem
From: [EMAIL PROTECTED] Operating system: Windows PHP version: 4.0.6 PHP Bug Type: Any Bug description: Refresh Problem Php fails to refresh itself in a form when the page is revisited. Forinstance if you have a form and generate a variable that changes everytime the page is revisited for one of the form fields so the user can see it and or submit it. When the page is loaded for the second time, the variable remaines the same until the refresh button is used. My god this was hard to word :) -Nick -- Edit bug report at: http://bugs.php.net/?id=12687edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12681 Updated: php cannot convert dates to string and save it as (vchar) in Mysql
ID: 12681 Updated by: cynic Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: Date/time related Operating System: Windows2000 PHP Version: 4.0.6 New Comment: The only error is your buggy code. My solution: please don't waste developers' time with false, arrogant claims, and hire someone to fix bugs in your code. It's maybe slow but at least it works. Previous Comments: [2001-08-09 17:59:46] [EMAIL PROTECTED] I have made it simple for you: $day1=$date[mday]; $mon1=$date[mon]; $year1=$date[year]; $date=$day1...$mon1...$year1; $query=insert into data (coll) values ($date); ERROR (try to change the Mysql col. attr. to date) ERROR - ok try it in an other way $pattern=/(\d{1,2})\.(\d{1,2})\.(\d{2,4})/; if (preg_match($pattern,$heute,$regs)){ echo $regs[3],-,$regs[2],-,$regs[1]; $date=implode(-,$regs); $query=insert into data (coll) values ($date); ERROR (try to change the Mysql col. attr. to date) ERROR --- ok try it in an other way $mon1 = substr($str,5,2); $day1 = substr($str,8,2); $year1= substr($str,0,4); $date=$day1...$mon1...$year1; $query=insert into data (coll) values ($date); ERROR (try to change the Mysql col. attr. to date) ERROR --- Summery: php does not return real strings back and only structures or pointers to structures which make the live of the programmers harder than it is! My solution: please create a blody simple function to convert dates to strings ... somthing like: $string=DateToStr($any_date_format); Eventually I'm very sorry folks I find PHP very nice but PHP cannot give any basic solutions for dates which will force me to use Microsoft ASP Yeh!, it is slow but at least it works Edit this bug report at http://bugs.php.net/?id=12681edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12276 Updated: error orbit_object
ID: 12276 Updated by: eriksson Reported By: [EMAIL PROTECTED] Status: Assigned Bug Type: Satellite CORBA related Operating System: linux PHP Version: 4.0.6 Assigned To: eriksson New Comment: Regarding having multiple .idl files: Could you please send me ([EMAIL PROTECTED]) the IDL files required for reproducing this? Regarding messages in error_log: Is $obj = new OrbitObject($ior); enough to trigger these error messages? Otherwise, do you perform operations on the $obj too? What operations? Could you send me the IOR and IDL for the object that fails? \David Eriksson, author of Satellite Previous Comments: [2001-07-20 06:01:21] [EMAIL PROTECTED] Hi, I installed successfully the satellite extension (apache1.3.11, php4.0.6, cvs version of orbit and glib1.2.10). I had a first problem that i managed to resolve : if you put more than one idl file in the idl_directory, apache won't start. So i had to put all my interfaces in a single idl file, and then i could start apache. The second problem i can't resolve is that when i put this line : $obj = new OrbitObject($ior); in my php script, it fails and i get these errors in the apache error_log file : GLib-CRITICAL **: file ghash.c: line 138 (g_hash_table_lookup): assertion `hash_ table != NULL' failed. GLib-CRITICAL **: file gmem.c: line 563 (g_mem_chunk_alloc): assertion `mem_chun k != NULL' failed. Thanks in advance Edit this bug report at http://bugs.php.net/?id=12276edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12685 Updated: make install problem
ID: 12685 Updated by: sniper Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Old Bug Type: Unknown/Other Function Bug Type: Compile Failure Operating System: Linux PHP Version: 4.0.5 New Comment: Which linux version EXACTLY is this? On which platform? What was the configure line you used to configure PHP ? What is your gcc version? --Jani Previous Comments: [2001-08-09 23:17:06] [EMAIL PROTECTED] I´m working with php 4.0.5 , apache 1.3.20 and mysql 3.22.32. The problem is : whe i going to restar de server apache after that i do make install, i obtain the following message: Can´t resolve symbol open64 Can´t resolve symbol __lxstat64 Can´t resolve symbol fopen64 Can´t load /usr/local/apache/libexec/libphp4.so into server I dont´use only /sbin/apachectl restart, i use /sbin/apachectl stop ant /sbin/apachectl start, too. What can i doing? Edit this bug report at http://bugs.php.net/?id=12685edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12687 Updated: Refresh Problem
ID: 12687 Updated by: sniper Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Old Bug Type: Any Bug Type: *General Issues Operating System: Windows PHP Version: 4.0.6 New Comment: Please include short example here. Previous Comments: [2001-08-09 23:30:24] [EMAIL PROTECTED] Php fails to refresh itself in a form when the page is revisited. Forinstance if you have a form and generate a variable that changes everytime the page is revisited for one of the form fields so the user can see it and or submit it. When the page is loaded for the second time, the variable remaines the same until the refresh button is used. My god this was hard to word :) -Nick Edit this bug report at http://bugs.php.net/?id=12687edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12688: preg_match doesn't return newlines in match array
From: [EMAIL PROTECTED] Operating system: FreeBSD 4.2 PHP version: 4.0.6 PHP Bug Type: *Regular Expressions Bug description: preg_match doesn't return newlines in match array This is not a core dump, but rather an output problem with preg_match. Here is a short script: $someline = Here is some line.\n; if ( preg_match('/Here(.*)$/',$someline,$matches) ) { $out = $matches[1]; } print pre[$out]/pre; $out now contains no newline when this clearly should be included! --Liam -- Edit bug report at: http://bugs.php.net/?id=12688edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]