[PHP-DEV] Re: XSLT Extension and paths
Sebastian Bergmann wrote: ?php $p = xslt_create(); $res = xslt_process($p, 'test.xml','test.xsl'); if(!$res) echo xslt_error($p); echo $res; xslt_free($p); ? Update: This works fine with PHP Version 4.1.0RC2 built as CGI with Apache 2.0.29-dev on Win32. -- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/ Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Additional ENV Vars with Apache 2.0.28 and PHP 4.1.0 RC2
Zak Greant wrote: This is not the right forum for support questions - please use PHP-General instead. I think this is the right forum for this, since the Apache2Filter is still under development. AFAIK it currently does not export most of the common variables. -- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/ Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Additional ENV Vars with Apache 2.0.28 and PHP 4.1.0 RC2
On November 17, 2001 12:13 am, Sebastian Bergmann wrote: Zak Greant wrote: This is not the right forum for support questions - please use PHP-General instead. I think this is the right forum for this, since the Apache2Filter is still under development. AFAIK it currently does not export most of the common variables. Erk. Missed the full subject line. My apologies - this probably is the right place. :) Thanks Sebastian! -- Zak Greant PHP Quality Assurance Team http://qa.php.net/ We must be the change we wish to see. - M. K. Ghandi -- 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] Re: [PHP-DEV] Proposal for release process (Was: Re:[PHP-DEV]4.1.0)
I think we should be realistic about what we can and cannot pull. Using this approach as the standard release process is simply not going to work - we barely manage an RC branch and a dev branch properly, and having to maintain an old release branch sync'd with bug fixes is not going to be within our reach. In very specific cases, such as the 4.1.0 - 4.2.0 change, if there are going to be some key bugs in 4.1.0, releasing a 4.1.1 based on 4.1.0 would be in order. Otherwise, though, I would say that we're only toying with a non practical idea :) Zeev At 02:36 14/11/2001, Stig S. Bakken wrote: Andi Gutmans wrote: At 12:31 AM 11/11/2001 +0100, Stig S. Bakken wrote: Andi Gutmans wrote: Jani, I think in theory what you writes makes sense but it just doesn't work in the PHP project. (I'm talking about the minor versions coming out of branches). There are always cries to go with HEAD because it's got new goodies (I think it often makes sense) and then people don't want to release a second version out of a branch but want to use HEAD. All in all the release process in the past few years hasn't been that bad. I think the timing has been good and we haven't had *that* many screw-ups. What I do think we need is a couple of people who will push things forward once everyone decides that it is time to branch and start QA; so that things don't linger. Andi, If we trim down the PHP distribution to not contain as many goodies, chances are there won't be as many cries for head (no pun intended). The distinction between the second and third digit is basically documenting to the user the level of change in a release. I didn't quite understand what you mean :) All I said was that if you create a branch say 4.1.0 and you want to release 4.1.x from that branch later on whilst HEAD has already moved a couple of months you're going to have a hard time doing it. Yes, merging bug fixes into that branch would be more difficult. But certainly possible, _if_ we identify a need for small bugfix releases. The point is that for the person having a problem with a bug in 4.1.0, upgrading to 4.2.0 may be a problem because of all the other changes. In this case, a 4.1.1 release containing only that bug fix would make a lot of sense. I've been in this situation a few times myself, and it's not funny (X is broken in 4.0.1, 4.0.2 fixes X but breaks Y). - Stig -- 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 #14089 Updated: use of mcrypt functions result in segfault of apache child
ID: 14089 Updated by: derick Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: mcrypt related Operating System: GNU/Debian Sid PHP Version: 4.0CVS-2001-11-16 Assigned To: derick New Comment: I think you meant 2.4.6, if that is the case, upgrade to 2.4.17, which has a lot of bugs fixed. I'm closing this bug, because it's a merely a problem in the libmcrypt library itself. Please reopen if upgrading does not fix the problem. Derick Previous Comments: [2001-11-16 21:28:20] [EMAIL PROTECTED] libmcrypt is 4.2.6 [2001-11-16 21:11:26] [EMAIL PROTECTED] sablotron seem to be another bug when I remove some params from config.nice relaunch compilation here's the debug trace given when apache hit the code producing problems Program received signal SIGSEGV, Segmentation fault. 0x40b6fb2d in tripledes_LTX__mcrypt_decrypt () from /usr/lib/libmcrypt/tripledes.so Here's the code, function amp_prepare_pass() { global $PASSWD_KEY; // set it into your amp_secure.php $yor[td] = mcrypt_module_open (MCRYPT_TripleDES, , MCRYPT_MODE_ECB, ); $yor[iv] = mcrypt_create_iv (mcrypt_enc_get_iv_size ( $yor[td] ), MCRYPT_RAND); mcrypt_generic_init ($yor[td], $PASSWD_KEY, $yor[iv]); return $yor; } function amp_encode_pass( $str ) { $all_needed = amp_prepare_pass(); $encrypted_data = mcrypt_generic ($all_needed[td], $str); @mcrypt_generic_end ( $all_needed[td] ); return $encrypted_data; } function amp_decode_pass( $str ) { $all_needed = amp_prepare_pass(); $decrypted_data = mdecrypt_generic ($all_needed[td], $str); @mcrypt_generic_end ( $all_needed[td] ); return $decrypted_data; } [2001-11-16 20:09:04] [EMAIL PROTECTED] Please post your script, and which version of libmcrypt (not mcrypt) you use. Derick [2001-11-16 20:00:28] [EMAIL PROTECTED] Hi, I just encountered strange segfault with current cvs version. When using ming or mcrypt connectors, the apache child doing task is going into defunct activity. mcrypt is 2.5.7 sablotron is 0.71 apache is 1.3.22, deb binary source recompiled for test linux kernel is 2.4.6 On debug bactracing on php, when launching httpd -X a message from sablotron comes up Cannot load /usr/lib/apache/1.3/libphp4.so into server: /usr/lib/apache/1.3/libp hp4.so: undefined symbol: sablot_module_entry current php's configuration parameters: './configure' '--enable-inline-optimization' '--enable-mbstr-enc-trans' '--enable-mbstring' '--prefix=/usr' '--with-apxs=/usr/bin/apxs' '--with-regex=system' '--with-config-file-path=/etc/php4/apache' '--disable-rpath' '--enable-memory-limit' '--enable-calendar' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-trans-sid' '--disable-debug' '--disable-static' '--with-bz2' '--with-curl=shared,/usr' '--with-db2' '--with-ndbm' '--with-dom=shared,/usr' '--enable-exif' '--enable-filepro' '--enable-ftp' '--with-gettext' '--with-gd=shared' '--enable-gd-native-ttf' '--with-png-dir=/usr' '--with-jpeg-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--with-mhash=shared' '--with-mysql=shared,/usr' '--with-pcre-regex=/usr' '--with-pgsql=shared,/usr' '--with-sablot=shared,/usr' '--enable-sablot-errors-descriptive' '--enable-shmop' '--enable-sockets' '--with-ttf=/usr' '--with-t1lib=/usr' '--with-tiff-dir=/usr' '--enable-yp' '--with-zlib' '--with-mcrypt' '--with-pspell=/usr' '--with-dom=/usr' '--with-ming' '--enable-sockets' '--enable-freetype-4bit-antialias-hack' '--with-pdflib=/usr' '--enable-shared-pdflib' '--enable-ucd-snmp-hack' '--with-recode=/usr' hope this will help Regards, mued Edit this bug report at http://bugs.php.net/?id=14089edit=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 #14092: Associative array,value in array can not be zero
From: [EMAIL PROTECTED] Operating system: linux RH7.0 PHP version: 4.0.6 PHP Bug Type: Arrays related Bug description: Associative array,value in array can not be zero Associative arrays seems to be broken in some way. it is impossible to use something like $variable[something]=0; example scripts: A: ? $userdata[user_star]='10'; $userdata[user_pohlavi]=U; $userdata[user_count]=1; $userdata[user_vip]=N; $userdata[user_lang]=CZ; $userdata[user_tld]=CZ; $userdata[user_fags]=A; show_values($userdata); function show_values($pole) { echo show; reset($pole); while(current($pole)) { echo index: .key($pole). value: .current($pole).br; next($pole); } } ? Following script show proper results: showindex: user_star value: 10 index: user_pohlavi value: U index: user_count value: 1 index: user_vip value: N index: user_lang value: CZ index: user_tld value: CZ index: user_fags value: A But Script B: ? $userdata[user_star]='10'; $userdata[user_pohlavi]=U; $userdata[user_count]=0; $userdata[user_vip]=N; $userdata[user_lang]=CZ; $userdata[user_tld]=CZ; $userdata[user_fags]=A; show_values($userdata); function show_values($pole) { echo show; reset($pole); while(current($pole)) { echo index: .key($pole). value: .current($pole).br; next($pole); } } ? (only thig I change is : $userdata[user_count]=0; ) give INCORRECT result showindex: user_star value: 10 index: user_pohlavi value: U ..and rest of the array gone. PHP manual say that A 'key' is either a nonnegative integer or a string... ..A 'value' can be anything. , so I thing I found bug... My system: RedHat7.0cz , kernel 2.4.10+LIDS 1.0.16,output of PhpInfo() function : PHP Version 4.0.6 System Linux porky.devel.redhat.com 2.4.5-7smp #1 SMP Tue Jun 26 14:19:49 EDT 2001 i686 unknown Build Date Aug 27 2001 Configure Command './configure' 'i386-redhat-linux' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--prefix=/usr' '--with-config-file-path=/etc' '--disable-debug' '--enable-pic' '--disable-rpath' '--enable-inline-optimization' '--with-apxs=/usr/sbin/apxs' '--with-bz2' '--with-curl' '--with-db3' '--with-dom' '--with-exec-dir=/usr/bin' '--with-gd' '--with-gdbm' '--with-gettext' '--with-jpeg-dir=/usr' '--with-mm' '--with-openssl' '--with-png' '--with-regex=system' '--with-ttf' '--with-zlib' '--with-layout=GNU' '--enable-debugger' '--enable-ftp' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-yp' '--enable-wddx' '--without-mysql' '--without-unixODBC' '--without-oracle' '--without-oci8' '--with-pspell' '--with-xml' Server API Apache Virtual Directory Support disabled Configuration File (php.ini) Path /etc/php.ini ZEND_DEBUG disabled Thread Safety disabled This program makes use of the Zend scripting language engine: Zend Engine v1.0.6, Copyright (c) 1998-2001 Zend Technologies PHP 4.0 Credits Configuration PHP Core Directive Local Value Master Value allow_call_time_pass_reference On On allow_url_fopen 1 1 arg_separator.input arg_separator.output asp_tags Off Off auto_append_file no value no value auto_prepend_file no value no value browscap no value no value default_charset no value no value default_mimetype text/html text/html define_syslog_variables Off Off disable_functions no value no value display_errors On On display_startup_errors On On doc_root no value no value enable_dl On On error_append_string /font/h3 /font/h3 error_log no value no value error_prepend_string h3font color=ff h3font color=ff error_reporting 2039 2039 expose_php On On extension_dir /usr/lib/php4 /usr/lib/php4 file_uploads 1 1 gpc_order GPC GPC highlight.bg #FF #FF highlight.comment #FF8000 #FF8000 highlight.default #BB #BB highlight.html #00 #00 highlight.keyword #007700 #007700 highlight.string #DD #DD html_errors On On ignore_user_abort Off Off
[PHP-DEV] Bug #14092 Updated: Associative array,value in array can not be zero
ID: 14092 Updated by: derick Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: Arrays related Operating System: linux RH7.0 PHP Version: 4.0.6 New Comment: THis is expected behavior, if current($pole) evaluates to 0, it's considered false as a while conditition: while (current($pole)) { --- while (0) { You want to use: while (current($pole) !== FALSE) { Previous Comments: [2001-11-17 06:28:33] [EMAIL PROTECTED] Associative arrays seems to be broken in some way. it is impossible to use something like $variable[something]=0; example scripts: A: ? $userdata[user_star]='10'; $userdata[user_pohlavi]=U; $userdata[user_count]=1; $userdata[user_vip]=N; $userdata[user_lang]=CZ; $userdata[user_tld]=CZ; $userdata[user_fags]=A; show_values($userdata); function show_values($pole) { echo show; reset($pole); while(current($pole)) { echo index: .key($pole). value: .current($pole).br; next($pole); } } ? Following script show proper results: showindex: user_star value: 10 index: user_pohlavi value: U index: user_count value: 1 index: user_vip value: N index: user_lang value: CZ index: user_tld value: CZ index: user_fags value: A But Script B: ? $userdata[user_star]='10'; $userdata[user_pohlavi]=U; $userdata[user_count]=0; $userdata[user_vip]=N; $userdata[user_lang]=CZ; $userdata[user_tld]=CZ; $userdata[user_fags]=A; show_values($userdata); function show_values($pole) { echo show; reset($pole); while(current($pole)) { echo index: .key($pole). value: .current($pole).br; next($pole); } } ? (only thig I change is : $userdata[user_count]=0; ) give INCORRECT result showindex: user_star value: 10 index: user_pohlavi value: U ..and rest of the array gone. PHP manual say that A 'key' is either a nonnegative integer or a string... ..A 'value' can be anything. , so I thing I found bug... My system: RedHat7.0cz , kernel 2.4.10+LIDS 1.0.16,output of PhpInfo() function : PHP Version 4.0.6 System Linux porky.devel.redhat.com 2.4.5-7smp #1 SMP Tue Jun 26 14:19:49 EDT 2001 i686 unknown Build Date Aug 27 2001 Configure Command './configure' 'i386-redhat-linux' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--prefix=/usr' '--with-config-file-path=/etc' '--disable-debug' '--enable-pic' '--disable-rpath' '--enable-inline-optimization' '--with-apxs=/usr/sbin/apxs' '--with-bz2' '--with-curl' '--with-db3' '--with-dom' '--with-exec-dir=/usr/bin' '--with-gd' '--with-gdbm' '--with-gettext' '--with-jpeg-dir=/usr' '--with-mm' '--with-openssl' '--with-png' '--with-regex=system' '--with-ttf' '--with-zlib' '--with-layout=GNU' '--enable-debugger' '--enable-ftp' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-yp' '--enable-wddx' '--without-mysql' '--without-unixODBC' '--without-oracle' '--without-oci8' '--with-pspell' '--with-xml' Server API Apache Virtual Directory Support disabled Configuration File (php.ini) Path /etc/php.ini ZEND_DEBUG disabled Thread Safety disabled This program makes use of the Zend scripting language engine: Zend Engine v1.0.6, Copyright (c) 1998-2001 Zend Technologies PHP 4.0 Credits Configuration PHP Core Directive Local Value Master Value allow_call_time_pass_reference On On allow_url_fopen 1 1 arg_separator.input arg_separator.output asp_tags Off Off auto_append_file no value no value auto_prepend_file no value no value browscap no value no value default_charset no value no value default_mimetype text/html text/html define_syslog_variables Off Off disable_functions no value no value display_errors On On display_startup_errors On On doc_root no value no value enable_dl On On error_append_string /font/h3 /font/h3 error_log no value no value error_prepend_string h3font color=ff h3font color=ff error_reporting 2039 2039 expose_php On On extension_dir
[PHP-DEV] Bug #14092 Updated: Associative array,value in array can not be zero
ID: 14092 Updated by: hholzgra Reported By: [EMAIL PROTECTED] Old Status: Closed Status: Bogus Bug Type: Arrays related Operating System: linux RH7.0 PHP Version: 4.0.6 New Comment: or even better: use each() or foreach() to traverse arrays http://php.net/each http://php.net/foreach Previous Comments: [2001-11-17 06:32:02] [EMAIL PROTECTED] THis is expected behavior, if current($pole) evaluates to 0, it's considered false as a while conditition: while (current($pole)) { --- while (0) { You want to use: while (current($pole) !== FALSE) { [2001-11-17 06:28:33] [EMAIL PROTECTED] Associative arrays seems to be broken in some way. it is impossible to use something like $variable[something]=0; example scripts: A: ? $userdata[user_star]='10'; $userdata[user_pohlavi]=U; $userdata[user_count]=1; $userdata[user_vip]=N; $userdata[user_lang]=CZ; $userdata[user_tld]=CZ; $userdata[user_fags]=A; show_values($userdata); function show_values($pole) { echo show; reset($pole); while(current($pole)) { echo index: .key($pole). value: .current($pole).br; next($pole); } } ? Following script show proper results: showindex: user_star value: 10 index: user_pohlavi value: U index: user_count value: 1 index: user_vip value: N index: user_lang value: CZ index: user_tld value: CZ index: user_fags value: A But Script B: ? $userdata[user_star]='10'; $userdata[user_pohlavi]=U; $userdata[user_count]=0; $userdata[user_vip]=N; $userdata[user_lang]=CZ; $userdata[user_tld]=CZ; $userdata[user_fags]=A; show_values($userdata); function show_values($pole) { echo show; reset($pole); while(current($pole)) { echo index: .key($pole). value: .current($pole).br; next($pole); } } ? (only thig I change is : $userdata[user_count]=0; ) give INCORRECT result showindex: user_star value: 10 index: user_pohlavi value: U ..and rest of the array gone. PHP manual say that A 'key' is either a nonnegative integer or a string... ..A 'value' can be anything. , so I thing I found bug... My system: RedHat7.0cz , kernel 2.4.10+LIDS 1.0.16,output of PhpInfo() function : PHP Version 4.0.6 System Linux porky.devel.redhat.com 2.4.5-7smp #1 SMP Tue Jun 26 14:19:49 EDT 2001 i686 unknown Build Date Aug 27 2001 Configure Command './configure' 'i386-redhat-linux' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--prefix=/usr' '--with-config-file-path=/etc' '--disable-debug' '--enable-pic' '--disable-rpath' '--enable-inline-optimization' '--with-apxs=/usr/sbin/apxs' '--with-bz2' '--with-curl' '--with-db3' '--with-dom' '--with-exec-dir=/usr/bin' '--with-gd' '--with-gdbm' '--with-gettext' '--with-jpeg-dir=/usr' '--with-mm' '--with-openssl' '--with-png' '--with-regex=system' '--with-ttf' '--with-zlib' '--with-layout=GNU' '--enable-debugger' '--enable-ftp' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-yp' '--enable-wddx' '--without-mysql' '--without-unixODBC' '--without-oracle' '--without-oci8' '--with-pspell' '--with-xml' Server API Apache Virtual Directory Support disabled Configuration File (php.ini) Path /etc/php.ini ZEND_DEBUG disabled Thread Safety disabled This program makes use of the Zend scripting language engine: Zend Engine v1.0.6, Copyright (c) 1998-2001 Zend Technologies PHP 4.0 Credits Configuration PHP Core Directive Local Value Master Value allow_call_time_pass_reference On On allow_url_fopen 1 1 arg_separator.input arg_separator.output asp_tags Off Off auto_append_file no value no value auto_prepend_file no value no value browscap no value no value default_charset no value no value default_mimetype text/html text/html define_syslog_variables Off Off disable_functions no value no value display_errors On On display_startup_errors On On doc_root no value no value
[PHP-DEV] Bug #14092 Updated: Associative array,value in array can not be zero
ID: 14092 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Old Status: Bogus Status: Closed Bug Type: Arrays related Operating System: linux RH7.0 PHP Version: 4.0.6 New Comment: I try even to use while (current($pole) != FALSE) with the some (wrong) result. but while (current($pole) !== FALSE) works. Thanx for help and sorry for the mess... Previous Comments: [2001-11-17 06:44:21] [EMAIL PROTECTED] or even better: use each() or foreach() to traverse arrays http://php.net/each http://php.net/foreach [2001-11-17 06:32:02] [EMAIL PROTECTED] THis is expected behavior, if current($pole) evaluates to 0, it's considered false as a while conditition: while (current($pole)) { --- while (0) { You want to use: while (current($pole) !== FALSE) { [2001-11-17 06:28:33] [EMAIL PROTECTED] Associative arrays seems to be broken in some way. it is impossible to use something like $variable[something]=0; example scripts: A: ? $userdata[user_star]='10'; $userdata[user_pohlavi]=U; $userdata[user_count]=1; $userdata[user_vip]=N; $userdata[user_lang]=CZ; $userdata[user_tld]=CZ; $userdata[user_fags]=A; show_values($userdata); function show_values($pole) { echo show; reset($pole); while(current($pole)) { echo index: .key($pole). value: .current($pole).br; next($pole); } } ? Following script show proper results: showindex: user_star value: 10 index: user_pohlavi value: U index: user_count value: 1 index: user_vip value: N index: user_lang value: CZ index: user_tld value: CZ index: user_fags value: A But Script B: ? $userdata[user_star]='10'; $userdata[user_pohlavi]=U; $userdata[user_count]=0; $userdata[user_vip]=N; $userdata[user_lang]=CZ; $userdata[user_tld]=CZ; $userdata[user_fags]=A; show_values($userdata); function show_values($pole) { echo show; reset($pole); while(current($pole)) { echo index: .key($pole). value: .current($pole).br; next($pole); } } ? (only thig I change is : $userdata[user_count]=0; ) give INCORRECT result showindex: user_star value: 10 index: user_pohlavi value: U ..and rest of the array gone. PHP manual say that A 'key' is either a nonnegative integer or a string... ..A 'value' can be anything. , so I thing I found bug... My system: RedHat7.0cz , kernel 2.4.10+LIDS 1.0.16,output of PhpInfo() function : PHP Version 4.0.6 System Linux porky.devel.redhat.com 2.4.5-7smp #1 SMP Tue Jun 26 14:19:49 EDT 2001 i686 unknown Build Date Aug 27 2001 Configure Command './configure' 'i386-redhat-linux' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--prefix=/usr' '--with-config-file-path=/etc' '--disable-debug' '--enable-pic' '--disable-rpath' '--enable-inline-optimization' '--with-apxs=/usr/sbin/apxs' '--with-bz2' '--with-curl' '--with-db3' '--with-dom' '--with-exec-dir=/usr/bin' '--with-gd' '--with-gdbm' '--with-gettext' '--with-jpeg-dir=/usr' '--with-mm' '--with-openssl' '--with-png' '--with-regex=system' '--with-ttf' '--with-zlib' '--with-layout=GNU' '--enable-debugger' '--enable-ftp' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-yp' '--enable-wddx' '--without-mysql' '--without-unixODBC' '--without-oracle' '--without-oci8' '--with-pspell' '--with-xml' Server API Apache Virtual Directory Support disabled Configuration File (php.ini) Path /etc/php.ini ZEND_DEBUG disabled Thread Safety disabled This program makes use of the Zend scripting language engine: Zend Engine v1.0.6, Copyright (c) 1998-2001 Zend Technologies PHP 4.0 Credits Configuration PHP Core Directive Local Value Master Value allow_call_time_pass_reference On On allow_url_fopen 1 1 arg_separator.input arg_separator.output asp_tags Off Off auto_append_file no value no value
Re: [PHP-DEV] Additional ENV Vars with Apache 2.0.28 and PHP 4.1.0RC2
Zak Greant wrote: This is not the right forum for support questions - please use PHP-General instead. I think this is the right forum for this, since the Apache2Filter is still under development. AFAIK it currently does not export most of the common variables. Didn't Doug fix this just the other day in HEAD? -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] DOM XML enhancement proposal
I am using php 4.0.6 distribution. I need to use libxslt library, so I've written a patch for DOM XML extension. Besides I've added some functions More info at http://rainbow.mimuw.edu.pl/~jkolakow/domxml/ Regards, Jarek -- 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] 4.1.0RC2
On Tue, Nov 13 2001, Derick Rethans [EMAIL PROTECTED] wrote: Forgot to attached it... I have downloaded the latest php4 from PHP_4_0_7 branch, and still I can't complile, but I found some patches against the HEAD branch which should applied to PHP_4_0_7 too: http://cvsweb.php.net/diff.php/php4/acinclude.m4?sbt=2r1=1.139r2=1.140ty=u http://cvsweb.php.net/diff.php/php4/configure.in?sbt=2r1=1.273r2=1.274ty=u (acinclude.m4 diff release 1.139 to 1.140 and configure.in diff release 1.273 to 1.274) -- jul -- 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] Removing ext/sablot from 4.1?
Hey, Just sending out a feeler message, while I still have some motivation to argue about the future of XSLT (ie, I have other work I should be doing ;) -- I'd like to move ext/sablot from the standard PHP distribution, and update the PHP documentation to the new XSLT API for PHP 4.1 for four reasons: 1) Its a bit confusing with two extensions doing the same thing 2) ext/xslt has become almost stable :) No really... At least it is much more stable than ext/sablot. 3) A bit of an encouragement for users to switch to the new xslt extension which is not only cleaner, but its also signifigantly improved with regards to features and speed. 4) 4.1 is a bit of a compatibility breaking release, I don't know when I'll get the chance again (PHP 5?) -Sterling -- 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 #14089 Updated: use of mcrypt functions result in segfault of apache child
ID: 14089 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Closed Bug Type: mcrypt related Operating System: GNU/Debian Sid PHP Version: 4.0CVS-2001-11-16 Old Assigned To: derick Assigned To: New Comment: Hi Derick, It works well after upgrading libmcrypt recompiling, thx Previous Comments: [2001-11-17 06:26:07] [EMAIL PROTECTED] I think you meant 2.4.6, if that is the case, upgrade to 2.4.17, which has a lot of bugs fixed. I'm closing this bug, because it's a merely a problem in the libmcrypt library itself. Please reopen if upgrading does not fix the problem. Derick [2001-11-16 21:28:20] [EMAIL PROTECTED] libmcrypt is 4.2.6 [2001-11-16 21:11:26] [EMAIL PROTECTED] sablotron seem to be another bug when I remove some params from config.nice relaunch compilation here's the debug trace given when apache hit the code producing problems Program received signal SIGSEGV, Segmentation fault. 0x40b6fb2d in tripledes_LTX__mcrypt_decrypt () from /usr/lib/libmcrypt/tripledes.so Here's the code, function amp_prepare_pass() { global $PASSWD_KEY; // set it into your amp_secure.php $yor[td] = mcrypt_module_open (MCRYPT_TripleDES, , MCRYPT_MODE_ECB, ); $yor[iv] = mcrypt_create_iv (mcrypt_enc_get_iv_size ( $yor[td] ), MCRYPT_RAND); mcrypt_generic_init ($yor[td], $PASSWD_KEY, $yor[iv]); return $yor; } function amp_encode_pass( $str ) { $all_needed = amp_prepare_pass(); $encrypted_data = mcrypt_generic ($all_needed[td], $str); @mcrypt_generic_end ( $all_needed[td] ); return $encrypted_data; } function amp_decode_pass( $str ) { $all_needed = amp_prepare_pass(); $decrypted_data = mdecrypt_generic ($all_needed[td], $str); @mcrypt_generic_end ( $all_needed[td] ); return $decrypted_data; } [2001-11-16 20:09:04] [EMAIL PROTECTED] Please post your script, and which version of libmcrypt (not mcrypt) you use. Derick [2001-11-16 20:00:28] [EMAIL PROTECTED] Hi, I just encountered strange segfault with current cvs version. When using ming or mcrypt connectors, the apache child doing task is going into defunct activity. mcrypt is 2.5.7 sablotron is 0.71 apache is 1.3.22, deb binary source recompiled for test linux kernel is 2.4.6 On debug bactracing on php, when launching httpd -X a message from sablotron comes up Cannot load /usr/lib/apache/1.3/libphp4.so into server: /usr/lib/apache/1.3/libp hp4.so: undefined symbol: sablot_module_entry current php's configuration parameters: './configure' '--enable-inline-optimization' '--enable-mbstr-enc-trans' '--enable-mbstring' '--prefix=/usr' '--with-apxs=/usr/bin/apxs' '--with-regex=system' '--with-config-file-path=/etc/php4/apache' '--disable-rpath' '--enable-memory-limit' '--enable-calendar' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-trans-sid' '--disable-debug' '--disable-static' '--with-bz2' '--with-curl=shared,/usr' '--with-db2' '--with-ndbm' '--with-dom=shared,/usr' '--enable-exif' '--enable-filepro' '--enable-ftp' '--with-gettext' '--with-gd=shared' '--enable-gd-native-ttf' '--with-png-dir=/usr' '--with-jpeg-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--with-mhash=shared' '--with-mysql=shared,/usr' '--with-pcre-regex=/usr' '--with-pgsql=shared,/usr' '--with-sablot=shared,/usr' '--enable-sablot-errors-descriptive' '--enable-shmop' '--enable-sockets' '--with-ttf=/usr' '--with-t1lib=/usr' '--with-tiff-dir=/usr' '--enable-yp' '--with-zlib' '--with-mcrypt' '--with-pspell=/usr' '--with-dom=/usr' '--with-ming' '--enable-sockets' '--enable-freetype-4bit-antialias-hack' '--with-pdflib=/usr' '--enable-shared-pdflib' '--enable-ucd-snmp-hack' '--with-recode=/usr' hope this will help Regards, mued Edit this bug report at http://bugs.php.net/?id=14089edit=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] Removing ext/sablot from 4.1?
On Sat, Nov 17, 2001 at 09:11:19AM -0500, Sterling Hughes wrote: Hey, Just sending out a feeler message, while I still have some motivation to argue about the future of XSLT (ie, I have other work I should be doing ;) -- I'd like to move ext/sablot from the standard PHP distribution, and update the PHP documentation to the new XSLT API for PHP 4.1 for four reasons: 1) Its a bit confusing with two extensions doing the same thing 2) ext/xslt has become almost stable :) No really... At least it is much more stable than ext/sablot. 3) A bit of an encouragement for users to switch to the new xslt extension which is not only cleaner, but its also signifigantly improved with regards to features and speed. 4) 4.1 is a bit of a compatibility breaking release, I don't know when I'll get the chance again (PHP 5?) i think we should remove it (also from CVS) as it is non maintained and superceeded by a newer, better thingie. tc -- 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] CVS Account Request: stefan
I would like to help the group to translate the doc into german. -- 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] getenv HTTP_POST_VARS
Hello, Un post directement sur une page phpinfo : Resultat : PHP Variables HTTP_POST_VARS[mavar1] adsadsadsa HTTP_POST_VARS[mavar2] adsadsadsaasd HTTP_POST_VARS[submit] envoie HTTP_SERVER_VARS[REQUEST_METHOD] POST voili voilou getenv retourne false. je pige pas, je dois etre un peu fatigue a+ pa -- 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 #14093: Wrong values in the predefined PHP_*DIR constants
From: [EMAIL PROTECTED] Operating system: Win PHP version: 4.0.6 PHP Bug Type: Variables related Bug description: Wrong values in the predefined PHP_*DIR constants The values of the PHP_*DIR contants are set in php4/main/config.w32.h to predefined paths like c:\\php4 and c:\\winnt. You can change them to fit the paths of your system only by compiling PHP. But normally on Win, the distributed binary is used. So the contants shows to the wrong paths (a big problem for the pear installer). The values of this constants should be set by the installer in php.ini or the registry. -- Edit bug report at: http://bugs.php.net/?id=14093edit=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] Additional ENV Vars with Apache 2.0.28 and PHP 4.1.0RC2
Rasmus Lerdorf wrote: Didn't Doug fix this just the other day in HEAD? This well might be, I haven't tested it lately. -- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/ Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Re: Removing ext/sablot from 4.1?
Sterling Hughes wrote: Hey, Just sending out a feeler message, while I still have some motivation to argue about the future of XSLT (ie, I have other work I should be doing ;) -- I'd like to move ext/sablot from the standard PHP distribution, and update the PHP documentation to the new XSLT API for PHP 4.1 for four reasons: 1) Its a bit confusing with two extensions doing the same thing 2) ext/xslt has become almost stable :) No really... At least it is much more stable than ext/sablot. 3) A bit of an encouragement for users to switch to the new xslt extension which is not only cleaner, but its also signifigantly improved with regards to features and speed. 4) 4.1 is a bit of a compatibility breaking release, I don't know when I'll get the chance again (PHP 5?) -Sterling +2 for removing. At least some package maintainers will realize then that it's gone and start looking for replacement. Speaking about Debian here :) -- Lenar Lõhmus -- 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: XSLT Extension and paths
Sebastian Bergmann wrote: Sebastian Bergmann wrote: ?php $p = xslt_create(); $res = xslt_process($p, 'test.xml','test.xsl'); if(!$res) echo xslt_error($p); echo $res; xslt_free($p); ? This snippet triggered some memories. With 4.1.0rc1-cgi (maybe under apache too, haven't tested) .. if you leave xslt_free() out then after script has finished and php is shutting down .. it segfaults. Lenar -- 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] Removing ext/sablot from 4.1?
Nuke it. --Jani On Sat, 17 Nov 2001, Sterling Hughes wrote: Hey, Just sending out a feeler message, while I still have some motivation to argue about the future of XSLT (ie, I have other work I should be doing ;) -- I'd like to move ext/sablot from the standard PHP distribution, and update the PHP documentation to the new XSLT API for PHP 4.1 for four reasons: 1) Its a bit confusing with two extensions doing the same thing 2) ext/xslt has become almost stable :) No really... At least it is much more stable than ext/sablot. 3) A bit of an encouragement for users to switch to the new xslt extension which is not only cleaner, but its also signifigantly improved with regards to features and speed. 4) 4.1 is a bit of a compatibility breaking release, I don't know when I'll get the chance again (PHP 5?) -Sterling -- 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] Removing ext/sablot from 4.1?
Thies C. Arntzen wrote: i think we should remove it (also from CVS) as it is non maintained and superceeded by a newer, better thingie. +1 -- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/ Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Removing ext/sablot from 4.1?
On Sat, 17 Nov 2001 16:03:32 +0100, Thies C. Arntzen wrote: i think we should remove it (also from CVS) as it is non maintained and superceeded by a newer, better thingie. Yeah, nuke it. +1 - Martin -- Martin Jansen, [EMAIL PROTECTED] http://www.martin-jansen.de/ -- 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] getenv HTTP_POST_VARS
On Sat, 17 Nov 2001 16:34:45 +0100, Pierre-Alain Joye wrote: Un post directement sur une page phpinfo : Please speak english on this list ;-). - Martin -- Martin Jansen, [EMAIL PROTECTED] http://www.martin-jansen.de/ -- 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] PHP 3.0 Bug Summary Report
PHP 3.0 Bug Database summary - http://bugs.php.net Num Status Summary (539 total including feature requests) ===[*General Issues]== 4180 Open is_link returns false when target doesnt exist (should return true) 9610 Bogus Dead link 9820 Open File upload with any input tag 10101 Bogus apache + mysqld + php3 == libphp3.so incorrect symbol... 10457 Bogus ALKHOBAR ===[*Install and Config]== 7386 Feedback referenced symbol not found when starting Apache ===[Compile Failure]== 1145 Open Ypu cannot compile with --with-ldap using the Solaris7 bundled ldap-libs/header 1298 Open need to use -taso with Netscape LDAP libs 1461 Open won't compile with Stronghold 2.2 or 2.3 1933 Open Unable to compile PHP3 with Oracle8 support 1997 Open Compilation Problems 2225 Open Compile error in ldap.c 2282 Open Compile failure with Stronghold 2.4.1 2490 Open Perl regular expression functions not available in windows binary 2585 Open Error linking Oracle 7.3.2 libraries on SCO OpenServer 5.0.4 2658 Open error while compiling PHP as apache module 2729 Open Fatal error: Unable to open ??? in - on line 0 2751 Open Storage size of buf isn't known 2823 Open undefined symbol: SQLParamData 2824 Open Inconsistent parameter list declaration for... 2903 Open fails to compile ifx.ec, report a syntax-error 3033 Open Fatal compile error on functions/ldap.c 3185 Open Undefined symbol 3217 Open ld error when compiling as Apache DSO and --with-mysql 3218 Open Can't compile php_ftp.dll 3426 Open make with iodbc failed and I've found the problem 3501 Open Compiling errors with Oracle-Funktions 3528 Open Can't compile php 3.0.14 with Oracle support 3677 Open files not found 3766 Open configure doesn't allow for the Oracle N32 client SDK to be used 3776 Open functions/db.c:107: parse error before '*' 4028 Open wrong directories included for oracle 8.1.6 4217 Open IBM DB2 will not compile. 4233 Open The Interbase module won't compile. 4266 Open Undeclared variables in function/imap.c starting ar line 435 4392 Open Compile failure with GD 1.7, possibly others 4412 Open xml failure 4417 Open Informix specific parse error in functions/ifx.ec 4544 Open Incompatiblility with latest (3.0) version of PDFlib 4899 Open PHP Core Dumps With Apache 1.3.12 7734 Open missing php3_ifx.h ===[Compile Warning]== 3151 Open php.exe compile warnings because of arpa/inet.h 6942 Open php sockets unusable with irix-OS ===[dBase related] 3091 Open dbase_replace_record miscounts number of fields 3429 Open Warning: Unable to open database... 4802 Open php.exe crashes while trying to execute the get_record function ===[DBM/DBA related]== 2890 Open DBM extension on win32 does not valid database identifier error 3371 Open dbmfetch reurns an empty string 3423 Open dbmopen() not thread-safe 3809 Duplicate DBM extension for Win32 PHP3 is malfunctioning and/or has a flaw 3862 Open dbmReplace dbmDelete return inverse value 6720 Open persistent Warning: driver initialization failed on db_open db2 2.7.7 ===[Documentation problem] 11155 Bogus bogus report ===[Dynamic loading related]== 1188 Open Configuration not work 1586 Open In the compiled Win32 package, the php3_ldap doesn't load. 1993 Open Startup failure of liphp3.so 2027 Open Can't dynamicly load any extension dll file 2250 Open nt-service problem 2414 Open php3_vmailmgr.so refuses to load 2862 Open LDAP in Win32 Bin dist is linked to MSVCRTD.DLL 3168 Open cannot start apache 1.3.9 if mysql is compiled in, but can RESTART successfully 3292 Open MySQL module causes DSO to fail. 3321 Open Apache Complaining about undefined symbol: dlst_first 3659 Open mod_php + apache w/mod_so hangs in sched_yield 3680 Open Apache won't start after install php3 3752 Open Apache configtest dumps core with DSO versioning 3781 Open Cannot load /libexec/libphp3.so 3861 Open php as a dyn. mod. configured with IBM db2 support prevents svr startup 9565 Open php3_ldap.dll is compiled as DEBUG ===[Feature/Change Request]=== 2393 Open Can't use parse_url for url validation ===[IMAP related]= 2816 Open
[PHP-DEV] Bug #12691 Updated: Apache 2: Server variables don't get set
ID: 12691 Updated by: mj Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: Apache related Operating System: SuSE7.1 PHP Version: 4.0CVS-2001-08-10 New Comment: There has been a patch regarding this three days ago. Please try the latest snapshot from http://snaps.php.net/ and report, if the problem still comes up. Previous Comments: [2001-11-03 21:53:17] [EMAIL PROTECTED] updated short desc. [2001-08-10 11:08:15] [EMAIL PROTECTED] hi alindeman, erm, you missed the essential 2 :) it's with Apache2 (apxs2) Additional note: printenv from /cgi-bin shows them just right. [2001-08-10 10:49:39] [EMAIL PROTECTED] works fine for me (Apache 1.3.20 + PHP Latest CVS). Try running ?phpinfo()? and see what variables are defined.. [2001-08-10 10:42:38] [EMAIL PROTECTED] Apache 2.0.24-dev PHP4-200108091635 CFLAGS='-O6 -fomit-frame-pointer' \ './configure' \ '--with-apxs2=/usr/local/apache2/bin/apxs' \ '--with-mysql' \ '--disable-posix' \ '--disable-pic' \ '--with-zlib' \ '--enable-wddx' \ Looks like PHP doesn't import SERVER_* environment variables: e.g. ?php print getenv('SERVER_NAME')? or ?php print $_SERVER['SERVER_NAME']? yeilds nothin' -- tedor Edit this bug report at http://bugs.php.net/?id=12691edit=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 #9068 Updated: Bugs in OO which are leaking memory...
ID: 9068 Updated by: mfischer Reported By: [EMAIL PROTECTED] Old Status: Assigned Status: Feedback Bug Type: Class/Object related Operating System: Windows 2000 PHP Version: 4.0 Latest CVS (02/02/2001) Assigned To: andre New Comment: Does this still happen with latest CVS? Previous Comments: [2001-02-02 04:13:19] [EMAIL PROTECTED] Note: I've posted some bugs earlier, but they seem to have been fixed with the latest build of PHP 4.0.5-dev. (I don't remember their bug numbers.) Outstanding two bugs in PHP 4.0.5, which are leaking memory: (1) OOP Bug eg... $num_columns = $rs-Fields-Count(); Leaks memory when two - - are used. Does not leak when this line is written in two lines: $fields = $rs-Fields; $num_columns = $fields-Count(); (2) passing recordset to a variable in the object ... $this-rs_obj = $rs; leaks memory when passing ADO recordset to an object modular variable. (variable defined in the module scope of the class.) Solution is not to pass recordsets. Edit this bug report at http://bugs.php.net/?id=9068edit=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] getenv HTTP_POST_VARS
On Sat, 17 Nov 2001 16:34:45 +0100 Pierre-Alain Joye [EMAIL PROTECTED] wrote: Oops sorry wrong email adress selection :)) Will post later maybe a bug on php 4.0.6 ;) -- 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] getenv HTTP_POST_VARS
On Sat, Nov 17, 2001 at 06:22:19PM +0100, Pierre-Alain Joye wrote : Will post later maybe a bug on php 4.0.6 ;) Before reporting a bug with PHP 4.0.6 make sure it doesn't happen with RC2 (or CVS). - Markus -- 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 #11337 Updated: SEGV when using mysql connections in OO-setting
ID: 11337 Updated by: mfischer Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: Scripting Engine problem Operating System: RedHat Linux 7.1 PHP Version: 4.0.5 New Comment: Any update on this? Previous Comments: [2001-07-02 09:08:27] [EMAIL PROTECTED] Honestly, I haven't tried it. After the problems we had with 4.0.5, our client (and I) decided to move to the more familiar territory of Java. I believe that I still have a setup on which I could test 4.0.6 beta, so I'll try to get to that this week. I'll post something as soon as I know. Thanks for your time, -chris [2001-06-27 22:39:57] [EMAIL PROTECTED] Does this happen with PHP 4.0.6 ? [2001-06-08 14:14:13] [EMAIL PROTECTED] Please try latest RC from: http://www.php.net/~andi/php-4.0.6RC3.tar.gz --Jani [2001-06-07 16:04:48] [EMAIL PROTECTED] The following is the gdb backtrace of the crash (which I can reproduce every time i click the 'reload' button in my browser). I'd be happy to send the scripts to you (there are several of them that work together, since each object is in it's own script file). I have been having some other strange problems like trying to free mysql result resources or close mysql connections and getting warnings that those link or resource id's are not valid. Here's the vital statistics: OS: RedHat i386 Linux 7.1 with all updates applied from RedHat MySQL: 3.23.38-1 (RPM from mysql.com) Apache: 1.3.20, compiled locally (--enable-module=so) PHP: 4.0.5 compiled/linked against mysql and apache as a DSO (--with-apxs=... --with-xml --with-mysql) I'm using a standard configuration file with one change: the 'include_path' has been set to include the scripts necessary for my application. There are no path conflicts (that is, the file X.php does not exist relative to the executing script AS WELL AS in the include_path). Thank you for your time. -chris (Chris Schultz) Stack Trace: (gdb) run -X Starting program: /usr/local/apache-1.3.20/bin/./httpd -X Program received signal SIGSEGV, Segmentation fault. 0x400f7d89 in __libc_free (mem=0x813c848) at malloc.c:3055 3055malloc.c: No such file or directory. in malloc.c (gdb) bt #0 0x400f7d89 in __libc_free (mem=0x813c848) at malloc.c:3055 #1 0x401ccf64 in _efree (ptr=0x813c854) at zend_alloc.c:238 #2 0x401cd447 in shutdown_memory_manager (silent=1, clean_cache=0) at zend_alloc.c:439 #3 0x401f525a in php_request_shutdown (dummy=0x0) at main.c:680 #4 0x401f2df9 in php_apache_request_shutdown (dummy=0x0) at mod_php4.c:290 #5 0x080676b8 in run_cleanups () at eval.c:41 #6 0x08065f82 in ap_clear_pool () at eval.c:41 #7 0x08066002 in ap_destroy_pool () at eval.c:41 #8 0x08065f6e in ap_clear_pool () at eval.c:41 #9 0x080756c5 in child_main () at eval.c:41 #10 0x08075cb8 in make_child () at eval.c:41 #11 0x08075e2c in startup_children () at eval.c:41 #12 0x0807647f in standalone_main () at eval.c:41 #13 0x08076ca7 in main () at eval.c:41 #14 0x40094177 in __libc_start_main (main=0x8076908 main, argc=2, ubp_av=0xbacc, init=0x804ed5c _init, fini=0x80abb90 _fini, rtld_fini=0x4000e184 _dl_fini, stack_end=0xbabc) at ../sysdeps/generic/libc-start.c:129 (gdb) Edit this bug report at http://bugs.php.net/?id=11337edit=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 #10088 Updated: Object linking
ID: 10088 Updated by: mfischer Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: Class/Object related Operating System: W2K PHP Version: 4.0.4pl1 New Comment: Your example is wrong. You're copying object everywhere like it is christmas day. Here's the corrected example for your convenience: ? $d1 = new obj(one); // Suppress the warning over the missing argument $d2 = new obj(two, $d1); $d3 = new obj(three, $d2); $d4 = new obj(four, $d3); $d5 = new obj(five, $d4); // Dump what should be the entire linked list $d1-dump(); print(\n\n); // Now to demonstrate the problem: // No matter where you begin the dump() from, only the // $this node and its immediate successor are printed. $d2-dump(); print(\n\n); $d3-dump(); print(\n\n); class obj { var $next; var $name; function obj($name,$prev) { // Add each new object as the next pointer of the preceeding one $this-name = $name; if ($prev) $prev-next = $this; } function dump() { for ( $ptr = $this; $ptr; $ptr = $ptr-next) print($ptr-name . \n); } } ? Even if this example uses '' where not needed it's good that way because not even a single object gets copied by accident. Closed. Previous Comments: [2001-03-31 04:58:18] [EMAIL PROTECTED] The script shown attempts to implement a linked list, but the problem is more general and occurs in many similar situations. ? $d1 = @new obj(one); // Suppress the warning over the missing argument $d2 = new obj(two, $d1); $d3 = new obj(three, $d2); $d4 = new obj(four, $d3); $d5 = new obj(five, $d4); // Dump what should be the entire linked list $d1-dump(); print(p); // Now to demonstrate the problem: // No matter where you begin the dump() from, only the // $this node and its immediate successor are printed. $d2-dump(); print(p); $d3-dump(); print(p); class obj { var $next; var $name; function obj($name,$prev) { // Add each new object as the next pointer of the preceeding one this-name = $name; if ($prev) $prev-next = $this; } function dump() { for ( $ptr = $this; $ptr; $ptr = $ptr-next) print($ptr-name . br); } } ? It seems that when an object's data is manipulated by a different object - even as here, of the same class - the changes made to the object are lost when its context expires. Configuration: Absolutely standard Webserver: Apache and IIS ... same problem in both, and under cgi and as a module Aggravation factor: Immense Cheer chaps for an otherwise excellent language! Edit this bug report at http://bugs.php.net/?id=10088edit=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 #10293 Updated: object reference vs. true object function passing problem
ID: 10293 Updated by: mfischer Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: Class/Object related Operating System: FreeBSD 4.1 RELEASE PHP Version: 4.0.4 New Comment: Thats the way it works in PHP4. Objects are treated as normal variables and therefore also copied (means, really copied) when assigning or passing around so $foo = new class; is the right way to avoid this. Closed. Previous Comments: [2001-04-11 14:58:51] [EMAIL PROTECTED] here is my script: ?php class Tbug { function add($f) { $this-stuff[] = $f; } function spew() { foreach($this-stuff as $key = $f) echo stuff is [$f]BR; } } function addtobug($f, $bug) { $bug-add($f); return($bug); } // using first choice we have problems, second choice works, why the diff? //$bug = new Tbug(); $bug = new Tbug(); echo call1BR; $bug = addtobug(a, $bug); echo call2BR; $bug = addtobug(b, $bug); echo call3BR; $bug = addtobug(c, $bug); $bug-spew(); ? The work around is to use the second choice of assigning $bug to the reference of the new Object. This does not seem inuitive to me. Why does this code not work otherwise? thanks, tonys. Edit this bug report at http://bugs.php.net/?id=10293edit=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 #11768 Updated: references still have bugs
ID: 11768 Updated by: mfischer Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: Class/Object related Operating System: Linux 2.2.x PHP Version: 4.0 Latest CVS (2001-06-28) New Comment: The line $test = new CUI_Element(test); didn't return $this but a copy of $this. So change it to $test = new CUI_Element(test); and it works. Closed. Previous Comments: [2001-06-28 03:29:46] [EMAIL PROTECTED] When I want to set reference to $this object gets copied. In this example $ui_handler contains copy of object $test. $ui_handler - data is not reference to $test. I use CVS 2001-06-24. ? class CUI_element { var $value; function CUI_element($value) { global $ui_handler; $this - value = $value; $ui_handler - register($this); } } class CUI_handler { var $data; function CUI_handler() { $this - data = false; } function register($element) { $this - data = $element; } }; $ui_handler = new CUI_Handler(); $test = new CUI_Element(test); $test - value = changed; var_dump($ui_handler - data); print br; var_dump($test); print br; ? My output: object(cui_element)(1) { [value]= string(4) test } object(cui_element)(1) { [value]= string(7) changed } Working url: http://biuro.pablosoft.com.pl/~zork/ref/tests.php regards, Zork. Edit this bug report at http://bugs.php.net/?id=11768edit=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 #12277 Updated: in PHP4 constructors still seem to behave like in PHP3
ID: 12277 Updated by: mfischer Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: Class/Object related Operating System: All PHP Version: 4.0.5 New Comment: This is a current implementation limitation. Just define your real C constructor and access the other C method with parent::C(). Closed. Previous Comments: [2001-07-20 07:51:42] [EMAIL PROTECTED] the following code: ? class A { function A() { echo I am the constructor of A.br\n; } } class B extends A { function C() { echo I am a regular function C.br\n; } } class C extends B { } $b = new C(); ? in PHP 4.0.5 prints: I am a regular function C.br is this correct? Edit this bug report at http://bugs.php.net/?id=12277edit=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 #12365 Updated: Problems with classes and links to objects
ID: 12365 Updated by: mfischer Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Class/Object related Operating System: Linux PHP Version: 4.0.6 New Comment: The object $this used in the constructor is not the same as the one returned to $b because it got copied. Assign the new object by reference to $b: $b = new b(); Closed. Previous Comments: [2001-07-25 10:11:26] [EMAIL PROTECTED] ? phpinfo(); class a { function a ($obj) { $this-h = $obj; return true; } } class b { var $d=1; var $item; function b () { $this-item = new a ($this); $this-d++; echo $this-d.'//'.$this-item-h-d.'br';} function c () { $this-item = new a ($this); } } $b = new b (); //$b-c (); // $b-d++; echo $b-d.'--'.$b-item-h-d; /* Try to comment and recomment line I see there is a bug with that sitution: after finishing of object b constructor, link $a-h not linked to b object and $a-h is a copy of object b. I think, this is not right. In constructor $a-h is still link to b, but after finishing the $a-h is a copy of b. */ Edit this bug report at http://bugs.php.net/?id=12365edit=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 #12365 Updated: Problems with classes and links to objects
ID: 12365 Updated by: mfischer Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: Class/Object related Operating System: Linux PHP Version: 4.0.6 New Comment: I said closed :-) Previous Comments: [2001-11-17 13:47:03] [EMAIL PROTECTED] The object $this used in the constructor is not the same as the one returned to $b because it got copied. Assign the new object by reference to $b: $b = new b(); Closed. [2001-07-25 10:11:26] [EMAIL PROTECTED] ? phpinfo(); class a { function a ($obj) { $this-h = $obj; return true; } } class b { var $d=1; var $item; function b () { $this-item = new a ($this); $this-d++; echo $this-d.'//'.$this-item-h-d.'br';} function c () { $this-item = new a ($this); } } $b = new b (); //$b-c (); // $b-d++; echo $b-d.'--'.$b-item-h-d; /* Try to comment and recomment line I see there is a bug with that sitution: after finishing of object b constructor, link $a-h not linked to b object and $a-h is a copy of object b. I think, this is not right. In constructor $a-h is still link to b, but after finishing the $a-h is a copy of b. */ Edit this bug report at http://bugs.php.net/?id=12365edit=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 #13986 Updated: Cannot rollback transaction when die in class
ID: 13986 Updated by: mfischer Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: Class/Object related Operating System: Win2k / Linux + Oracle8i+Apache PHP Version: 4.0.6 New Comment: Do you see the same behavior when not using an object? I.e. moving all the stuff directly in the global namespace for testing purposes (or just use function instead of an object) ? Previous Comments: [2001-11-13 21:56:48] [EMAIL PROTECTED] I have just tried PHP 4.0.6. It has the same problem. [2001-11-09 09:41:58] [EMAIL PROTECTED] Have you tried PHP 4.0.6 ? [2001-11-08 01:47:35] [EMAIL PROTECTED] I am using a database class to manipulate data. I found that when the program is terminated in the class, the transaction will be committed, even I've set the mode to OCI_DEFAULT. The same case occured in both Win2k and Linux with Oracle and Apache. // Schema /* create table test ( id varchar2(5) not null, name varchar2(10), primary key (id) ); // Source Code /// class Database { var $conn, $stmt, $row_data; function Database() { $DB_SERVER = ; $DATABASE= ; $DB_USER = test; $DB_PASSWORD = test; putenv($DATABASE); $this-conn = OCILogon($DB_USER, $DB_PASSWORD, $DB_SERVER); if ($this-conn == false) { die(Cannot connect to server); } } function Query($sql) { $this-stmt = OCIParse($this-conn, $sql); if ($this-stmt == false) { die(Statement Error); } if (OCIExecute($this-stmt, OCI_DEFAULT) == false) { die(Cannot Execute Statment); } } function Commit() { OCICommit($this-conn); } function terminate() { die( Not OK :( ); } } $db = new Database(); $sql = insert into test (id, name) values ('1', '1'); $db-Query($sql); $db-terminate(); // This will commit the transaction, // even the program is terminated. die( OK :) ); // If the program is terminated here, // the transaction is rollbacked. $db-Commit(); [2001-11-08 01:42:41] [EMAIL PROTECTED] I am using a database class to manipulate data. I found that when the problem is terminated in the class, the transaction will be committed, even I've set the mode to OCI_DEFAULT. The same case occured in both Win2k and Linux with Oracle and Apache. // Schema /* create table test ( id varchar2(5) not null, name varchar2(10), primary key (id) ); // Source Code /// class Database { var $conn, $stmt, $row_data; function Database() { $DB_SERVER = ; $DATABASE= ; $DB_USER = test; $DB_PASSWORD = test; putenv($DATABASE); $this-conn = OCILogon($DB_USER, $DB_PASSWORD, $DB_SERVER); if ($this-conn == false) { die(Cannot connect to server); } } function Query($sql) { $this-stmt = OCIParse($this-conn, $sql); if ($this-stmt == false) { die(Statement Error); } if (OCIExecute($this-stmt, OCI_DEFAULT) == false) { die(Cannot Execute Statment); } } function Commit() { OCICommit($this-conn); } function terminate() { die( Not OK :( ); } } $db = new Database(); $sql = insert into test (id, name) values ('1', '1'); $db-Query($sql); $db-terminate(); // This will commit the transaction, // even the program is terminated. die( OK :) ); // If the program is terminated here, // the transaction is rollbacked. $db-Commit();
[PHP-DEV] Where/what is gdImageStringFTEx() ?
I see a check for this function in ext/gd/config.m4, but I see no sign of it in any version of GD I can find. Someone clue me in please. -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] 4.1.0RC2 (fwd)
On Sat, 17 Nov 2001, Derick Rethans wrote: Hello Sascha, this user has some troubles, and suggests that this action should be taken in the configure process. Can I safely merge this in without problems? Looks fine to me. IIRC, this was just some issue with the auto-tools disliking the location of the macros. - Sascha Experience IRCG http://schumann.cx/http://schumann.cx/ircg -- 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: Bugs pending for PHP 4.1.0
At 10:08 16/11/2001, Derick Rethans wrote: Hello, here is my list of important pending bugs which need to be fixed before PHP 4.1.0 can be released IMO. -- Bug 11813 (not really a bug): [ImageGammaCorrect no longer works] Let's keep this open (critical) until it really is solved. And I think there should be two modules in the win32 release, for both 1.8.x and 2.0.x versions of GD. I don't think that should be a showstopper of any kind..? -- Bug 13143 (patch attached): [TSRM fails to build] GCC 2 ignores it, GCC 3 does not. I applied the patch... -- Bug 13703: [PHP allows function redefinition] Something weird going on with multiple function definitions in classes In the hope that we actually release 4.1.0 in this millennium, I think that should also stay unsolved for now. I wouldn't want to touch this part without another RC, and I hope we won't have another RC. This was most probably the behavior since at least 4.0.0, and it's not a crash bug, so I think it can wait for a later version... -- Bug 13711: [set_time_limit affects other requests on the same Apache process] Trying to reproduce this now. Pretty much by definition this cannot happen. We'd have to go through hoops to create this behavior under Linux. Under Windows, there may be a bug that breaks the multithreaded alarm system, and I'll check it out, but for the same reasons above, I don't think it should stale 4.1.0. -- Bug 14014: [Need later config.guess/config.sub] Can someone look at bug#14014 before we do 4.1.0 (or what ever the next release is?) It breaks being able to build on OpenUNIX 8. If somebody gets to look at it - great. Please do it ASAP, as I want to go with 4.1.0 final early next week. If worse comes to worse, we won't have OpenUNIX 8 support in 4.1.0... 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] Adoption of Metabase (was Re: [PEAR-DEV] Re: Comparing ADODB with PEAR DB, Metabase andNative MySQL)
Hello, Stig S. Bakken wrote: Jean-Michel POURE wrote: Optimization can only be achieved at application level, i.e. - in your database structure, - in the core PHP code of your application. Using MySQL, you will never ever achieve good results. Try PostgreSQL with embedded PL/pgSQL language and triggers, this will multiply the speed by 10, at least. Well, not everyone is using SQL databases, for some people (including me), CPU is the real bottleneck. Rewriting the PEAR class to C would IMHO not be foolish: it would save basically everyone using PEAR from parsing ~800 lines of code for each request, and it would speed up error handling and every other basic pear function. To me, that's a well-invested optimization (since everyone benefits from it). There is no great point on using database abstractions unless you want to develop database independent applications by using the same API. The way I see it PEAR-DB does not provide enough database independence. For many things you still have to resort to database specific solutions, so your applications will still not be portable. If they are still not portable using PEAR, you may as well not use PEAR or any other database abstraction package and save yourself of the overhead of using any of such packages. So, database abstraction package should provide true portabilty to applications. If you are going to port PEAR to C you should rethink PEAR design to make it provide portabilty. Proposal: how about porting Metabase API instead? Think about this: - Metabase API already provides true portability to database applications, so you would not need to crack your head doing what Metabase already does. - You could wrap PEAR DB classes around Metabase API so the current PEAR DB users would not need to rewrite they applications. - You could have a portable database API in PEAR right now using the current Metabase PHP implementantion, and not in a year or whatever is the time you would take to port PEAR DB to C. - You could already benefit from Metabase database schema management support features that no other database API offers, not in PHP nor any other language. - You could use Metabase driver conformance test script to verify if you porting efforts of the drivers are being correctly implemented. - Benefit from the already extensive documentation and tutorials that is provided with Metabase. - Benefit from the toons of Metabase based programming components and applications that have been developed. - Stop this silly implicit competition between database abstraction PHP packages. There is much more to gain from cooperating than competing. None of us if making money from it. All popular languages only have a single database abstraction package (Perl-DBI, Java-JDBC, ODBC/ADO for Windows languages, Python-DB, etc..). There is still a wrong idea in the PHP community that there is no abstraction package in PHP. Well, this is what I meant to talk to you in San Diego O'Reilly Open Source Conference and in Frankfurt, but for whatever reasons you could not attend. Anyway, I am giving the hand for cooperation. It is up to you to decide if you would like to take this chance for the benefit of the whole PHP community. Regards, Manuel Lemos -- 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 #14095: fopen/fwrite does not create file via ftp://
From: [EMAIL PROTECTED] Operating system: Windows NT4 SP6a PHP version: 4.0.6 PHP Bug Type: FTP related Bug description: fopen/fwrite does not create file via ftp://; PHP as CGI on NT4SP6a/IIS4. To update a file on the server, I read the old contents into an array, populate a string with modified content, delete the old file, and use fopen/fwrite to write a new one. This worked great on FreeBSD/Apache, now on NT4/IIS4 the new file is not written. There are *no* error messages, but the file is not there. Really messed up is the fact that the file is written successfully when I specify the previous FreeBSD/Apache host in $FTPSite... The following variables are defined before the code below runs: $newcontents $FTPUser $FTPPass (contains special characters, e.g. urb@n) $FTPSite (host.domain.tl) $FTPDoc (/path/filename) [Curiously, I cannot use localhost or an IP address as $FTPSite...(unable to find ftpbuf 0 on ftp_login and ftp_delete as well as php_hostconnect: connect failed on fopen)] // delete previous file via ftp $ftp = ftp_connect($FTPSite); ftp_login($ftp, $FTPUser, $FTPPass); ftp_delete($ftp, $FTPDoc); ftp_quit($ftp); // get file handler $FTPOpen=ftp://; . rawurlencode($FTPUser) . : . rawurlencode($FTPPass) . @ . $FTPSite . $FTPDoc; //echo $FTPOpen . BR; $NewTopTen = fopen($FTPOpen,w); echo $NewTopTen; // write new content to file fwrite($NewTopTen, $newcontents); //close file handle fclose($NewTopTen); -- Edit bug report at: http://bugs.php.net/?id=14095edit=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 #14095 Updated: fopen/fwrite does not create file via ftp://
ID: 14095 Updated by: mfischer Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: FTP related Operating System: Windows NT4 SP6a PHP Version: 4.0.6 New Comment: Can you please test with a more recent version (e.g. from php4win.de) ? Previous Comments: [2001-11-17 17:16:35] [EMAIL PROTECTED] PHP as CGI on NT4SP6a/IIS4. To update a file on the server, I read the old contents into an array, populate a string with modified content, delete the old file, and use fopen/fwrite to write a new one. This worked great on FreeBSD/Apache, now on NT4/IIS4 the new file is not written. There are *no* error messages, but the file is not there. Really messed up is the fact that the file is written successfully when I specify the previous FreeBSD/Apache host in $FTPSite... The following variables are defined before the code below runs: $newcontents $FTPUser $FTPPass (contains special characters, e.g. urb@n) $FTPSite (host.domain.tl) $FTPDoc (/path/filename) [Curiously, I cannot use localhost or an IP address as $FTPSite...(unable to find ftpbuf 0 on ftp_login and ftp_delete as well as php_hostconnect: connect failed on fopen)] // delete previous file via ftp $ftp = ftp_connect($FTPSite); ftp_login($ftp, $FTPUser, $FTPPass); ftp_delete($ftp, $FTPDoc); ftp_quit($ftp); // get file handler $FTPOpen=ftp://; . rawurlencode($FTPUser) . : . rawurlencode($FTPPass) . @ . $FTPSite . $FTPDoc; //echo $FTPOpen . BR; $NewTopTen = fopen($FTPOpen,w); echo $NewTopTen; // write new content to file fwrite($NewTopTen, $newcontents); //close file handle fclose($NewTopTen); Edit this bug report at http://bugs.php.net/?id=14095edit=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] [Fwd: Adoption of Metabase (was Re: [PEAR-DEV] Re: Comparing ADODB with PEAR ]
Hello, It seems that the newsgroup message approval mechanism is not working when you post to more than one newsgroup. Regards, Manuel Lemos ---BeginMessage--- Hello, Stig S. Bakken wrote: Jean-Michel POURE wrote: Optimization can only be achieved at application level, i.e. - in your database structure, - in the core PHP code of your application. Using MySQL, you will never ever achieve good results. Try PostgreSQL with embedded PL/pgSQL language and triggers, this will multiply the speed by 10, at least. Well, not everyone is using SQL databases, for some people (including me), CPU is the real bottleneck. Rewriting the PEAR class to C would IMHO not be foolish: it would save basically everyone using PEAR from parsing ~800 lines of code for each request, and it would speed up error handling and every other basic pear function. To me, that's a well-invested optimization (since everyone benefits from it). There is no great point on using database abstractions unless you want to develop database independent applications by using the same API. The way I see it PEAR-DB does not provide enough database independence. For many things you still have to resort to database specific solutions, so your applications will still not be portable. If they are still not portable using PEAR, you may as well not use PEAR or any other database abstraction package and save yourself of the overhead of using any of such packages. So, database abstraction package should provide true portabilty to applications. If you are going to port PEAR to C you should rethink PEAR design to make it provide portabilty. Proposal: how about porting Metabase API instead? Think about this: - Metabase API already provides true portability to database applications, so you would not need to crack your head doing what Metabase already does. - You could wrap PEAR DB classes around Metabase API so the current PEAR DB users would not need to rewrite they applications. - You could have a portable database API in PEAR right now using the current Metabase PHP implementantion, and not in a year or whatever is the time you would take to port PEAR DB to C. - You could already benefit from Metabase database schema management support features that no other database API offers, not in PHP nor any other language. - You could use Metabase driver conformance test script to verify if you porting efforts of the drivers are being correctly implemented. - Benefit from the already extensive documentation and tutorials that is provided with Metabase. - Benefit from the toons of Metabase based programming components and applications that have been developed. - Stop this silly implicit competition between database abstraction PHP packages. There is much more to gain from cooperating than competing. None of us if making money from it. All popular languages only have a single database abstraction package (Perl-DBI, Java-JDBC, ODBC/ADO for Windows languages, Python-DB, etc..). There is still a wrong idea in the PHP community that there is no abstraction package in PHP. Well, this is what I meant to talk to you in San Diego O'Reilly Open Source Conference and in Frankfurt, but for whatever reasons you could not attend. Anyway, I am giving the hand for cooperation. It is up to you to decide if you would like to take this chance for the benefit of the whole PHP community. Regards, Manuel Lemos ---End Message--- -- 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 #14095 Updated: fopen/fwrite does not create file via ftp://
ID: 14095 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Old Status: Feedback Status: Open Bug Type: FTP related Operating System: Windows NT4 SP6a PHP Version: 4.0.6 New Comment: Unfortunately I do not have authority over that server. But I will try to either set up a test box (don't have NT4 available right now) or convince the admin to upgrade - so is there a known issue? Previous Comments: [2001-11-17 17:32:32] [EMAIL PROTECTED] Can you please test with a more recent version (e.g. from php4win.de) ? [2001-11-17 17:16:35] [EMAIL PROTECTED] PHP as CGI on NT4SP6a/IIS4. To update a file on the server, I read the old contents into an array, populate a string with modified content, delete the old file, and use fopen/fwrite to write a new one. This worked great on FreeBSD/Apache, now on NT4/IIS4 the new file is not written. There are *no* error messages, but the file is not there. Really messed up is the fact that the file is written successfully when I specify the previous FreeBSD/Apache host in $FTPSite... The following variables are defined before the code below runs: $newcontents $FTPUser $FTPPass (contains special characters, e.g. urb@n) $FTPSite (host.domain.tl) $FTPDoc (/path/filename) [Curiously, I cannot use localhost or an IP address as $FTPSite...(unable to find ftpbuf 0 on ftp_login and ftp_delete as well as php_hostconnect: connect failed on fopen)] // delete previous file via ftp $ftp = ftp_connect($FTPSite); ftp_login($ftp, $FTPUser, $FTPPass); ftp_delete($ftp, $FTPDoc); ftp_quit($ftp); // get file handler $FTPOpen=ftp://; . rawurlencode($FTPUser) . : . rawurlencode($FTPPass) . @ . $FTPSite . $FTPDoc; //echo $FTPOpen . BR; $NewTopTen = fopen($FTPOpen,w); echo $NewTopTen; // write new content to file fwrite($NewTopTen, $newcontents); //close file handle fclose($NewTopTen); Edit this bug report at http://bugs.php.net/?id=14095edit=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] Bug #14095 Updated: fopen/fwrite does not create file via ftp://
On Sat, Nov 17, 2001 at 10:52:50PM -, [EMAIL PROTECTED] wrote : Unfortunately I do not have authority over that server. But I will try to either set up a test box (don't have NT4 available right now) or convince the admin to upgrade - so is there a known issue? Can't tell. 'Tests' should never be done in production environments .. - Markus -- 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: [Fwd: Adoption of Metabase (was Re: [PEAR-DEV] Re: Comparing ADODB with PEAR ]
Manuel Lemos [EMAIL PROTECTED] wrote: It seems that the newsgroup message approval mechanism is not working when you post to more than one newsgroup. care to explain what you mean? your post showed up on both lists just fine, as far as i can tell. http://news.php.net/article.php?group=php.devarticle=70755 http://news.php.net/article.php?group=php.pear.devarticle=2959 jim -- 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: [Fwd: Adoption of Metabase (was Re: [PEAR-DEV] Re: Comparing ADODB with PEAR ]
Hello, Jim Winstead wrote: Manuel Lemos [EMAIL PROTECTED] wrote: It seems that the newsgroup message approval mechanism is not working when you post to more than one newsgroup. care to explain what you mean? your post showed up on both lists just fine, as far as i can tell. http://news.php.net/article.php?group=php.devarticle=70755 http://news.php.net/article.php?group=php.pear.devarticle=2959 I just received a confirmation to post in php.pear.dev and only have seen in in there. Maybe I missed the php.dev message for some reason. Regards, Manuel Lemos -- 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: [PEAR-DEV] Re: [Fwd: Adoption of Metabase (was Re: [PEAR-DEV] Re: Comparing ADODB with PEAR ]
On 17 Nov 2001 22:56:52 - Jim Winstead [EMAIL PROTECTED] wrote: Manuel Lemos [EMAIL PROTECTED] wrote: It seems that the newsgroup message approval mechanism is not working when you post to more than one newsgroup. care to explain what you mean? your post showed up on both lists just fine, as far as i can tell. submit 2x in php-dev list. pa -- 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] 4.1.0RC2
Hello, I merged those patches. Can you try the latest CVS version? Derick On Sat, 17 Nov 2001, Balazs Nagy wrote: On Tue, Nov 13 2001, Derick Rethans [EMAIL PROTECTED] wrote: Forgot to attached it... I have downloaded the latest php4 from PHP_4_0_7 branch, and still I can't complile, but I found some patches against the HEAD branch which should applied to PHP_4_0_7 too: http://cvsweb.php.net/diff.php/php4/acinclude.m4?sbt=2r1=1.139r2=1.140ty=u http://cvsweb.php.net/diff.php/php4/configure.in?sbt=2r1=1.273r2=1.274ty=u (acinclude.m4 diff release 1.139 to 1.140 and configure.in diff release 1.273 to 1.274) -- jul -- 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] Derick Rethans - PHP: Scripting the Web - www.php.net - [EMAIL PROTECTED] SRM: Site Resource Manager - www.vl-srm.net - -- 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] CVS Account Request: kurtz
want to help with creating bugs free manual (2 small ones coming ;|). alreay in pl manual trnaslation team. -- 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 #14096: strange behavior with NULL value
From: [EMAIL PROTECTED] Operating system: win2k PHP version: 4.0.6 PHP Bug Type: Unknown/Other Function Bug description: strange behavior with NULL value consider the following script: $a = ; $b = NULL; echo $a == $b ? true : false; /* weird! it does return TRUE */ echo is_null($a) ? true : false; // returns FALSE echo is_null($b) ? true : false; // returns TRUE echo empty($a) ? true : false; // returns TRUE echo empty($b) ? true : false; // returns TRUE echo isset($a) ? true : false; // returns TRUE echo isset($b) ? true : false; // returns FALSE -- Edit bug report at: http://bugs.php.net/?id=14096edit=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 #14096 Updated: strange behavior with NULL value
ID: 14096 Updated by: derick Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: Unknown/Other Function Operating System: win2k PHP Version: 4.0.6 New Comment: It's perfectly normal. The gets converted to NULL here. Use === to check for both contents and type. Derick Previous Comments: [2001-11-17 19:47:49] [EMAIL PROTECTED] consider the following script: $a = ; $b = NULL; echo $a == $b ? true : false; /* weird! it does return TRUE */ echo is_null($a) ? true : false; // returns FALSE echo is_null($b) ? true : false; // returns TRUE echo empty($a) ? true : false; // returns TRUE echo empty($b) ? true : false; // returns TRUE echo isset($a) ? true : false; // returns TRUE echo isset($b) ? true : false; // returns FALSE Edit this bug report at http://bugs.php.net/?id=14096edit=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: Bugs pending for PHP 4.1.0
On Sat, 17 Nov 2001, Zeev Suraski wrote: -- Bug 11813 (not really a bug): [ImageGammaCorrect no longer works] Let's keep this open (critical) until it really is solved. And I think there should be two modules in the win32 release, for both 1.8.x and 2.0.x versions of GD. I don't think that should be a showstopper of any kind..? It is merely a note for the guy who is building the Windows version. IMO, and that of Jani's, there should be a module of both versions. -- Bug 13703: [PHP allows function redefinition] Something weird going on with multiple function definitions in classes In the hope that we actually release 4.1.0 in this millennium, I think that should also stay unsolved for now. I wouldn't want to touch this part without another RC, and I hope we won't have another RC. This was most probably the behavior since at least 4.0.0, and it's not a crash bug, so I think it can wait for a later version... Ok -- Bug 13711: [set_time_limit affects other requests on the same Apache process] Trying to reproduce this now. Pretty much by definition this cannot happen. We'd have to go through hoops to create this behavior under Linux. Under Windows, there may be a bug that breaks the multithreaded alarm system, and I'll check it out, but for the same reasons above, I don't think it should stale 4.1.0. THis was reproduced by sander. Sander, do you have more information? -- Bug 14014: [Need later config.guess/config.sub] Can someone look at bug#14014 before we do 4.1.0 (or what ever the next release is?) It breaks being able to build on OpenUNIX 8. If somebody gets to look at it - great. Please do it ASAP, as I want to go with 4.1.0 final early next week. If worse comes to worse, we won't have OpenUNIX 8 support in 4.1.0... I just requested (and got) an account on the box. I'll play with it tomorrow, first thing in the morning. Derick -- 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 #14097: newlines in file function
From: [EMAIL PROTECTED] Operating system: Linux PHP version: 4.0.6 PHP Bug Type: Filesystem function related Bug description: newlines in file function Using the file function, newlines (\n) are included in the read. The causes odd behaviour in other functions such as: mail - If the subject parameter is loaded using the file function, the newline causes the headers sent using mail to be invalid. In the case of Eudora the header information is dispalyed in the message and the From field displays the server account that generated the message - in my case WWW User. array_search - All efforts to use this function fail with an array created with the file function. Only through the following cose will it produce the results expected: $someArray = str_replace (array(\r, \n), '', $someArray); (Thanks to Zak Greant for this code :) in_array - Much like array_search, the results are misleading due to the presence of newlines. A match is never found even though an echo of the array being tested looks identical to the target string/integer. -- Edit bug report at: http://bugs.php.net/?id=14097edit=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] Additional ENV Vars with Apache 2.0.28 and PHP 4.1.0 RC2
You should really not assume you are talking to a newbie when replying to people. It is rude. As I am asking about an unreleased, RC version of PHP and it has significant changes in how variables are access by the user, I feel my question is valid in this area. If you do not know the answer, please do not comment with a prepared newbie reply. FYI, - Original Message - From: Zak Greant [EMAIL PROTECTED] To: Brian Moon [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Saturday, November 17, 2001 12:45 AM Subject: Re: [PHP-DEV] Additional ENV Vars with Apache 2.0.28 and PHP 4.1.0 RC2 | On November 16, 2001 11:02 pm, you wrote: | Hi all, | | Doing some playing around with new stuff and I have a question. How | do I access variables like HTTP_USER_AGENT with the above | combination? Is it PHP or Apache that is hiding it from me? I know | some things changed in 4.1 but I thought this stuff would still be | accessible. | | This is not the right forum for support questions - please use PHP- | General instead. | | To briefly answer your question, there are configuration directives | that control how environment variables, post variables, get variables, | etc. are presented to the user. Review the manual section on | configuration for more information. | | You can see where things are located using the phpinfo() function. :) | | -- | Zak Greant | | PHP Quality Assurance Team | http://qa.php.net/ | | We must be the change we wish to see. - M. K. Ghandi | | | -- 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 #14097 Updated: newlines in file function
ID: 14097 Updated by: sniper Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: Filesystem function related Operating System: Linux PHP Version: 4.0.6 New Comment: This is by design. Even the manual page for file() says it. :) (Or was this a feature/change request to strip them?) Previous Comments: [2001-11-17 21:52:19] [EMAIL PROTECTED] Using the file function, newlines (\n) are included in the read. The causes odd behaviour in other functions such as: mail - If the subject parameter is loaded using the file function, the newline causes the headers sent using mail to be invalid. In the case of Eudora the header information is dispalyed in the message and the From field displays the server account that generated the message - in my case WWW User. array_search - All efforts to use this function fail with an array created with the file function. Only through the following cose will it produce the results expected: $someArray = str_replace (array(\r, \n), '', $someArray); (Thanks to Zak Greant for this code :) in_array - Much like array_search, the results are misleading due to the presence of newlines. A match is never found even though an echo of the array being tested looks identical to the target string/integer. Edit this bug report at http://bugs.php.net/?id=14097edit=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] Where/what is gdImageStringFTEx() ?
Preparing for future? :) 1.139 wez 05 Jul 2001 17:23 Made imagegammacorrect() work on true-color images. Added support for new ImageStringFTEx function (due in GD 2.0.2) --Jani On Sat, 17 Nov 2001, Rasmus Lerdorf wrote: I see a check for this function in ext/gd/config.m4, but I see no sign of it in any version of GD I can find. Someone clue me in please. -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 #13143 Updated: TSRM fails to build
ID: 13143 Updated by: sniper Reported By: [EMAIL PROTECTED] Old Status: Critical Status: Closed Bug Type: Compile Failure Operating System: HPUX 11.00 - gcc 3.0.1 PHP Version: 4.0CVS-2001-09-04 New Comment: Fixed in CVS (by Zeev) --Jani Previous Comments: [2001-10-23 10:40:16] [EMAIL PROTECTED] This bug report shows that this was just ignored in precvious GCC versions. The gcc 3.0.x version will produce an error. http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=viewpr=2663database=gcc This has to be fixed. --Jani [2001-09-04 18:57:24] [EMAIL PROTECTED] This problem is identical to that reported in bugid 12195, but still occurs on HPUX 11.00 compiled with gcc 3.0.1 even on the latest CVS code. Configured with: ./configure --with-apxs=/opt/apache/bin/apxs Build results in: /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main -DHPUX11 -DMOD_SSL=208104 -DUSE_HSREGEX -DEAPI -DEAPI_MM -DUSE_EXPAT -I../TSRM -g -O2 -c -o tsrm_virtual_cwd.lo `test -f tsrm_virtual_cwd.c || echo './'`tsrm_virtual_cwd.c tsrm_virtual_cwd.c: In function `virtual_open': tsrm_virtual_cwd.c:556: `mode_t' is promoted to `int' when passed through `...' tsrm_virtual_cwd.c:556: (so you should pass `int' not `mode_t' to `va_arg') make[1]: *** [tsrm_virtual_cwd.lo] Error 1 make[1]: Leaving directory `/CML/rts/build/php4/TSRM' make: *** [all-recursive] Error 1 Edit this bug report at http://bugs.php.net/?id=13143edit=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] Additional ENV Vars with Apache 2.0.28 and PHP 4.1.0 RC2
I just compiled with the latest CVS and yes it is there. Thanks, Brian. - Original Message - From: Rasmus Lerdorf [EMAIL PROTECTED] To: Sebastian Bergmann [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Saturday, November 17, 2001 5:57 AM Subject: Re: [PHP-DEV] Additional ENV Vars with Apache 2.0.28 and PHP 4.1.0 RC2 | Zak Greant wrote: | This is not the right forum for support questions - please use | PHP-General instead. | |I think this is the right forum for this, since the Apache2Filter is |still under development. AFAIK it currently does not export most of |the common variables. | | Didn't Doug fix this just the other day in HEAD? | | -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 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 #11957 Updated: session url rewrite isn't working
ID: 11957 Updated by: sebastian Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: Session related Operating System: Win ME PHP Version: 4.0.6 New Comment: The URL Rewriter works fine under Windows, too. Previous Comments: [2001-07-08 02:03:23] [EMAIL PROTECTED] I was wondering how you would make PHP rewrite URLs according to url_rewriter.tags for sessions. If you make session.use_trans_sid be one to turn it on, it isn't working on my system. I was wondering why it wasn't and what I can do about it. That flag you put while compiling it, I don't think applies to windows. Is it built into the windows one? Thanks. Edit this bug report at http://bugs.php.net/?id=11957edit=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 #12230 Updated: Error with Object saved in Session
ID: 12230 Updated by: sebastian Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: Session related Operating System: HP Unix 10 PHP Version: 4.0.5 New Comment: This is not a bug. Please have a look at the error message: 'The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition test of the object you are trying to operate on was loaded _before_ the session was started'. Previous Comments: [2001-07-18 09:36:54] [EMAIL PROTECTED] I have the follow Problem: Fatal error: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition test of the object you are trying to operate on was loaded _before_ the session was started in /u4_1/www/rf/includes/all_sicherheit.inc on line 3 Very simple: In file 1: class foo { ... } $x=new foo $x-... = 123; session_register(x); in 2. file: class foo { ... } echo $x-...; When I do a session_register(x) befor I printed $x-... it get the same error. Is there a Workaround? Edit this bug report at http://bugs.php.net/?id=12230edit=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 #12915 Updated: session_write_close() has to be called explicitly
ID: 12915 Updated by: sebastian Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: Session related Operating System: Linux 2.4.9 (Debian woody) PHP Version: 4.0.6 New Comment: Does this problem persist with the current release candidate for PHP 4.1.0? It can be found at http://www.php.net/~zeev/php-4.1.0RC2.tar.gz. Previous Comments: [2001-08-22 21:04:44] [EMAIL PROTECTED] Sessions work correctly if session.save_handler is set to 'files', but if I set it to 'user' and I set up a new save handler with session_set_save_handler(), then afterwards I have to call session_write_close() at the end of every script, otherwise the session data doesn't get written out (to a database in my case) I tested it with PHP 4.0.6, and apache 1.3.20. PHP has to following extensions loaded: gd, mysql, ldap. Edit this bug report at http://bugs.php.net/?id=12915edit=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 #13096 Updated: session_register doesn't work with 16 character variable name
ID: 13096 Updated by: sebastian Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: Session related Operating System: Windows NT 4 Sp6 PHP Version: 4.0.6 New Comment: The following script works fine with PHP 4.1.0 RC2 ?php session_register(MMBetaDepart,MMBetaDepartment); echo ++$MMBetaDepartment; echo ++$MMBetaDepart; ? Previous Comments: [2001-09-02 15:20:37] [EMAIL PROTECTED] Example Code: $MMBetaDepartment = 'bad name'; $MMBetaDepart = 'good name'; session_register(MMBetaDepart,MMBetaDepartment); echo $MMBetaDepartment; echo $MMBetaDepart; [2001-09-02 15:16:28] [EMAIL PROTECTED] Trying to register a variable with 16 characters in it's name doesn't work Edit this bug report at http://bugs.php.net/?id=13096edit=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 #13298 Updated: Object unserialization and session_start
ID: 13298 Updated by: sebastian Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: Session related Operating System: any PHP Version: 4.0.6 New Comment: This is not a bug. Previous Comments: [2001-09-14 06:06:41] [EMAIL PROTECTED] I saw many reports about object serialization/unserialization and I want to clarify what I understood. Let's say you have the file 'foo.php' that defines the class 'foo': ?php class foo { var $bar = 0; function foo() { $this-bar = 1; } } ? and another file that uses this class: ?php include_once 'foo.php'; start_session(); if(!isset($f)) { $f = new foo(); session_register('f'); print New objectbr; } else { $f-bar = 5; print Object from sessionbr; } ? This code works, but if I: 1) put start_session() BEFORE the inclusion of foo.php 2) execute some code BEFORE the inclusion of foo.php 3) set session.auto_start to 1 in php.ini I will receive this error: Fatal error: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition foo of the object you are trying to operate on was loaded _before_ the session was started in ... This is due to the fact that in the moment you execute even a single line of code php starts the unserialization. In practice, with this behaviour, it's impossible to work with object in session with session.auto_start set. Will there be a workaround or a solution to this problem? Edit this bug report at http://bugs.php.net/?id=13298edit=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 #11527 Updated: session_unregister() seems not work properly
ID: 11527 Updated by: sebastian Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: Session related Operating System: FreeBSD 4.3 STABLE PHP Version: 4.0.5 New Comment: This is not a bug. Reading the comments on http://www.php.net/manual/en/function.session-unregister.php should make this clear. Previous Comments: [2001-06-20 06:27:11] [EMAIL PROTECTED] Hi Jani, does your comment mean register_globals off is deprecated? I don't think so. :) [2001-06-19 12:26:29] [EMAIL PROTECTED] You should be using this: $somevar = abc; Not the globals array. Works for me with PHP 4.0.6RC3 just fine then. http://www.php.net/~andi/php-4.0.6RC3.tar.gz [2001-06-18 21:24:42] [EMAIL PROTECTED] Yes, when you unregister something, you also need to unset it if you want it to be unset immediately. Maybe I was wrong, but Unregister takes place in the SECOND script, and the THIRD one still record the unregistered variable [2001-06-18 08:56:39] [EMAIL PROTECTED] Yes, when you unregister something, you also need to unset it if you want it to be unset immediately. [2001-06-17 21:41:40] [EMAIL PROTECTED] Well I found a solution. Just replace session_unregister() by unset() statement. 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=11527 Edit this bug report at http://bugs.php.net/?id=11527edit=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 #11852 Updated: Session ID not transferred correctly within framesets
ID: 11852 Updated by: sebastian Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: Session related Operating System: Win98SE PHP Version: 4.0.6 New Comment: 1.) Sessions work fine for me with frames. 2.) Please test your script(s) with http://www.php.net/~zeev/php-4.1.0RC2.tar.gz Thanks. Previous Comments: [2001-07-03 05:43:53] [EMAIL PROTECTED] starting indexfile: session_start() session_register(var) in the header of the frameset definition (index) file, even transferring the ?=SID? directly to the contained frame (control) can't convince the control-file to take on the same session id as the indexfile has submitted to it. starting controlfile: session_start() tried everything. all worked perfect on the 4.0.5 release! i can't find any scripting bug... Edit this bug report at http://bugs.php.net/?id=11852edit=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 #10686 Updated: Bug in mktime() on values out of bounds
ID: 10686 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Assigned Bug Type: Date/time related Operating System: MacOS X 10.0.2 (Darwin) PHP Version: 4.0.5 Old Assigned To: kalowsky Assigned To: New Comment: From: Abner Diaz [EMAIL PROTECTED] I can verify the behavior of PHP Bug ID 10686 (http:// bugs.php.net/bug.php?id=10686), regarding mktime malfunctions in OS X 10.1/Darwin 1.4. The fixes to datetime.c posted by [EMAIL PROTECTED] worked well. Thanks! Sincerely, Abner Diaz Previous Comments: [2001-10-23 09:03:49] [EMAIL PROTECTED] Does it looks well? (Same in MacOS X 10.1 and Darwin 1.4.1) [2001-08-18 21:30:34] [EMAIL PROTECTED] i have a MacOSX box now so I'll test this out and submit it if it looks good... [2001-06-11 14:28:32] [EMAIL PROTECTED] you can use Darwin/Intel (see: http://www.darwinfo.de), if Sorry. Informations about Darwin you can find on: - http://www.darwinfo.org/ - http://www.apple.com/darwin/ Dieter [2001-06-09 07:38:48] [EMAIL PROTECTED] Von: Trevis Tagawa [EMAIL PROTECTED] Datum: Sam, 09. Jun. 2001 01:12:46 Europe/Berlin An: [EMAIL PROTECTED] Betreff: Thanks! just wanted to extend a thanks to you for posting the fix. searched the net high and low but found your fix on the php site. aloha! trevis. - Trevis Tagawa Instructional Systems Analyst Kamehameha Schools 1887 Makuakane Street Honolulu, HI 96817 [2001-05-14 14:59:14] [EMAIL PROTECTED] Ill look into getting darwin x86 tomorrow. - James 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=10686 Edit this bug report at http://bugs.php.net/?id=10686edit=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 #14091: Problem with main example on the MySQL Functions page
From: [EMAIL PROTECTED] Operating system: RHL 6.1 PHP version: 4.0.6 PHP Bug Type: Documentation problem Bug description: Problem with main example on the MySQL Functions page On the LV. MySQL Functions page of the PHP Manual, there is a piece of example code, demonstrating how to connect to MySQL, send a query and output the result of that query. The part I'm concerned about goes like this: print table\n; while ($line = mysql_fetch_array($result)) { print \ttr\n; while(list($col_name, $col_value) = each($line)) { print \t\ttd$col_value/td\n; } print \t/tr\n; } print /table\n; When I reproduced this example, something went wrong. Specifically, every value was printed twice. I'll elaborate on that - If my source table looked like this: id name - 1blah 2foo 3bar Then the above code produced: 1 1 blah blah 2 2 foo foo 3 3 bar bar My guess is that, because mysql_fetch_array supplies BOTH associative and numerical indexes, using the while(list = each) format references two key/value pairs for every one. When I used mysql_fetch_assoc instead of mysql_fetch_array, the example worked perfectly. I assume that it would also work if you specified MYSQL_ASSOC or MYSQL_NUM for mysql_fetch_arry, but I haven't tested it. Feel free to email me if you need more detailed information. Sincerely, BJ -- Edit bug report at: http://bugs.php.net/?id=14091edit=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 #14091 Updated: Problem with main example on the MySQL Functions page
ID: 14091 Updated by: goba Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: Documentation problem Operating System: RHL 6.1 PHP Version: 4.0.6 New Comment: You are right, mysql_fetch_array() uses MYSQL_BOTH by default. I have just corrected the example, and added some comments, so it works OK... Do not expect it to show up in a day, as the HTML generation from XML is done daily. Previous Comments: [2001-11-17 06:07:34] [EMAIL PROTECTED] On the LV. MySQL Functions page of the PHP Manual, there is a piece of example code, demonstrating how to connect to MySQL, send a query and output the result of that query. The part I'm concerned about goes like this: print table\n; while ($line = mysql_fetch_array($result)) { print \ttr\n; while(list($col_name, $col_value) = each($line)) { print \t\ttd$col_value/td\n; } print \t/tr\n; } print /table\n; When I reproduced this example, something went wrong. Specifically, every value was printed twice. I'll elaborate on that - If my source table looked like this: id name - 1blah 2foo 3bar Then the above code produced: 1 1 blah blah 2 2 foo foo 3 3 bar bar My guess is that, because mysql_fetch_array supplies BOTH associative and numerical indexes, using the while(list = each) format references two key/value pairs for every one. When I used mysql_fetch_assoc instead of mysql_fetch_array, the example worked perfectly. I assume that it would also work if you specified MYSQL_ASSOC or MYSQL_NUM for mysql_fetch_arry, but I haven't tested it. Feel free to email me if you need more detailed information. Sincerely, BJ Edit this bug report at http://bugs.php.net/?id=14091edit=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 #14094: Documentation for @new is missing
From: [EMAIL PROTECTED] Operating system: PHP version: 4.0.6 PHP Bug Type: Documentation problem Bug description: Documentation for @new is missing The documentation about classes/objects misses that you actually can prevent exposing errors in the constructor by using @new. And, it should also mentioned that you can't use the '@' operator with new. $obj = @new classname; // ok, works $obj = @new classname; // parser error new classname is a special case, therefore you can't mute it. -- Edit bug report at: http://bugs.php.net/?id=14094edit=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]