[PHP-DEV] Bug #11416 Updated: exec() system() don't work completely

2001-06-18 Thread sniper

ID: 11416
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: Program Execution
Operating system: 
PHP Version: 4.0 Latest CVS (2001-06-07)
Assigned To: 
Comments:

submitted 5 times

Previous Comments:
---

[2001-06-12 03:38:36] [EMAIL PROTECTED]
I've executed this script:

?php
exec(calc.exe);
?

A new calc.exe process is started, but no window appears and IE keeps opening
the script! I click on stop icon. The script is stopped, but the calc process is still
there. I can't kill it, although I'm logged with Admin. privs.

Why is it impossible to run GUI apps ?


---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11416edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Re: Bug #11520 Updated: Same eregi() script, different OS's, different results

2001-06-18 Thread David Taylor

sniper,

would i have to recompile the bad boy to enabled
bundled regex?  

I installed a precompiled rpm for php 4.0.5, btw I
updated my system and problem still was not solved :(
because it is using system regex (presumably the
problem).

dave

--- Bug Database [EMAIL PROTECTED] wrote:
 ID: 11520
 Updated by: sniper
 Reported By: [EMAIL PROTECTED]
 Old-Status: Open
 Status: Closed
 Bug Type: *Regular Expressions
 Operating system: 
 PHP Version: 4.0.4pl1
 Assigned To: 
 Comments:
 
 What does it say in all of those systems in the
 phpinfo()
 output for Regex Library?? Safest would be to use
 the bundled one in all of them. 
 
 You should also update to PHP 4.0.5 as it has some
 fixes
 regarding regexps.
 
 
 
 Previous Comments:

---
 
 [2001-06-17 11:30:45] [EMAIL PROTECTED]
 This script from www.4cm.com works on Win NT 4.0sp6a
 and Win 2k Server without any problem, but fails on
 two different Red Hat Linux 7.1 machines.  One 7.1
 machine is a Dell 166mhz with a 48mb of ram, the
 other is a Dell P3 600mhz with 384mb of ram. All
 machines are using php 4.0.4pl1. The red hat
 machines installed php at install time, server class
 installation, no mod_php installed (at least that's
 what rpm -qi mod_php said). Apache is compiled with
 mod_so.c
 
 ?php

###
 # Script Title: 4CM_Grabber
 # File: 4CM_Grabber.php
 #  Description: This script will Grab information
 from a given web site
 #   Author: John B. Abela
 #Email: [EMAIL PROTECTED]
 #  Web: http://www.4cm.com/
 #  Version: 2.0.5
 #
 #  Copyright © 1996-2000 www.4cm.com.  All Rights
 Reserved.
 #
 #
 #  www.4cm.com (4CM) offers no warranties on this
 script.
 #  The downloader of the script is solely
 responsible for any
 #  problems caused by the installation of the script
 or use
 #  of the script, including possible legal action
 for the grabbing
 #  of the data, as a result of this script!
 #
 #  ALL COPYRIGHT NOTICES REGARDING: www.4cm.com
 #  MUST REMAIN INTACT IN THE SCRIPT AND IN THE HTML
 OF THE SCRIPT!  
 #
 #  For more info on this script, see:
 #  http://www.4cm.com/
 #
 #  (Please be kind and sign our guestbook at:
 # http://www.4cm.com/guestbook/  and say your
 using
 #   this script!!)

###
 
 
 ## Mandatory Setting  ##
 
 
 $GrabURL = http://www.theregister.co.uk;;  //- 
 Complete URL Of The Page Your Grabbing From!
 $GrabStart = !-- /td/Tr --;  //- HTML Code
 To Start Grab. Must Be A Unique Bit Of Code!
 $GrabEnd = IMG SRC='/Themes/Normal/Sections.gif'
 ALT='Sections' BORDER='0' WIDTH='150' HEIGHT='15';
  //- HTML Code To End Grab. Must Be A Unique Bit Of
 Code!
 
 #
 ## Do Not Edit Below Here  ##
 ## Do Not Edit Below Here  ##
 #
 $OpenFile = fopen($GrabURL, r); //- DO NOT
 CHANGE
 $RetrieveFile = fread($OpenFile, 20);  //-
 Reduce This To Save Memory
 $GrabData = eregi($GrabStart(.*)$GrabEnd,
 $RetrieveFile, $DataPrint);
 // $DataPrint[1] = str_replace(, ,
 $DataPrint[1]);   //- Un-Comment This Line for
 Replace purposes!
 // $DataPrint[1] = str_replace(, ,
 $DataPrint[1]);   //- Un-Comment This Line for
 Replace purposes!
 fclose($OpenFile); //- DO NOT CHANGE
 echo $DataPrint[1]; //- DO NOT CHANGE
 
 ## End of Script  ##
 
 ?
 
 If i change the $GrabData = eregi(... line to
 $GrabData = eregi($GrabStart(.*), ... basically
 taking out the $GrabEnd, the script works.  If i
 replace $GrabStart with $GrabEnd, the script works.
 
 BUT, it will not work if I have both in the
 expression (on the Red Hat Linux 7.1 machines).
 
 Why?
 

---
 
 
 
 ATTENTION! Do NOT reply to this email!
 To reply, use the web interface found at
 http://bugs.php.net/?id=11520edit=2
 


__
Do You Yahoo!?
Spot the hottest trends in music, movies, and more.
http://buzz.yahoo.com/

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #11410 Updated: Debug function: get caller function stack

2001-06-18 Thread sniper

ID: 11410
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: Feature/Change Request
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

submitted twice


Previous Comments:
---

[2001-06-11 17:39:20] [EMAIL PROTECTED]
It would be a *HUGE* debugging help, if there would be a function that returns the 
current caller function stack. So on a given position or in an error condition, one 
could just output the nested function calls to this position. 

Debugging without is quite hard if you have utility functions/methods that are used 
widely in a project. If they produce an error because of the params, how can u find 
out which function/method called it (thus must be debugged)?

Such a debugging function would just be great - imho of better use than the variables 
snapshot with the current debug functions.

Regards, Martin Bachmann



---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11410edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #11417 Updated: exec() system() don't work completely

2001-06-18 Thread sniper

ID: 11417
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: Program Execution
Operating system: 
PHP Version: 4.0 Latest CVS (2001-06-07)
Assigned To: 
Comments:

submitted 5 times

Previous Comments:
---

[2001-06-12 03:49:14] [EMAIL PROTECTED]
I've executed this script:

?php
exec(calc.exe);
?

A new calc.exe process is started, but no window appears and IE keeps opening
the script! I click on stop icon. The script is stopped, but the calc process is still
there. I can't kill it, although I'm logged with Admin. privs.

Why is it impossible to run GUI apps ?


---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11417edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #11445 Updated: PHP4+IMAP+APACHE 1.3.20 causes undefined symbol: mxdriver

2001-06-18 Thread andu

ID: 11445
User Update by: [EMAIL PROTECTED]
Old-Status: Closed
Status: Open
Bug Type: IMAP related
Operating system: Linux RedHat 7.1
PHP Version: 4.0.5
Description: PHP4+IMAP+APACHE 1.3.20 causes undefined symbol: mxdriver

I've tried it with the latest version o imap and I still get the error

Previous Comments:
---

[2001-06-12 18:53:48] [EMAIL PROTECTED]
Closed, not bogus..


---

[2001-06-12 18:53:28] [EMAIL PROTECTED]
You need to install the DEVEL rpms to compile anything.
And in case of Redhat, I suggest you get the IMAP-2000 sources from their site and 
compile it yourself.

Also, get the latest release candidate of PHP from here:

http://www.php.net/~andi/php-4.0.6RC3.tar.gz 

as it has some fixes related to IMAP.


--Jani


---

[2001-06-12 17:14:19] [EMAIL PROTECTED]
Hello,
If I try to compile PHP4 with IMAP support and Apache 1.3.20
I get the following error while starting the webserver: undefined symbol: mxdriver.
Here's how I configured Apache:
./configure 
--with-layout=Apache 
--enable-module=ssl 
--enable-module=so 
--enable-module=access 
--enable-module=alias 
--enable-module=mime 
--enable-module=status 
--with-perl=/usr/bin/perl

Here's the one for PHP
./configure 
--with-apxs=/usr/local/apache/bin/apxs 
--with-config-file-path=/etc 
--enable-bcmath 
--with-bz2 
--enable-calendar 
--enable-ftp 
--with-gd=/usr/ 
--with-jpeg-dir=/usr/ 
--with-xpm-dir=/usr/ 
--with-imap 
--with-kerberos 
--with-mysql=/usr/local/mysql/ 
--with-pspell 
--enable-trans-sid 
--enable-sockets
Please help, this is urgent
Thank you !

P.S: I alo tried using export LDFLAGS=-L/usr/kerberos/lib -lkrb5 -lgssapi_krb5 -lpam
before runnig configure. The IMAP is the one that comes with REDHAT

---


Full Bug description available at: http://bugs.php.net/?id=11445


-- 
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 #11420 Updated: exec() system() don't work completely

2001-06-18 Thread sniper

ID: 11420
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: Program Execution
Operating system: 
PHP Version: 4.0 Latest CVS (2001-06-07)
Assigned To: 
Comments:

use COM extension for that.


Previous Comments:
---

[2001-06-12 04:57:43] [EMAIL PROTECTED]
I've executed this script:

?php
exec(calc.exe);
?

A new calc.exe process is started, but no window appears and IE keeps opening
the script! I click on stop icon. The script is stopped, but the calc process is still
there. I can't kill it, although I'm logged with Admin. privs.

Why is it impossible to run GUI apps ?


---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11420edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #11134 Updated: PHP Coredumps/Bus Error

2001-06-18 Thread sniper

ID: 11134
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Closed
Bug Type: Reproducible crash
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

No feedback. Try changing the order in which the DSO are loaded.


Previous Comments:
---

[2001-05-27 13:24:18] [EMAIL PROTECTED]
Can you provide a backtrace too? (with gdb perhaps?)

Derick

---

[2001-05-27 04:56:02] [EMAIL PROTECTED]
I am running a very standard setup -- Apache 1.3.20, with mod_ssl and mod_php4 
compiled as DSO's.

Error log says:

[Sun May 27 01:35:15 2001] [notice] child pid 7949 exit signal Segmentation Fault (11)
[Sun May 27 01:35:19 2001] [notice] child pid 7950 exit signal Segmentation Fault (11)
[Sun May 27 01:35:23 2001] [notice] child pid 7929 exit signal Segmentation Fault (11)
[Sun May 27 01:35:31 2001] [notice] child pid 7951 exit signal Bus Error (10)
[Sun May 27 01:44:28 2001] [notice] child pid 7973 exit signal Segmentation Fault (11)
[Sun May 27 01:44:30 2001] [notice] child pid 7944 exit signal Segmentation Fault (11)
[Sun May 27 01:44:33 2001] [notice] child pid 7941 exit signal Segmentation Fault (11)
[Sun May 27 01:44:40 2001] [notice] child pid 7987 exit signal Segmentation Fault (11)
[etc..]

Apache config:

./configure 
--with-layout=Apache 
--enable-module=ssl 
--enable-shared=max 
--prefix=/usr/local/apache 
--enable-module=log_referer 
--enable-module=vhost_alias 
--enable-module=ssl 
--enable-module=log_config 
--enable-module=log_agent 
--enable-suexec 
--suexec-caller=apache 
--suexec-userdir=/export/home 
--suexec-docroot=/export/home 
$@

PHP4 config:

./configure  --with-mysql=/usr/local/mysql --with-apxs=/usr/local/apache/bin/apxs

truss leading up to the crash:
7951:   fstat64(5, 0xFFBEB288)  = 0
7951:   getsockopt(5, 65535, 8192, 0xFFBEB388, 0xFFBEB384, 864) = 0
7951:   setsockopt(5, 65535, 8192, 0xFFBEB388, 4, 864)  = 0
7951:   fcntl(5, F_SETFL, 0x0082)   = 0
7951:   read(5, 0x002762C0, 8192)   Err#11 EAGAIN
7951:   fstat64(5, 0xFFBEB288)  = 0
7951:   getsockopt(5, 65535, 8192, 0xFFBEB388, 0xFFBEB384, 0) = 0
7951:   setsockopt(5, 65535, 8192, 0xFFBEB388, 4, 0)= 0
7951:   fcntl(5, F_SETFL, 0x0002)   = 0
7951:   write(5, 06

-- 
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 #11146 Updated: string processing

2001-06-18 Thread sniper

ID: 11146
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Bogus
Bug Type: Strings related
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

no feedback.


Previous Comments:
---

[2001-05-29 06:46:33] [EMAIL PROTECTED]
How doesn't it work? And I guess that $str_replace.. (the $ in front of it) is a typo.

--Jani


---

[2001-05-27 19:49:28] [EMAIL PROTECTED]
IIS+php4isapi.dll

$userfile=$str_replace(\\,\,$userfile);
doesnt work
on Slackware linux 7.1 + apache +PHP4  win98+apache+php4 it works

i rtied 2 use split function and then join the parts separating with \ but also had 
c:\file in filepaths


---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11146edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #11178 Updated: possible off-by-one error in fgetcsv

2001-06-18 Thread sniper

ID: 11178
Updated by: sniper
Reported By: wolfram.schmidt@e-prolde
Old-Status: Feedback
Status: Closed
Bug Type: Filesystem function related
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

No feedback. Should be fixed. (can't reproduce)


Previous Comments:
---

[2001-05-30 05:38:04] [EMAIL PROTECTED]
Do you have any test case that shows this possible error?
Since it works just fine for me..

--Jani


---

[2001-05-29 19:27:23] wolfram.schmidt@e-prolde
ext/standard/file.c line 1890-1917 in function fgetcsv

/* add single space - makes it easier to parse trailing null field */
*tptr++ = ' ';
*tptr = 0;

I think if FP_FGETS returns exactly len bytes and there are no traling whitespaces the 
0 will be written behind the buf's end.


---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11178edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #11184 Updated: mail() is not supported in this PHP build

2001-06-18 Thread sniper

ID: 11184
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Closed
Bug Type: Mail related
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

No feedback. (and works fine for me)


Previous Comments:
---

[2001-05-30 06:20:29] [EMAIL PROTECTED]
Is the /usr/sbin/sendmail a regular file or a link?

Check the main/php_config.h file for HAVE_SENDMAIL
define. If it is not set, edit the file and add this line:

#define HAVE_SENDMAIL 1

Then just do 'make ; make install' and same for Apache
and you should be able to use mail() again.


--Jani


---

[2001-05-30 01:24:22] [EMAIL PROTECTED]
PHP was configured with the following :

./configure 
--with-mysql=/usr/local/mysql 
--with-xml 
--with-openssl=../openssl-0.9.6a 
--with-gettext 
--with-apache=../apache_1.3.20 
--enable-track-vars 
--enable-force-cgi-redirect 
--with-imap=../imap-2001.BETA.SNAP-0105251616 
--with-imap-ssl 

This is the simple mail script I used to test the mail() function :

?php

$mail_to = [EMAIL PROTECTED];
$mail_subject = PHP test mail() ;
$mail_body =  i hope that this mail() function works ! n;
$mail_body .=  this is supposed to come on the second line n;
$mail_body .=  and this on the third line n;

if (mail($mail_to, $mail_subject, $mail_body))
echo Successfully sent the email $mail_subject to $mail_to .;
else echo Failed to send the e-mail $mail_subject. ;

?

I using qmail 1.03 so I used the sendmail wrapper, the only change made to the default 
php.ini file was this :

sendmail_path   =   /usr/sbin/sendmail -t 

Upon running the above mentioned script, I get the error 

mail() is not supported in this PHP build on line 9
Failed to send the e-mail PHP test mail() .

Therefore I tried recompiling php-4.0.4pl1 and installing it, and was able to run the 
same script with no errors !

I hope that this problem is resolved. 

Thanks a lot !
Firas



---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11184edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #11521: session handling garbage collection

2001-06-18 Thread info

From: [EMAIL PROTECTED]
Operating system: Win2000
PHP version:  4.0.5
PHP Bug Type: Scripting Engine problem
Bug description:  session handling garbage collection

Is this a bug? It seems that the garbage collection routine doesn't start 
automatically (waited 1 day). It works fine if I call the my_session_gc($maxtime) at 
the start of each session.


php.ini:
session.auto_start
 Off Off 
session.cache_expire
 180 180 
session.cache_limiter
 nocache nocache 
session.cookie_domain
 no value no value 
session.cookie_lifetime
 0 0 
session.cookie_path
 / / 
session.cookie_secure
 Off Off 
session.entropy_file
 no value no value 
session.entropy_length
 0 0 
session.gc_maxlifetime
 60 60 
session.gc_probability
 1 1 
session.name
 PHPSESSID PHPSESSID 
session.referer_check
 no value no value 
session.save_handler
 user user 
session.save_path
 c:\php\sessiondata c:\php\sessiondata 
session.serialize_handler
 php php 
session.use_cookies
 Off Off 



-- 
Edit Bug report at: http://bugs.php.net/?id=11521edit=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 #11405 Updated: compile fails

2001-06-18 Thread sniper

ID: 11405
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: Compile Failure
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

Exactly what line does this happen on??
That 33.16 doesn't seem to tell anything?? (I'm not familiar
with IBM's ideas of error messages..)

--Jani


Previous Comments:
---

[2001-06-12 10:37:49] [EMAIL PROTECTED]
Yes, I still get the same error with php 4.0.6RC3

---

[2001-06-11 22:29:26] [EMAIL PROTECTED]
Does this happen with PHP 4.0.6RC3:

http://www.php.net/~andi/php-4.0.6RC3.tar.gz

--Jani


---

[2001-06-11 16:10:47] [EMAIL PROTECTED]
Using AIX 4.3.3 (IBM) with IBM's visual age C compiler (vac) version 5:

/bin/sh ../libtool --silent --mode=compile xlc -qnolm -DHAVE_CONFIG_H -I. -I. 
-I../main   -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21  -g -c zend_extensions.c
zend_extensions.c, line 33.16: 1506-068 (S) Operation between types void* and 
int is not allowed.
make: 1254-004 The error code from the last command is 1.


Stop.
make: 1254-004 The error code from the last command is 1.



---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11405edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #11418 Updated: http://www.php.net/?=PHPE9568F36-D428-11d2-A769-00AA001ACF42

2001-06-18 Thread sniper

ID: 11418
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: Unknown/Other Function
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

No.


Previous Comments:
---

[2001-06-12 04:16:14] [EMAIL PROTECTED]
http://www.php.net/?=PHPE9568F36-D428-11d2-A769-00AA001ACF42


Hihi...  Are there more ??

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11418edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #11266 Updated: segmentation fault

2001-06-18 Thread sniper

ID: 11266
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Closed
Bug Type: Reproducible crash
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

If you still get this segfault with either
latest CVS or RC, reopen with a short script that
can be used to reproduce this.


Previous Comments:
---

[2001-06-04 22:46:25] [EMAIL PROTECTED]
Could you please try these solutions:

1. Get fresh sources of both Apache and PHP and 
do the install steps again. But this time use the
path to the external mysql: --with-mysql=/path

2. If the first one didn't work, try the 4.0.6 release
candidate 2 from here:

http://www.php.net/~andi/php-4.0.6RC2.tar.gz

--Jani


---

[2001-06-04 09:12:10] [EMAIL PROTECTED]
config like this: 
./configur --with-mysql --with-apache=../apache_1.3.19
and run some query and other stuff. 

result in apache child segmentation fault (11) .

backtrace.

(gdb) bt
#0  0x080e55ad in zend_hash_index_find (ht=0x822609c, h=1, pData=0xbfffcd70) at 
zend_hash.c:929
#1  0x0810e262 in zend_fetch_dimension_address_inner (ht=0x822609c, op2=0x822ab10, 
Ts=0xbfffce00, type=0) at ./zend_execute.c:553
#2  0x08105dc3 in zend_fetch_dimension_address (result=0x822aaf0, op1=0x822ab00, 
op2=0x822ab10, Ts=0xbfffce00, type=0)
at ./zend_execute.c:671
#3  0x08107ab9 in execute (op_array=0x821fdb4) at ./zend_execute.c:1161
#4  0x080e1d06 in zend_execute_scripts (type=8, file_count=3) at zend.c:743
#5  0x0807dd77 in php_execute_script (primary_file=0xb700) at main.c:1209
#6  0x080ed7f6 in apache_php_module_main (r=0x820ee74, display_source_mode=0) at 
sapi_apache.c:89
#7  0x0807b937 in send_php (r=0x820ee74, display_source_mode=0, filename=0x0) at 
mod_php4.c:521
#8  0x0807b95e in send_parsed_php (r=0x820ee74) at mod_php4.c:532
#9  0x08113667 in ap_invoke_handler () at eval.c:41
#10 0x08127453 in process_request_internal () at eval.c:41
#11 0x0812787b in ap_internal_redirect () at eval.c:41
#12 0x080740f0 in handle_dir () at eval.c:41
#13 0x08113667 in ap_invoke_handler () at eval.c:41
#14 0x08127453 in process_request_internal () at eval.c:41
#15 0x081274b4 in ap_process_request () at eval.c:41
#16 0x0811e905 in child_main () at eval.c:41
#17 0x0811eb73 in make_child () at eval.c:41
#18 0x0811eef0 in perform_idle_server_maintenance () at eval.c:41
#19 0x0811f469 in standalone_main () at eval.c:41
#20 0x0811fa9f in main () at eval.c:41
#21 0x400c7177 in __libc_start_main (main=0x811f700 main, argc=1, ubp_av=0xbb1c, 
init=0x8062be4 _init, 
fini=0x814f440 _fini, rtld_fini=0x4000e184 _dl_fini, stack_end=0xbb0c) at 
../sysdeps/generic/libc-start.c:129
(gdb) 



---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11266edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #11438 Updated: exec() system() don't work completely

2001-06-18 Thread sniper

ID: 11438
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: Program Execution
Operating system: 
PHP Version: 4.0 Latest CVS (2001-06-12)
Assigned To: 
Comments:

submitted 6 times. 1 time is enough!!


Previous Comments:
---

[2001-06-12 11:18:40] [EMAIL PROTECTED]
I've executed this script:

?php
exec(calc.exe);
?

A new calc.exe process is started, but no window appears and IE keeps opening the 
script! I click on stop icon. The script is stopped, but the calc process is still 
there. I can't kill it, although I'm logged with Admin. privs.

Why is it impossible to run GUI apps ?


---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11438edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #11427 Updated: Duplicate record insertion using SQL

2001-06-18 Thread sniper

ID: 11427
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: MySQL related
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

submitted twice


Previous Comments:
---

[2001-06-12 06:27:55] [EMAIL PROTECTED]
The script was fine for an Access database but when I changed it over for a MySQL 
database the insertion queries sometimes (most of the time but not all the time) adds 
two records to the database.

Heres my connection:

$db_hostname   = jd;
$db_username   = john;
$db_password   = nirvana;
$db_database   = neuquote;

$conn = mysql_connect($db_hostname, $db_username, $db_password)
  or die ('Unable to connect to database');

$db = mysql_select_db($db_database,$conn)
  or die ('Unable to connect to database');

Heres my queries:

$today = getdate();
$today = $today['mday']./.$today['mon']./.$today['year']. 
.$today['hours'].:.$today['minutes'].:.$today['seconds'];

// Insert new company
$sql=INSERT INTO Company 
(CompanyName,CompanyAddress1,CompanyAddress2,CompanyAddress3,CompanyAddress4,CompanyArea,CompanyCountryId,CompanyPostalCode,CompanyTel,CompanyFax,CompanyEmail,CompanyURL,CompanyDesc,CompanyStatus,TimeCompanyCreated)
 . 
 VALUES 
('$company_name','$company_address1','$company_address2','$company_address3','$company_address4','$company_area',$company_country,'$company_postal_code','$company_tel','$company_fax','$company_email','$company_url','$company_desc',0,'$today');


$res_insert_company = mysql_query($sql,$conn);

//create a new hash to insert into the db and the confirmation email
$hash=md5($email.$hidden_hash_var);
$sql=INSERT INTO CompanyContact 
(ContactTitle,ContactFirstName,ContactSurname,ContactMiddleInitial,ContactAddress1,ContactAddress2,ContactAddress3,ContactAddress4,ContactArea,ContactCountryId,ContactPostalCode,ContactTel,ContactExt,ContactFax,ContactEmail,ContactPositionId,ContactUsername,ContactPassword,ContactRemoteAddress,ContactConfirmHash,ContactStatus,TimeContactCreated,CompanyId)
 . 
VALUES 
($title,'$first_name','$surname','$middle_initial','$address1','$address2','$address3','$address4','$area',$country_code,'$postal_code','$tel','$ext','$fax','$email',$pos,'$user_name','.
 md5($password1) .','$GLOBALS[REMOTE_ADDR]','$hash',0,'$today',$company_id);

$res_insert_contact=mysql_query($sql,$conn);

Most of the time two companies are added to the db and sometimes two companycontacts, 
this is not consistent though as sometimes it works fine.

I have checked the submit button is not being clicked twice and the code is running 
one insert for company and one for companycontact.

Is this a common problem with MySQL and PHP?

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11427edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #11275 Updated: reentrancy.c:106: too few arguments to function `readdir_r'

2001-06-18 Thread sniper

ID: 11275
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Closed
Bug Type: Compile Failure
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

No feedback (And only report about this problem..)


Previous Comments:
---

[2001-06-05 00:57:17] [EMAIL PROTECTED]
What was the configure line you used?
Also, what does this output:

# grep READDIR main/php_config.h

Reason for this error is, that for some reason
in your system the configure detects that you don't
have POSIX readdir in your system BUT that you have 
old style readdir_r..

--Jani


---

[2001-06-04 21:36:31] [EMAIL PROTECTED]
TF8 -DXML_BYTE_ORDER=12 -g -O2  -c reentrancy.c  touch reentrancy.lo
reentrancy.c: In function `php_readdir_r':
reentrancy.c:106: too few arguments to function `readdir_r'
*** Error code 1

Stop in /usr/home/mhx/php-4.0.5/main.
*** Error code 1

Stop in /usr/home/mhx/php-4.0.5/main.
*** Error code 1

Stop in /usr/home/mhx/php-4.0.5.


---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11275edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #11487: eregi DO NOT FIND expression if string too complicated and from $fcontents

2001-06-18 Thread dbucher

From: [EMAIL PROTECTED]
Operating system: Linux Debian
PHP version:  3.0.17
PHP Bug Type: Scripting Engine problem
Bug description:  eregi DO NOT FIND expression if string too complicated and from 
$fcontents

In some cases, eregi_replace doesn't work. I found it didn't worked
when reading the a long/complicated line from a file :

1. I read $line from a file and $line becomes :

trtdPPM/tdtdGrandBento/tdtdhi/tdtd3128/tdtddef/tdtddef/tdtda
 href=\PHP_url_me?req_modmain=showprodreq_modsub=viewreq_id=1\[view]/a a 
href=\PHP_url_me?req_modmain=showprodreq_modsub=editreq_id=1\[edit]/a 
[del]/td/tr

2. $url_myself = http://1.1.1.249/admin/express/main.php3;;
   and $line = eregi_replace (PHP_url_me, $url_myself, $line);

   doesn't work !

3. For the other lines from the same file (shorter and with less
   special characters) it WORKS !

   AND that line is not tested the same as if I do
   $line2 = ...
   ($line  $line2) ?!

4. in eregi_replace ($pattern, $replace, $string), are there special characters into 
$string  and even, why the same $line is not the same when read from a file

CONCLUSION :

I suppose the bug is more in $fcontents than ereg, BUT WHY ereg
doesn't find a pattern which IS INTO the string ($line) ?
Whatever the line can be, the pattern is there, so why doesn't
it find it ?

I suppose you don't need any other information, but just in case :
 - Debian Linux potato
 - PHP 3.0.18

Denis



-- 
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 #11476: Weird random chars are generated in the script!

2001-06-18 Thread thomas

From: [EMAIL PROTECTED]
Operating system: Linux 2.4.2
PHP version:  4.0.5
PHP Bug Type: Unknown/Other Function
Bug description:  Weird random chars are generated in the script!

When I generate some hex-color code the outcome is fare from expected. The best way to 
explain it would be by an example:
  http://www.edimag.dk/bug/backup_index.php
and the source:
  http://www.edimag.dk/bug/backup_index.phps

My compile command:
'./configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-mysql=/usr' 
'--enable-trans-sid' '--with-gd' '--with-pdflib=/usr/local' '--with-ttf' 
'--with-sybase=/usr/local/freetds/' '--with-jpeg'

/watson


-- 
Edit Bug report at: http://bugs.php.net/?id=11476edit=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 #9951 Updated: cannot read $userfile in upload...

2001-06-18 Thread sniper

ID: 9951
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Old-Bug Type: Unknown/Other Function
Bug Type: HTTP related
Operating system: 
PHP Version: 4.0.0
Assigned To: 
Comments:

Update to more recent version of PHP, like 4.0.5 and this works.


Previous Comments:
---

[2001-03-23 03:32:08] [EMAIL PROTECTED]
i encountered problem to upload a image file in windows NT. 
i have put the tagenctype=multipart/form-data and the input type=file 
name=userfile when the form been pass to another page., it can't read the $userfile 
value, it appear \.., but $userfile_name will give the name of the upload file 
name.., why this thing happen? do i need to do any setting in php.ini?

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9951edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #11439: Comments shown when lines separated by CR|CR|LF

2001-06-18 Thread danielc

From: [EMAIL PROTECTED]
Operating system: NT 4.0 SP6a
PHP version:  4.0.5
PHP Bug Type: Scripting Engine problem
Bug description:  Comments shown when lines separated by CR|CR|LF

  ISSUE:

Comments are visible in the parsed output.

But, this is only happening when the script has it's lines separated by two carriage 
returns then a line feed (CR|CR|LF) (ASCII Ordinals: 13|13|10).  If the file has lines 
broken by one carriage return then a line feed, things run correctly.

This report may shed light on bug #11303, entitled Comment Characters, submitted by 
another user on 5 June 2001:  http://www.php.net/bugs.php?id=11303

Here's how to recreate the problem...



  STEP 1:

Point your browser to http://www.analysisandsolutions.com/code/sql/strange.php

This is the source code for that page, if you're interested...


?php
header(Content-Type: text/plain; charset=ISO-8859-1);
?
?php echo ?php; ?

#  Comment at TOP
echo htmlheadtitleStrange Behavior/title/head\n;
echo bodypEcho at top/p\n;

?php echo ?; ?

pSome HTML in the middle./p

?php echo ?php; ?

# Comment near bottom.
echo pecho near bottom/p;

?php echo ?; ?

/body/html




  STEP 2:

Save the resulting output to your web server space.

Don't change the file name, file extension or the type of file.

I was using Netscape to view and save the file.
That may or may not be relevant.

FYI, here is a sample of the output.
Don't use this as the script in the next step.


?php
#  Comment at TOP
echo htmlheadtitleStrange Behavior/title/head\n;
echo bodypEcho at top/p\n;

?
pSome HTML in the middle./p

?php
# Comment near bottom.
echo pecho near bottom/p;

?
/body/html




 STEP 3:

Now point your web browser to the copy of strange.php
you saved in your web space.

Then point browser to it and it results in...



#  Comment at TOP
# Comment near bottom.
htmlheadtitleStrange Behavior/title/head
bodypEcho at top/p


pSome HTML in the middle./p



pecho near bottom/p

/body/html




  NOTE:

All of the comments are pushed to the beginning of the
program and then displayed.  Ouch!



-- 
Edit Bug report at: http://bugs.php.net/?id=11439edit=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 #8753 Updated: Dynamic load library error

2001-06-18 Thread sniper

ID: 8753
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Status: Open
Old-Bug Type: Unknown/Other Function
Bug Type: Dynamic loading
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

How did you compile PHP ? What was the configure line used?


Previous Comments:
---

[2001-01-17 03:19:19] [EMAIL PROTECTED]
dl(interbase.so)

Invalid library (maybe not a PHP library) ínterbase.so½

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=8753edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #11516: multipart/form-data doesn't accept a NULL character

2001-06-18 Thread jeroen

From: [EMAIL PROTECTED]
Operating system: winnt4.0
PHP version:  4.0.5
PHP Bug Type: Variables related
Bug description:  multipart/form-data doesn't accept a NULL character

Hi,


first of all, I'm not 100% sure this is a bug, but I think it is. anyway, here goes:

I manually connect to a php script, by simulating a browser's call. I want to sent 
some data by simulating a multipart/form-data POST. The data I sent is binary, but 
since I want to put this data directly into a database, I don't want to use the 
Content-Disposition: form-data; name=whatever; filename=C:\whatever.exe header.

This header would cause php to create a file in the tmp dir, and I don't want this. I 
simply want the binary data I send in a variable.

What I did was to set the following header: Content-Disposition: form-data; 
name=whatever
(without the filename=C:\whatever.exe part). After that I sent the binary data.

This should create a variable $whatever on the server. 
Everything works just fine until my binary data contains a NULL [chr(0)]. What happens 
is that php creates the variable $whatever, but truncates everything after the NULL 
character (including the NULL character itself).

Of course you wouldn't be able to send a NULL from a normal multipart form input box 
or textarea on the web, but I think php should be able to create a variable which 
contains my NULL character and everything that follows when I manually connect. It 
correctly creates a file (including the NULL) when I sent the 'filename=whatever' 
header.

By the way, if my form contains more parts after the binary part with the NULL 
character, php creates those variables correctly... but it just truncates everything 
after a NULL when I don't send something like filename=c:\whatever.exe.

here is a copy of the headers I manually sent:
START
POST /script.php HTTP/1.1
Content-Type: multipart/form-data; boundary=---7d12b732260086
Host: www.myserver.com
Content-Length: [The correct length]

-7d12b732260086
Content-Disposition: form-data; name=whatever

123[NULL]456
-7d12b732260086
Content-Disposition: form-data; name=foo

normal text, not binary
-7d12b732260086--
END

my script on the server now has 2 variables; $whatever and $foo.
print $foo; #this prints normal text, not binary
print $whatever; #this prints 123. it should have printed 123 456 (the space here 
simulating the unprintable NULL character)


I hope this all makes sense (I'm not sure it does :) ). But please email me if this 
message is not completely clear.

I hope you get back to me.


thanks in advance
Jeroen


-- 
Edit Bug report at: http://bugs.php.net/?id=11516edit=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 #11504: file uploads with forms have problems

2001-06-18 Thread dgalli

From: [EMAIL PROTECTED]
Operating system: WIN NT 4.0 - Apache
PHP version:  4.0.4pl1
PHP Bug Type: *Programming Data Structures
Bug description:  file uploads with forms have problems

This code upload files and create a list of files uploaded. But sometimes when the 
form is sended (when try the 2nd or 3th round trip) all variables loose your values. 
the PHP.ini configuration is the default.

*test1.php**
HTML
HEAD
TitleUpload/Title
/HEAD
BODY
?PHP 
if (is_uploaded_file($userfile))
{
copy($userfile, upload/.$userfile_name);
$FileListName[] = $userfile_name;
$FileListSize[] = $userfile_size;
};
?
form Action=test1.php Method=POST ENCTYPE=MULTIPART/FORM-DATA name=form1
?PHP 
for($i=0;$icount($FileListName);$i++) 
{
echo \n$FileListName[$i]\n;
echo $FileListSize[$i]\n;
};
echo count($FileListName);
for($j=0;$jcount($FileListName);$j++)
{
echo input type=\hidden\ name=\FileListName[]\ 
value=\$FileListName[$j]\;
echo input type=\hidden\ name=\FileListSize[]\ 
value=\$FileListSize[$j]\;
};  
?
br
INPUT TYPE=hidden name=MAX_FILE_SIZE value=200
input type=file name=userfile size=25 
input type=submit value=Agregar name=B2
/form
/BODY
/HTML

Sorry for my english...

Dante Daniel Galli


-- 
Edit Bug report at: http://bugs.php.net/?id=11504edit=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 #11438 Updated: exec() system() don't work completely

2001-06-18 Thread flop . m

ID: 11438
User Update by: [EMAIL PROTECTED]
Status: Bogus
Bug Type: Program Execution
Operating system: Windows 2000
PHP Version: 4.0 Latest CVS (2001-06-12)
Description: exec() system() don't work completely

sorry, there has been an outage this morning on php web site. The mail could not be 
used or something!

Previous Comments:
---

[2001-06-12 12:26:31] [EMAIL PROTECTED]
submitted 6 times. 1 time is enough!!


---

[2001-06-12 11:18:40] [EMAIL PROTECTED]
I've executed this script:

?php
exec(calc.exe);
?

A new calc.exe process is started, but no window appears and IE keeps opening the 
script! I click on stop icon. The script is stopped, but the calc process is still 
there. I can't kill it, although I'm logged with Admin. privs.

Why is it impossible to run GUI apps ?


---


Full Bug description available at: http://bugs.php.net/?id=11438


-- 
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 #11499: php-general mailing list subscription not working!

2001-06-18 Thread arjun

From: [EMAIL PROTECTED]
Operating system: windows 2000
PHP version:  4.0.4pl1
PHP Bug Type: *General Issues
Bug description:  php-general mailing list subscription not working!




-- 
Edit Bug report at: http://bugs.php.net/?id=11499edit=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 #11477: extra ') in URL when add session id to url

2001-06-18 Thread sam

From: [EMAIL PROTECTED]
Operating system: REDHAT 7.00
PHP version:  4.0.5
PHP Bug Type: URL related
Bug description:  extra ') in URL when add session id to url

When browser turnoff cookie support, the PHP will add session id at end of all local 
URL links. I am seeing
extra ') has been added before sid=.
For example:

http://216.89.77.6/'/index.html?action=0todo=login.html')sid=04186298c17e8f8df0beb2d4d179b096


-- 
Edit Bug report at: http://bugs.php.net/?id=11477edit=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 #10319 Updated: multipart/form-data does not work with Opera browser

2001-06-18 Thread sniper

ID: 10319
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Closed
Status: Open
Bug Type: HTTP related
Operating system: 
PHP Version: 4.0.3pl1
Assigned To: 
Comments:

Just FYI: I have just reproduced this with 4.0.6RC3 so 
please don't reopen this. There's another bug report
about this, and I'm working on this atm.


Previous Comments:
---

[2001-05-27 21:13:52] [EMAIL PROTECTED]
this should be fixed in PHP 4.0.5. If it isn't, please reopen this bug report.

--Jani


---

[2001-04-13 14:35:17] [EMAIL PROTECTED]
We have a script which presents a form for uploading graphics files.  We check for 
acceptable graphics file types before uploading the file.  When viewed in an Opera 
browser (Windows 98), the file type is missing, and even when I comment out the file 
checking, it can't load the file.

The script works just fine with Netscape 4.73, and works with IE 5.0 (although I had 
to add some additional file types).

Any thoughts?

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10319edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #10319 Updated: multipart/form-data does not work with Opera browser

2001-06-18 Thread sniper

ID: 10319
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: HTTP related
Operating system: 
PHP Version: 4.0.3pl1
Assigned To: 
Comments:

oops..


Previous Comments:
---

[2001-06-17 19:39:06] [EMAIL PROTECTED]
Just FYI: I have just reproduced this with 4.0.6RC3 so 
please don't reopen this. There's another bug report
about this, and I'm working on this atm.


---

[2001-05-27 21:13:52] [EMAIL PROTECTED]
this should be fixed in PHP 4.0.5. If it isn't, please reopen this bug report.

--Jani


---

[2001-04-13 14:35:17] [EMAIL PROTECTED]
We have a script which presents a form for uploading graphics files.  We check for 
acceptable graphics file types before uploading the file.  When viewed in an Opera 
browser (Windows 98), the file type is missing, and even when I comment out the file 
checking, it can't load the file.

The script works just fine with Netscape 4.73, and works with IE 5.0 (although I had 
to add some additional file types).

Any thoughts?

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10319edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #8545 Updated: Session variables not carried forward in Netscape Client

2001-06-18 Thread sniper

ID: 8545
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Analyzed
Bug Type: *Session related
Operating system: 
PHP Version: 4.0.6RC3
Assigned To: 
Comments:

Seems like the session_start() doesn set the cookie when
Apache is run in Inetd mode. Reproduced with PHP 4.0.6RC3


Previous Comments:
---

[2001-02-28 04:03:15] [EMAIL PROTECTED]
hi,
observation is same even with the latest one.

rgds
Bhaskar

---

[2001-02-27 18:17:25] [EMAIL PROTECTED]
Does this happen with latest CVS snapshot from http://snaps.php.net/ ??

--Jani


---

[2001-01-16 08:03:21] [EMAIL PROTECTED]
Hi,
an update on this.
This problem is observed if the server type in apache web server is INETD. If we run 
apache as standalone it works fine.

can u check this and revert why sessions are not working in netscape if apache runs as 
inetd.

rgds
Bhaskar

---

[2001-01-10 06:59:28] [EMAIL PROTECTED]
can i have the design team views asap.

thanks in advance
Bhaskar

---

[2001-01-08 04:42:01] [EMAIL PROTECTED]
I am attaching the script of two files first.php and second.php which can be used to 
reproduce this.

beginning of first.php-
?
session_start();
session_register(test);
$test=firstpage;
?
html
head
titlePhp Bug reporting page/title/head
body
a href=second.phpClick here to goto next page/a/table
/body
/html
-end of first.php---
---beginning of second.php---
?
session_start();
echo $test;
session_unset();?
htmlhead
titlePhp Bug reporting page/title/head
body
a href=first.phpClick here to goto first page/a/table
/body
/html
--end of second.php-

On clicking the hyperlink of the first page, i should see the value of variable test 
and an hyperlink. this comes in Ie and not in netscape.

hope this will help u in finding the problem i am having.

rgds
Bhaskar


---

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.


ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=8545edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #11423 Updated: COM not work under PHP4.0.5

2001-06-18 Thread sniper

ID: 11423
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: COM related
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

submitted 3 times

Previous Comments:
---

[2001-06-12 06:11:28] [EMAIL PROTECTED]
I try used COM with php4.0.5 and using Apache 1.3.20/PWS4.0
also IIS4.0 why not work?
Before i'm using php4.0.4pl1 and all work.

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11423edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #11424 Updated: COM not work under PHP4.0.5

2001-06-18 Thread sniper

ID: 11424
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: COM related
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

submitted 3 times


Previous Comments:
---

[2001-06-12 06:12:42] [EMAIL PROTECTED]
I try used COM under php4.0.5 and using Apache 1.3.20/PWS4.0
also IIS4.0 Web Server, why not work?
Before I'm using php4.0.4pl1 and all work.

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11424edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #11425 Updated: COM not work under PHP4.0.5

2001-06-18 Thread sniper

ID: 11425
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: COM related
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

There was  a bug in it that lurked into 4.0.5 release.
Please use the 4.0.4pl1 for now, or get the latest
snapshot from:

http://www.zend.com/snapshots/


Previous Comments:
---

[2001-06-12 06:13:47] [EMAIL PROTECTED]
I try used COM under php4.0.5 and using Apache 1.3.20/PWS4.0
also IIS4.0 Web Server, why not work?
Before I'm using php4.0.4pl1 and all work.

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11425edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #5766 Updated: ISAPI threadsafeness

2001-06-18 Thread jmoore

ID: 5766
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Duplicate
Status: Closed
Bug Type: Scripting Engine problem
Operating system: 
PHP Version: 4.0.1pl2
Assigned To: 
Comments:

Known bug.. lots of reports with more information, closing this one.

Previous Comments:
---

[2000-08-02 01:07:43] [EMAIL PROTECTED]
This is a known bug, currently under examination

---

[2000-07-24 22:44:01] [EMAIL PROTECTED]
When taking multiple concurrent connections (SMP machine), php interprets scripts very 
wrongly.

I can reproduce this easily by hitting the server with a web browser while 
benchmarking with apachebench.
(ab -n 50 -c 3 http://host/large-script.php)

Instead of the proper results, I get these error messages:

1)
PHP has encountered an Access Violation at 016CCEFA
Warning: Nesting level too deep - recursive dependency? in
d:includeglobal.pi on line 34

(line 34 is the function declaration of a simple debug function included in a global 
header specified in registry Per Directory Values auto_prepend_file.)

34: 
function DebugComment($sz){
  // Conditionally display debug message if we have debugging enabled.

  global $aDebug;

  if ($aDebug)
printf(!-- %s --n,$sz);
}



---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=5766edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #11518 Updated: two dimensional array in POST doesn't work

2001-06-18 Thread jaco . rietveld

ID: 11518
User Update by: [EMAIL PROTECTED]
Status: Open
Old-Bug Type: Scripting Engine problem
Bug Type: Arrays related
Operating system: RH 6.4
PHP Version: 3.0.14
Description: two dimensional array in POST doesn't work



Previous Comments:
---

[2001-06-17 07:35:24] [EMAIL PROTECTED]
I would like to use two dimensional array's in my html forms, so $array[id1][id2] 
becomes available in my script.

A 1 dimensional array with named entries works fine : include INPUT type=text 
name=array[id1] in your html form and you get it's value in $array[id] when form is 
POSTed.

Next I tried putting INPUT type=text name=array[id1][id2] in the form. Now you don't 
get the value in $array[id1][id2] but instead the POSTed value is put in 
$array[id1][id2] - the array stays 1 dimensional witk key id1][id2.

Maybe I am trying to abuse something here which might not even be efficient to do, but 
for my app this feature would simplify things a little.

regards,

Jaco Rietveld





---


Full Bug description available at: http://bugs.php.net/?id=11518


-- 
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 #5918 Updated: ISAPI Module in IIS Hangs

2001-06-18 Thread jmoore

ID: 5918
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Duplicate
Status: Closed
Bug Type: IIS related
Operating system: 
PHP Version: 4.0.1pl2
Assigned To: 
Comments:

Known bug.. lots of reports with more information, closing this one.

Previous Comments:
---

[2000-08-02 12:50:23] [EMAIL PROTECTED]
This is currently a known issue under investigation, thanks for your report.

---

[2000-08-02 11:58:30] [EMAIL PROTECTED]
I tried to install the ISAPI module to Windows 2000 Professional. At first the module 
worked fine but then it stopped working. When I tried to start IIS, the service state 
just remained at starting.

I tried several things and finally just (almost accidentally) ran php.exe. It 
complained that a line in php.ini was malformed, but after clicking on the dialog, it 
continued to run.

So, if you have a problem in the php.ini, the ISAPI module just hangs and probably 
waits for an OK for the dialog, which is never displayed!

I hope this will be fixed in the near future. If not, an explanation could be added to 
the FAQ (the documentation on Win32 platform seems to be quite limited).

Also, a hint for everyone with IIS remaining at starting: set the WWW Publishing 
Service to manual and run iisreset. It will stop the IIS (net stop won't stop it in 
this state) and 'start it' (but because it is in manual, it won't be started). A tip I 
could've used two days ago.


---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=5918edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #5921 Updated: CPU at 100% with php.exe and ISAPI

2001-06-18 Thread jmoore

ID: 5921
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Duplicate
Status: Closed
Bug Type: Performance problem
Operating system: 
PHP Version: 4.0.1pl2
Assigned To: 
Comments:

Known bug.. lots of reports with more information, closing this one.

Previous Comments:
---

[2000-08-08 09:54:09] [EMAIL PROTECTED]
After installing everything on a new Dell we received, everything works fine.

Doesn't make any sense. Same OS, same build.

---

[2000-08-03 11:41:45] [EMAIL PROTECTED]
that´s (user feedback) definitively a dup of the common ISAPI bug we´ve at current

---

[2000-08-02 15:19:25] [EMAIL PROTECTED]
I'll build a debug version of pl2 and then attach the debugger, maybe that'll help.

Triming the code down is a tough job :)

---

[2000-08-02 15:03:31] [EMAIL PROTECTED]
There are several problems with the Win32 builds, I´m
curently trying to build all stuff in debug mode and trying
to examine, if you could reduce your code (I failed on this
task several times) and attach it, it´ll be very helpful.
Thx

---

[2000-08-02 14:34:43] [EMAIL PROTECTED]
It seems that on any type of complex script, PHP on Windows 2000 just runs out of 
control.

In CGI mode, php.exe runs to 100% CPU, in ISAPI dllhost.exe does the same.

I've tried attaching the debugger to the process, but doesn't help much.

I have no idea where to start looking in the script because the same thing works fine 
on Unix.

Thanks,
Brad

---

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.


ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=5921edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #9442 Updated: session blocking, version: all including 4.0.4pl1

2001-06-18 Thread Xuefer

ID: 9442
User Update by: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Open
Bug Type: *Session related
Operating system: Window2000
PHP Version: 4.0.4pl1
Description: session blocking, version: all including 4.0.4pl1

don't know
i think, it maybe the session file locking

i use my own handling for session, all thing going right.
i havn't do a locking for the row which session saved :P

maybe become another problem bcos no locking.

frame- frameA, frameB
frameA: 1. start session, 2-4. do sth. 5. done, save session
frameB: 1. load session, 2. do sth. 3. done, save sesion

the numbers above is the time (sorry for my english :P)

and u c, session which loaded(needed) by frameB isn't the which saved from frameA.

so i suggest, add more session functions, like

session_save(); // save session
session_dettach();
or maybe session_end(); // release holded session, unlock, and other thread in the 
same session can access this
// also means session will not save again after php script done.

session_reload(); 
or maybe session_refresh(); // refresh session from saved data

i have written those function myself, but must be used with my own session handling. 
no way for me to unlock session file wich handled by default session handler of PHP


sample:
frame1: session_start(); session_register(done, message);
$done = false;
while($done) {
if ($message) {
echo $message;
$message = ;
session_save();
}
}
frame2: session_start(); session_register(done, message);
$message = This is a test;
session_save();
sleep(1);
$message = This is a test;
session_save();
...

hoho~~
things was made complex.

said to much;

In a word, give a way to unlock session file, not to hold it until script done. 
releasing lock may give other thread running at the sametime

Previous Comments:
---

[2001-06-14 23:26:07] [EMAIL PROTECTED]
Does this happen with latest CVS snapshot from http://www.zend.com/snapshots/ ??


---

[2001-02-25 09:25:59] [EMAIL PROTECTED]
session blocking?
-
when session start started
in the multi-framed webpage

if one frame did not finished running(keeping-alive and conneting), the other 
frame(using the same session id) will blocked until that frame finished

-
often, an web-irc would like to keep one frame alive until user quit, when running it 
does soemthings, but other frames not work this time!!!

this problem not only bad for that keeping-alive php program to sessoin, but also bad 
for normal multi-frame's run speed, becos only one php running for 1 user, if no 
blocking, 2 or more running the same time.

if i use session_set_save_handle to use my own save handle, the problem went! is that 
the problem which internal session save handle used the file lock?
locking sessoin file until php program exited and session saved?
so how the other frame used by the same user works well?
-
pls, fix it, find a way

but if fixed, another problem still covered
perhaps both frame1.php and frame2.php running
if frame1.php changed the session, will it effect in frame2 immediately?

-
example is in:
http://www.phpwizard.net/phpChat
it use http://www.phpwizard.net/phpIRC
it works ok it php3, becos phpChat have its own session support, and was turned off in 
php4
so session blocking in php4

---


Full Bug description available at: http://bugs.php.net/?id=9442


-- 
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 #5956 Updated: ISAPI will crash IIS4 and IIS5

2001-06-18 Thread jmoore

ID: 5956
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Duplicate
Status: Closed
Bug Type: IIS related
Operating system: 
PHP Version: 4.0.1pl2
Assigned To: 
Comments:

Known bug.. lots of reports with more information, closing this one.

Previous Comments:
---

[2000-08-04 12:08:47] [EMAIL PROTECTED]
This is currently a known issue under investigation, thanks for your report.

---

[2000-08-04 08:43:47] [EMAIL PROTECTED]
After copying files to the Winnt directory and after adding a new ISAPI Filter and 
applying this the IIS will crash and you loose any control of the WebPublishing and 
FTP-Services.

The crashes are with Version 4.0.1pl2 and 4.0.1

OS's: Win2000Prof
  Winnt4.0 BackofficeServer SP6a



---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=5956edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #7840 Updated: Access Violation

2001-06-18 Thread jmoore

ID: 7840
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Duplicate
Status: Closed
Bug Type: IIS related
Operating system: 
PHP Version: 4.0.3pl1
Assigned To: 
Comments:

Known bug.. lots of reports with more information, closing this one, might also be 
fixed as thread saftey has been improved...

Previous Comments:
---

[2001-04-16 06:21:18] [EMAIL PROTECTED]
And another dup access violation.

---

[2000-11-16 09:57:26] [EMAIL PROTECTED]
Sometimes my scripts stops execution and the browser sends a PHP access violation 
message. This occurs after several successfull executions and the only choice for me 
is restart IIS or reboot the server.

The only module extension that is active is oci8.

In the system log I saw this related event:

Event Type: Error
Event Source:   WAM
Event Category: None
Event ID:   204
Date:   16/11/2000
Time:   12:05
User:   N/A
Computer:   PROXY
Description:
The HTTP server encountered an unhandled exception while processing the ISAPI 
Application
'
php4ts!zend_hash_copy + 0x17
MSVCRT!malloc + 0x0
 + 0x8854FBE8
'.

For additional information specific to this message please visit the Microsoft Online
Support site located at: http://www.microsoft.com/contentredirect.asp.


A sample of script is:


?

if ($Entrar)
{
  $msg=;
  $login=strtoupper($login);

  require(config.inc);

$sth = OCIParse ( $c1, select senhauser, dc(data01) ULTIMA,horario hora, 
divisao,codcli from producao_useri where coduseri='$login');
OCIDefineByName($sth,SENHAUSER,$senhauser); 
OCIDefineByName($sth,ULTIMA,$data01); 
OCIDefineByName($sth,HORA,$hora); 
OCIDefineByName($sth,DIVISAO,$divisao); 
OCIDefineByName($sth,CODCLI,$codcli); 
OCIExecute ( $sth ); 
if (OCIFetch($sth)) 
{
if ($senhauser  $senha)
{
$msg=Usuário/Senha inválido;
}
elseif ($divisao == DCV)
{
  $msg=Opção não disponível para esse usuário;
}  
else
{
//  echo   font size=3$login/fontbrbr;
//  echo   font size=3Data da ultima conexao 
$data01/fontbrbr;

$dtatual=date(dmY);
$hratual=date(His).00;
$sql= select data01 from producao_tdata where datquery01 = $dtatual 
;
  $sth = OCIParse ( $c1,$sql);
  OCIDefineByName($sth,DATA01,$dtultimo); 
  OCIExecute ( $sth ); 
  if (OCIFetch($sth)) 
  {
  }
$sql =update producao_useri set data01 = $dtultimo, horario = 
$hratual ;
$sql.=where coduseri='$login';
  $sth = OCIParse ( $c1,$sql);
  OCIExecute ( $sth ); 

setcookie(docs[1],$codcli,time()+600);
setcookie(docs[2],$login,time()+600);
setcookie(docs[3],$data01,time()+600);
setcookie(docs[4],$hora,time()+600);
/*session_start();
session_register('docs1');
session_register('docs2');
session_register('docs3');
session_register('docs4');
$docs1=$codcli;
$docs2=$login;
$docs3=$data01;
$docs4=$hora;
*/ 
header(location: cartoes4.php);
}
}
else
{
$msg=Usuário/Senha inválido.;
}
}

?

!doctype html public -//w3c//dtd html 4.0 transitional//en
html
head
   meta http-equiv=Content-Type content=text/html; charset=iso-8859-1
   meta name=GENERATOR content=Mozilla/4.7 [en] (Win95; I) [Netscape]
   titleInterprint - Telecomunicaccedil;otilde;es/title
style
!--
 A:active {text-decoration: none} A:hover {text-decoration: none}
 --
/style
script language=JavaScript
!--
function MM_preloadImages() {
 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
 var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; ia.length; i++)
 if (a[i].indexOf(#)!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
 }
 
 function MM_swapImgRestore() {
 var i,x,a=document.MM_sr; for(i=0;aia.length(x=a[i])x.oSrc;i++) x.src=x.oSrc;
 }
 
 function MM_findObj(n, d) {
 var p,i,x;  if(!d) d=document; if((p=n.indexOf(?))0parent.frames.length) {
 d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
 if(!(x=d[n])d.all) x=d.all[n]; for (i=0;!xid.forms.length;i++) x=d.forms[i][n];
 for(i=0;!xd.layersid.layers.length;i++) x=MM_findObj(n,d.layers[i].document); 
return x;
 }
 
 function MM_swapImage() 

[PHP-DEV] Bug #11493 Updated: Having issues include_path and auto_prepend_file

2001-06-18 Thread sniper

ID: 11493
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: Scripting Engine problem
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

I just tried this, and it works for me just fine.
You don't need every single directory in include_path..
That was bullshit. I should have tested it immediately.

Can you add short script into this report that reproduces this?


Previous Comments:
---

[2001-06-15 08:55:39] [EMAIL PROTECTED]
Okay, I changed my include_path appropriately, and here is the new message I saw:

Warning: Failed opening '/usr/local/apache/htdocs/chat/httpd/index.html' for inclusion 
(include_path='.:/usr/local/apache/htdocs:/usr/local/apache/htdocs/chat:/usr/local/apache/htdocs/chat/httpd:/usr/local/apache/htdocs/chat/httpd/images:/usr/local/apache/htdocs/chat/httpd/mschat:/usr/local/apache/htdocs/chat/httpd/pchat:/usr/local/apache/htdocs/chat/httpd/plynx:/usr/local/apache/htdocs/chat/httpd/scripts:/usr/local/apache/htdocs/chat/httpd/ticker:/usr/local/apache/htdocs/chat/httpd/help:/usr/local/apache/htdocs/chat/httpd/evendchat')
 in Unknown on line 0

I included every single directory possible within htdocs, chat, and httpd.  Chat being 
the only folder under htdocs, and httpd being the only one under chat.  As you can 
see, it is still having issues with the include path.  Any ideas on this?

---

[2001-06-14 17:11:00] [EMAIL PROTECTED]
You need to add every directory into the include_path.
This is how it works. Maybe it will be changed sometime.
But not in near future.



---

[2001-06-14 15:42:55] [EMAIL PROTECTED]
I am having problems with my include_path and auto_prepend_file in my php.ini file.  I 
configured PHP with the follow flags:
  --with-mysql
  --with-apache=../apache_1.3.19
  --with-tsrm-threads
  --enable-yp
  --enable-track-vars

In my php.ini file, I have the two options set in this manner:

auto_prepend_file=verifyuser.php
include_path = .:/usr/local/apache/htdocs

Now, if I view a webpage that sits in /usr/local/apache/htdocs, it opens just fine.  
It can find all the files to include and I have no issues.  But once I try to view a 
file that is located in a subdirectory of htdocs, for example, 
htdocs/chat/Install.html, I am given the following error through my browser:

Warning: Failed opening '/usr/local/apache/htdocs/chat/Install.html' for inclusion 
(include_path='.:/usr/local/apache/htdocs') in Unknown on line 0

It seems to me that it is having trouble finding any file located in a subdir of 
'htdocs'.  Is this a bug of PHP4.0.5?

I've tried experimenting to include the path of a few test subdirs with files in them 
into the include_path, but I still have the same error.  I'm not sure exactly what's 
going on here.

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11493edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #11422 Updated: web start error

2001-06-18 Thread sniper

ID: 11422
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: iPlanet related
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

Please try the solution found in bug report #9612.

--Jani


Previous Comments:
---

[2001-06-12 05:37:49] [EMAIL PROTECTED]
[https-testweb]: start failed. (2: unknown early startup error)
[https-testweb]: server terminated (signal 6): watchdog is restarting it 
[https-testweb]: failure: server initialization failed 


---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11422edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #7915 Updated: iis doesnt run asp if u have php also installed for it

2001-06-18 Thread jmoore

ID: 7915
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Duplicate
Status: Closed
Bug Type: IIS related
Operating system: 
PHP Version: 4.0.0
Assigned To: 
Comments:

Known bug.. lots of reports with more information, closing this one.

Previous Comments:
---

[2000-11-22 06:59:51] [EMAIL PROTECTED]
duplicate of #6869

---

[2000-11-21 20:20:02] [EMAIL PROTECTED]
i installed php4 for iis and the php scritp which echos hi  ...
works but then my asp pages doesnt come at all..iis keeps hanging and any page with 
asp extension doesnt come up..though if i remove refrences to php from iis management 
console ..and restart the service asp pages start coming up..but then php pages 
wouldnt work...any solutions will be of great help

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=7915edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #8413 Updated: connection_status() returns 0 on timeout

2001-06-18 Thread sniper

ID: 8413
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Unknown/Other Function
Operating system: 
PHP Version: 4.0.4
Assigned To: 
Comments:

This is obvious. The time the shutdown function
is called, the status IS shutdown.

And the connection_timeout() function is deprecated (and
removed) as of 4.0.5



Previous Comments:
---

[2001-01-15 08:55:55] [EMAIL PROTECTED]
use standalone php to get the output or change the code somehow to get the result of 
connection_status() and connection_timeout() some other way (write to file, for 
example)

the point is that it seems to be impossible to check for timeout state: 
connection_status() and connection_timeout() both return zero while the shutdown 
function was definitly called due to timeout.

The example is stupid but it is short and clearly demonstartes the bug.

oleg

---

[2001-01-13 13:33:34] [EMAIL PROTECTED]
I get no output at all (RH6.2 4.0.4  NT5 php4-200101130745)

---

[2000-12-25 07:02:52] [EMAIL PROTECTED]
I am not sure what bug type to choose...

So I change it to Unknown/Other for now.

oleg

---

[2000-12-25 05:41:07] [EMAIL PROTECTED]
safe_mode is off.

timeout.php:
?php

register_shutdown_function(shutdown);
set_time_out(1);
while(1);

function shutdown() {
   printf (Shutdown: %dn, connection_status());
   if (connection_timeout()) {
  print (Connection timeoutn);
   }
}

?

php timeout.php gives me Shutdown: 0 instead of 2 and Connection timeout

That is true for php since 4.0.1

The PHP_CONNECTION_TIMEOUT flag is never turned on in zend_execute_API.c

oleg

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=8413edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #8989 Updated: Bug#5493 resurfaced

2001-06-18 Thread sniper

ID: 8989
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: *Session related
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

Does this happen with latest snapshot from 
http://www.zend.com/snapshots/ ??

There have been some fixes regarding this.

--Jani


Previous Comments:
---

[2001-06-07 23:45:32] [EMAIL PROTECTED]
Note I have not tested the ISAPI modules in the last few releases, so I cannot state 
whether they work or not.  I only know that the CGI modules since v4.0.3pl1 are again 
demonstrating a failure to properly store session files.

In the past it seemed that the CGI module's development was performed first, then the 
ISAPI module.  I got tired of having issues with the ISAPI module and decided for the 
duration to stick to just using the CGI module.

If that trend has somehow reversed or if the ISAPI module is now on par with the CGI 
module both stability and functions-wise, then please let me know.  I would like to 
switch over to the ISAPI module as it supposed to offer increased performance.  
However, I will take stability over performance any day.


---

[2001-06-07 23:41:34] [EMAIL PROTECTED]
Yes, the problem still exists in the v.4.0.5 CGI module.  PLEASE resolve this issue if 
possible, as I am still forced to use v4.0.3pl1 if I wish to use PHP4 session 
variables.

This bug was resolved and session variables working up thru v4.0.3pl1.  With every 
release since, however, this problem has persisted once again.


---

[2001-05-22 21:11:37] [EMAIL PROTECTED]
Does this problem persist with a recent version of PHP 4 (like latest CVS or PHP 
4.0.5)?


---

[2001-01-29 18:06:15] [EMAIL PROTECTED]
v4.0.4pl1 CGI version, with or without v1 of Zend Optimizer,
is once again demonstrating similar session file generation
as I reported earlier in BUG #5493.  It looks like an old
bug has snuck back in the code.

I believe BUG #8912 also relates to same issue.  Note I have
not yet tested the ISAPI module.

Using the same script as in BUG #5493, I am now seeing
similar, though not the same activity.  Firing up a new
browser, here is what I am seeing as I load the pages
Page1.PHP thru Page4.PHP IN ORDER:

 1. Page1 creates sessionid file
 2. Page2 updates initial file fine
 3. Page3 --
 4. Page4 creates new sessionid file (size 0 bytes, as will
be all sessionid files from this point on).  From this point
on, we will never get valid session data again, just as
before with this bug.
 5. Page1 creates new sessionid file
 6. Page2-3 no new file
 7. Page4-1 create new files
 8. Page2-3 no new file
 9. Page 4-1 create new files
10. Page2 no new file
11. Page3-4 create new files *PATTERN CHANGE
12. Page1-2 no new file
13. Page3-4 create new files
14. ***Steps #12-13 repeat 5x ***
15. Page1 creates new file
16. Page2-3 no new file
17. Page4 new file

The pattern seems to fluctuate back and forth between
Page4-1 creating new sessionid files and then Page3-4
creating sessionid files.

I suspect whatever was at the root of BUG #5493 will likely
be the cause here as well.


---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=8989edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #7989 Updated: Access Violation persistent connection

2001-06-18 Thread jmoore

ID: 7989
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Duplicate
Status: Closed
Bug Type: IIS related
Operating system: 
PHP Version: 4.0.3pl1
Assigned To: 
Comments:

Known bug.. lots of reports with more information, closing this one.

Previous Comments:
---

[2001-04-16 06:23:23] [EMAIL PROTECTED]
ANd another access violation on IIS

---

[2000-11-27 03:40:00] [EMAIL PROTECTED]
After that error is IIS unstopable, the only way to stop it is command prompt 'kill 
-f' (or os restart).

---

[2000-11-27 03:25:55] [EMAIL PROTECTED]
os: win2000 advanced server
web server: IIS 5 + ISAPI PHP 4.0.3pl1
db server: MS SQL 7 (same machine)
used script:
?php
  $conn = mssql_pconnect(sername,test,test) or die(error when connecting);
  $db = mssql_select_db (Northwind, $conn) or die(error when selectin db);
?

error msg: 
PHP has encountered an Access Violation at 73342F43

When I press Refresh in IE, in 50% results it's ok and in 50% I get that error 
message. If I change 'pconnect' to 'connect', no error apperars.

When I try Apache (module or cgi) instead of IIS, everything is ok.

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=7989edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #8069 Updated: It says PHP has encountered an Access Violation at 015A7FEE

2001-06-18 Thread jmoore

ID: 8069
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Duplicate
Status: Closed
Bug Type: IIS related
Operating system: 
PHP Version: 4.0.3pl1
Assigned To: 
Comments:

When I press Refresh in IE, in 50% results it's ok and in 50% I get that error 
message. If
I change 'pconnect' to 'connect', no error apperars.


Previous Comments:
---

[2001-05-14 07:59:40] [EMAIL PROTECTED]
Dup of 8060.

- James

---

[2000-12-01 09:34:48] [EMAIL PROTECTED]
Hi! 

When the server runs as normal, everything works, but some days, when a PHP script is 
running on the server, all day long, the webserver sometimes says PHP has encountered 
an Access Violation at 015A7FEE when loading a PHP script in the browser - what is 
the error and how do I prevent it from appearing? 

The system: 

CPU: 2xPentium II 233 MHz 
RAM: 128 MB SD-RAM 
HD: 4GB IDE and 12GB SCSI RAID 
OS: Windows NT 4.0 Enterprise Server 
PHP: version 4.03pl1 
Purpose of server: mail, web, mySQL, ftp, PHP 

PHP is running on IIS4 as an isapi module 

Anybody who knows how to fix this error? it's quite annoying!

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=8069edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #10062 Updated: CGI version displays '#!/usr/local/bin/php' line

2001-06-18 Thread sniper

ID: 10062
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Duplicate
Bug Type: Unknown/Other Function
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

of #9041


Previous Comments:
---

[2001-03-29 13:57:13] [EMAIL PROTECTED]
I'm glad it's not an Apache issue, makes life easier :))

yup, file is called test.cgi, chmod 755, ExecCGI enabled 
in Apache.

A hack would be fine...   ..so long as it doesn't require 
root access or changes to Apache's config (which I 
wouldn't be able to do on the remote machine)

Are you thinking of a patch to PHP to forcefully stop it 
outputting anything before the first newline?  That would 
be ok - but my CGI's need to use a lot of HTTP headers 
(including HTTP authentication - but that can change if 
necessary)  I was thinking of making them nph-...

Regards
Shane


---

[2001-03-29 13:49:02] [EMAIL PROTECTED]
This isnt an Issue with apache. What are you calling your php file?? .cgi yes? there 
are some hacks around this but it seems more likley a config problem rather than a bug 
in PHP.. anu ideas people??

---

[2001-03-29 13:41:54] [EMAIL PROTECTED]
They're running 1.3.12 - but that doesn't matter yet as I 
can't even get PHP to compile there (its Debian with 
glibc2.1, PHP 4.0.4pl1, same configure options as I said 
previously, configure runs fine, but make dies half way 
through - can't work out why though - but thats for 
another day...)

Ah.  but if it is an issue with Apache then I'm screwed 
anyway :((




---

[2001-03-29 13:05:26] [EMAIL PROTECTED]
Hmm I might be wrong there.. What webserver is your ISP running?

James

---

[2001-03-29 12:51:59] [EMAIL PROTECTED]
I'm afraid it really is as a CGI - the reason being that 
my ISP won't install PHP modules and I need gd/t1lib 
support.  This problem is with testing the setup on the 
local server (I want the same setup both ends to avoid any 
extra complications).

I wasn't aware that it was the web server's responsibility 
to strip the #1/usr/local/bin/php line out - I am running 
apache 1.3.14 and I have a feeling there could be an issue 
with that - (although I haven't noticed it in the past 
with C++ CGIs)




---

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.


ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10062edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #8069 Updated: It says PHP has encountered an Access Violation at 015A7FEE

2001-06-18 Thread jmoore

ID: 8069
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Status: Closed
Bug Type: IIS related
Operating system: 
PHP Version: 4.0.3pl1
Assigned To: 
Comments:

Meant to say closing this one due to massive amount of similar reports.. 

Previous Comments:
---

[2001-06-12 12:38:32] [EMAIL PROTECTED]
When I press Refresh in IE, in 50% results it's ok and in 50% I get that error 
message. If
I change 'pconnect' to 'connect', no error apperars.


---

[2001-05-14 07:59:40] [EMAIL PROTECTED]
Dup of 8060.

- James

---

[2000-12-01 09:34:48] [EMAIL PROTECTED]
Hi! 

When the server runs as normal, everything works, but some days, when a PHP script is 
running on the server, all day long, the webserver sometimes says PHP has encountered 
an Access Violation at 015A7FEE when loading a PHP script in the browser - what is 
the error and how do I prevent it from appearing? 

The system: 

CPU: 2xPentium II 233 MHz 
RAM: 128 MB SD-RAM 
HD: 4GB IDE and 12GB SCSI RAID 
OS: Windows NT 4.0 Enterprise Server 
PHP: version 4.03pl1 
Purpose of server: mail, web, mySQL, ftp, PHP 

PHP is running on IIS4 as an isapi module 

Anybody who knows how to fix this error? it's quite annoying!

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=8069edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #1752 Updated: phpinfo(): images (php, zend) and Link to credits don't work

2001-06-18 Thread jmoore

ID: 1752
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Suspended
Status: Closed
Bug Type: Other web server
Operating system: 
PHP Version: 4.0 Beta 1
Assigned To: 
Comments:

This has been fixed a while ago.

- James

Previous Comments:
---

[2001-04-29 11:56:03] [EMAIL PROTECTED]
could we not use PATH_INFO here?

---

[1999-07-21 16:26:05] [EMAIL PROTECTED]
This is a known problem;  Unfortunately, it originates in the way MS http servers 
work,
and there's nothing much we can do about it...

---

[1999-07-20 11:59:20] [EMAIL PROTECTED]
this is for the precompiled Win32 version:

if you use phpinfo in a file called info.phtml on, say, http://127.0.0.1/ the links to 
PHP 4.0 Credits should look like

http://127.0.0.1/info.phtml?=PHPB8B5F2A0-3C92-11d3-A3A9-4C7B08C1
   ^^^
but it looks like this:

http://127.0.0.1/?=PHPB8B5F2A0-3C92-11d3-A3A9-4C7B08C1

a problem with PHP_SELF?

here's my info.phtml:

?

echo phpinfo();

?

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=1752edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Module writing question: Sharing Resources between separate modules.

2001-06-18 Thread Yermo M. Lamers


I would like to write a PHP module that makes use of an already
established Mysql connection.

To make things clean, I'd like the exported functions from my new module
to accept MySQL-Link resources as in:

$mysql_conn = mysql_connect(  );

my_custom_module_func( $mysql_conn );

From my reading of ext/mysql/php_mysql.c it looks like you need to have
access to the return code from zend_register_list_destructors_ex() in
order to be able to lookup the resource passed to you using
ZEND_FETCH_RESOURCE2().

In ext/mysql/php_mysql.c le_link and le_plink are declared static and
there's no clean way of getting at them to get the resources.

What am I missing? 

How can can I get at the MYSQL * connection set up by the mysql module
from within my module?

Any pointers to sample code or information would be greatly appreciated,

thanks,

-- Yermo 

-
   Try Personal Stock Monitor for Windows(tm) for FREE at:
 http://www.personalstockmonitor.com
   Powerful Desktop Software for Online Investors
-


-- 
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 #9096 Updated: #! line in a script is outputed in script

2001-06-18 Thread sniper

ID: 9096
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Analyzed
Status: Duplicate
Old-Bug Type: Unknown/Other Function
Bug Type: *General Issues
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

Duplicate of #9041


Previous Comments:
---

[2001-02-05 02:56:01] [EMAIL PROTECTED]
I have been able to reproduce this on my Debian box using 4.0.5-dev.
Rasmus, you can contact me privately for an account.

---

[2001-02-04 08:36:21] [EMAIL PROTECTED]
Hrm..  I am unable to reproduce this.  I am on Linux and I used your exact ./configure 
line.  Are you completely sure you are seeing what you say you are seeing?

---

[2001-02-04 08:19:58] [EMAIL PROTECTED]
Example:
#!/usr/local/bin/php -q
? echo Hello; ?
produces as output
#!/usr/local/bin/php -q
Hello

- which is not the desired effect.

This worked when I used 4.0.3pl1 - which was compiled with the same options and other 
files (as I made a script to do it!)

Compiled with : ./configure --with-mysql --enable-discard-path --enable-track-vars 
--disable-debug --enable-dbase --enable-trans-sid --enable-inline-optimization

Any further questions.. (if you want my php binary or anything else)..

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9096edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #9002 Updated: User session handler doesn't work with register_globals set Off

2001-06-18 Thread sniper

ID: 9002
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: *Session related
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

This should be fixed in PHP 4.0.6, please try the
latest RC from:

http://www.php.net/~andi/php-4.0.6RC3.tar.gz

(if above link doesn't work, try changing RC3 to RC4)



Previous Comments:
---

[2001-01-30 09:27:25] [EMAIL PROTECTED]
Set the following variables in php.ini:
register_globals = Off
session.save_handler = user

Then register a user handler in your php script with
session_set_save_handler(...);

Trace the calls of the handler functions in a log file and you will see:

The user defined session handlerfunction for WRITING the session will never be 
called!

With register_globals=On the same works!

Andre

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9002edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #8661 Updated: a copy of the internal array elements is sometimes not made

2001-06-18 Thread jmoore

ID: 8661
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Duplicate
Status: Closed
Bug Type: Scripting Engine problem
Operating system: 
PHP Version: 4.0.4
Assigned To: 
Comments:

This is a feature not a bug :P (IE it wont be fixed anytime soon).

Previous Comments:
---

[2001-04-28 15:31:17] [EMAIL PROTECTED]
dup of 8130

---

[2001-04-28 15:29:23] [EMAIL PROTECTED]
dup of 8130

---

[2001-03-16 03:58:55] [EMAIL PROTECTED]
I don't agree with this.  The zend engine only does a shallow copy in this particular 
instance, and it is a bug.  If the array is not accessed through a method in the 
object, the copy is performed correctly.  Please re-analyze this.

---

[2001-03-15 09:20:44] [EMAIL PROTECTED]
Zend copies arrays and objects shallow (for performance
reasons). The workaround is to implement clone method.
This probably should be built-in function in Zend. 

---

[2001-02-28 00:21:05] [EMAIL PROTECTED]
My bad, my email address is [EMAIL PROTECTED]

Please detail on a fix for this bug.

Thanks,
Larry

---

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.


ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=8661edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #9061 Updated: SIGSEGV in session write

2001-06-18 Thread sniper

ID: 9061
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: *Session related
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

This should be fixed in PHP 4.0.6, please try the latest RC from:

http://www.php.net/~andi/php-4.0.6RC3.tar.gz

(if above link doesn't work, try changing RC3 to RC4)



Previous Comments:
---

[2001-02-01 19:00:14] [EMAIL PROTECTED]
Gentlemen/Ladies,

I found what I believe to be a bug in PHP. 

I am using sessions on a secure server (i.e. SSL). The sessions are configured so that 
the Write routine uses a 'global' object in order to access user details (and update a 
mySql database with that information). That object is built from a class definition 
which is defined as extending another class. My session 'Write' routine looks like 
this:

function write ($id, $sess_data) { // uses a database - and php calls it after the 
script terminates
global $currentUser; // 
 if (!$currentUser-updateSessionID()) {
  return (false); // 
 }
 return(true);
}

I was getting SIGSEGV's in my log file, so I changed the above code to create a new 
$currentUser object using a single global variable string (as the information from 
which to create the $currentUser) - instead of referring to the object created while 
my script was still returning stuff to the browser. This has eliminated the faults.

Below is the output from running httpd under gdb while accessing the page:

Program received signal SIGSEGV, Segmentation fault.
0x80dabea in _efree (ptr=0x8373a38) at zend_alloc.c:232
232 REMOVE_POINTER_FROM_LIST(p);


(gdb) bt
#0  0x80dabea in _efree (ptr=0x8373a38) at zend_alloc.c:232
#1  0x80db0a1 in shutdown_memory_manager (silent=1, clean_cache=0) at zend_alloc.c:439
#2  0x8078d7e in php_request_shutdown (dummy=0x0) at main.c:695
#3  0x80769ac in php_apache_request_shutdown ()
#4  0x8118861 in run_cleanups ()
#5  0x8116da3 in ap_clear_pool ()
#6  0x8116e27 in ap_destroy_pool ()
#7  0x8116d8f in ap_clear_pool ()
#8  0x8128041 in child_main ()
#9  0x8128695 in make_child ()
#10 0x8128814 in startup_children ()
#11 0x8128e8c in standalone_main ()
#12 0x81296dc in main ()
#13 0x81c301b in __libc_start_main (main=0x8129330 main, argc=5, argv=0xbab4, 
init=0x80480b4 _init,
fini=0x8211b3c _fini, rtld_fini=0, stack_end=0xbaac) at 
../sysdeps/generic/libc-start.c:92



Here is our configuration:

Apache 1.3.17
./configure  --activate-module=src/modules/php4/libphp4.a
--enable-module=ssl

PHP 4.0.4pl1
./configure --with-mysql --with-apache=../apache_1.3.17 --enable-track-vars
--enable-debug

Mod_ssl 2.8.0
./configure --with-apache=../apache_1.3.17

Resulting binary library info:

ldd httpd-1.3.17-php-4.0.4pl1-mod_ssl2.8.0.shared.debug
 libpam.so.0 = /lib/libpam.so.0 (0x4001a000)
 libdl.so.2 = /lib/libdl.so.2 (0x40022000)
 libresolv.so.2 = /lib/libresolv.so.2 (0x40026000)
 libm.so.6 = /lib/libm.so.6 (0x40035000)
 libcrypt.so.1 = /lib/libcrypt.so.1 (0x40053000)
 libnsl.so.1 = /lib/libnsl.so.1 (0x4008)
 libssl.so.0 = /usr/lib/libssl.so.0 (0x40096000)
 libcrypto.so.0 = /usr/lib/libcrypto.so.0 (0x400c3000)
 libc.so.6 = /lib/libc.so.6 (0x4018)
 /lib/ld-linux.so.2 = /lib/ld-linux.so.2 (0x4000)

We also compiled the binary with --static.

Thank you,

Joe Canon

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9061edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #9092 Updated: variables-by-references in class constructor not working

2001-06-18 Thread jmoore

ID: 9092
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Duplicate
Status: Closed
Bug Type: Class/Object related
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

You cant pass a literal via reference. Closing report. This is in the todo for 4.1.

Previous Comments:
---

[2001-02-20 01:34:45] [EMAIL PROTECTED]
covered by 6343 

---

[2001-02-03 19:00:05] [EMAIL PROTECTED]
hmm, i see your point.

is it possible to define a value that should be 
passwd by reference as optional?



---

[2001-02-03 18:09:28] [EMAIL PROTECTED]
This should not work - how can you pass a literal value by reference?

However, you are right about the error message - it does seem to be incorrect.

---

[2001-02-03 17:53:52] [EMAIL PROTECTED]
This code snippet:

class test {
  function test($test1=false) {
  }
} 

gives me 

Parse error - parse error, expecting `')''

on the line with the constructor (function ...)

shouldn't this work (or at least return a useful error)?



---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9092edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #9041 Updated: Extra #! at top of web output.

2001-06-18 Thread jmoore

ID: 9041
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Critical
Status: Analyzed
Bug Type: *General Issues
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

This will be fixed when we split the commandline and cgi modules apart. moving back to 
analysed.

- James

Previous Comments:
---

[2001-05-09 11:40:05] [EMAIL PROTECTED]
Here's a quick and dirty fix.

18:39 james`` oK open cgi_main.c
18:39 james`` and goto line 720
18:40 james`` See that else if .
18:40 james`` } else if (file_handle.handle.fp  file_handle.handle.fp!=stdin) {
18:40 james`` make it read }
18:41 james`` and then loose the } 11 lines down

---

[2001-02-24 12:06:51] [EMAIL PROTECTED]
Suspending this until a decision about what should be the correct behaviour from PHP 
should be.

---

[2001-02-05 16:34:55] [EMAIL PROTECTED]
Here are the CGI's I'm using:


#!/opt/php/bin/php
? phpinfo(); ?



#!/bin/sh
echo Content-type: text/html\n\n;
echo foo!


Now this might not help any, but I truss'd the web server process (Netscape, 
remember.) and here a few snippits output.

sh CGI.
read(23,  C o n t e n t - t y p e.., 8192)= 31
send(17,  H T T P / 1 . 1   2 0 0.., 118, 0)  = 118
send(17, n f o o !n, 6, 0)  = 6

PHP CGI.
read(22,  X - P o w e r e d - B y.., 8192)= 5120
send(17,  H T T P / 1 . 1   2 0 0.., 146, 0)  = 146
send(17,  # ! / o p t / p h p / b.., 5065, 0) = 5065

Graphic for PHP CGI page.
send(19,  H T T P / 1 . 1   2 0 0.., 146, 0)  = 146
send(19,  G I F 8 9 a82

-- 
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 #11428 Updated: Duplicate record insertion using SQL

2001-06-18 Thread sniper

ID: 11428
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: MySQL related
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

I have never experienced such problems with Mysql.
Please try shortening your code to shortest
possible that still causes this.

Also, I suggest you don't use this kind of constructs:

blaablaa.blaablaa

And all the data inserted to db should be quoted. ie. 
use addslashes() on it.

--Jani


Previous Comments:
---

[2001-06-12 06:28:30] [EMAIL PROTECTED]
The script was fine for an Access database but when I changed it over for a MySQL 
database the insertion queries sometimes (most of the time but not all the time) adds 
two records to the database.

Heres my connection:

$db_hostname   = jd;
$db_username   = john;
$db_password   = nirvana;
$db_database   = neuquote;

$conn = mysql_connect($db_hostname, $db_username, $db_password)
  or die ('Unable to connect to database');

$db = mysql_select_db($db_database,$conn)
  or die ('Unable to connect to database');

Heres my queries:

$today = getdate();
$today = $today['mday']./.$today['mon']./.$today['year']. 
.$today['hours'].:.$today['minutes'].:.$today['seconds'];

// Insert new company
$sql=INSERT INTO Company 
(CompanyName,CompanyAddress1,CompanyAddress2,CompanyAddress3,CompanyAddress4,CompanyArea,CompanyCountryId,CompanyPostalCode,CompanyTel,CompanyFax,CompanyEmail,CompanyURL,CompanyDesc,CompanyStatus,TimeCompanyCreated)
 . 
 VALUES 
('$company_name','$company_address1','$company_address2','$company_address3','$company_address4','$company_area',$company_country,'$company_postal_code','$company_tel','$company_fax','$company_email','$company_url','$company_desc',0,'$today');


$res_insert_company = mysql_query($sql,$conn);

//create a new hash to insert into the db and the confirmation email
$hash=md5($email.$hidden_hash_var);
$sql=INSERT INTO CompanyContact 
(ContactTitle,ContactFirstName,ContactSurname,ContactMiddleInitial,ContactAddress1,ContactAddress2,ContactAddress3,ContactAddress4,ContactArea,ContactCountryId,ContactPostalCode,ContactTel,ContactExt,ContactFax,ContactEmail,ContactPositionId,ContactUsername,ContactPassword,ContactRemoteAddress,ContactConfirmHash,ContactStatus,TimeContactCreated,CompanyId)
 . 
VALUES 
($title,'$first_name','$surname','$middle_initial','$address1','$address2','$address3','$address4','$area',$country_code,'$postal_code','$tel','$ext','$fax','$email',$pos,'$user_name','.
 md5($password1) .','$GLOBALS[REMOTE_ADDR]','$hash',0,'$today',$company_id);

$res_insert_contact=mysql_query($sql,$conn);

Most of the time two companies are added to the db and sometimes two companycontacts, 
this is not consistent though as sometimes it works fine.

I have checked the submit button is not being clicked twice and the code is running 
one insert for company and one for companycontact.

Is this a common problem with MySQL and PHP?

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11428edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #9264 Updated: Using session_encode with user-level session storage functions causes a crash

2001-06-18 Thread sniper

ID: 9264
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: *Session related
Operating system: 
PHP Version: 4.0 Latest CVS (14/02/2001)
Assigned To: 
Comments:

Does this happen with latest CVS snapshot build from
http://www.zend.com/snapshots/ ??



Previous Comments:
---

[2001-03-17 12:08:15] [EMAIL PROTECTED]
Hi!

I've done a test with the new php4.0.5-RC1 from php4win.de and the crash still occurs.

Regards,
Loïc

---

[2001-02-15 11:05:27] [EMAIL PROTECTED]
Oups, in the code before I omited to put the 'open session' function. Here it is:

function dbSessionOpen($savePath, $sessionName)
{
return true;
}


---

[2001-02-14 12:39:47] [EMAIL PROTECTED]
Hi!

Be indulgent for my poorly english level please...

To force session data to be saved when using a database based session storage system 
and 'register_globals' is set to off I've build this (very) simplified structure of 
script:

function dbSessionClose()
{
return true;
}

function dbSessionRead($id)
{
return true;
}

function dbSessionWrite($id, $data)
{
return true;
}

function dbSessionDestroy($id)
{
return true;
}

function dbSessionGarbageCollector($sessionLifeTime)
{
return true;
}

function dbSessionSave()
{
return dbSessionWrite(session_id(), session_encode());  // The note below is about 
this line
}

session_set_save_handler('dbSessionOpen', 'dbSessionClose', 'dbSessionRead', 
'dbSessionWrite', 'dbSessionDestroy', 'dbSessionGarbageCollector');


/**
 * Uses session
 */
session_start();
session_register('myVar');

$myVar = 'crash';

dbSessionSave();


Then each time I run it with the latest PHP 4.0.5dev loaded as an apache module, PHP 
crash and produces this error:

APACHE a causé une défaillance de page dans
 le module PHP4TS.DLL à 016f:008a533e.
Registres :
EAX= CS=016f EIP=008a533e EFLGS=00010246
EBX= SS=0177 ESP=01e2f274 EBP=007f7df0
ECX=007ee7a0 DS=0177 ESI=007ee164 FS=2217
EDX=007ee130 ES=0177 EDI=007f7c46 GS=
Octets à CS : EIP :
8b 00 8b 4c 24 0c 8b 54 24 08 51 8b 4c 24 08 42 
État de la pile :
008a57b4 007f7c40 0005 01e2f2a4 007ee7a0 007ee130 007dd720 0001  
007dd720 007f7b10 007f7c40   007ee7a0 007dd720


An amazing note: if...
- ... at the first run I replace the call to the session_encode() function by the 
string 'crash', fire the script...
- ... then resume to the original 'dbSessionSave()' function and run the script 
again...
... everything go right!

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9264edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #11459: Page fault in PHP4TS.DLL

2001-06-18 Thread Martin . Krieger

From: [EMAIL PROTECTED]
Operating system: Win 98
PHP version:  4.0.5
PHP Bug Type: Reproducible crash
Bug description:  Page fault in PHP4TS.DLL

http://localhost/php4/php.exe

crashes with page fault (see below). PHP (autoinstall version) as CGI in Apache 
1.3.12. Normal scripts (http://localhost/test.php) work - but who knows what users do?

===
PHP verursachte einen Fehler durch eine ungültige Seite
in Modul PHP4TS.DLL bei 0177:10091cfb.
Register:
EAX=00760c60 CS=0177 EIP=10091cfb EFLGS=00010216
EBX= SS=017f ESP=0063fd24 EBP=0063fdc4
ECX=00788400 DS=017f ESI=00760c60 FS=4d27
EDX=0002 ES=017f EDI= GS=
Bytes bei CS:EIP:
80 3b 00 75 08 5e 33 c0 5b 83 c4 08 c3 8b 4e 04 
Stapelwerte:
00760190 0001 78034b88  004019a2  004040c4  81646d78 
0053   0004  7800cd00 816569e0 


-- 
Edit Bug report at: http://bugs.php.net/?id=11459edit=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 #11404 Updated: Session Error

2001-06-18 Thread jmoore

ID: 11404
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Feature/Change Request
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

Not a bug. would not be nice behaviour anyway. lets leave it as it is.

- James

Previous Comments:
---

[2001-06-11 15:12:28] [EMAIL PROTECTED]
When you create a variable in a method or function, the session it's created ok, but 
when you assign value to this session variable in a function or method, the global 
program, have not this value, Why? beacause you must to tell php that the session 
variable is GLOBAL.
Bug? I think that is a bug, beacause a Session Variable must be a GLOBAL variable.

Example:

?php
class foo
 {
   function foo()
   {
session_register(count);
$count++;
   }
 };
$MyClass = new foo();
echo (session_is_registered(count)) 
// This print that is registered. This is Oka

echo($count);
// This print ; (nothing)


I think that this the error, I repeat: When you define a session variable, de 
assignment must be global to.

Do you Understand.


Sorry if it's not a bug.. I think that this is.
Sorry for My poor english I'm from Argentina

?

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11404edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #11501 Updated: Can't find module

2001-06-18 Thread sniper

ID: 11501
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: IIS related
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

Does it say in ?php phpinfo(); ? output that the
extensions dir is that?



Previous Comments:
---

[2001-06-15 09:14:44] [EMAIL PROTECTED]
Hi,

   I've installed PHP on my IIS 4 webserver no problem, however, I'm trying to get the 
mssql extension.  I've removed the semi-colon(;) and my extensions path is set to 
c:phpentensions  but when I load up a test page, it reports back that it can't find 
the php_mssql.dll file.  I double checked to make sure the php_mssql.php is in the 
folder and its there.  Is there anything else I need to do?

thanks,
Kim

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11501edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #9470 Updated: complement of 8676 - serialize reference

2001-06-18 Thread sniper

ID: 9470
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Duplicate
Bug Type: *Session related
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

Duplicate of #8676

Previous Comments:
---

[2001-02-26 17:02:57] [EMAIL PROTECTED]
I got a similar issue, when I dump the unserialize (with a var_dump), I got for the 
object: __PHP_Incomplete_Class for the name of the class.
When I list the methods of this object, I got the rigth ones



---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9470edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #10015 Updated: inetinfo.exe crashes!

2001-06-18 Thread jmoore

ID: 10015
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Duplicate
Status: Closed
Bug Type: IIS related
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

not really enough information to work with. Lots of other reports about this which are 
more specific. CLosing

Previous Comments:
---

[2001-04-16 06:55:18] [EMAIL PROTECTED]
Yet another IIS crash, dup of 9122

---

[2001-04-04 03:09:54] [EMAIL PROTECTED]
That happens when I use isapi..but it have crashes ore or two times when I have used 
cgi.

And one other thing why cant I just load the extencion for ldap...? I just want to 
connect a ldap server!
when I did not have mssql on my omputer it wouldn't start ( couldn't find ) the 
php_mssql.dll but after I installed the mssql it worked... But in case of ldap...I 
dont want to install any ldap on my computer.. I only eant to connect to an ldap 
server.. but it won't load the php_ldap.dll.
Is r
that a bugg or have I done something wrong??

---

[2001-04-03 17:17:03] [EMAIL PROTECTED]
are sou using isapi or the cgi?

---

[2001-03-27 08:19:57] [EMAIL PROTECTED]
I have:

win 2000 ( service pack 1 )
mssql 2000
iis 5.0

when I ask the mssql a query, inetinfo to crash.
I tryed to install all of it again but did not help.

Can someone help me??


---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10015edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #10126 Updated: ASP can't working

2001-06-18 Thread jmoore

ID: 10126
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Duplicate
Status: Closed
Bug Type: IIS related
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

not really enough information to work with. Lots of other reports about this which are 
more specific. CLosing

Previous Comments:
---

[2001-04-29 12:01:28] [EMAIL PROTECTED]
dup of about 50 other bug reports with lots more info.. marking as so.. see 10480

---

[2001-04-04 05:55:53] [EMAIL PROTECTED]
Actually, I suspect it's just the usual ISAPI thing - the PHP ISAPI module has brought 
IIS to it's knees and hence ASP has stopped working.

---

[2001-04-04 05:51:22] [EMAIL PROTECTED]
Suspended until someone finds out why this happens.
(could it be the asp tags in php.ini?)

--Jani


---

[2001-04-03 23:45:04] [EMAIL PROTECTED]
ok it can be work!now.

---

[2001-04-03 03:47:39] [EMAIL PROTECTED]
Please reinstall PHP as a CGI rather than as an ISAPI filter/module and let us know if 
your ASP starts working ok again.

As stated in the installation notes, the ISAPI module is currently not ready for 
production use - and this it the kind of problem it currently causes.

---

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.


ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10126edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #11429 Updated: PHP 4.0.5 fails on simple while loop.

2001-06-18 Thread sniper

ID: 11429
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: Scripting Engine problem
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

Please submit a new bug report with shortest possible
example that can be used to reproduce this.
The one here is way too long.



Previous Comments:
---

[2001-06-12 06:42:02] [EMAIL PROTECTED]
Given this script:
-=-
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0
Transitional//EN http://www.w3.org/TR/REC-html40/loose.dtd;
html
head
titleFTP server info/title
meta HTTP-EQUIV=REFRESH CONTENT=60
/head
body bgcolor=#FF
h1Transfers in progress:/h1
table border=1 align=center width=100%
?
$i = 0;
$anon = 0;
$idleanon = 0;
$maxconn = 5;
$types['RETR'] = downloading;
$types['STOR'] = uploading;
$inputfile = /tmp/ftpinfo.txt;
$fp = fopen($inputfile,r);
fgets($fp, 4096);
while($i  25)
{
$line = fgets($fp, 4096);   
if(strstr($line, Service class))
continue; /* Skip the lead in line */

$bits = explode( , $line);
if(substr($bits[12], 0, 9) == anonymous || substr($bits[7],
0, 9) == anonymous)
{
if($bits[1] == '-')
{
echo ttr;
echo td$bits[11]/tdtd  . $types[$bits[13]] .   .
chop($bits[14]) . /td;
$percent_done = substr($bits[7], 1, strlen($bits[7]) - 3);
/* Algorithm: speed colour is a factor of 10/3 */
/* Note: since I can't get speed, I just use percent done */
switch($percent_done)
{
case ($percent_done  66):
echo td bgcolor=#FF;
break;

case ($percent_done  33):
echo td bgcolor=#00;
break;

default:
echo td bgcolor=#00FF00; 
break;
}
/* Leet progress meter. */
print([);
$the_temp = 0;
while($the_temp  5)
{
if(($the_temp * 20)  $percent_done)
{
print(*);
}
else
{
print(.);
}
$the_temp++;
}
print(]);

echo  ( . $percent_done . % done)/td;
echo /trn;
$anon++;
}
else
$idleanon++;
}
$line = fgets($fp, 4096);
$line = fgets($fp, 4096);
$i++;
}

echo t/tablen;
if($idleanon)
echo tp$idleanon user(s) are connected but idle/pn;
echo tp . ($anon + $idleanon) .  of $maxconn users
connected/p;
fclose($fp);

?
psmallThis page will autorefresh every minute./small/p
/body
/html
-=-
I get:
-=-
dylang@shadowgate:~$ lynx http://thock.com/ftpstats.php

Looking up thock.com
Making HTTP connection to thock.com
Sending HTTP request.
HTTP request sent; waiting for response.
Alert!: Unexpected network read error; connection aborted.
Can't Access `http://thock.com/ftpstats.php'
Alert!: Unable to access document.

lynx: Can't access startfile 
-=-

Not cool!

Commenting out
while($the_temp  5)
{
...
}

makes it work, but there is no logical reason why it should
fail.

The file it is parsing is the output of ftpwho -v from ProFTPD.

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11429edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #10183 Updated: W2K, IIS Access violation (ISAPI)

2001-06-18 Thread jmoore

ID: 10183
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Duplicate
Status: Closed
Bug Type: IIS related
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

not really enough information to work with. Lots of other reports about this which are 
more specific. CLosing

Previous Comments:
---

[2001-04-16 06:59:53] [EMAIL PROTECTED]
YA IIS crash see #9122

---

[2001-04-05 09:50:32] [EMAIL PROTECTED]
The CGI version is OK but the isapi gives me the folowing error

PHP has encountered an Access Violation at 0B292466

With any kind of code with or without db connection. (eg phpinfo() i a page)

Thanks in advance for your help

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10183edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #9502 Updated: IE5.5 SP1: New browser instances displaying same session id

2001-06-18 Thread sniper

ID: 9502
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: *Session related
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

Of course you get same session id's. Cookies are 
shared between new windows opened from same browser.


Previous Comments:
---

[2001-02-28 16:36:33] [EMAIL PROTECTED]
My browser:
IE 5.50.4522.1800  Update Version:; SP1;

When running the script below on different instances of my browser I get the SAME 
session id appear.  This does not occur in IE5.0 or Netscape 4.6/4.73 (i.e., I get the 
expected behaviour of different session ids appearing).
Please can someone investigate this since it appears to be a very serious security 
issue.

Many Thanks
Dipen

?
//Start the session.
//This must be called before
//sending any content.
session_start();

//Register a couple of variables
session_register(Name);
session_register(Count);

//Set variable based on form input
if($inputName != )
{
$Name = $inputName;
}

//Increment counter with each page load
$Count++;
?
HTML
HEAD
TITLEListing 7.6/TITLE
/HEAD
BODY
?
//print diagnostic info
print(BDiagnostic Information/BBRn);
print(Session Name:  . session_name() . BRn);
print(Session ID:  . session_id() . BRn);
print(Session Module Name:  . session_module_name() . BRn);
print(Session Save Path:  . session_save_path() . BRn);
print(Encoded Session: . session_encode() . BRn);

print(HRn);

if($Name != )
{
print(Hello, $Name!BRn);
}

print(You have viewed this page $Count times!BRn);

//show form for getting name
print(FORM ACTION=$SCRIPT_NAME?.SID. METHOD=POST);
print(INPUT TYPE=text NAME=inputName VALUE=$NameBRn);
print(INPUT TYPE=submit VALUE=Change NameBRn);
print(/FORM);

// added by dk (n.b. $SCRIPT_NAME is apache environment variable)
print(script_name:   . $SCRIPT_NAME . BRn);
print(SID:   . SID . BRn);
// --

//use a link to reload this page
print(A HREF=$SCRIPT_NAME?.SID.Reload/ABRn);
?
/BODY
/HTML

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9502edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #11468: Cannot execute stored procedures

2001-06-18 Thread Vladimir . Michl

From: [EMAIL PROTECTED]
Operating system: Win32, Linux
PHP version:  4.0.5
PHP Bug Type: InterBase related
Bug description:  Cannot execute stored procedures

Hello,

when I wrote some scripts that inserting some data to database, I must call stored 
procedures
for getting some data (typically id from generator). I want
execute stored procedures, that return next row id.

I add some code to interbase PHP module, that support execution of stored procedures.

With my patch, procedure is executed by
$res = ibase_query($db, execute procedure procedure_name);
$row = ibase_fetch_row($res);

In $row is row returned by procedure.

Patch may be found on http://www.penguin.cz/~michlv/software/phpibase/

If any question write me.

Vladimir Michl [EMAIL PROTECTED]
PS: Patch is ported from 4.0.3pl1 where is functional.


-- 
Edit Bug report at: http://bugs.php.net/?id=11468edit=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 #10441 Updated: Premature end of script headers (with some extra info)

2001-06-18 Thread sniper

ID: 10441
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Old-Bug Type: Unknown/Other Function
Bug Type: *General Issues
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

Can't reproduce. This is configuration issue. not bug.


Previous Comments:
---

[2001-04-22 11:13:48] [EMAIL PROTECTED]
Hi.

I have seen many bug reports about this. It seems that PHP is crashing before it sends 
complete headers. However, I think I have something new that might help you. please 
follow.

PHP 4.0.4pl1 is installed as cgi and configured with:
./configure --with-mysql
The server has PHP3.0.15 running as a module on apache 1.3.4

I have tried manythings, including:
Running the scripts from command line: perfectly works.
Running the script from PHP3 as a module: of course.
Calling the script as normal cgi:Premature end of script headers.
naming the script as .cgi and putting the #!php interpreter on the first line: 
Premature end of script headers.

More information: Other cgi scripts do not work well, for example, every NPH script 
crashs immediately on my server.

Also, Neomail refused to install, it requested cgi.pm version 2.72 while I have 
version 2.49

I am still searcing for the reason, but I wanted to tell you this. if it might help 
you.

ayham

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10441edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #11488: french translation error for the str_replace function

2001-06-18 Thread dans

From: [EMAIL PROTECTED]
Operating system: linux suse6.4
PHP version:  4.0.5
PHP Bug Type: Documentation problem
Bug description:  french translation error for the str_replace function

The french translation of the manual has several mistakes/errors
for example in the str_replace function, the french version said to USE 
ereg_replace()
for simple replacement operations.



-- 
Edit Bug report at: http://bugs.php.net/?id=11488edit=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 #9606 Updated: complex objects and references not saved

2001-06-18 Thread sniper

ID: 9606
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Duplicate
Bug Type: *Session related
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

duplicate of #8676

Previous Comments:
---

[2001-03-07 18:22:17] [EMAIL PROTECTED]
Here is a sample code that produces totally random results.
Elements of container become integers, switch places or even
become objects from other script run on the server before
when saving and restoring sessions.

///example//
class elt {
 var $a; var $b; var $c;

 function elt($a, $b, $c) {
  $this-a=$a; $this-b=$b; $this-c=$c;
 }
 
 function print_elt() {
  echo htmlspecialchars($this-a.' '.$this-b.' '.$this-c).'
br ';
 }
 
}

class container {
 var $arr;


 function container() {
  $this-arr=array();
 }

 function put($elt) {
  $num=sizeof($this-arr);
  $this-arr[$num]=$elt;
  $this-arr['num_'.$num]=$this-arr[$num];
 }

 function get_by_num($num) {
  return $this-arr[$num];
 }

 function get_by_text($num) {
  return $this-arr['num_'.$num];
 }
}

session_register('x');
if (isset($x)) {
 $tmp=$x-get_by_num(0); $tmp-print_elt();
 $tmp=$x-get_by_text(0); $tmp-print_elt();
 $tmp=$x-get_by_num(1); $tmp-print_elt();
 $tmp=$x-get_by_text(1); $tmp-print_elt();
 $tmp=$x-get_by_num(2); $tmp-print_elt();
 $tmp=$x-get_by_text(2); $tmp-print_elt();
}
else {
 $x=new container;
 $x-put(new elt(1, 2, 3));
 $x-put(new elt('aaa', 'bbb', 'ccc'));
 $x-put(new elt('x', 'y', 'z'));
}
end of example//

I use precompiled Debian packet (at the moment I'm writing
this 4.0.4pl1-5) with modules xml, pgsql, ldap and imap. As
server I use apache (Debian packet version 1.3.14-2.3)
Here is my ini file:

//php.ini///
engine   = On
short_open_tag = On
asp_tags  = Off
precision  = 14
y2k_compliance = Off
output_buffering = Off
output_handler  =  
implicit_flush  = Off 
allow_call_time_pass_reference = On 
safe_mode  = Off
safe_mode_exec_dir =
safe_mode_allowed_env_vars = PHP_ 
safe_mode_protected_env_vars = LD_LIBRARY_PATH  
disable_functions =
highlight.string = #DD
highlight.comment = #FF8000
highlight.keyword = #007700
highlight.bg  = #FF
highlight.default = #BB
highlight.html  = #00

expose_php = On 
max_execution_time = 30
memory_limit = 8M

error_reporting = E_ALL  ~E_NOTICE  
display_errors = On
display_startup_errors = Off
log_errors  = Off
track_errors = Off 
warn_plus_overloading = Off

variables_order  = EGPCS 
register_globals = On  
register_argc_argv = On  
post_max_size  = 8M  
gpc_order   = GPC 

magic_quotes_gpc = On  
magic_quotes_runtime= Off  
magic_quotes_sybase = Off  

auto_prepend_file =
auto_append_file =

default_mimetype = text/html

include_path =   
doc_root  = 
user_dir  = 
enable_dl  = On
file_uploads = On

upload_max_filesize = 2M

allow_url_fopen = On

[Syslog]
define_syslog_variables = Off

[mail function]
SMTP   = localhost   
sendmail_from = [EMAIL PROTECTED]

[Debugger]
debugger.host = localhost
debugger.port = 7869
debugger.enabled = False

[Logging]
[Java]

[SQL]
sql.safe_mode = Off

[ODBC]
odbc.allow_persistent = On
odbc.check_persistent  =  On
odbc.max_persistent = -1
odbc.max_links   = -1
odbc.defaultlrl = 4096 
odbc.defaultbinmode =  1 

[MySQL]
mysql.allow_persistent = On 
mysql.max_persistent = -1
mysql.max_links   = -1
mysql.default_port  =  
mysql.default_socket =  
mysql.default_host  =  
mysql.default_user  =  
mysql.default_password =  

[mSQL]
msql.allow_persistent = On 
msql.max_persistent  = -1 
msql.max_links   = -1 

[PostgresSQL]
pgsql.allow_persistent = On 
pgsql.max_persistent = -1 
pgsql.max_links   = -1 

[Sybase]
sybase.allow_persistent = On 
sybase.max_persistent = -1 
sybase.max_links  = -1 
sybase.min_error_severity = 10 
sybase.min_message_severity = 10 
sybase.compatability_mode = Off 

[Sybase-CT]
sybct.allow_persistent = On  
sybct.max_persistent = -1  
sybct.max_links   = -1  
sybct.min_server_severity = 10 
sybct.min_client_severity = 10 

[bcmath]
bcmath.scale = 0 

[browscap]

[Informix]
ifx.default_host  =  
ifx.default_user  =  
ifx.default_password  =  
ifx.allow_persistent  = On 
ifx.max_persistent  = -1 
ifx.max_links   = -1 
ifx.textasvarchar  = 0 
ifx.byteasvarchar  = 0 
ifx.charasvarchar  = 0 
ifx.blobinfile   = 0 
ifx.nullformat   = 0 

[Session]
session.save_handler  = files   
session.save_path = /tmp
session.use_cookies   = 1   

[PHP-DEV] Bug #9442 Updated: session blocking, version: all including 4.0.4pl1

2001-06-18 Thread sniper

ID: 9442
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: *Session related
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

Does this happen with latest CVS snapshot from http://www.zend.com/snapshots/ ??


Previous Comments:
---

[2001-02-25 09:25:59] [EMAIL PROTECTED]
session blocking?
-
when session start started
in the multi-framed webpage

if one frame did not finished running(keeping-alive and conneting), the other 
frame(using the same session id) will blocked until that frame finished

-
often, an web-irc would like to keep one frame alive until user quit, when running it 
does soemthings, but other frames not work this time!!!

this problem not only bad for that keeping-alive php program to sessoin, but also bad 
for normal multi-frame's run speed, becos only one php running for 1 user, if no 
blocking, 2 or more running the same time.

if i use session_set_save_handle to use my own save handle, the problem went! is that 
the problem which internal session save handle used the file lock?
locking sessoin file until php program exited and session saved?
so how the other frame used by the same user works well?
-
pls, fix it, find a way

but if fixed, another problem still covered
perhaps both frame1.php and frame2.php running
if frame1.php changed the session, will it effect in frame2 immediately?

-
example is in:
http://www.phpwizard.net/phpChat
it use http://www.phpwizard.net/phpIRC
it works ok it php3, becos phpChat have its own session support, and was turned off in 
php4
so session blocking in php4

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9442edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #10309 Updated: feature request

2001-06-18 Thread jmoore

ID: 10309
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Feature/Change Request
Operating system: 
PHP Version: 4.0.4
Assigned To: 
Comments:

try:

$c = (true)? $a: $b;

might work better. Havnt tested it though.

Previous Comments:
---

[2001-04-12 15:26:32] [EMAIL PROTECTED]
$a = 'foo';
$b = 'bar';

$c = (true) ? $a : $b;

= syntax error, have to do

if (true) {
  $c = $a;
} else {
  $c = $b;
}

would be nice :)

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10309edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #9639 Updated: Nasty bug in mod_mm.c causes CGI POST to stop working

2001-06-18 Thread sniper

ID: 9639
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: *Session related
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

Does this still happen with PHP 4.0.6RC3:

http://www.php.net/~andi/php-4.0.6RC3.tar.gz

If above link does not work, change RC3 to RC4.

--Jani


Previous Comments:
---

[2001-03-08 17:10:21] [EMAIL PROTECTED]
On RedHat 6.2 or 7 machine with more than 67M of shared memory available
per process (this number is stored in /proc/sys/kernel/shmmax)
Compile Apache with ssl modules.
Compile mod_php into Apache --with-mm

Have 3300 ( or anything less than 67M) in /proc/sys/kernel/shmmax on
machine where you're running Apache - CGI POST stops working, stdin is
empty. This happens regardless of what kind of cgi script is executted
by the form, it doesn't have to be a php script. Increase the number in
/proc/sys/kernel/shmmax to something more than 67M, everything works
again. This 67M number is hardcoded in mm_create from mm library by
their configure script, which checks how much memory is available.
I have no explanation for it, because all mod_mm does in this case is
returning FAILURE if there is not enough memory. Go figure...
Here is my proposal: lets check how much memory is there before calling
mm_create in mod_mm.c by doing this: (I put the actual patch at the
bottom)

Add two new functions ( pretty much copied from mm configure)

static int test_mem_size (unsigned long size)
{
int fd;
void *segment;
#ifdef MM_SHMT_MMFILE
char file[] = ./ac_test.tmp;
unlink(file);
if ((fd = open(file, O_RDWR|O_CREAT, S_IRUSR|S_IWUSR)) == -1)
return 0;
if (ftruncate(fd, size) == -1)
return 0;
if ((segment = (void *)mmap(NULL, size, PROT_READ|PROT_WRITE,
MAP_SHARED, fd, 0)) == MAP_FAILED) {
close(fd);
return 0;
}
munmap((caddr_t)segment, size);
close(fd);
unlink(file);
#endif
#ifdef MM_SHMT_IPCSHM
if ((fd = shmget(IPC_PRIVATE, size, SHM_R|SHM_W|IPC_CREAT)) == -1)
return 0;
if ((segment = (void *)shmat(fd, NULL, 0)) == ((void *)-1)) {
shmctl(fd, IPC_RMID, NULL);
return 0;
}
shmdt(segment);
shmctl(fd, IPC_RMID, NULL);
#endif
return 1;
}
#define ABS(n) ((n) = 0 ? (n) : (-(n)))

static unsigned long get_max_mem_size()
{
  unsigned long t, m, b;
int d;
int rc;
/*
 * Find maximum possible allocation size by performing a
 * binary search starting with a search space between 0 and
 * 64MB of memory.
 */
t = 1024*1024*64 /* = 67108864 */;
if (test_mem_size(t))
m = t;
else {
m = 1024*1024*32;
b = 0;
for (;;) {
/* fprintf(stderr, t=%d, m=%d, b=%dn, t, m, b); */
rc = test_mem_size(m);
if (rc) {
d = ((t-m)/2);
b = m;
}
else {
d = -((m-b)/2);
t = m;
}
if (ABS(d)  1024*1) {
if (!rc)
m = b;
break;
}
if (m  1024*8)
break;
m += d;
}
if (m  1024*8)
m = 0;
}
return m;
}

The actual patch would look like this:

--- ext/session/mod_mm.c Fri Nov  3 07:00:49 2000
+++ ext/session/mod_mm.c Tue Feb 27 14:09:31 2001
@@ -173,9 +173,84 @@

 #define PS_MM_DATA ps_mm *data = PS_GET_MOD_DATA()

+static int test_mem_size (unsigned long size)
+{
+int fd;
+void *segment;
+#ifdef MM_SHMT_MMFILE
+char file[] = ./ac_test.tmp;
+unlink(file);
+if ((fd = open(file, O_RDWR|O_CREAT, S_IRUSR|S_IWUSR)) == -1)
+return 0;
+if (ftruncate(fd, size) == -1)
+return 0;
+if ((segment = (void *)mmap(NULL, size, PROT_READ|PROT_WRITE,
+MAP_SHARED, fd, 0)) == MAP_FAILED) {
+close(fd);
+return 0;
+}
+munmap((caddr_t)segment, size);
+close(fd);
+unlink(file);
+#endif
+#ifdef MM_SHMT_IPCSHM
+if ((fd = shmget(IPC_PRIVATE, size, SHM_R|SHM_W|IPC_CREAT)) == -1)
+return 0;
+if ((segment = (void *)shmat(fd, NULL, 0)) == ((void *)-1)) {
+shmctl(fd, IPC_RMID, NULL);
+return 0;
+}
+shmdt(segment);
+shmctl(fd, IPC_RMID, NULL);
+#endif
+return 1;
+}
+#define ABS(n) ((n) = 0 ? (n) : (-(n)))
+static unsigned long get_max_mem_size()
+{
+  unsigned long t, m, b;
+int d;
+int rc;
+/*
+ * Find maximum possible allocation size by performing a
+ * binary search starting with a search space between 0 and
+ * 64MB of memory.
+ */
+t = 1024*1024*64 /* = 67108864 */;
+if (test_mem_size(t))
+m = 

[PHP-DEV] Bug #11513: ImageCreateFromGIF not work

2001-06-18 Thread admin

From: [EMAIL PROTECTED]
Operating system: Windows2000
PHP version:  4.0.5
PHP Bug Type: PHP options/info functions
Bug description:  ImageCreateFromGIF not work

  $img = @ImageCreateFromGIF(counter/$type/bg.gif); 


-- 
Edit Bug report at: http://bugs.php.net/?id=11513edit=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 #9819 Updated: Updating HTTP_SESSION_VARS[] doesn't works

2001-06-18 Thread sniper

ID: 9819
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: *Session related
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

This is fixed in latest CVS. Try snapshot:

http://www.zend.com/snapshots/



Previous Comments:
---

[2001-05-23 11:30:27] [EMAIL PROTECTED]
Build Date: May 22 2001

No changes.

BTW, first time then page is loaded I have the result:
Counter1=1, Counter2=

i.e. after first ++ operation counter2 is NULL. Is this normal?

---

[2001-05-22 21:06:00] [EMAIL PROTECTED]
Please give the latest CVS a try. Andrei Zmievski committed a patch that should fix 
this problem.

---

[2001-05-17 09:47:42] [EMAIL PROTECTED]
PHP Version 4.0.7-dev
System - Windows 95/98 4.10
Build Date - May 16 2001
Server API - Apache

SERVER_SOFTWARE=  Apache/1.3.14 (Win32) 
PHP/4.0.5 

Result the same, nothing changed.

---

[2001-05-14 08:34:01] [EMAIL PROTECTED]
Did the latest snapshot work or not?



---

[2001-05-12 06:17:50] [EMAIL PROTECTED]
In the 4.0.5 result the same. I don't think that this is file problem, this is must be 
scripting engine problem. Session file for this bug:

!counter1|counter2|i:18;

I will try the last snapshot if can to download it..

---

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.


ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9819edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #9096 Updated: #! line in a script is outputed in script

2001-06-18 Thread liz

ID: 9096
User Update by: [EMAIL PROTECTED]
Status: Duplicate
Bug Type: *General Issues
Operating system: Linux
PHP Version: 4.0.4pl1
Description: #! line in a script is outputed in script

This isnt a dup of 9041 as this wsa using apache where he said it DIDNT do it.

I have noticed it did appear to only be for me in that one version of PHP, although 
others have contacted me asking me if I had an answer, with different versions.

Previous Comments:
---

[2001-06-14 16:46:25] [EMAIL PROTECTED]
Duplicate of #9041


---

[2001-02-05 02:56:01] [EMAIL PROTECTED]
I have been able to reproduce this on my Debian box using 4.0.5-dev.
Rasmus, you can contact me privately for an account.

---

[2001-02-04 08:36:21] [EMAIL PROTECTED]
Hrm..  I am unable to reproduce this.  I am on Linux and I used your exact ./configure 
line.  Are you completely sure you are seeing what you say you are seeing?

---

[2001-02-04 08:19:58] [EMAIL PROTECTED]
Example:
#!/usr/local/bin/php -q
? echo Hello; ?
produces as output
#!/usr/local/bin/php -q
Hello

- which is not the desired effect.

This worked when I used 4.0.3pl1 - which was compiled with the same options and other 
files (as I made a script to do it!)

Compiled with : ./configure --with-mysql --enable-discard-path --enable-track-vars 
--disable-debug --enable-dbase --enable-trans-sid --enable-inline-optimization

Any further questions.. (if you want my php binary or anything else)..

---


Full Bug description available at: http://bugs.php.net/?id=9096


-- 
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 #5987 Updated: PHP crashes when using mktime()

2001-06-18 Thread jmoore

ID: 5987
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Scripting Engine problem
Operating system: 
PHP Version: 4.0.1
Assigned To: 
Comments:

This is fixed:

D:\cvs\php4\Debug_TSphp -v
4.0.7-dev

D:\cvs\php4\Debug_TSphp
?php
  echo mktime(1,0,0,1,1,1970,1);
?
^Z
X-Powered-By: PHP/4.0.7-dev
Content-type: text/html

0

Please makesure your using the correct php binary by running php -v. But its totally 
unreproducable which kinda implies that you have a php binary in your path and are 
using that rather than the php binary you think you are using.

- James

Previous Comments:
---

[2001-04-28 05:59:51] [EMAIL PROTECTED]
I tested with the latest binary from www.php4win.de
and with the RC6 binary from ftp.phpuk.org.

Both crash when doing the following:

D:phpphp-4.0.5RC6-win32php
?php
  echo mktime(1,0,0,1,1,1970,1);
?
^Z

D:phpphp-4.0.5RC6-win32

(on Windows 2000 RC2)

- Martin

---

[2001-04-27 20:04:27] [EMAIL PROTECTED]
This works fine for me now. Please retest with latest win32 binaries from php4win.de 
or the 4.0.5 binaries and give feedback.

- James

---

[2000-08-08 08:57:48] [EMAIL PROTECTED]
this is a dup of 4096

---

[2000-08-07 07:19:36] [EMAIL PROTECTED]
checked again in NT with latest CVS - doesn't crash both in release  debug mode. 
Could someone provide a backtrace?

---

[2000-08-07 00:17:28] [EMAIL PROTECTED]
crashes me too an W2K

---

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.


ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=5987edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #10887 Updated: Variables from forms being undefined

2001-06-18 Thread sniper

ID: 10887
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: Unknown/Other Function
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

Not bug. Check your setting in php.ini


Previous Comments:
---

[2001-05-15 16:27:19] [EMAIL PROTECTED]
This function did not work in PHP4.05:
elseif ($delete) {

// delete a record

$sql = DELETE FROM models WHERE model_id=$model_id;   

$result = mysql_query($sql);

echo $sql Record deleted!p;
}

Unless I added isset() like so:

elseif (isset($delete)) {}

But as I added that in other functions that returned a value from mySQL, every value 
returned would be 1 or TRUE.

---

[2001-05-15 16:23:28] [EMAIL PROTECTED]
This script shows no isset(), please be a little more descriptive.

Derick

---

[2001-05-15 16:01:31] [EMAIL PROTECTED]
Here is an example of a script that returned the error in 4.05, and works in 4.04.

elseif ($delete) {

// delete a record

$sql = DELETE FROM models WHERE model_id=$model_id;   

$result = mysql_query($sql);

echo $sql Record deleted!p;

---

[2001-05-15 15:54:10] [EMAIL PROTECTED]
Please post a short reproducing script. (short is under 10 lines)

---

[2001-05-15 15:50:01] [EMAIL PROTECTED]
When using PHP4.05 my script always told me a variable from a form I had on the page 
was undefined. Using isset() the script ran without problems, but returned every query 
with 1 (my best guess is that is TRUE from isset()). I installed PHO4.04 and 
everything ran perfectly.

Mike Peterson

---

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.


ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10887edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #7363 Updated: @include supresses parse errors within included file

2001-06-18 Thread jmoore

ID: 7363
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Analyzed
Status: Closed
Bug Type: Scripting Engine problem
Operating system: 
PHP Version: 4.0.3pl1
Assigned To: 
Comments:

We have now standardised the behaviour (I cant actually remember what we decided but 
this was done in 4.0.5, I think we suppressed everything on the implementation side 
but not on the code side)

- James

Previous Comments:
---

[2000-11-05 11:48:32] [EMAIL PROTECTED]
Well, I don't know if it's an intended behaviour - I'll check this. In the meantime, 
you can use error_reporting function to re-enable error reporting. 

---

[2000-10-20 05:17:32] [EMAIL PROTECTED]
When using...

@include

...or...

@include_once

...to supress a warning if the file to be included does not exist, all parse 
errors/warnings within that file are also supressed (Resulting in very hard to debug 
code, or having to use is_File with every include that might not exist).



---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=7363edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #9972 Updated: after session_destroy session_start variable still has a value

2001-06-18 Thread sniper

ID: 9972
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: *Session related
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

Please include complete but short example script into this bug report. 

Previous Comments:
---

[2001-03-24 14:16:56] [EMAIL PROTECTED]
I've used session_register(sErr) to register session variable. then it's used in 
following function:

function kBan_error() {
global $HTTP_SESSION_VARS;
if($HTTP_SESSION_VARS['sErr']):
echo span class=error.$HTTP_SESSION_VARS['sErr']./span;
endif;
$HTTP_SESSION_VARS['sErr'] = ;
}

on another site the $HTTP_SESSION_VARS['sErr'] is empty. after calling 
session_destroy() is the variable empty again. but after calling session_start() in 
the same browser window, the variable sets to latest value that it's been filled with. 
calling the function kBan_error() twice in a row with defined variable 
$HTTP_SESSION_VARS['sErr'] causes only one appearance of the error message.


---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9972edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #11506: it is giving me a hard time

2001-06-18 Thread bananasgrapefruit

From: [EMAIL PROTECTED]
Operating system: Widows
PHP version:  4.0.5
PHP Bug Type: Reproducible crash
Bug description:  it is giving me a hard time

T
H
E
Y

B
U
G


-- 
Edit Bug report at: http://bugs.php.net/?id=11506edit=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 #10000 Updated: corrupt http_post_vars when using session_start

2001-06-18 Thread sniper

ID: 1
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: *Session related
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

Can't reproduce. Get the latest RC from here:

http://www.php.net/~andi/php-4.0.6RC3.tar.gz 

(if that doesn't work, try with RC4)

And if it still doesn't work, submit a new bug report,
with SHORT example script. Not over 15 lines..



Previous Comments:
---

[2001-03-26 12:51:46] [EMAIL PROTECTED]
When posting to a php script using sessions and pdf the HTTP_POST_VARS disappear.  If 
you change the variable $type to 1, which displays the variables from a text file, 
everything works fine.  Writing to a pdf file will show empty variables.  If the 
session_start() is commented out, the HTTP_POST_VARS return.

Script 1***
?php
session_start();

session_register(s_CompanyId);
session_register(s_SiteId);

$s_CompanyId = 1;
$s_SiteId = 2;
?

html
headtitles1/title/head
body class=svc-sch onload=javascript: init();

form name=claims method=post action=s2.php
   input type=hidden name=form_name value=claims
   input type=hidden name=site_id value=?php echo $s_SiteId; ?
   input type=hidden name=co_id value=?php echo $s_CompanyId; ?
   input type=submit name=print value=Print
/form

/body

/html


Script 2***
?php

session_start();

$my_site_id = $HTTP_POST_VARS['site_id'];
$my_co_id = $HTTP_POST_VARS['co_id'];
$fn=$HTTP_POST_VARS['form_name'];

// change to $type = 1; works
$type = 0;


$page_width = 612;   // width of page
$page_height = 792;  // height of page


// open document
if( $type == 0 )
$file_name = /tmp/claim.pdf;
else if( $type == 1 )
$file_name = /tmp/claim.txt;
$fp = fopen( $file_name, w );

//
// PDF
//
if( $type == 0 )
{
$pdf = PDF_open( $fp );

// begin page
PDF_begin_page( $pdf, $page_width, $page_height ); // 8.5 x 11.0
$page = $page + 1;

// add bookmark
PDF_add_bookmark( $pdf, $page );

// set font
PDF_set_font( $pdf, Courier, 10, host );
PDF_set_value( $pdf, textrendering, 0 );

PDF_show_xy( $pdf, form_name=$fn, 50, 350 );
PDF_show_xy( $pdf, co_id=$my_co_id, 50, 360 );
PDF_show_xy( $pdf, site_id=$my_site_id, 50, 370 );
PDF_show_xy( $pdf, s_CompanyId=$s_CompanyId, 50, 380 );
PDF_show_xy( $pdf, s_SiteId=$s_SiteId, 50, 390 );

// end page
PDF_end_page( $pdf );

// close document
PDF_close( $pdf );
}
else if( $type == 1 )
{
fwrite( $fp, form_name=$fnn );
fwrite( $fp, co_id=$my_co_idn );
fwrite( $fp, site_id=$my_site_idn );
fwrite( $fp, s_CompanyId=$s_CompanyIdn );
fwrite( $fp, s_SiteId=$s_SiteIdn );
}


fflush( $fp );
fclose( $fp );


// transmit file
$len = filesize( $file_name );

if( $type == 0 )
header( Content-Type: application/pdf );
else if( $type == 1 )
header( Content-Type: text/plain );
header( Content-Length: $len );
/*
header( Pragma:  );
header( Last-Modified: .gmdate(D, d M Y H:i:s, time()). GMT );
header( Expires: .gmdate(D, d M Y H:i:s, time()+5). GMT );
header( Cache-Control: must-revalidate, max-age=5, s-max-age=5 );
*/
header(Content-Disposition: inline; filename=claims.pdf);

$rtn=readfile( $file_name );
?

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=1edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #8130 Updated: Changing a copy of an array affects the original

2001-06-18 Thread jmoore

ID: 8130
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Scripting Engine problem
Operating system: 
PHP Version: 4.0.6-dev
Assigned To: 
Comments:

This will not be fixed anytime soon. It is a deep seated problem in the implementation 
and fixing it would cause speed problems and numerous other problems, This is somthing 
that can be coded around too so should not cause massive problems.

- James

Previous Comments:
---

[2001-04-28 15:27:42] [EMAIL PROTECTED]
Reproduced in 4.0.6-dev one for the bug squash

---

[2001-01-06 02:38:08] [EMAIL PROTECTED]
Confirmed in 4.0.4pl1 RC1

---

[2000-12-07 02:28:51] [EMAIL PROTECTED]
Is this the same as bug 6417?

---

[2000-12-06 11:23:23] [EMAIL PROTECTED]
OK, this only affects objects in the array whose methods
have been accessed.  Other objects are still copies.  It
also works on php-4.0.3pl1 on the Win32 platform.

---

[2000-12-05 20:28:28] [EMAIL PROTECTED]
A short script:
?php
  class test_class_2{
var $name;
function distort_reality(){
 echo(Method Called.brn);
 return;
}
  }
  $a[] = new test_class_2;
  $a[0]-name = 'Original';
  echo('$b = $abr'.n);
  $b = $a;
  echo(Original contains: {$a[0]-name}brn);
  echo(Copy contains: {$b[0]-name}brpn);
  echo(Change contents for $bbrn);
  $b[0]-name = 'Copy';
  echo(Original contains: {$a[0]-name}brn);
  echo(Copy contains: {$b[0]-name}brpn);
  $a[0]-distort_reality();
  echo('Once again, $b = $abr'.n);
  $b = $a;
  echo(Original contains: {$a[0]-name}brn);
  echo(Copy contains: {$b[0]-name}brpn);
  echo(Change contents for $bbrn);
  $b[0]-name = 'Copy';
  echo(Original contains: {$a[0]-name}brn);
  echo(Copy contains: {$b[0]-name}brn);
?

The output from the script:

$b = $a
Original contains: Original
Copy contains: Original

Change contents for $b
Original contains: Original
Copy contains: Copy


Method Called.
Once again, $b = $a
Original contains: Original
Copy contains: Original


Change contents for $b
Original contains: Copy
Copy contains: Copy

Basically, if $a is an array of objects and any method of an object is called any 
subsequent copy of $a becomes linked to the original.  Any change to the copy 
propagates through to the original.

Configure line:
 './configure' '--with-config-file-path=/usr/local/stronghold/conf' 
'--with-apxs=/usr/local/stronghold/bin/apxs' '--enable-versioning' '--disable-debug' 
'--with-zlib' '--with-gd=/usr/local' '--with-gdbm' '--with-db2' '--with-mysql' 
'--with-xml' '--with-ldap' '--with-cpdflib=/usr/local' '--with-png-dir=/usr' 
'--with-jpeg-dir=/usr' '--with-tiff-dir=/usr' '--with-xpm-dir=/usr/X11R6' 
'--enable-sysvshm=yes' '--enable-sysvsem=yes' '--enable-track-vars=yes' 
'--enable-bcmath=yes' '--enable-memory-limit=yes'

Running as a module under apache 1.3.14

---

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.


ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=8130edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #11489: Sybase query result is getting destructed

2001-06-18 Thread pwmoosman

From: [EMAIL PROTECTED]
Operating system: Solaris
PHP version:  4.0.5
PHP Bug Type: Sybase-ct (ctlib) related
Bug description:  Sybase query result is getting destructed

The following script produces the following error the second time 
getAppName/sybase_fetch_row is called.

Error (warning):

   /users/pmoosman/test_data/test1.php(26) : Warning - 3 is not a valid Sybase result 
resource

Script:

?php

function getConnect()
{
  $db = sybase_connect('','yyy','zzz');
  return $db;
}


function getAppName($app_id) 
{

  // static $db;

  $sql = select name from web_apps where application_id=$app_id;

  $db = getconnect();

  $result = sybase_query($sql, $db);

  $row = sybase_fetch_row($result); 

  // sybase_free_result($result);

  return $row[0];
}

getAppName(23);
getAppName(23);

?


Note: If I uncomment the static $db line, the error (warning) goes away.



I ran PHP in a debugger and it looks like the sybase connection is getting destructed 
when the sybase_query results are getting assigned to $result.




-- 
Edit Bug report at: http://bugs.php.net/?id=11489edit=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 #10525 Updated: Session problem with passing array of objects (related to no 8676 and no 9470)

2001-06-18 Thread sniper

ID: 10525
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Duplicate
Bug Type: *Session related
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

Duplicate of #8676


Previous Comments:
---

[2001-04-27 10:08:56] [EMAIL PROTECTED]
I'd a problem of lost informations between two parses of PHP.

In the first parse, I'd a clean session which looks like this :
--
data_ticker|a:2:{i:0;O:16:newslist_indices:7:{s:5:TITLE;s:9:ACCOR 
STK;s:4:LAST;s:5:46.88;s:4:CHGT;s:4:1.39;s:4:PRCT;s:4:3.06;s:8:EXCHANGE;s:10:SBF
   
;s:3:URL;s:60:http://www.cityquote.com/bmp/data_details.php?index_id=43232;s:11:PUBLISHDATE;s:12:26/04/2001
  ;}i:1;O:16:newslist_indices:7:{s:5:TITLE;s:15:AIR LIQUIDE 
STK;s:4:LAST;s:5:162.3;s:4:CHGT;s:4:-0.4;s:4:PRCT;s:5:-0.25;s:8:EXCHANGE;s:10:SBF
   
;s:3:URL;s:60:http://www.cityquote.com/bmp/data_details.php?index_id=43233;s:11:PUBLISHDATE;s:12:26/04/2001
  ;}}
---

And then after the second parse (after of course a 'session_start()'), the session 
looks like this :
--
data_ticker|a:2:{i:0;O:16:newslist_indices:8:{s:5:TITLE;s:9:ACCOR 
STK;s:4:LAST;s:5:46.88;s:4:CHGT;s:4:1.39;s:4:PRCT;s:4:3.06;s:8:EXCHANGE;s:10:SBF
   
;s:3:URL;s:60:http://www.cityquote.com/bmp/data_details.php?index_id=43232;s:11:PUBLISHDATE;s:12:26/04/2001
  ;}i:1;O:16:newslist_indices:8:{s:5:TITLE;s:15:AIR LIQUIDE 
STK;s:4:LAST;s:5:162.3;s:4:CHGT;s:4:-0.4;s:4:PRCT;s:5:-0.25;s:8:EXCHANGE;s:10:SBF
   
;s:3:URL;s:60:http://www.cityquote.com/bmp/data_details.php?index_id=43233;s:11:PUBLISHDATE;s:12:26/04/2001
  ;}}
---

The only thing that changes is the number of properties had changed. It was 7 and then 
8, thus, with a print_r functions, I've a __PHP_Incomplete_Class Object :

Array ( [0] = __PHP_Incomplete_Class Object ( [__PHP_Incomplete_Class_Name] = 
newslist_indices [TITLE] = ACCOR STK [LAST] = 46.88 [CHGT] = 1.39 [PRCT] = 3.06 
[EXCHANGE] = SBF [URL] = 
http://www.cityquote.com/bmp/data_details.php?index_id=43232 [PUBLISHDATE] = 
26/04/2001 ) [1] = __PHP_Incomplete_Class Object ( [__PHP_Incomplete_Class_Name] = 
newslist_indices [TITLE] = AIR LIQUIDE STK [LAST] = 162.3 [CHGT] = -0.4 [PRCT] = 
-0.25 [EXCHANGE] = SBF [URL] = 
http://www.cityquote.com/bmp/data_details.php?index_id=43233 [PUBLISHDATE] = 
26/04/2001 ))

Austin.



---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10525edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #8676 Updated: Bad serialization of objects with references

2001-06-18 Thread sniper

ID: 8676
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Assigned
Bug Type: *Session related
Operating system: 
PHP Version: 4.0.5
Assigned To: sas
Comments:

There are a lot of duplicate reports on this one.


Previous Comments:
---

[2001-05-23 10:35:15] [EMAIL PROTECTED]
Yes, the bug is still in 4.0.5. I put it back online on 
http://www.generasound.com/test/bug.php
You can see it in action provided your browser accepts cookies (go there and click 
reload).

---

[2001-05-22 21:29:45] [EMAIL PROTECTED]
Could you please give some feedback if this problem persists with a recent version 
(CVS, snapshot, 4.0.5 release) of PHP? Thanks!

---

[2001-01-12 11:15:12] [EMAIL PROTECTED]
Some complex objects won't be correctly stored into the session. This is probably a 
problem with serialize/unserialize. It happens with objects structure containing some 
references. The code below builds the simpliest structure I could find that pinpouts 
the problem.
With more complex structure, you can have all sorts of strange behaviour, including 
crashing PHP, but the behaviours vary from one PHP installation to another (even with 
the same version and compile flags).

?php
/*
View this script with a browser and press reload
It will probably display --137645276 instead of --Object 
You can view it at http://www.generasound.com/test/bug.php
*/
session_start();
if (!isset($form))
{
  $form = new stdClass();
  $submit = new stdClass();

  $upperif = new stdClass();
  $upperif-Child = $submit;
  $upperif-Layout = new stdClass();
  $upperif-Layout-Child = new stdClass();
  $upperif-Layout-Child-Interface = $submit;

  $lowerif = new stdClass();

  $form-Children[0] = $upperif;
  $form-Children[1] = $lowerif;
  $form-Layout = new stdClass();
  $form-Layout-Children[1] = new stdClass();
  $form-Layout-Children[1]-Interface = $lowerif;
  echo --.$form-Layout-Children[1]-Interface.BR;
  session_register(form);
}
else
{
  echo --.$form-Layout-Children[1]-Interface.BR;
}
?


---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=8676edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #11305 Updated: Apache child procs arbitrary segfault

2001-06-18 Thread sniper

ID: 11305
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Status: Feedback
Old-Bug Type: Unknown/Other Function
Bug Type: Scripting Engine problem
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

We're now at RC3..and soon RC4 so change that part in URL..


Previous Comments:
---

[2001-06-06 13:01:08] [EMAIL PROTECTED]
Does this happen with PHP 4.0.6RC2 from

http://www.php.net/~andi/php-4.0.6RC2.tar.gz

and if it does, please include a GDB backtrace of the crash.

--Jani



---

[2001-06-06 05:11:13] [EMAIL PROTECTED]
instead of:
preit also shows this error on sites that display
fine./pre

i should have said it also shows this error on RECORDS that display fine

thanks in advance

---

[2001-06-06 02:40:35] [EMAIL PROTECTED]
Howdy. I and having a prob with a function in a php script. It crashes at random 
points and only with ceartain records, but i can't figure out what the diffrence is 
between functional and non functional records. It just started doing this after 
upgrading from php 4.0.1/apache 1.3.12 to php 4.0.4pl1/apache 1.3.19.

php configure:
./configure --with-mysql --with-apache=../apache_1.3.19 --enable-track-vars 
--with-tiff-dir=/usr/local --with-jpeg-dir=/usr/local --with-pdflib 
--with-zlib-dir=/usr/local --with-png-dir=/usr/local --with-gd --enable-debug

apache config.status:
./configure 
--with-layout=Apache 
--prefix=/usr/local/apache 
--activate-module=src/modules/php4/libphp4.a 
--enable-module=ssl 
--enable-module=rewrite

below is the snippit i've tracked it down to... this is the only code on the site i've 
found that causes the error.

  function fdate($dateid) {
global $db, $tablebody;
if($GLOBALS[PHP_AUTH_USER] == 'admin') { print 1; }
$result = mysql_query(SELECT date_value, date_text, date_checked, checklist .
 FROM date_data WHERE dateid = $dateid, $db);
if($GLOBALS[PHP_AUTH_USER] == 'admin') { print 2; }

$date = mysql_fetch_array($result);
if($GLOBALS[PHP_AUTH_USER] == 'admin') { print 3; }
if ($result) {mysql_free_result($result);}
if ($date[date_value] == '' || $date[date_value] == '-00-00') { $tdate = 
$date[date_text]; }
else {
  list($yr, $mnth, $dy) = split(-, $date[date_value]);
  $tdate = date(m/d/y, mktime(0, 0, 0, $mnth, $dy, $yr));
}
if($GLOBALS[PHP_AUTH_USER] == 'admin') { print 4; }
if ($date[date_checked]) { $ndate = '*' . $tdate; $bg = bgcolor='$tablebody' ; }
if($GLOBALS[PHP_AUTH_USER] == 'admin') { print 5; }
print(td ${bg}align='center' font class='vsmall'$ndate/font/tdn);
  }

note the print 1,2 etc ... it crashes at random places too. (sometimes before one, and 
at all points in between it seems. other times it works fine )

below is what was in apache's error_log. it also shows this error on sites that 
display fine.

[Tue Jun  5 17:27:03 2001]  Script:  '/usr/local/web/search.html'
---
zend_execute_API.c(261) : Block 0x08426128 status:
zend_variables.c(62) : Actual location (location was relayed)
Beginning:  OK (allocated on datetime.c:307, 7 bytes)
  End:  Overflown (magic=0x2A8FCC00 instead of 0x2A8FCC84)
1 byte(s) overflown
---
datetime.c(307) :  Freeing 0x0842614C (7 bytes), 
script=/usr/local/web/search.html Last leak repeated 15 times


---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11305edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #9386 Updated: set_error_handler() doesn't always catch errors

2001-06-18 Thread jmoore

ID: 9386
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Scripting Engine problem
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

FATAL errors are not passed through user error handlers due to the fact the engine may 
be unstable and this could present security issues, instead the engine reports the 
error via its default mechanism as described in php.ini and then shutsdown as 
gracefully as possible.

- James

Previous Comments:
---

[2001-02-21 16:39:35] [EMAIL PROTECTED]
The files error_handler.inc, parse_error.php, and php_warning.php are included below.

We have error_handler.inc as the auto_prepend_file in php.ini.  It defines an error 
handling function and then sets it.  However, when a parse error occurs, our error 
handler is not called, as you can see in the following snippet of execution.  It is 
clear that the error handler is not being called in the second case.

***
[httpd@dev10 php]$ php -q php_warning.php 
ERROR HANDLER
[httpd@dev10 php]$ php -q parse_error.php 
br
bFatal error/b:  Call to undefined function:  thisisjunk() in 
bparse_error.php/b on line b3/bbr
[httpd@dev10 php]$
***



error_handler.inc
==
?
 
/*
 
From php.ini:
 
 E_ALL - All errors and warnings
 E_ERROR   - fatal run-time errors
 E_WARNING - run-time warnings (non fatal errors)
 E_PARSE   - compile-time parse errors
 E_NOTICE  - run-time notices (these are warnings which often result from a 
bug in
 your code, but it's possible that it was intentional (e.g., using 
an
 uninitialized variable and relying on the fact it's automatically
 initialized to an empty string)
 E_CORE_ERROR  - fatal errors that occur during PHP's initial startup
 E_CORE_WARNING- warnings (non fatal errors) that occur during PHP's initial 
startup
 E_COMPILE_ERROR   - fatal compile-time errors
 E_COMPILE_WARNING - compile-time warnings (non fatal errors)
 
*/
 

function myc_log_error($timeday, $message, $server, $level, $service, $script_name, 
$context) {
echo ERROR HANDLERn;
}
 
function myc_error_handler($errno, $errstr, $errfile, $errline, $context) {
switch($errno) {
case E_NOTICE:
case E_USER_NOTICE:
case 0: // this occurs when the statement was prepended with an @ 
symbol
// do nothing
break;
 
case E_WARNING:
case E_CORE_WARNING:
case E_COMPILE_WARNING:
case E_USER_WARNING:
myc_log_error(date(Y-m-d H:i:s), $errstr, 
$GLOBALS['HOSTNAME'], $errno, $GLOBALS['SERVER_NAME'], $errfile, $context);
break;
 
default:
myc_log_error(date(Y-m-d H:i:s), $errstr, 
$GLOBALS['HOSTNAME'], $errno, $GLOBALS['SERVER_NAME'], $errfile, $context);
header(Location: 
http://www.mycomputer.com/errors/error_available.html;);
echo Hello!n;
exit();
break;
}
}
 
set_error_handler(myc_error_handler);
 

?
==

php_warning.php
==
?
 
foreach($arr as $hello) {
echo $hellon;
}
 
?
===

parse_error.php 
===
?
 
thisisjunk();
 
?
===

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9386edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #11451: ODBC under Apache: DLL Initialization Failed

2001-06-18 Thread danielc

From: [EMAIL PROTECTED]
Operating system: NT 4.0 SP6a
PHP version:  4.0.5
PHP Bug Type: ODBC related
Bug description:  ODBC under Apache:  DLL Initialization Failed

Here's my config:
   Windows NT 4.0 SP6a
   Apache 1.3.20, Running as service Logged On As a particular user
   PHP 4.0.5

Apache and PHP runs normally.

BUT, when I hit a PHP parsed page that uses ODBC connections, I get the following 
error message:

   Drwtsn32.exe - DLL Initialization Failed
   Initialization of the dynamic link library F:\WINNT\system32\USER32.dll failed.
   The process is terminating abnormally.


This only happens when I have the Apache Service Log On As a separate user via This 
Account.  There's no problem if I have the Apache Service Log On As the System 
Account.

The special user account in question has full control over all files and directories 
in the F:\Program Files\Apache\* tree.

Everyone has read access on all files and directories in the F:\WINNT\* tree.

I followed the instructions in the User Account for Apache Service to Run As 
(NT/2000) section of http://httpd.apache.org/docs/win_service.html and then rebooted 
the machine.  Still no luck.

Nothing shows up in Apache's error.log.

This may solely be an Apache problem, but I suspect it has to do with the 
interractions between PHP, ODBC and Apache.  Perhaps y'all can trace what's going on.

Probably the same problem reported in bug #8303: http://www.php.net/bugs.php?id=8303

Thanks,

--Dan


-- 
Edit Bug report at: http://bugs.php.net/?id=11451edit=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 #9681 Updated: can't use interbase functions in user defined sessions

2001-06-18 Thread sniper

ID: 9681
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: *Session related
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

This should be fixed in PHP 4.0.6 RC3.
http://www.php.net/~andi/php-4.0.6RC3.tar.gz

If above link doesn't work, try with RC4.


Previous Comments:
---

[2001-03-12 07:44:49] [EMAIL PROTECTED]
On a different machine, the same code generates as segfault. PHP is a freshly compiled 
( with --enable-debug) 4.0.4pl1, Apache is 1.3.9 from Debian Potato. The backtrace is:

#0  0x40392fbb in _res_resultcodes () from /usr/lib/apache/1.3/libdav.so
#1  0x4031974c in yy_state_buf () from /usr/lib/apache/1.3/libphp4.so
#2  0x40228a87 in execute (op_array=0x80fbc40) at ./zend_execute.c:2283
#3  0x4022f5c5 in convert_to_double (op=0x80b76d0) at zend_operators.c:317
#4  0x4022ef57 in zend_string_to_double (number=0x80b76d0 ×

-- 
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 #11437 Updated: PEAR: DB_common::getAssoc doesn't work correctly with DB_FETCHMODE_ASSOC

2001-06-18 Thread sniper

ID: 11437
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Old-Bug Type: Unknown/Other Function
Bug Type: *General Issues
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

This bug system is for reporting bugs in PHP the language,
not anything that has done using it.

Report these bugs to [EMAIL PROTECTED]



Previous Comments:
---

[2001-06-12 11:04:15] [EMAIL PROTECTED]
a snippet from DB_common::getAssoc (PEAR/php/DB/common.php):

if ($cols  2 || $force_array) {
// return array values
// XXX this part can be optimized
while (($row = $this-fetchRow($res, DB_FETCHMODE_ORDERED))
 !DB::isError($row)) {
reset($row);
// we copy the row of data into a new array
// to get indices running from 0 again
$results[$row[0]] = array_slice($row, 1);
}
} else {
// return scalar values
while (($row = $this-fetchRow($res))  !DB::isError($row)) {
$results[$row[0]] = $row[1];
}
}

In the if branch fetchRow is called with DB_FETCHMODE_ORDERED to ensure the result 
is indexed by numbers, in the else branch it isn't. I have set the default fetchmode 
to DB_FETCHMODE_ASSOC and so this function (called with a query with 2 columns) won't 
work for me unless I call $DB-setFetchmode(DB_FETCHMODE_ORDERED) before.
Conclusion: $this-fetchRow($res)) should be changed to 
$this-fetchRow($res,DB_FETCHMODE_ORDERED))

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11437edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #10221 Updated: Double session bug

2001-06-18 Thread sniper

ID: 10221
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: *Session related
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

Try with latest CVS snapshot from http://www.zend.com/snapshots/ as this should be 
fixed.


Previous Comments:
---

[2001-04-07 08:09:47] [EMAIL PROTECTED]

When a session is used by a 'main' script which causes a new browser window popup that 
also needs the session information (the session is called twice independently by the 
same user in one mouse-click) the session will be destroyed most of the time and 
sometimes PHP crashes. This problem occurs too when a shockwave object is loaded that 
also calls for the session information.
It is possible to prevent this autodestruct by putting an empty echo (e.g.: echo ;) 
after the second time the session is called (with: session_start();). 

I'm using MySQL for session storage, maybe this causes the  problem.




---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10221edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #11495: error: Mysql_connect() doesn't exist.

2001-06-18 Thread jonathonfitch

From: [EMAIL PROTECTED]
Operating system: NT
PHP version:  4.0.5
PHP Bug Type: *General Issues
Bug description:  error: Mysql_connect() doesn't exist.

This is the error I'm getting:

Fatal error: Call to unsupported or undefined function mysql_connect() in 
C:\Inetpub\wwwroot\test.php3 on line 3

This is the script:

?

$link = mysql_connect (localhost, username, secret)
or die (Could not connect);
print (Connected successfully);
mysql_close ($link);

?

I've tried both PHP 3 and PHP 4, both give me this error


-- 
Edit Bug report at: http://bugs.php.net/?id=11495edit=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: session_unregister() seems not work properly

2001-06-18 Thread ccjeagle

From: [EMAIL PROTECTED]
Operating system: FreeBSD 4.3 STABLE
PHP version:  4.0.5
PHP Bug Type: *Session related
Bug description:  session_unregister() seems not work properly

It seems that session_unregister() should remove a var
from the session, isn't it ?

---test.php
?php
// First script, register the var
session_start() ;
session_register(somevar) ;
$HTTP_SESSION_VARS[somevar] = abc ;
?
a href=test2.phpClick Here/a

---test2.php
?php
// Second script, unregister the var
session_start() ;
echo somevar is  . $HTTP_SESSION_VARS[somevar] ;
session_unregister(somevar) ;
?
bra href=test3.phpClick here again/a

test3.php
?php
// The third script, see the result
session_start() ;
print_r($HTTP_SESSION_VARS) ;
session_unset() ;
print_r($HTTP_SESSION_VARS) ;
session_destroy() ;
?

With the enable-trans-sid turned on, the result of the third
script is :
Array ( [somevar] = abc ) Array ( )

Is it a bug ?
How shoud I do if I want to remove some variables from
session but KEEP THE OTHERS unchanged ?

Best Regards


-- 
Edit 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 #10775 Updated: Apache process in loop after allocation of first session

2001-06-18 Thread sniper

ID: 10775
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: *Session related
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

This should be fixed in latest CVS.
Try snapshot from http://www.zend.com/snapshots/


Previous Comments:
---

[2001-05-10 01:21:20] [EMAIL PROTECTED]
Using Apache 1.3.19, PHP 4.0.5, MySQL from April download. The web site has worked 
with several releases of Apache, PHP and MySQL (except an early PHP release 4 XML). I 
added MySQL based session code from another site working happily with older versions 
of everything. When I start a page that has session code, the session open, read, 
write and close functions complete, the page displays ok but Apache is left in a loop 
using 100% CPU.

I cannot get in to subsequent pages to test anything until I shut down Apache. After I 
restart Apache, I can see the session record in MySQL and a log in a disk file 
complete with entries from open, read, write and close.

I made the minimum changes to the 4.0.5 php.ini, turned off all magic quotes, added 
PostgreSQL, but nothing related to sessions and nothing over the last few weeks. The 
error seems to happen after the last of my code has finished so the session stuff is 
setting up something to explode after the session close code has completed.

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10775edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #11531: imap_sort function fails on huge mailboxes

2001-06-18 Thread elnar

From: [EMAIL PROTECTED]
Operating system: FreeBSD
PHP version:  4.0.5
PHP Bug Type: IMAP related
Bug description:  imap_sort function fails on huge mailboxes

Thank you for your advices. My IMAP Client version was really old. Now I
have updated it to IMAP 2000, and updated my PHP to 4.0.5. But it did not
work! phpinfo() still shows IMAP Client ver 4.1
Why?
What can you advice me?
Thanks,
Elnar C Hajiev


-- 
Edit Bug report at: http://bugs.php.net/?id=11531edit=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 #11512: Parsing of vars inside a string

2001-06-18 Thread Brian Tanner

I think the problem here is that $varone_foo  is the valid form of a
variable so:

$vartwo=$varone_foo;

is getting parsed as a single variable called $varone_foo

PHP is *smart* enough to know that foo_$varone is not a valid name for a
variable or constant, and it goes out of its way to implicitly treat it
like:

$vartwo=foo_.$varone

instead of

$vartwo=foo_$varone;


You mentioned that in your example, $vartwo is not blah_foo as expected...
if you cranked your error reporting, you'll probably get an error like
$varone_foo is not a valid variable

-Brian Tanner


$varone=blah;
$vartwo=$varone_foo;

= The resulting contents of $vartwo is not blah_foo as expected. You can
only get the desired result by having $vartwo= $varone . _foo;

However something like $vartwo=foo_$varone works as expected =
foo_blah;

Is this a language construct issue perhaps?


--
Edit Bug report at: http://bugs.php.net/?id=11512edit=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 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 #11523 Updated: File uploads via HTTP POST don't work with Opera browsers

2001-06-18 Thread a . genkin

ID: 11523
User Update by: [EMAIL PROTECTED]
Status: Closed
Bug Type: HTTP related
Operating system: Solaris 8, Sparc
PHP Version: 4.0.5
Description: File uploads via HTTP POST don't work with Opera browsers

Here's what I received from the Opera folks.  They admit the
bug, but claim that PHP also doesn't implement the RFC 100%.

--8

From: [EMAIL PROTECTED]
Subject: Your Opera Bug report
To: [EMAIL PROTECTED]

Thank you for reporting this bug, and for taking the 
trouble to develop a test page.
The bug was known and is fixed in the next release of Opera
(5.12)
Versions 5.02 and earlier of Opera also function correctly.

What happened was that it was noticed that Opera did not
comply with the RFC
governing multipart mime attachments for forms (where
headers should be able to
be split across lines). Opera was brought into compliance
for version 5.1, but it
was then discovered that several major procesing languages
(php, coldfusion and miva)
do not comply with the RFC either.

Previous Comments:
---

[2001-06-18 08:38:36] [EMAIL PROTECTED]
After I tested this also with non-php CGI script, I'm
totally sure that this is NOT php bug but a bad bug 
in Opera for Linux. I tried also with the Opera/Win32 5.11
and it works just fine.

I submitted a bug report to Opera but feel free to do 
so too.

--Jani


---

[2001-06-17 15:15:21] [EMAIL PROTECTED]
I am developing a web-based system for university
students to submit assignments over the web. This
involves uploading files via HTTP POST method,
with a PHP script on the receiving end. The page
I designed works with Netscape Navigator, Mozilla,
and Internet Explorer, but not with Opera 5 for
Linux or Windows: PHP obviously gets confused by
the data that Opera sends.

I've set up a test page to demonstrate the
behaviour at
http://www.thpoon.com/~antipode/test/upload.php
with the source code at
http://www.thpoon.com/~antipode/test/upload.phps

Thanks,
--
Arcady Genkin

---


Full Bug description available at: http://bugs.php.net/?id=11523


-- 
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]




<    1   2   3   4   >