[PHP-DEV] Bug #11137 Updated: apache doesn't start with php, but does RESTART with php

2001-06-23 Thread sniper

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

This is most likely the same problem that the other
bug reports on Cobalt raq are about.


Previous Comments:
---

[2001-06-03 06:34:00] [EMAIL PROTECTED]
Please try the latest release candidate:

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

You could also try to change the order of the modules
in httpd.conf (what is Resin/1.2.5 ?)

--Jani


---

[2001-05-27 08:57:17] [EMAIL PROTECTED]
Hello, 

I'm getting a big headache from this problem i've been trying to solve the past 3 
days. I don't know if it's a bug, but no one has been able to help me, so i think it 
might be. My server is a cobalt RaQ3, but i installed my own apache in 
/usr/local/apache/ (so i didn't mess with the pre-installed apache). It's version 
1.3.17. The other pre-installed apache is running too, but without PHP and on another 
port. It's not of any use, but if i hadn't done it like this, i would have ruined the 
cobalt stuff.

I installed PHP4.0.5 (as DSO module), the following way: 

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

The thing is: when i start apache: 
== 
/usr/local/apache/bin/apachectl start 
== 

It tells me apache is running. BUT, when i do ps aux, it's NOT running at all (no 
httpd's). There's nothing in Apache's error_log (with debug level 'debug'). All it 
shows is this:

==
[Sun May 27 07:20:11 2001] [info] mod_unique_id: using ip addr 209.217.52.25
== 

Then, the weird thing: when i comment-out all PHP related stuff from httpd.conf, i CAN 
start apache (the above way).. and if i then un-comment the PHP lines again (while 
apache is still running), and then RESTART apache: 
== 
/usr/local/apache/bin/apachectl restart 
== 

Then it DOES WORK! With PHP, mysql, everything!

And now, the error_log shows this:
==
[Sun May 27 07:16:31 2001] [notice] SIGHUP received.  Attempting to restart
[Sun May 27 07:16:31 2001] [info] mod_unique_id: using ip addr 209.217.52.25
[Sun May 27 07:16:32 2001] [notice] Apache/1.3.17 (Unix) PHP/4.0.5 Resin/1.2.5 
configured -- resuming normal operations
==

So.. why is this happening like this? Why does it work with a RESTART, and not with a 
START command? And what can i do about it? I have Apache 1.3.17. 

I used to have PHP4.0.3, and that worked without any of these problems.

If you know anything that might help, please let me know! Also send the answer to my 
email address, please ([EMAIL PROTECTED]). 

Thanks a lot in advance!! 

Niek 


---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11137edit=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 #11109 Updated: Floating Point Exception in php_minit_crypt

2001-06-23 Thread sniper

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

This is the same problem as the other cobaly raq reports
are about.


Previous Comments:
---

[2001-05-26 15:48:03] [EMAIL PROTECTED]
Can you supply a reproducing script, and a backtrace of this crash?

Derick

---

[2001-05-25 06:33:55] [EMAIL PROTECTED]
PHP 4.0.5 crashes every time it runs in

php_minit_crypt

at 

/home/src/php-4.0.5/ext/standard/crypt.c : 105

The system is a Cobalt Qube 1 : 

uname -a

 Linux mail.snert.net 2.0.34C52_SK #1 Tue Nov 30 18:14:40 PST 1999 mips unknown


---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11109edit=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 #11346 Updated: infinite loop in php_request_shutdown

2001-06-23 Thread sniper

ID: 11346
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Closed
Bug Type: Scripting Engine problem
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

This should be fixed in PHP 4.0.6. Reopen if it doesn't 
work either.


Previous Comments:
---

[2001-06-08 14:22:54] [EMAIL PROTECTED]
Please try latest RC from:

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

--Jani


---

[2001-06-08 01:11:00] [EMAIL PROTECTED]
Note: I dunno what catogory this bug falls under, so i put it under general issues.

This problem cannot be reproduced reliably and I have no idea what triggers it. I've 
had it happen once on Friday, and it happened again today (Thursday). Basically, I was 
clicking around developing my php application, and then I realize that things begin to 
get really slow. I run top and walla 5 httpd processes taking up the CPU (one of them 
I'm tracing via GDB):

--

  6:27am  up 31 days,  6:45, 12 users,  load average: 4.05, 4.10, 4.17
134 processes: 126 sleeping, 6 running, 1 zombie, 1 stopped
CPU states: 98.0% user,  1.9% system,  0.0% nice,  0.0% idle
Mem:  128012K av, 121620K used,   6392K free,  23716K shrd,   2628K buff
Swap: 610428K av,  21368K used, 589060K free 14540K cached

  PID USER PRI  NI  SIZE  RSS SHARE STAT  LIB %CPU %MEM   TIME COMMAND
12955 nobody20   0  5492 5320   588 R   0 26.4  4.1 191:39 httpd
12963 nobody17   0  5800 5628   584 R   0 25.4  4.3 191:50 httpd
12960 nobody11   0  5800 5628   588 R   0 24.2  4.3 191:30 httpd
12957 nobody11   0  5892 5720   588 R   0 21.7  4.4 193:17 httpd
 2828 build  4   0   572  572   304 R   0  2.1  0.4   3:36 top
1 root   0   0   124   7252 S   0  0.0  0.0   0:03 init

--

One thing to note was the first time I had this problem, only one httpd process was 
going bonkers.

Anyways, I did the customary checks of logs, etc. Nothing seemed relavent there except 
for 4 lines in error_log:

bFatal error/b:  Maximum execution time of 30 seconds exceeded in bUnknown/b 
on line b0/bbr

I dunno whether that could be relavent or just coincedence because part of my 
development, I was doing a execs on long-running calls (just for the record, doing a 
while(1) or exec(sleep 100) prints that error onto the log, but does not cause httpd 
to spin).

Check of /proc/*/fd/* denotes no extra file descriptors are open other than the 
customary httpd fds, except one of the processes has a socket under close_wait to my 
postgres database. I doubt this is relavant, because the first time i ran into the 
problem, I had nothing open to postgres.

Anyways, I gdbed into it and did a bt:

---

0x400f6008 in chunk_free (ar_ptr=0x4018a040, p=0x825f0c8) at malloc.c:3057
3057malloc.c: No such file or directory.
(gdb) bt
#0  0x400f6008 in chunk_free (ar_ptr=0x4018a040, p=0x825f0c8) at malloc.c:3057
#1  0x400f5d75 in __libc_free (mem=0x825f148) at malloc.c:2959
#2  0x402cacb8 in _efree () from /usr/lib/apache/libphp4.so
#3  0x402f50d6 in zend_hash_destroy () from /usr/lib/apache/libphp4.so
#4  0x402cb7d4 in shutdown_compiler () from /usr/lib/apache/libphp4.so
#5  0x402f0fc1 in zend_deactivate () from /usr/lib/apache/libphp4.so
#6  0x40302d7a in php_request_shutdown () from /usr/lib/apache/libphp4.so
#7  0x40300675 in php_apache_request_shutdown () from /usr/lib/apache/libphp4.so
#8  0x8051a2e in ap_run_cleanup ()
#9  0x805024d in ap_clear_pool ()
#10 0x80502c1 in ap_destroy_pool ()
#11 0x805023c in ap_clear_pool ()
#12 0x805fa5f in ap_child_terminate ()
#13 0x80600cc in ap_child_terminate ()
#14 0x8060179 in ap_child_terminate ()
#15 0x80607a6 in ap_child_terminate ()
#16 0x8060f39 in main ()
#17 0x400b51eb in __libc_start_main (main=0x8060bec main, argc=2, argv=0xbd84, 
init=0x804f1c8 _init, 
fini=0x80903ec _fini, rtld_fini=0x4000a610 _dl_fini, stack_end=0xbd7c) at 
../sysdeps/generic/libc-start.c:90
(gdb) n

-

Hope that helps someone. Also, I did a couple searches on deja (which should search 
all the mailinglists / newsgrups) for request_shutdown , and turned out with this 
match:

http://groups.google.com/groups?q=request_shutdownhl=enlr=safe=offrnum=3ic=1selm=881u57%247qm%241%40FreeBSD.csie.NCTU.edu.tw


Which shows someone checked in a patch into CVS already for this on Feb 11th. However, 
a look at the source for 4.04p1
or 4.05 shows that the patch is no longer there. I didn't go poking around the CVS 
logs (its too long) to find out what happened there.

Anyways, I right now have this box in this state and I can do whatever you want to it, 
but I can't keep it like this forever. Drop me an email if you want more info (do it 
soon if you want me to poke around the messed up process 

[PHP-DEV] Bug #11345 Updated: child pid 12260 exit signal Segmentation fault

2001-06-23 Thread sniper

ID: 11345
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 get the segfault with PHP 4.0.6, reopen this report
with GDB backtrace of the crash.


Previous Comments:
---

[2001-06-09 16:24:21] [EMAIL PROTECTED]
Well, I get always a parse error with that line..
So it's something else that segfaults. 

Please try creating a GDB backtrace of the crash
but you have to configure PHP with --enable-debug to
get useful backtraces.

Get the latest PHP 4.0.6 release candidate from:

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

And do this with it.

--Jani



---

[2001-06-09 01:54:10] [EMAIL PROTECTED]
Hi, yeah its a dso module.  im running apache 1.3.19, php 4.0.5. And yeah that line 
was part
of a big script.  But that was the line that caused it. maybe if you add that
line to one of your big scripts it might crash. if you need anything else let me know. 
 I know the parse
error was my fault but the segmentation fault I thought I should report.  Keep
up the good work! peace out.



---

[2001-06-08 14:18:12] [EMAIL PROTECTED]
I get a parse error. This must be part of some bigger script? Is this apache 
module/DSO?

--Jani


---

[2001-06-08 00:57:04] [EMAIL PROTECTED]
I dont know if this will reproduce for you,
but in the following line for me I forgot the
) at the end. I get child pid 12260 exit signal Segmentation fault (11)  and have to 
restart apache
every time. If I add the ) it works which is good. I
hope this helps.

if(is_file($root_dir/images/$cat/a/$file)  

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11345edit=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 #11616 Updated: Cc: Bcc: not being picked up from header

2001-06-23 Thread bmatzelle

ID: 11616
User Update by: [EMAIL PROTECTED]
Status: Assigned
Bug Type: Mail related
Operating system: Win 2K Server
PHP Version: 4.0.5
Description: Cc:  Bcc: not being picked up from header

I have one more behavior to add.  The mail() function only can gather To: addresses if 
they are in this format:

mail([EMAIL PROTECTED], [EMAIL PROTECTED], etc)

It should be able to read this RFC format as well:

mail(Gary [EMAIL PROTECTED], Beth [EMAIL PROTECTED], etc)

There are a lot of changes to be made. If I find the time I will try some fixes myself.

Previous Comments:
---

[2001-06-22 18:26:24] [EMAIL PROTECTED]
windwos mail code needs a rewrite

---

[2001-06-22 10:21:44] [EMAIL PROTECTED]
I am running PHP as CGI on IIS 5.0 with service pack 2.  

This report verifies that bug #11349 is a definate problem.
/win32/sendmail.c has the following code (starting at line 253):

/* Send mail to all Cc rcpt's */
efree(tempMailTo);
if (headers  (pos1 = strstr(headers, Cc:))) {
pos2 = strstr(pos1, rn);
tempMailTo = estrndup(pos1, pos2-pos1);

token = strtok(tempMailTo, ,);
while(token != NULL)
{
sprintf(Buffer, RCPT TO:%srn, token);
if ((res = Post(Buffer)) != SUCCESS)
return (res);
if ((res = Ack()) != SUCCESS)
return (res);
token = strtok(NULL, ,);
}
efree(tempMailTo);
}

The above code can only grab an email address that looks like this: 

Cc: [EMAIL PROTECTED]

When I place it in this format I receive a Warning:  Server Error message from the 
mail() function.

sendmail.c cannot find a proper RFC 822 mail header like:

Cc: Jack Smith [EMAIL PROTECTED]

When I place this in the mail headers nothing happens.

Also, there is no code at all that even looks for a Bcc address in the sendmail.c 
code.  This is a massive problem.

In order for the mail() function to be /usr/sbin/sendmail compliant it must be able to 
find and parse Cc: and Bcc: in each of the above formats. It must also remove the 
Bcc's from the header so that recieving mail clients cannot see them, just as sendmail 
does.

Brent

---


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


-- 
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 #11623: Warning: mail() is not supported in this PHP build

2001-06-23 Thread enrico

From: [EMAIL PROTECTED]
Operating system: Red Hat 7.1
PHP version:  4.0.5
PHP Bug Type: *Mail Related
Bug description:  Warning: mail() is not supported in this PHP build 




-- 
Edit Bug report at: http://bugs.php.net/?id=11623edit=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 #11623 Updated: Warning: mail() is not supported in this PHP build

2001-06-23 Thread enrico

ID: 11623
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: *Mail Related
Operating system: Red Hat 7.1
PHP Version: 4.0.5
Description: Warning: mail() is not supported in this PHP build

Warning: mail() is not supported in this PHP build.

The first time I installed php there was not installed sendmail so the 'define 
HAVE_SENDMAIL 1' was not present in php_config.h.
Then I have installed sendmail and recompiled php.
Now the define HAVE_SENDMAIL is present, but mail function problem is persistent.
The file /usr/sbin/sendmail is ok
I have to recompile apache ? 

Previous Comments:
---

[2001-06-23 02:25:52] [EMAIL PROTECTED]


---


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


-- 
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 #11624: memory error

2001-06-23 Thread Beech . 7

From: [EMAIL PROTECTED]
Operating system: Windows2000 Proffesional
PHP version:  4.0.5
PHP Bug Type: Reproducible crash
Bug description:  memory error

I get the below error anytime anyone tries to submit either news or tries to vote on 
my site (www.totalentropy.org).  Regretfully I am not able to find the precise script 
at the moment (as it is 3 am and i am fscking tired).  Best I can say is that it 
ALWAYS happens.  Thanks.

The instruction at 0x10091ceb referenced memory at 0x.  The memory could 
not be read.



-- 
Edit Bug report at: http://bugs.php.net/?id=11624edit=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 #11624 Updated: memory error

2001-06-23 Thread Beech . 7

ID: 11624
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: Reproducible crash
Operating system: Windows2000 Proffesional SP1
PHP Version: 4.0.5
Description: memory error

i believe this is one of the scripts that may be causing an error, but i find nothing.

?
include(functions.php);

if (! isset($HTTP_POST_VARS[op]))
$op = strtolower($HTTP_GET_VARS[op]);
else
$op = strtolower($HTTP_POST_VARS[op]);

switch($op) {
case :
printHeader($site_title - Submit News);
printMessage(Submit News, Got a hot story? Fill in the details here and 
submit it for review. An
  unruly mob of $site_title editors and readers will poke, prod, 
prick, and preen 
  your submission and, if the general consensus is that it doesn't 
suck, it just might
  get posted to the front page. Remember to check your spelling, 
grammar, and links!);
printPostNews(0);
printFooter();  
break;

case preview:
printHeader($site_title - Preview Submission);
printPostNews(1);
printFooter();
break;

case post:
postNews($userinfo[user_id], $HTTP_POST_VARS[topic], 
$HTTP_POST_VARS[section], $HTTP_POST_VARS[title], $HTTP_POST_VARS[department], 
$HTTP_POST_VARS[text], $HTTP_POST_VARS[text2], $HTTP_POST_VARS[format], 1);
printHeader($site_title - Submission Posted);
printMessage(Submission Posted, Your submission has been posted to the 
queue. $site_title editors and readers can now view it, rate it, and decide whether or 
not they think it deserves to show up on the front page. Thanks!);
printFooter();
break;
}
?

Previous Comments:
---

[2001-06-23 02:53:49] [EMAIL PROTECTED]
I get the below error anytime anyone tries to submit either news or tries to vote on 
my site (www.totalentropy.org).  Regretfully I am not able to find the precise script 
at the moment (as it is 3 am and i am fscking tired).  Best I can say is that it 
ALWAYS happens.  Thanks.

The instruction at 0x10091ceb referenced memory at 0x.  The memory could 
not be read.


---


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


-- 
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 #11624 Updated: memory error

2001-06-23 Thread Beech . 7

ID: 11624
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: Reproducible crash
Operating system: Error log reporting
PHP Version: 4.0.5
Description: memory error

[error] [client 65.24.178.139] Premature end of script headers: c:/php/php.exe

Previous Comments:
---

[2001-06-23 02:58:44] [EMAIL PROTECTED]
i believe this is one of the scripts that may be causing an error, but i find nothing.

?
include(functions.php);

if (! isset($HTTP_POST_VARS[op]))
$op = strtolower($HTTP_GET_VARS[op]);
else
$op = strtolower($HTTP_POST_VARS[op]);

switch($op) {
case :
printHeader($site_title - Submit News);
printMessage(Submit News, Got a hot story? Fill in the details here and 
submit it for review. An
  unruly mob of $site_title editors and readers will poke, prod, 
prick, and preen 
  your submission and, if the general consensus is that it doesn't 
suck, it just might
  get posted to the front page. Remember to check your spelling, 
grammar, and links!);
printPostNews(0);
printFooter();  
break;

case preview:
printHeader($site_title - Preview Submission);
printPostNews(1);
printFooter();
break;

case post:
postNews($userinfo[user_id], $HTTP_POST_VARS[topic], 
$HTTP_POST_VARS[section], $HTTP_POST_VARS[title], $HTTP_POST_VARS[department], 
$HTTP_POST_VARS[text], $HTTP_POST_VARS[text2], $HTTP_POST_VARS[format], 1);
printHeader($site_title - Submission Posted);
printMessage(Submission Posted, Your submission has been posted to the 
queue. $site_title editors and readers can now view it, rate it, and decide whether or 
not they think it deserves to show up on the front page. Thanks!);
printFooter();
break;
}
?

---

[2001-06-23 02:53:49] [EMAIL PROTECTED]
I get the below error anytime anyone tries to submit either news or tries to vote on 
my site (www.totalentropy.org).  Regretfully I am not able to find the precise script 
at the moment (as it is 3 am and i am fscking tired).  Best I can say is that it 
ALWAYS happens.  Thanks.

The instruction at 0x10091ceb referenced memory at 0x.  The memory could 
not be read.


---


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


-- 
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 #11624 Updated: memory error

2001-06-23 Thread Beech . 7

ID: 11624
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: Reproducible crash
Operating system: the funtion.php file
PHP Version: 4.0.5
Description: memory error

?
/***
*
* Customizable Settings
*
/

/* Site Settings */
$site_url= http://totalentropy.org/;;  /* Full URL of this site WITH TRAILING 
SLASH (i.e., http://wonko.com/;) */
$site_path   = /;  /* Relative path to the site's root directory 
under the domain */
$site_title  = PHPSlice;   /* Title of the site */
$site_logo   = logo.jpg;   /* Filename of the site's logo (should be 
located in /images) */

$site_button = http://www.totalentropy.org/images/mysite.gif;; /* 88x31 button 
for this site */
$site_desc   = Lazy == Good.;  /* Description of the site */

$admin_name  = Einstein;/* Name of the site administrator (you) */
$admin_email = [EMAIL PROTECTED];/* Email address of the site administrator */

/* Anonymous User Settings */
/* (these have no effect yet) */
$anon_nick   = Anonymous Poo; /* Nickname of the anonymous user */
$anon_access = 5;   /* Access level of the anonymous user */
$anon_id = 1;   /* User ID of the anonymous user */

/* Theme Settings */
$themes = array();
$site_theme  = PHPSlice;  /* Name of the default theme for this site */

$themes[PHPSlice] = phpslice.php;   /* Themes array usage: $themes[theme name] = 
template file; */

/* Database Settings */
$db_hostname = localhost; /* Name/IP of the SQL server */
$db_username = ;  /* Username with access to the database */
$db_password = ;  /* Password for the specified user */
$db_name = phpslice;  /* Name of the database to use */

$db_type = 2;   /* Type of database to use
   1 = Microsoft SQL Server 7.0/2000
   2 = MySQL
*/


/***
*
* Initialization
*
/

/* Load the db functions for the database specified by $db_type */
switch($db_type) {
case 1: /* MSSQL */
include(lib/db_mssql.php);
break;

case 2: /* MySQL */
include(lib/db_mysql.php);
break;

/* not in this release

case 3:
include(lib/db_pgsql.php);
break;

case 4:
include(lib/db_msql.php);
break;
*/
}

/* Load the layout template */
//if (isset($HTTP_COOKIE_VARS[theme]))
//$layout = $HTTP_COOKIE_VARS[theme];
//else
$layout = $site_theme;

include(lib/templates/.$themes[$layout]);



/***
*
* Miscellaneous functions
*
/

// Check if the user has access to this page; if not, redirect to front
function checkAccess($level) {
global $userinfo, $site_url;

if (!$userinfo[access] = $level) {
header(Location: $site_url);
exit;
}
}

// Check if the user is logged in; if not, redirect to front
function checkAuth() {
global $userinfo, $site_url;

if ($userinfo[user_id] == 1) {
Header(Location: $site_url);
exit;
}
}

function fixQuotes($string) {
$string = str_replace(', '', $string);

return $string;
}

/* Strip all invalid HTML and PHP tags from the given string, convert quotes, etc. */
function makeNice($string) {
/* List of allowed tags */
$allowed = 
a,b,blockquote,br,code,div,em,hr,i,li,ol,p,pre,strike,strong,sub,sup,tt,u,ul;

$string = strip_tags($string, $allowed);

return $string;
}

/* Stricter version of the above, strips EVERYTHING it possibly can */
function makeReallyNice($string) {
$trans = get_html_translation_table(HTML_ENTITIES);
$trans[] = ;
$trans[  ] = nbsp;nbsp;;
$trans[   ] = nbsp;nbsp;nbsp;;

$string = strtr($string, $trans);

return $string;
}


/***
*
* Handle poll votes
*
/

if (isset($HTTP_POST_VARS[poll])) {
$pid = $HTTP_POST_VARS[pid];
$vote = $HTTP_POST_VARS[vote];

postVote($userinfo[user_id], $pid, $vote, $REMOTE_ADDR);
}

/***
*
* Handle theme changes
*
/

if (isset($HTTP_POST_VARS[themeop]))
setcookie(theme, $HTTP_POST_VARS[theme], time() + 63072000);

?

Previous Comments:
---

[2001-06-23 03:44:56] [EMAIL PROTECTED]
[error] [client 65.24.178.139] Premature end of script headers: c:/php/php.exe


[PHP-DEV] Bug #11624 Updated: memory error

2001-06-23 Thread Beech . 7

ID: 11624
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: Reproducible crash
Operating system: the submit.php file
PHP Version: 4.0.5
Description: memory error

?
include(functions.php);

if (! isset($HTTP_POST_VARS[op]))
$op = strtolower($HTTP_GET_VARS[op]);
else
$op = strtolower($HTTP_POST_VARS[op]);

switch($op) {
case :
printHeader($site_title - Submit News);
printMessage(Submit News, Got a hot story? Fill in the details here and 
submit it for review. An
  unruly mob of $site_title editors and readers will poke, prod, 
prick, and preen 
  your submission and, if the general consensus is that it doesn't 
suck, it just might
  get posted to the front page. Remember to check your spelling, 
grammar, and links!);
printPostNews(0);
printFooter();  
break;

case preview:
printHeader($site_title - Preview Submission);
printPostNews(1);
printFooter();
break;

case post:
postNews($userinfo[user_id], $HTTP_POST_VARS[topic], 
$HTTP_POST_VARS[section], $HTTP_POST_VARS[title], $HTTP_POST_VARS[department], 
$HTTP_POST_VARS[text], $HTTP_POST_VARS[text2], $HTTP_POST_VARS[format], 1);
printHeader($site_title - Submission Posted);
printMessage(Submission Posted, Your submission has been posted to the 
queue. $site_title editors and readers can now view it, rate it, and decide whether or 
not they think it deserves to show up on the front page. Thanks!);
printFooter();
break;
}
?

Previous Comments:
---

[2001-06-23 03:46:39] [EMAIL PROTECTED]
?
/***
*
* Customizable Settings
*
/

/* Site Settings */
$site_url= http://totalentropy.org/;;  /* Full URL of this site WITH TRAILING 
SLASH (i.e., http://wonko.com/;) */
$site_path   = /;  /* Relative path to the site's root directory 
under the domain */
$site_title  = PHPSlice;   /* Title of the site */
$site_logo   = logo.jpg;   /* Filename of the site's logo (should be 
located in /images) */

$site_button = http://www.totalentropy.org/images/mysite.gif;; /* 88x31 button 
for this site */
$site_desc   = Lazy == Good.;  /* Description of the site */

$admin_name  = Einstein;/* Name of the site administrator (you) */
$admin_email = [EMAIL PROTECTED];/* Email address of the site administrator */

/* Anonymous User Settings */
/* (these have no effect yet) */
$anon_nick   = Anonymous Poo; /* Nickname of the anonymous user */
$anon_access = 5;   /* Access level of the anonymous user */
$anon_id = 1;   /* User ID of the anonymous user */

/* Theme Settings */
$themes = array();
$site_theme  = PHPSlice;  /* Name of the default theme for this site */

$themes[PHPSlice] = phpslice.php;   /* Themes array usage: $themes[theme name] = 
template file; */

/* Database Settings */
$db_hostname = localhost; /* Name/IP of the SQL server */
$db_username = ;  /* Username with access to the database */
$db_password = ;  /* Password for the specified user */
$db_name = phpslice;  /* Name of the database to use */

$db_type = 2;   /* Type of database to use
   1 = Microsoft SQL Server 7.0/2000
   2 = MySQL
*/


/***
*
* Initialization
*
/

/* Load the db functions for the database specified by $db_type */
switch($db_type) {
case 1: /* MSSQL */
include(lib/db_mssql.php);
break;

case 2: /* MySQL */
include(lib/db_mysql.php);
break;

/* not in this release

case 3:
include(lib/db_pgsql.php);
break;

case 4:
include(lib/db_msql.php);
break;
*/
}

/* Load the layout template */
//if (isset($HTTP_COOKIE_VARS[theme]))
//$layout = $HTTP_COOKIE_VARS[theme];
//else
$layout = $site_theme;

include(lib/templates/.$themes[$layout]);



/***
*
* Miscellaneous functions
*
/

// Check if the user has access to this page; if not, redirect to front
function checkAccess($level) {
global $userinfo, $site_url;

if (!$userinfo[access] = $level) {
header(Location: $site_url);
exit;
}
}

// Check if the user is logged in; if not, redirect to front
function checkAuth() {
global 

[PHP-DEV] Bug #11624 Updated: memory error

2001-06-23 Thread Beech . 7

ID: 11624
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: Reproducible crash
Operating system: What I think...
PHP Version: 4.0.5
Description: memory error

Because it happens with both submit and whatever send the polling data I think it may 
have to be in the function.php file.  Regretfully neither my friend nor I know php 
THAT well.

Previous Comments:
---

[2001-06-23 03:48:29] [EMAIL PROTECTED]
?
include(functions.php);

if (! isset($HTTP_POST_VARS[op]))
$op = strtolower($HTTP_GET_VARS[op]);
else
$op = strtolower($HTTP_POST_VARS[op]);

switch($op) {
case :
printHeader($site_title - Submit News);
printMessage(Submit News, Got a hot story? Fill in the details here and 
submit it for review. An
  unruly mob of $site_title editors and readers will poke, prod, 
prick, and preen 
  your submission and, if the general consensus is that it doesn't 
suck, it just might
  get posted to the front page. Remember to check your spelling, 
grammar, and links!);
printPostNews(0);
printFooter();  
break;

case preview:
printHeader($site_title - Preview Submission);
printPostNews(1);
printFooter();
break;

case post:
postNews($userinfo[user_id], $HTTP_POST_VARS[topic], 
$HTTP_POST_VARS[section], $HTTP_POST_VARS[title], $HTTP_POST_VARS[department], 
$HTTP_POST_VARS[text], $HTTP_POST_VARS[text2], $HTTP_POST_VARS[format], 1);
printHeader($site_title - Submission Posted);
printMessage(Submission Posted, Your submission has been posted to the 
queue. $site_title editors and readers can now view it, rate it, and decide whether or 
not they think it deserves to show up on the front page. Thanks!);
printFooter();
break;
}
?

---

[2001-06-23 03:46:39] [EMAIL PROTECTED]
?
/***
*
* Customizable Settings
*
/

/* Site Settings */
$site_url= http://totalentropy.org/;;  /* Full URL of this site WITH TRAILING 
SLASH (i.e., http://wonko.com/;) */
$site_path   = /;  /* Relative path to the site's root directory 
under the domain */
$site_title  = PHPSlice;   /* Title of the site */
$site_logo   = logo.jpg;   /* Filename of the site's logo (should be 
located in /images) */

$site_button = http://www.totalentropy.org/images/mysite.gif;; /* 88x31 button 
for this site */
$site_desc   = Lazy == Good.;  /* Description of the site */

$admin_name  = Einstein;/* Name of the site administrator (you) */
$admin_email = [EMAIL PROTECTED];/* Email address of the site administrator */

/* Anonymous User Settings */
/* (these have no effect yet) */
$anon_nick   = Anonymous Poo; /* Nickname of the anonymous user */
$anon_access = 5;   /* Access level of the anonymous user */
$anon_id = 1;   /* User ID of the anonymous user */

/* Theme Settings */
$themes = array();
$site_theme  = PHPSlice;  /* Name of the default theme for this site */

$themes[PHPSlice] = phpslice.php;   /* Themes array usage: $themes[theme name] = 
template file; */

/* Database Settings */
$db_hostname = localhost; /* Name/IP of the SQL server */
$db_username = ;  /* Username with access to the database */
$db_password = ;  /* Password for the specified user */
$db_name = phpslice;  /* Name of the database to use */

$db_type = 2;   /* Type of database to use
   1 = Microsoft SQL Server 7.0/2000
   2 = MySQL
*/


/***
*
* Initialization
*
/

/* Load the db functions for the database specified by $db_type */
switch($db_type) {
case 1: /* MSSQL */
include(lib/db_mssql.php);
break;

case 2: /* MySQL */
include(lib/db_mysql.php);
break;

/* not in this release

case 3:
include(lib/db_pgsql.php);
break;

case 4:
include(lib/db_msql.php);
break;
*/
}

/* Load the layout template */
//if (isset($HTTP_COOKIE_VARS[theme]))
//$layout = $HTTP_COOKIE_VARS[theme];
//else
$layout = $site_theme;

include(lib/templates/.$themes[$layout]);



/***
*
* Miscellaneous functions
*
/

// Check if the user has access to this page; if not, 

[PHP-DEV] Bug #11624 Updated: memory error

2001-06-23 Thread Beech . 7

ID: 11624
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: Reproducible crash
Operating system: What I think...
PHP Version: 4.0.5
Description: memory error

Because it happens with both submit and whatever send the polling data I think it may 
have to be in the function.php file.  Regretfully neither my friend nor I know php 
THAT well.

Previous Comments:
---

[2001-06-23 03:49:56] [EMAIL PROTECTED]
Because it happens with both submit and whatever send the polling data I think it may 
have to be in the function.php file.  Regretfully neither my friend nor I know php 
THAT well.

---

[2001-06-23 03:48:29] [EMAIL PROTECTED]
?
include(functions.php);

if (! isset($HTTP_POST_VARS[op]))
$op = strtolower($HTTP_GET_VARS[op]);
else
$op = strtolower($HTTP_POST_VARS[op]);

switch($op) {
case :
printHeader($site_title - Submit News);
printMessage(Submit News, Got a hot story? Fill in the details here and 
submit it for review. An
  unruly mob of $site_title editors and readers will poke, prod, 
prick, and preen 
  your submission and, if the general consensus is that it doesn't 
suck, it just might
  get posted to the front page. Remember to check your spelling, 
grammar, and links!);
printPostNews(0);
printFooter();  
break;

case preview:
printHeader($site_title - Preview Submission);
printPostNews(1);
printFooter();
break;

case post:
postNews($userinfo[user_id], $HTTP_POST_VARS[topic], 
$HTTP_POST_VARS[section], $HTTP_POST_VARS[title], $HTTP_POST_VARS[department], 
$HTTP_POST_VARS[text], $HTTP_POST_VARS[text2], $HTTP_POST_VARS[format], 1);
printHeader($site_title - Submission Posted);
printMessage(Submission Posted, Your submission has been posted to the 
queue. $site_title editors and readers can now view it, rate it, and decide whether or 
not they think it deserves to show up on the front page. Thanks!);
printFooter();
break;
}
?

---

[2001-06-23 03:46:39] [EMAIL PROTECTED]
?
/***
*
* Customizable Settings
*
/

/* Site Settings */
$site_url= http://totalentropy.org/;;  /* Full URL of this site WITH TRAILING 
SLASH (i.e., http://wonko.com/;) */
$site_path   = /;  /* Relative path to the site's root directory 
under the domain */
$site_title  = PHPSlice;   /* Title of the site */
$site_logo   = logo.jpg;   /* Filename of the site's logo (should be 
located in /images) */

$site_button = http://www.totalentropy.org/images/mysite.gif;; /* 88x31 button 
for this site */
$site_desc   = Lazy == Good.;  /* Description of the site */

$admin_name  = Einstein;/* Name of the site administrator (you) */
$admin_email = [EMAIL PROTECTED];/* Email address of the site administrator */

/* Anonymous User Settings */
/* (these have no effect yet) */
$anon_nick   = Anonymous Poo; /* Nickname of the anonymous user */
$anon_access = 5;   /* Access level of the anonymous user */
$anon_id = 1;   /* User ID of the anonymous user */

/* Theme Settings */
$themes = array();
$site_theme  = PHPSlice;  /* Name of the default theme for this site */

$themes[PHPSlice] = phpslice.php;   /* Themes array usage: $themes[theme name] = 
template file; */

/* Database Settings */
$db_hostname = localhost; /* Name/IP of the SQL server */
$db_username = ;  /* Username with access to the database */
$db_password = ;  /* Password for the specified user */
$db_name = phpslice;  /* Name of the database to use */

$db_type = 2;   /* Type of database to use
   1 = Microsoft SQL Server 7.0/2000
   2 = MySQL
*/


/***
*
* Initialization
*
/

/* Load the db functions for the database specified by $db_type */
switch($db_type) {
case 1: /* MSSQL */
include(lib/db_mssql.php);
break;

case 2: /* MySQL */
include(lib/db_mysql.php);
break;

/* not in this release

case 3:
include(lib/db_pgsql.php);
break;

case 4:
include(lib/db_msql.php);
break;
*/
}

/* Load the layout template */
//if (isset($HTTP_COOKIE_VARS[theme]))
//$layout 

[PHP-DEV] Bug #11624 Updated: memory error

2001-06-23 Thread Beech . 7

ID: 11624
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: Reproducible crash
Operating system: What I think...
PHP Version: 4.0.5
Description: memory error

Because it happens with both submit and whatever send the polling data I think it may 
have to be in the function.php file.  Regretfully neither my friend nor I know php 
THAT well.

Previous Comments:
---

[2001-06-23 03:56:40] [EMAIL PROTECTED]
Because it happens with both submit and whatever send the polling data I think it may 
have to be in the function.php file.  Regretfully neither my friend nor I know php 
THAT well.

---

[2001-06-23 03:49:56] [EMAIL PROTECTED]
Because it happens with both submit and whatever send the polling data I think it may 
have to be in the function.php file.  Regretfully neither my friend nor I know php 
THAT well.

---

[2001-06-23 03:48:29] [EMAIL PROTECTED]
?
include(functions.php);

if (! isset($HTTP_POST_VARS[op]))
$op = strtolower($HTTP_GET_VARS[op]);
else
$op = strtolower($HTTP_POST_VARS[op]);

switch($op) {
case :
printHeader($site_title - Submit News);
printMessage(Submit News, Got a hot story? Fill in the details here and 
submit it for review. An
  unruly mob of $site_title editors and readers will poke, prod, 
prick, and preen 
  your submission and, if the general consensus is that it doesn't 
suck, it just might
  get posted to the front page. Remember to check your spelling, 
grammar, and links!);
printPostNews(0);
printFooter();  
break;

case preview:
printHeader($site_title - Preview Submission);
printPostNews(1);
printFooter();
break;

case post:
postNews($userinfo[user_id], $HTTP_POST_VARS[topic], 
$HTTP_POST_VARS[section], $HTTP_POST_VARS[title], $HTTP_POST_VARS[department], 
$HTTP_POST_VARS[text], $HTTP_POST_VARS[text2], $HTTP_POST_VARS[format], 1);
printHeader($site_title - Submission Posted);
printMessage(Submission Posted, Your submission has been posted to the 
queue. $site_title editors and readers can now view it, rate it, and decide whether or 
not they think it deserves to show up on the front page. Thanks!);
printFooter();
break;
}
?

---

[2001-06-23 03:46:39] [EMAIL PROTECTED]
?
/***
*
* Customizable Settings
*
/

/* Site Settings */
$site_url= http://totalentropy.org/;;  /* Full URL of this site WITH TRAILING 
SLASH (i.e., http://wonko.com/;) */
$site_path   = /;  /* Relative path to the site's root directory 
under the domain */
$site_title  = PHPSlice;   /* Title of the site */
$site_logo   = logo.jpg;   /* Filename of the site's logo (should be 
located in /images) */

$site_button = http://www.totalentropy.org/images/mysite.gif;; /* 88x31 button 
for this site */
$site_desc   = Lazy == Good.;  /* Description of the site */

$admin_name  = Einstein;/* Name of the site administrator (you) */
$admin_email = [EMAIL PROTECTED];/* Email address of the site administrator */

/* Anonymous User Settings */
/* (these have no effect yet) */
$anon_nick   = Anonymous Poo; /* Nickname of the anonymous user */
$anon_access = 5;   /* Access level of the anonymous user */
$anon_id = 1;   /* User ID of the anonymous user */

/* Theme Settings */
$themes = array();
$site_theme  = PHPSlice;  /* Name of the default theme for this site */

$themes[PHPSlice] = phpslice.php;   /* Themes array usage: $themes[theme name] = 
template file; */

/* Database Settings */
$db_hostname = localhost; /* Name/IP of the SQL server */
$db_username = ;  /* Username with access to the database */
$db_password = ;  /* Password for the specified user */
$db_name = phpslice;  /* Name of the database to use */

$db_type = 2;   /* Type of database to use
   1 = Microsoft SQL Server 7.0/2000
   2 = MySQL
*/


/***
*
* Initialization
*
/

/* Load the db functions for the database specified by $db_type */
switch($db_type) {
case 1: /* MSSQL */
include(lib/db_mssql.php);
break;

case 2: /* MySQL */
   

[PHP-DEV] Bug #11625: ln: libZend.la: Operation not supported

2001-06-23 Thread all

From: [EMAIL PROTECTED]
Operating system: FreeBSD 4.3
PHP version:  4.0.5
PHP Bug Type: Compile Failure
Bug description:  ln: libZend.la: Operation not supported

./configure
gmake install

When I try compile PHP I receive error:


rm: .libs/libZend.*: Invalid argument
rm: .libs/libZend.*: Invalid argument
ln: libZend.la: Operation not supported
gmake[1]: *** [libZend.la] Error 1
gmake[1]: Leaving directory `/c/php/Zend'
gmake: *** [all-recursive] Error 1



-- 
Edit Bug report at: http://bugs.php.net/?id=11625edit=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] Problem with globals ZTS

2001-06-23 Thread Zeev Suraski

Are you building it in ZTS mode or does it crash in non ZTS mode after this 
change?

At 09:35 22/6/2001, Gilles Koffmann wrote:
Hi,

I'm writing an extension to php. After changing my code to have thread safe
globals ,
my extension is crashing and I can't figure out what it is:

typedef struct {
  HashTable array_dl_handle; /* hash user dll name - handle, getobject,
getcompiler, destroyobject */
  HashTable array_compiler;  /* hash compiler name - handle, gps, gms,
version */
} php_delphi_globals;

#ifdef ZTS
#define DG(v) (delphi_globals-v)
#define DG_FETCH() php_delphi_globals *delphi_globals =
ts_resource(delphi_globals_id)
#define DG_D   php_delphi_globals *delphi_globals
#define DG_DC  , DG_D
#define DG_C   delphi_globals
#define DG_CC  , DG_C
int delphi_globals_id;
#else
#define DG(v) (delphi_globals.v)
#define DG_FETCH()
#define DG_D
#define DG_DC
#define DG_C
#define DG_CC
php_delphi_globals delphi_globals;
#endif

#ifdef ZTS
static void alloc_delphi_globals_ctor(php_delphi_globals *delphi_globals) {
   memset(delphi_globals, 0, sizeof(php_delphi_globals));
}
#endif

ZEND_MINIT_FUNCTION(delphi) {
#ifdef ZTS
   delphi_globals_id = ts_allocate_id(sizeof(php_delphi_globals),
 (ts_allocate_ctor)alloc_delphi_globals_ctor, NULL);
#endif
...

  DG_FETCH();
  zend_hash_init(DG(array_dl_handle), 0, NULL, NULL, 0);
  zend_hash_init(DG(array_compiler), 0, NULL, NULL, 0);

}

It crashes when I do in one function:

DG_FETCH();
zend_hash_find(DG(array_dl_handle), module_name,strlen(module_name)+1,
(void **)value);

My hashtable is empty.
When array_dl_handle was not part of ZTS globals, everything was OK. Any
clue ?

Gilles.




--
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]

--
Zeev Suraski [EMAIL PROTECTED]
CTO   co-founder, Zend Technologies Ltd. http://www.zend.com/


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




[PHP-DEV] Recode module

2001-06-23 Thread Marecandja

Hello,

I've been trying to build the recode DLL for win32 systems for some
days without success (as it is not included in the binaries from
php.net). Something will always get wrong while building the static
lib librecode from the source code of recode v. 3.5 from DJGPP site. I
use VC++6.0 for that.

Does anyone have a working DLL for recode or can help build that?

Thanks,
Marecandja


-- 
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 #11617: crash when restoring references

2001-06-23 Thread Sebastian Bergmann

[EMAIL PROTECTED] wrote:
 echo done;

  Just tested the supplied script on Win32 with PHP 4.0.7-dev; no crash,
just 'done'.

-- 
 sebastian bergmann[EMAIL PROTECTED]
   http://www.sebastian-bergmann.de

 Meet the PHP Project at LinuxTag, Booth 5.0.334/2 - http://phpinfo.de/

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




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

2001-06-23 Thread lolo

ID: 9264
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: *Session related
Operating system: win98 SE
PHP Version: 4.0 Latest CVS (14/02/2001)
Description: Using session_encode with user-level session storage functions causes a 
crash

Hi All!

I've just done some testings with the new php4.06 release and the crash is still here 
with:
- php loaded as a cgi or as an Apache module,
- php.ini = the optimized one (without any extension).

Regards,
Loïc  

Previous Comments:
---

[2001-06-15 13:33:17] [EMAIL PROTECTED]
Hi sniper and all!

Well, it's not easy to send you an accurate reply because zend snapshots for win32 
does not contain the Apache module.

BTW, Ive done some testings:
- with php4.07-dev from php4win.de the script still crashes Apache with php loaded as 
a gci or as an Apache module;
- with the latest snapshot from zend.com (cgi only), it runs :)

If someone can build the Apache module (I can't do it, sorry :() I may do some more 
tests.

Thanks for your attention,
Loïc

---

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



---

[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!

---

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

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


-- 
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 #11626: additional oci function for quoting

2001-06-23 Thread tf

From: [EMAIL PROTECTED]
Operating system: 
PHP version:  4.0.5
PHP Bug Type: Feature/Change Request
Bug description:  additional oci function for quoting


would be nice to have an oci/oracle function, which quotes 
strings
for CONTAINS() and LIKE ... statements oracle-like.
that means, not '' instead of \' same alike for wildcards
like $, _, % ...



-- 
Edit Bug report at: http://bugs.php.net/?id=11626edit=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] Internal Working -- performance question

2001-06-23 Thread James Moore

 a) Is there a faster way to send data between 2 processes, 
 that will work with PHP, and is supported by Windows and *nix.

How about abstacting it, under Linux use shared mem (should be fastest)
if its avalible, other wise use sockets then If that's not avalible use
database/file version.

- James


-- 
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 #11624 Updated: memory error

2001-06-23 Thread sniper

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

Does this happen with PHP 4.0.6 ?


Previous Comments:
---

[2001-06-23 04:06:27] [EMAIL PROTECTED]
Because it happens with both submit and whatever send the polling data I think it may 
have to be in the function.php file.  Regretfully neither my friend nor I know php 
THAT well.

---

[2001-06-23 03:56:40] [EMAIL PROTECTED]
Because it happens with both submit and whatever send the polling data I think it may 
have to be in the function.php file.  Regretfully neither my friend nor I know php 
THAT well.

---

[2001-06-23 03:49:56] [EMAIL PROTECTED]
Because it happens with both submit and whatever send the polling data I think it may 
have to be in the function.php file.  Regretfully neither my friend nor I know php 
THAT well.

---

[2001-06-23 03:48:29] [EMAIL PROTECTED]
?
include(functions.php);

if (! isset($HTTP_POST_VARS[op]))
$op = strtolower($HTTP_GET_VARS[op]);
else
$op = strtolower($HTTP_POST_VARS[op]);

switch($op) {
case :
printHeader($site_title - Submit News);
printMessage(Submit News, Got a hot story? Fill in the details here and 
submit it for review. An
  unruly mob of $site_title editors and readers will poke, prod, 
prick, and preen 
  your submission and, if the general consensus is that it doesn't 
suck, it just might
  get posted to the front page. Remember to check your spelling, 
grammar, and links!);
printPostNews(0);
printFooter();  
break;

case preview:
printHeader($site_title - Preview Submission);
printPostNews(1);
printFooter();
break;

case post:
postNews($userinfo[user_id], $HTTP_POST_VARS[topic], 
$HTTP_POST_VARS[section], $HTTP_POST_VARS[title], $HTTP_POST_VARS[department], 
$HTTP_POST_VARS[text], $HTTP_POST_VARS[text2], $HTTP_POST_VARS[format], 1);
printHeader($site_title - Submission Posted);
printMessage(Submission Posted, Your submission has been posted to the 
queue. $site_title editors and readers can now view it, rate it, and decide whether or 
not they think it deserves to show up on the front page. Thanks!);
printFooter();
break;
}
?

---

[2001-06-23 03:46:39] [EMAIL PROTECTED]
?
/***
*
* Customizable Settings
*
/

/* Site Settings */
$site_url= http://totalentropy.org/;;  /* Full URL of this site WITH TRAILING 
SLASH (i.e., http://wonko.com/;) */
$site_path   = /;  /* Relative path to the site's root directory 
under the domain */
$site_title  = PHPSlice;   /* Title of the site */
$site_logo   = logo.jpg;   /* Filename of the site's logo (should be 
located in /images) */

$site_button = http://www.totalentropy.org/images/mysite.gif;; /* 88x31 button 
for this site */
$site_desc   = Lazy == Good.;  /* Description of the site */

$admin_name  = Einstein;/* Name of the site administrator (you) */
$admin_email = [EMAIL PROTECTED];/* Email address of the site administrator */

/* Anonymous User Settings */
/* (these have no effect yet) */
$anon_nick   = Anonymous Poo; /* Nickname of the anonymous user */
$anon_access = 5;   /* Access level of the anonymous user */
$anon_id = 1;   /* User ID of the anonymous user */

/* Theme Settings */
$themes = array();
$site_theme  = PHPSlice;  /* Name of the default theme for this site */

$themes[PHPSlice] = phpslice.php;   /* Themes array usage: $themes[theme name] = 
template file; */

/* Database Settings */
$db_hostname = localhost; /* Name/IP of the SQL server */
$db_username = ;  /* Username with access to the database */
$db_password = ;  /* Password for the specified user */
$db_name = phpslice;  /* Name of the database to use */

$db_type = 2;   /* Type of database to use
   1 = Microsoft SQL Server 7.0/2000
   2 = MySQL
*/


/***
*
* Initialization
*
/

/* Load the db functions 

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

2001-06-23 Thread sniper

ID: 11623
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: *Mail Related
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

Does this happen with PHP 4.0.6 ?


Previous Comments:
---

[2001-06-23 02:31:42] [EMAIL PROTECTED]
Warning: mail() is not supported in this PHP build.

The first time I installed php there was not installed sendmail so the 'define 
HAVE_SENDMAIL 1' was not present in php_config.h.
Then I have installed sendmail and recompiled php.
Now the define HAVE_SENDMAIL is present, but mail function problem is persistent.
The file /usr/sbin/sendmail is ok
I have to recompile apache ? 

---

[2001-06-23 02:25:52] [EMAIL PROTECTED]


---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11623edit=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 #11612 Updated: php_include completely non-functional

2001-06-23 Thread sniper

ID: 11612
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Closed
Status: Open
Bug Type: PHP options/info functions
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

reopened


Previous Comments:
---

[2001-06-22 10:34:19] [EMAIL PROTECTED]
I have it like that, with double quotes.  This is an excerpt from my php.ini:

;
; Paths and Directories ;
;

; UNIX: /path1:/path2  Windows: path1;path2
include_path = .;c:wwwdemoxpress.comhtmltest




---

[2001-06-22 09:22:41] [EMAIL PROTECTED]
Try this:

include_path=.;C:pathtosomething;C:pathtosomethingelse

Notice the 's around the path.

--Jani


---

[2001-06-22 01:54:20] [EMAIL PROTECTED]
Using Apache 1.3.19 on win2k with php as a library.

If i put any value at all for include_path in php.ini, it causes a message like this 
on every page served:

Warning: Failed opening '/path/to/file.php' for inclusion 
(include_path='includepath;.') in Unknown on line 0

So, for an actual example, it would look like this:

Warning: Failed opening '/www/demoxpress.com/html/test/phpinfo.php' for inclusion 
(include_path='phppear;.') in Unknown on line 0


As long as I keep the include_path commented out or only assign an empty string, it 
works fine (except for not having an include path).  

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11612edit=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 #11612 Updated: php_include completely non-functional

2001-06-23 Thread sniper

ID: 11612
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: PHP options/info functions
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

Does it work with PHP 4.0.6?


Previous Comments:
---

[2001-06-23 06:29:42] [EMAIL PROTECTED]
reopened


---

[2001-06-22 10:34:19] [EMAIL PROTECTED]
I have it like that, with double quotes.  This is an excerpt from my php.ini:

;
; Paths and Directories ;
;

; UNIX: /path1:/path2  Windows: path1;path2
include_path = .;c:wwwdemoxpress.comhtmltest




---

[2001-06-22 09:22:41] [EMAIL PROTECTED]
Try this:

include_path=.;C:pathtosomething;C:pathtosomethingelse

Notice the 's around the path.

--Jani


---

[2001-06-22 01:54:20] [EMAIL PROTECTED]
Using Apache 1.3.19 on win2k with php as a library.

If i put any value at all for include_path in php.ini, it causes a message like this 
on every page served:

Warning: Failed opening '/path/to/file.php' for inclusion 
(include_path='includepath;.') in Unknown on line 0

So, for an actual example, it would look like this:

Warning: Failed opening '/www/demoxpress.com/html/test/phpinfo.php' for inclusion 
(include_path='phppear;.') in Unknown on line 0


As long as I keep the include_path commented out or only assign an empty string, it 
works fine (except for not having an include path).  

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11612edit=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 #11618 Updated: session and form data

2001-06-23 Thread sniper

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

reclassified as documentation problem.
This should be explained better in the manual.


Previous Comments:
---

[2001-06-22 12:57:37] [EMAIL PROTECTED]
I have solve the problem when I set session.cache_limiter  =must-revalidate
But I don't why!Can somebody tell me?

---

[2001-06-22 12:46:30] [EMAIL PROTECTED]

?
//test1.php
session_start();
$aaa=sfsdsdasdf;
$bbb=safsadfasdf;
session_register(aaa);
session_register(bbb);
?
FORM METHOD=POST ACTION=test2.php
INPUT TYPE=text NAME=a1
INPUT TYPE=text NAME=a2
INPUT TYPE=submit
/FORM

?
/---
?
//test2.php
session_start();
echo aaa:.$aaa.br;
echo bbb:.$bbb
?
a href=javascript:window.history.back()back/a
/---

When I set the session_cache_limiter = nocache ,that I submit my form ,and I can get 
the correct session.
But when I click then back link ,I lost the data in the form .
So I change the session_cache_limiter = private or public. That when I back I can got 
the data in the form. And I have a new problem,I need check the session in my program 
when the different user login(I check use status using session ) ,
When I login use different user ,the session I got is not correct. And I found I can't 
destroy the session.What shall I do?

What is the different about nocache,private,public?

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11618edit=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]




Re: [PHP-DEV] Bug #11619: Socket function examples scripts aren'tworking with latest CVS

2001-06-23 Thread Jani Taskinen


This is not the first bug report about the renaming of the socket
functions. Are we going to leave them as they are now?
Should this be addressed in the manual?

--Jani


On 22 Jun 2001 [EMAIL PROTECTED] wrote:

From: [EMAIL PROTECTED]
Operating system: Slackware-current / Kernel 2.4.5
PHP version:  4.0 Latest CVS (2001-06-22)
PHP Bug Type: Sockets related
Bug description:  Socket function examples scripts aren't working with latest CVS

After checking the renamed socket functions, i tried to get the sockets example 
script running. It works fine under 4.0.5, so i renamed the functions to the new 
ones, und tried to get it running. It started, and i could connect without problems, 
but instead of being an echo server, i just got disconnectet.
When are the new sockets function getting documented with an example script ?
thx in advance





-- 
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] Internal Working -- performance question

2001-06-23 Thread Brian Tanner

Thats what I'm looking at doing actually... I would really love to have
shared mem in Windows... cause thats what I develop with :(

But yah... looking at the 3 pronged approach, falling back to slower and
slower implementations.  Should make things fast in a good environment at
least :)

Thanks.

-Brian

-Original Message-
From: James Moore [mailto:[EMAIL PROTECTED]]
Sent: June 23, 2001 3:04 AM
To: 'Brian Tanner'; [EMAIL PROTECTED]
Subject: RE: [PHP-DEV] Internal Working -- performance question


 a) Is there a faster way to send data between 2 processes,
 that will work with PHP, and is supported by Windows and *nix.

How about abstacting it, under Linux use shared mem (should be fastest)
if its avalible, other wise use sockets then If that's not avalible use
database/file version.

- James


-- 
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 #11611 Updated: nl2br() outputting invalid brtags

2001-06-23 Thread Derick Rethans

On Fri, 22 Jun 2001, lenar wrote:

 Shouldn't there be an optional flag to nl2br to change the behavior of function to 
what it used to be.
 Just there's no point in br / like tags when the rest of your code is just 
generating HTML compliant output,
 not XHTML.

br / is HTML compliant too, and there is no single browser who doesn't
get it.

Derick



 Ok, somebody can always use something like str_replace(\n, br, $text) to get 
the old functionality.

 lenar.

 [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  ID: 11611
  Updated by: sniper
  Reported By: [EMAIL PROTECTED]
  Old-Status: Closed
  Status: Bogus
  Bug Type: Strings related
  Operating system:
  PHP Version: 4.0.5
  Assigned To:
  Comments:
 
  Could this be even more bogus? :)
 
 
  Previous Comments:
  ---
 
  [2001-06-22 04:39:51] [EMAIL PROTECTED]
  It's XHTML compliant
 
  ---
 
  [2001-06-21 22:13:10] [EMAIL PROTECTED]
  put this into a test php file:
 
  ?php
  $temp = this isnna testn;
  printf(%s, nl2br($temp));
  ?
 
  and you should get this as output from your webserver:
 
  this isbr /
  br /
  a testbr /
 
  I have confirmed this to be also an issue in the 4.0.6 release candidates, but I 
do not know when this all of a sudden became an issue.  I'd like to know why it's 
creating br / tags instead of br tags :)
 
  ---
 
 
 
  ATTENTION! Do NOT reply to this email!
  To reply, use the web interface found at http://bugs.php.net/?id=11611edit=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 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 #11620 Updated: PHP has encountered an Access Violation at 012D24B6

2001-06-23 Thread sniper

ID: 11620
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 this happen with PHP 4.0.6 ?


Previous Comments:
---

[2001-06-22 14:45:03] [EMAIL PROTECTED]
The binary distribution of PHP 4.0.5 for win32

Base install

IIS 5.0
Win2k Server SP2 + all security hot fixes for IIS as of 6/20/01

Restart Server, php script runs fine. After a period of time
(machine is being used to build new site, so php not used much yet) an attemp to use a 
php script hangs and never returns.

The event viewer says
  php4ts!zend_hash_copy + 0x1b
  + 0xA05E5983

if web server is restarted, get 

  PHP has encountered an Access Violation at 012D24B6

displayed to the browser



---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11620edit=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 #11622 Updated: memory_limit directive is useless...

2001-06-23 Thread sniper

ID: 11622
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Scripting Engine problem
Operating system: 
PHP Version: 4.0 Latest CVS (2001-06-22)
Assigned To: 
Comments:

The memory limit feature must be enabled at compile
time. It works just fine then.


Previous Comments:
---

[2001-06-22 16:51:11] [EMAIL PROTECTED]
Running PHP 4.07dev from phpWin on SourceForge...and running IIS 5.0 and running PHP 
in CGI form...have not tested the memory_limit directive on earlier versions of php..

using following script, the 30 timelimit was hit, and as it should, but php.exe was 
able to chew up over 100mbs and it would've gotten more if it wasnt' for the time 
limit which works 
-

? 
$i = 1;
while(1)
{   
$i++;
$toast[$i] = asdfasfd;
}

?

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11622edit=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 #11625 Updated: ln: libZend.la: Operation not supported

2001-06-23 Thread sniper

ID: 11625
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:

Does this happen with PHP 4.0.6 ?
(although this seems more like problem within your system..)


Previous Comments:
---

[2001-06-23 04:09:57] [EMAIL PROTECTED]
./configure
gmake install

When I try compile PHP I receive error:


rm: .libs/libZend.*: Invalid argument
rm: .libs/libZend.*: Invalid argument
ln: libZend.la: Operation not supported
gmake[1]: *** [libZend.la] Error 1
gmake[1]: Leaving directory `/c/php/Zend'
gmake: *** [all-recursive] Error 1


---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11625edit=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 #11627: string '0' treated as empty

2001-06-23 Thread vgo

From: [EMAIL PROTECTED]
Operating system: Windows 2000
PHP version:  4.0.5
PHP Bug Type: Unknown/Other Function
Bug description:  string '0' treated as empty

the string '0' is not empty but treated as empty

if( empty( '0' ) )
{

}


-- 
Edit Bug report at: http://bugs.php.net/?id=11627edit=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 #11628: odbc_fetch_into is broken

2001-06-23 Thread charles

From: [EMAIL PROTECTED]
Operating system: Win2k
PHP version:  4.0.5
PHP Bug Type: ODBC related
Bug description:  odbc_fetch_into is broken

this is for 4.0.6, but there's no option for that yet  4.0.5 works fine.

easiest to describe this by example:

odbc_fetch_into($qid,1,$row);

gives

Fatal error: Only variables can be passed by reference in script on line line


$i=1;
odbc_fetch_into($qid,$i,$row);

works perfectly.



-- 
Edit Bug report at: http://bugs.php.net/?id=11628edit=1



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




[PHP-DEV] RE: [PHP-QA] Re: [PHP-DEV] 4.0.6

2001-06-23 Thread James Moore

Works perfect for me with IIS5/win2k but becareful of which extensions
you use, a lot of extensions are STILL not threadsafe.

- James

 -Original Message-
 From: Phil Driscoll [mailto:[EMAIL PROTECTED]] 
 Sent: 23 June 2001 11:02
 To: Liz; [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: [PHP-QA] Re: [PHP-DEV] 4.0.6
 
 
 On Friday 22 June 2001 19:19, Liz wrote:
  Cool, thanks..
 
  I have a question, has the ISAPI version been stabalised 
 enough that 
  it wont crash works IIS 5 server??  Last time I put it on 
 it screwed 
  it over and my bosses got real mad..  But, I'd rather have it as 
  ISAPI.. but.. I'll have my but kicked if I install it and 
 it wipes out 
  my server.
 
 I can't speak for IIS5 but it is still unusable on my IIS4 box.
 
 Cheers
 -- 
 Phil Driscoll
 
 -- 
 PHP Quality Assurance Mailing List http://www.php.net/
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: 
 [EMAIL PROTECTED]
 


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




Re: [PHP-DEV] PHP SSL Client

2001-06-23 Thread Wez Furlong

On 22/06/01, [EMAIL PROTECTED] wrote:
 We are not regular PHP developers, but one of our programmers developed a 
 patch to 4.0.5 that allows PHP to act as an SSL client.
 
 If you believe that it is useful, feel free to add to the PHP code base.

Jeff,

Thanks for your patch, but we do have an alternative method of providing SSL support 
planned that will work much like fopen(ssl://host) or fopen(https://host;).

However, it might not be there until PHP 4.1 (although I'd like to get it into PHP 
4.0.7, time permitting).

--Wez.


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




Re: [PHP-DEV] Using $HTTP_SESSION_VARS with register_globals On

2001-06-23 Thread Zeev Suraski

When releasing 4.0.6 I noticed this change (I didn't take active part in 
the discussion).  Can someone bring me up to speed as to:
(a) Why was it impossible to write portable code with register_globals 
being off
(b) Why does it make sense to have $HTTP_SESSION_GLOBALS behave in an 
inconsistently with the way the other $HTTP_*_VARS[] behave?

With this change we went one step away from consistency, at least as long 
as the other $HTTP_*_VARS[] behave as they do today.  It may be a good 
step, but if it is, it should be followed by other steps to keep consistency...

Zeev

At 14:54 22/5/2001, Andrei Zmievski wrote:
On Tue, 22 May 2001, Andi Gutmans wrote:
  As I mentioned in my other message, $HTTP_SESSION_VARS value and the
  global value used to be references, but after some people complained
  about this fact on the list, it was changed.. I wouldn't mind
  reinstating it, but if we do, let's do it once and for all with very
  good reasons to avoid another such occurrence.
 
  Making them references is the right thing IMO.
  I think we should also write in the manual that people should use
  $HTTP_SESSION_VARS[]. (I haven't checked if this is written or not so it
  might be already).

Ok, we'll make them references then. I hope someone documents it,
though, because I don't have time right now.

-Andrei
* Software never has bugs. It just develops random features. *

--
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]

--
Zeev Suraski [EMAIL PROTECTED]
CTO   co-founder, Zend Technologies Ltd. http://www.zend.com/


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




[PHP-DEV] Scripting Shootout - PHP ranked 24/29

2001-06-23 Thread John Lim

Thought you all might be interested in this benchmarking shootout:

http://www.bagley.org/~doug/shootout/lang/php/

The above site has several benchmarks of 29 programming languages, including
PHP, Perl and Pike.

PHP came out 24th. Perl was 14th.

-- John



-- 
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] Scripting Shootout - PHP ranked 24/29

2001-06-23 Thread Sascha Schumann

On Sat, 23 Jun 2001, John Lim wrote:

 Thought you all might be interested in this benchmarking shootout:

I've talked to the author of the benchmark a couple of
weeks ago and he of course did not build PHP with
enabled optimizations.  Those optimizations affect primarily
the speed of executing scripts and that is the main reason
why PHP scored the way it did.

- Sascha Experience IRCG
  http://schumann.cx/http://schumann.cx/ircg


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




[PHP-DEV] Bug #11629:

2001-06-23 Thread drloh

From: [EMAIL PROTECTED]
Operating system: win98
PHP version:  4.0.5
PHP Bug Type: *Install and Config
Bug description:  




-- 
Edit Bug report at: http://bugs.php.net/?id=11629edit=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] Scripting Shootout - PHP ranked 24/29

2001-06-23 Thread Stig Venaas

On Sat, Jun 23, 2001 at 04:45:22PM +0200, Sascha Schumann wrote:
 On Sat, 23 Jun 2001, John Lim wrote:
 
  Thought you all might be interested in this benchmarking shootout:
 
 I've talked to the author of the benchmark a couple of
 weeks ago and he of course did not build PHP with
 enabled optimizations.  Those optimizations affect primarily
 the speed of executing scripts and that is the main reason
 why PHP scored the way it did.

Could someone please list these possible optimizations? Could be
useful to me and others. From the top of my head I can think of
compiler optimizations (anything except -O and -m ?) and use of
Zend optimizer and cache.

I find it a bit amusing that Bash ranks higly (:

Stig

-- 
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 #11629 Updated:

2001-06-23 Thread derick

ID: 11629
Updated by: derick
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: *Install and Config
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

Go play somewhere else.

Previous Comments:
---

[2001-06-23 11:47:26] [EMAIL PROTECTED]


---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11629edit=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]




Re: [PHP-DEV] Scripting Shootout - PHP ranked 24/29

2001-06-23 Thread Sascha Schumann

 Could someone please list these possible optimizations? Could be
 useful to me and others. From the top of my head I can think of
 compiler optimizations (anything except -O and -m ?) and use of
 Zend optimizer and cache.

--enable-inline-optimization --disable-debug

We might evaluate making those standard.

- Sascha Experience IRCG
  http://schumann.cx/http://schumann.cx/ircg


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




[PHP-DEV] PHP 3.0 Bug Summary Report

2001-06-23 Thread php-dev

 PHP 3.0 Bug Database summary - http://bugs.php.net

 Num Status Summary (542 total including feature requests)
===[*General Issues]==
4180 Open   is_link returns false when target doesnt exist (should return true)
9610 Bogus  Dead link
9820 Open   File upload with any input tag
10101 Bogus  apache + mysqld + php3   == libphp3.so incorrect symbol...
10457 Bogus  ALKHOBAR
===[*Install and Config]==
7386 Feedback   referenced symbol not found when starting Apache
===[Compile Failure]==
1145 Open   Ypu cannot compile with --with-ldap using the Solaris7 bundled 
ldap-libs/header
1298 Open   need to use -taso with Netscape LDAP libs
1461 Open   won't compile with Stronghold 2.2 or 2.3
1933 Open   Unable to compile PHP3 with Oracle8 support
1997 Open   Compilation Problems
2225 Open   Compile error in ldap.c
2282 Open   Compile failure with Stronghold 2.4.1
2490 Open   Perl regular expression functions not available in windows binary
2585 Open   Error linking Oracle 7.3.2 libraries on SCO OpenServer 5.0.4
2658 Open   error while compiling PHP as apache module
2729 Open   Fatal error: Unable to open ???  in - on line 0
2751 Open   Storage size of buf isn't known
2823 Open   undefined symbol: SQLParamData
2824 Open   Inconsistent parameter list declaration for...
2903 Open   fails to compile ifx.ec, report a syntax-error
3033 Open   Fatal compile error on functions/ldap.c
3185 Open   Undefined symbol
3217 Open   ld error when compiling as Apache DSO and --with-mysql
3218 Open   Can't compile php_ftp.dll
3426 Open   make with iodbc failed and I've found the problem
3501 Open   Compiling errors with Oracle-Funktions
3528 Open   Can't compile php 3.0.14 with Oracle support
3677 Open   files not found
3766 Open   configure doesn't allow for the Oracle N32 client SDK to be used
3776 Open   functions/db.c:107: parse error before '*'
4028 Open   wrong directories included for oracle 8.1.6
4217 Open   IBM DB2 will not compile.
4233 Open   The Interbase module won't compile.
4266 Open   Undeclared variables in function/imap.c starting ar line 435
4392 Open   Compile failure with GD 1.7, possibly others
4412 Open   xml failure
4417 Open   Informix specific parse error in functions/ifx.ec
4544 Open   Incompatiblility with latest (3.0) version of PDFlib
4899 Open   PHP Core Dumps With Apache 1.3.12
7734 Open   missing php3_ifx.h
===[Compile Warning]==
3151 Open   php.exe compile warnings because of arpa/inet.h
6942 Open   php sockets unusable with irix-OS
===[dBase related]
3091 Open   dbase_replace_record miscounts number of fields
3429 Open   Warning: Unable to open database...
4802 Open   php.exe crashes while trying to execute the get_record function
===[DBM/DBA related]==
2890 Open   DBM extension on win32 does not valid database identifier error
3371 Open   dbmfetch reurns an empty string
3423 Open   dbmopen() not thread-safe
3809 Duplicate  DBM extension for Win32 PHP3 is malfunctioning and/or has a flaw
3862 Open   dbmReplace  dbmDelete return inverse value
6720 Open   persistent Warning: driver initialization failed on db_open db2 2.7.7
===[Documentation problem]
11155 Open   
===[Dynamic loading related]==
1188 Open   Configuration not work
1586 Open   In the compiled Win32 package, the php3_ldap doesn't load.
1993 Open   Startup failure of liphp3.so
2027 Open   Can't dynamicly load any extension dll file
2250 Open   nt-service problem
2414 Open   php3_vmailmgr.so refuses to load
2862 Open   LDAP in Win32 Bin dist is linked to MSVCRTD.DLL
3168 Open   cannot start apache 1.3.9 if mysql is compiled in, but can RESTART 
successfully
3292 Open   MySQL module causes DSO to fail.
3321 Open   Apache Complaining about undefined symbol: dlst_first
3659 Open   mod_php + apache w/mod_so hangs in sched_yield
3680 Open   Apache won't start after install php3
3752 Open   Apache configtest dumps core with DSO  versioning
3781 Open   Cannot load /libexec/libphp3.so
3861 Open   php as a dyn. mod.  configured with IBM db2 support prevents svr 
startup
9565 Open   php3_ldap.dll is compiled as DEBUG
===[IMAP related]=
2816 Open   Imap_open error when user_id length=3 char
2847 Open   imap_search - dates don't work
3040 Duplicate  imap_open
3236 Open   Email message 

Re: [PHP-DEV] Scripting Shootout - PHP ranked 24/29

2001-06-23 Thread Sebastian Bergmann

Sascha Schumann wrote:
 --enable-inline-optimization --disable-debug
 
 We might evaluate making those standard.

  Isn't --disable-debug already standard? Anyways, +1 for
--enable-inline-optimization.

-- 
 sebastian bergmann[EMAIL PROTECTED]
   http://www.sebastian-bergmann.de

 Meet the PHP Project at LinuxTag, Booth 5.0.334/2 - http://phpinfo.de/

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




Re: [PHP-DEV] Totally Blue Sky

2001-06-23 Thread Gre7g Luterman

I am pleased to announce that I dove into this new idea last night 
and made my first proof-of-concept program (PoC-1) for this new 
programming environment (which I am calling LocalPHP for the lack of 
a better name, any suggestions?).

The proof-of-concept is very crude!  It simply brings up a dialog 
with an IWebBrowse2 ActiveX component in it and points the browser to 

a file called index.php.  It then intercepts the fetch, processes 
the index.php into index.htm and redirects the browser to index.htm.  

Yes, this is very crude and not how I intend to do things long term!

The curious redirecting is important because index.php contains a 
link to index2.php.  When the user takes the link and the browser 
tries to fetch index2.php, the code again intercepts the request, 
converts index2.php into index2.htm and then redirects the browser.

As you may recall, I had expressed a hesitancy to open sockets so the 

program could communicate with itself.  It turns out that this will 
not be neccessary.  In fact, I did not even have to load Apache into 
the system as I had originally assumed.  Instead, I just use PHP 
stand-alone to process the .php files.

Plans for PoC-2:

The next proof-of-concept is coming along very nicely!  Instead of a 
dialog, I'm using a full, resizable window (CHtmlView).  Instead of 
converting .php files into .htm files, I want to pipe .php files into 

PHP and then pipe the result into the browser.  I've also begun some 
research into how we will be able to control the window (menus, 
status bar, etc.) from within the browser.  There are indeed some 
hooks we can use, so it shouldn't be too difficult.

I am extremely excited about this project and think that it could be 
valuable to lots of people.  It is my hopes that this will someday be 

embraced by the PHP community and used world-wide.

Immediate needs:

In the meantime, I do need some help to get rolling.  I have the PHP 
source and binaries, but there is so much code that I get a bit dizzy 

when I look at it!  What I want to do is stick the php4ts.dll (I am 
supposing that would be the best choice) binary into my project and 
then pipe data in and out of it.  Can someone PLEASE give me some 
hints as to how I can do this?  I'm sure it's easy, but I don't know 
where to start.  I've never even tried to put someone else's DLL into 

my code.

For reference, it appears that the browser can accept IStream class 
objects as input.  I understand that this is probably not what 
php4ts.dll uses, but I am willing to do whatever massaging I need to 
make that work.  If anyone has messed with these before and would 
like to volunteer input, I'd love to hear it ([EMAIL PROTECTED] or 
via this forum).

Micro$oft is a tumor in the computer world:

Finally, I beat my head for several hours against one bug last night. 

It involved converting a tagVARIANT (I'd never seen such a struct 
before) into a simple null-terminated-string.  I'm sure this sort of 
thing is easy to do.  It has to be, right?  Surely I'm not the first 
person to want to manipulate tagVARIANT's.  Anyhow, I couldn't figure 

out how to do it and was forced to write a very crude conversion 
routine to keep me from slitting my wrists.  Does anyone out there 
know the CORRECT way to do this?  I do not want to leave this hack in 

the code.

Let me know what you think!
Gre7g.

=
Gre7g Luterman   [EMAIL PROTECTED]  http://www.templeofluna.com/
Stay informed: http://www.templeofluna.com/keeper/mailinglist.htm

  It's sad that a family can be torn apart by something as simple
   ...as a pack of wild dogs.

-- 
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 #11630: no check for bound of a string

2001-06-23 Thread Xuefer

From: [EMAIL PROTECTED]
Operating system: win2k
PHP version:  4.0.5
PHP Bug Type: Strings related
Bug description:  no check for bound of a string

array:
$foo = array(bar);
echo $foo[0]; // correct
echo $foo[1]; // warnning

string?:
$foo = bar; // 0-b 1-a 3-r
echo $foo[0]; // correct
echo $foo[4]; // no warnning?


safe:
$foo = bar; // 0-b 1-a 3-r
echo $foo;// all rignts
$foo[1] = ;

crash in win2k:
$foo = bar; // 0-b 1-a 3-r
echo $foo[0];
echo $foo[4]; // no warnning
$foo[1] = $foo[4]; // no warnning
echo $foo;// crash! memory cannot be written


-- 
Edit Bug report at: http://bugs.php.net/?id=11630edit=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 #7878 Updated: intval base argument useless unless first arg is a string

2001-06-23 Thread zak

ID: 7878
Updated by: zak
Reported By: [EMAIL PROTECTED]
Old-Status: Assigned
Status: Closed
Bug Type: Documentation problem
Operating system: 
PHP Version: 4.0.3pl1
Assigned To: zak
Comments:

Finally got around to documenting this. :)

Previous Comments:
---

[2001-06-01 16:02:35] [EMAIL PROTECTED]
assigned then..


---

[2001-05-06 20:44:28] [EMAIL PROTECTED]
In hindsight, I think that the current behavior is fine and makes sense given how PHP 
currently behaves.

People just need to remember that writing a number out in a different base is for 
their convenience - PHP sees it as its decimal equivalent and behaves appropriately.

I have assigned it to myself so that it will bug me til I get around to documenting 
the behavior.

---

[2001-05-06 11:31:04] [EMAIL PROTECTED]
I guess no-one had thoughts about this. What are we going to do with this one?

---

[2000-11-19 00:55:06] [EMAIL PROTECTED]
The base argument for intval has no effect unless the first argument is a string.

I am not sure what the best fix for this is:

We could document that you should make the first argument a string to have the base 
argument used.

We could convert the first argument to a string (using  convert_to_string_ex) if there 
is a second argument

That would mke calls made with base 10 would work as expected:
intval (1000, 11); // Returns 1331
intval ('1000', 11); // Returns 1331

However, calls using other bases might seem a bit odd:
intval ('077', 8); // returns 63
intval (077, 8); // returns 51

This would be because 077 is converted to 63, then the argument is converted to a 
string.

Or we could add a warning if the first arg is not a string?

Any thoughts??



---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=7878edit=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 #11627 Updated: string '0' treated as empty

2001-06-23 Thread sniper

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

Yes, this is intentional. Check the manual page for it:

http://www.php.net/empty



Previous Comments:
---

[2001-06-23 07:54:37] [EMAIL PROTECTED]
the string '0' is not empty but treated as empty

if( empty( '0' ) )
{

}

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11627edit=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 #11630 Updated: no check for bound of a string

2001-06-23 Thread sniper

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

The crash (your last example) should be fixed in CVS.

But I also think there should be a warning at least when
trying to access characters out of the string boundary.


Previous Comments:
---

[2001-06-23 13:19:42] [EMAIL PROTECTED]
array:
$foo = array(bar);
echo $foo[0]; // correct
echo $foo[1]; // warnning

string?:
$foo = bar; // 0-b 1-a 3-r
echo $foo[0]; // correct
echo $foo[4]; // no warnning?


safe:
$foo = bar; // 0-b 1-a 3-r
echo $foo;// all rignts
$foo[1] = ;

crash in win2k:
$foo = bar; // 0-b 1-a 3-r
echo $foo[0];
echo $foo[4]; // no warnning
$foo[1] = $foo[4]; // no warnning
echo $foo;// crash! memory cannot be written

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11630edit=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 #11631: php_interbase.dll problem

2001-06-23 Thread dido

From: [EMAIL PROTECTED]
Operating system: Windows
PHP version:  4.0.5
PHP Bug Type: InterBase related
Bug description:  php_interbase.dllproblem

Hi there,
I found something strange about the php_interbase.dll included in versions 4.0.6 and 
4.0.5. Both dlls in the different versions have the same size, but they return 
diffrent results from a sql query that uses agregate SUM().
All I do is to select from the table, SUM the results and display them out. When I use 
the dll included in 4.0.5 the results are acurate. When I use the dll included in 
4.0.6 with php 4.0.6 instead of exact numbers like 25.0 , I receive 25.2  and this is 
in all my results ( + 0.2 ).



-- 
Edit Bug report at: http://bugs.php.net/?id=11631edit=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 #11624 Updated: memory error

2001-06-23 Thread Beech . 7

ID: 11624
User Update by: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Open
Bug Type: Reproducible crash
Operating system: Thanks
PHP Version: 4.0.6
Description: memory error

It works now, thanx.  All i have to do now if figure out how to get the input working.

Previous Comments:
---

[2001-06-23 06:06:56] [EMAIL PROTECTED]
Does this happen with PHP 4.0.6 ?


---

[2001-06-23 04:06:27] [EMAIL PROTECTED]
Because it happens with both submit and whatever send the polling data I think it may 
have to be in the function.php file.  Regretfully neither my friend nor I know php 
THAT well.

---

[2001-06-23 03:56:40] [EMAIL PROTECTED]
Because it happens with both submit and whatever send the polling data I think it may 
have to be in the function.php file.  Regretfully neither my friend nor I know php 
THAT well.

---

[2001-06-23 03:49:56] [EMAIL PROTECTED]
Because it happens with both submit and whatever send the polling data I think it may 
have to be in the function.php file.  Regretfully neither my friend nor I know php 
THAT well.

---

[2001-06-23 03:48:29] [EMAIL PROTECTED]
?
include(functions.php);

if (! isset($HTTP_POST_VARS[op]))
$op = strtolower($HTTP_GET_VARS[op]);
else
$op = strtolower($HTTP_POST_VARS[op]);

switch($op) {
case :
printHeader($site_title - Submit News);
printMessage(Submit News, Got a hot story? Fill in the details here and 
submit it for review. An
  unruly mob of $site_title editors and readers will poke, prod, 
prick, and preen 
  your submission and, if the general consensus is that it doesn't 
suck, it just might
  get posted to the front page. Remember to check your spelling, 
grammar, and links!);
printPostNews(0);
printFooter();  
break;

case preview:
printHeader($site_title - Preview Submission);
printPostNews(1);
printFooter();
break;

case post:
postNews($userinfo[user_id], $HTTP_POST_VARS[topic], 
$HTTP_POST_VARS[section], $HTTP_POST_VARS[title], $HTTP_POST_VARS[department], 
$HTTP_POST_VARS[text], $HTTP_POST_VARS[text2], $HTTP_POST_VARS[format], 1);
printHeader($site_title - Submission Posted);
printMessage(Submission Posted, Your submission has been posted to the 
queue. $site_title editors and readers can now view it, rate it, and decide whether or 
not they think it deserves to show up on the front page. Thanks!);
printFooter();
break;
}
?

---

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

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


-- 
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 #11628 Updated: odbc_fetch_into is broken

2001-06-23 Thread sniper

ID: 11628
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: ODBC related
Operating system: 
PHP Version: 4.0.6
Assigned To: 
Comments:

correct version.


Previous Comments:
---

[2001-06-23 08:43:18] [EMAIL PROTECTED]
this is for 4.0.6, but there's no option for that yet  4.0.5 works fine.

easiest to describe this by example:

odbc_fetch_into($qid,1,$row);

gives

Fatal error: Only variables can be passed by reference in script on line line


$i=1;
odbc_fetch_into($qid,$i,$row);

works perfectly.


---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11628edit=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 #10571 Updated: blank browser with Xitami

2001-06-23 Thread sniper

ID: 10571
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: Other web server
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

Does this happen with PHP 4.0.6 ?


Previous Comments:
---

[2001-05-01 01:04:17] [EMAIL PROTECTED]
I am running a Xitami (v2.4c1) server on win2000.
I used the install shield to install PHP 4.0.4.
All the filters and stuff seem to be set up right in Xitami. I have installed and used 
PHP 3 with the same server and followed the same steps to configure it for PHP 4.
I have set the doc_root in the php.ini file to C:NigelVWS.

However, when I run a script nothing happens: I get a blank browser screen. Setting 
the display_startup_errors in the php.ini file I get the message:
Fatal error: Unable to open C:NigelVWS in Unknown on line 0

I tried commenting out the doc_root setting in the php.ini file and I get the same 
error only it's pointing to the cgi-bin directory of Xitami (even though I have told 
it to use c:NigelVSM for files). 
I tried pointing the doc_root to the complete path of the php script file including 
it's filename and that worked and processed the file normally... every time the server 
started up php for any page.

I really am stumped. Thanks in advance.


---

[2001-05-01 01:02:02] [EMAIL PROTECTED]
I am running a Xitami (v2.4c1) server on win2000.
I used the install shield to install PHP 4.0.4.
All the filters and stuff seem to be set up right in Xitami. I have installed and used 
PHP 3 with the same server and followed the same steps to configure it for PHP 4.
I have set the doc_root in the php.ini file to C:NigelVWS.

However, when I run a script nothing happens: I get a blank browser screen. Setting 
the display_startup_errors in the php.ini file I get the message:
Fatal error: Unable to open C:NigelVWS in Unknown on line 0

I tried commenting out the doc_root setting in the php.ini file and I get the same 
error only it's pointing to the cgi-bin directory of Xitami (even though I have told 
it to use c:NigelVSM for files). 
I tried pointing the doc_root to the complete path of the php script file including 
it's filename and that worked and processed the file normally... every time the server 
started up php for any page.

I really am stumped. Thanks in advance.


---

[2001-05-01 00:45:21] [EMAIL PROTECTED]
Not enough information.

See http://www.php.net/bugs-dos-and-donts.php

-Chris

---

[2001-05-01 00:32:46] [EMAIL PROTECTED]


---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10571edit=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 #11624 Updated: memory error

2001-06-23 Thread sniper

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

Fixed - closed.


Previous Comments:
---

[2001-06-23 14:40:10] [EMAIL PROTECTED]
It works now, thanx.  All i have to do now if figure out how to get the input working.

---

[2001-06-23 06:06:56] [EMAIL PROTECTED]
Does this happen with PHP 4.0.6 ?


---

[2001-06-23 04:06:27] [EMAIL PROTECTED]
Because it happens with both submit and whatever send the polling data I think it may 
have to be in the function.php file.  Regretfully neither my friend nor I know php 
THAT well.

---

[2001-06-23 03:56:40] [EMAIL PROTECTED]
Because it happens with both submit and whatever send the polling data I think it may 
have to be in the function.php file.  Regretfully neither my friend nor I know php 
THAT well.

---

[2001-06-23 03:49:56] [EMAIL PROTECTED]
Because it happens with both submit and whatever send the polling data I think it may 
have to be in the function.php file.  Regretfully neither my friend nor I know php 
THAT well.

---

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=11624edit=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 #11632: Bad Request on most Sites

2001-06-23 Thread cheapsalsa

From: [EMAIL PROTECTED]
Operating system: Red Hat Linux 7.0 Standard
PHP version:  4.0.6
PHP Bug Type: URL related
Bug description:  Bad Request on most Sites

I have created a webpage to get the HTTP headers of a page.  This worked fine with 
4.0.5 (using the $http_request_header variable.)  But, in 4.0.6, almost all websites 
give me a 400 Bad Request Error when using this script.  To get the webpages I use

$pagefile=file(http://$url;);

where $url is the url (without the http://)  I want to use.  The only site I have 
found that does not give me a 400 error is www.yahoo.com.  As I said, this script 
worked fine with 4.0.5 and I have not changed anything since using 4.0.6.  I just 
installed PHP 4.0.6 today (June 23.)  I compiled it with Apache 1.3.20 using all the 
same configure stuff, etc...  Compiling process went normal.  I can usually debug 
things like this, but I cannot figure out what would have caused this one.  I am 
guessing PHP is sending corrupted requests, but I really don't know.


-- 
Edit Bug report at: http://bugs.php.net/?id=11632edit=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 #11632 Updated: Bad Request on most Sites

2001-06-23 Thread cheapsalsa

ID: 11632
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: URL related
Operating system: Red Hat Linux 7.0 Standard
PHP Version: 4.0.6
Description: Bad Request on most Sites

Whoa!  I figured something out.  If I request http://finance.yahoo.com (without the 
last slash) I get 400 errors, but with the slash (http://finance.yahoo.com/) it works 
fine.  As does any other page on the site (http://finance.yahoo.com/index.html)  I 
think PHP is sending GET  HTTP/1.0 because I used the script on MY site and in my 
error log file, it says Invalid URI 'GET  HTTP/1.0'

Previous Comments:
---

[2001-06-23 15:22:45] [EMAIL PROTECTED]
I have created a webpage to get the HTTP headers of a page.  This worked fine with 
4.0.5 (using the $http_request_header variable.)  But, in 4.0.6, almost all websites 
give me a 400 Bad Request Error when using this script.  To get the webpages I use

$pagefile=file(http://$url;);

where $url is the url (without the http://)  I want to use.  The only site I have 
found that does not give me a 400 error is www.yahoo.com.  As I said, this script 
worked fine with 4.0.5 and I have not changed anything since using 4.0.6.  I just 
installed PHP 4.0.6 today (June 23.)  I compiled it with Apache 1.3.20 using all the 
same configure stuff, etc...  Compiling process went normal.  I can usually debug 
things like this, but I cannot figure out what would have caused this one.  I am 
guessing PHP is sending corrupted requests, but I really don't know.

---


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


-- 
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 #11633: Cannot submit on website

2001-06-23 Thread mbeech13

From: [EMAIL PROTECTED]
Operating system: Win2K Pro SP2
PHP version:  4.0.6
PHP Bug Type: *Web Server problem
Bug description:  Cannot submit on website

Whenever someone tries to submit on my website the error No input file specified. 
happens.  I talked to the guys at PHPSlice dev and we tried a few things but in the 
end they said it sounds like a PHP related error.  I think it may be in the php files 
they supply, but I do not know php well enough to see anything amiss.

Here are the file contents:
functions.php

?
/***
*
* Customizable Settings
*
/

/* Site Settings */
$site_url= http://totalentropy.org/;;  /* Full URL of this site WITH TRAILING 
SLASH (i.e., http://wonko.com/;) */
$site_path   = /;  /* Relative path to the site's root directory 
under the domain */
$site_title  = PHPSlice;   /* Title of the site */
$site_logo   = logo.jpg;   /* Filename of the site's logo (should be 
located in /images) */

$site_button = http://www.totalentropy.org/images/mysite.gif;; /* 88x31 button 
for this site */
$site_desc   = Lazy == Good.;  /* Description of the site */

$admin_name  = Einstein;/* Name of the site administrator (you) */
$admin_email = [EMAIL PROTECTED];/* Email address of the site administrator */

/* Anonymous User Settings */
/* (these have no effect yet) */
$anon_nick   = Anonymous Poo; /* Nickname of the anonymous user */
$anon_access = 5;   /* Access level of the anonymous user */
$anon_id = 1;   /* User ID of the anonymous user */

/* Theme Settings */
$themes = array();
$site_theme  = PHPSlice;  /* Name of the default theme for this site */

$themes[PHPSlice] = phpslice.php;   /* Themes array usage: $themes[theme name] = 
template file; */

/* Database Settings */
$db_hostname = localhost; /* Name/IP of the SQL server */
$db_username = ;  /* Username with access to the database */
$db_password = ;  /* Password for the specified user */
$db_name = phpslice;  /* Name of the database to use */

$db_type = 2;   /* Type of database to use
   1 = Microsoft SQL Server 7.0/2000
   2 = MySQL
*/


/***
*
* Initialization
*
/

/* Load the db functions for the database specified by $db_type */
switch($db_type) {
case 1: /* MSSQL */
include(lib/db_mssql.php);
break;

case 2: /* MySQL */
include(lib/db_mysql.php);
break;

/* not in this release

case 3:
include(lib/db_pgsql.php);
break;

case 4:
include(lib/db_msql.php);
break;
*/
}

/* Load the layout template */
//if (isset($HTTP_COOKIE_VARS[theme]))
//$layout = $HTTP_COOKIE_VARS[theme];
//else
$layout = $site_theme;

include(lib/templates/.$themes[$layout]);



/***
*
* Miscellaneous functions
*
/

// Check if the user has access to this page; if not, redirect to front
function checkAccess($level) {
global $userinfo, $site_url;

if (!$userinfo[access] = $level) {
header(Location: $site_url);
exit;
}
}

// Check if the user is logged in; if not, redirect to front
function checkAuth() {
global $userinfo, $site_url;

if ($userinfo[user_id] == 1) {
Header(Location: $site_url);
exit;
}
}

function fixQuotes($string) {
$string = str_replace(', '', $string);

return $string;
}

/* Strip all invalid HTML and PHP tags from the given string, convert quotes, etc. */
function makeNice($string) {
/* List of allowed tags */
$allowed = 
a,b,blockquote,br,code,div,em,hr,i,li,ol,p,pre,strike,strong,sub,sup,tt,u,ul;
$string = strip_tags($string, $allowed);

return $string;
}

/* Stricter version of the above, strips EVERYTHING it possibly can */
function makeReallyNice($string) {
$trans = get_html_translation_table(HTML_ENTITIES);
$trans[] = ;
$trans[  ] = nbsp;nbsp;;
$trans[   ] = nbsp;nbsp;nbsp;;

$string = strtr($string, $trans);

return $string;
}


/***
*
* Handle poll votes
*
/

if (isset($HTTP_POST_VARS[poll])) {
$pid = $HTTP_POST_VARS[pid];
$vote = $HTTP_POST_VARS[vote];

postVote($userinfo[user_id], $pid, $vote, $REMOTE_ADDR);
}

/***
*
* Handle theme changes
*
/

if (isset($HTTP_POST_VARS[themeop]))
setcookie(theme, $HTTP_POST_VARS[theme], time() + 63072000);

?

and 

[PHP-DEV] Bug #11632 Updated: Bad Request on most Sites

2001-06-23 Thread sniper

ID: 11632
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Analyzed
Old-Bug Type: URL related
Bug Type: HTTP related
Operating system: 
PHP Version: 4.0.6
Assigned To: 
Comments:



Previous Comments:
---

[2001-06-23 15:22:45] [EMAIL PROTECTED]
I have created a webpage to get the HTTP headers of a page.  This worked fine with 
4.0.5 (using the $http_request_header variable.)  But, in 4.0.6, almost all websites 
give me a 400 Bad Request Error when using this script.  To get the webpages I use

$pagefile=file(http://$url;);

where $url is the url (without the http://)  I want to use.  The only site I have 
found that does not give me a 400 error is www.yahoo.com.  As I said, this script 
worked fine with 4.0.5 and I have not changed anything since using 4.0.6.  I just 
installed PHP 4.0.6 today (June 23.)  I compiled it with Apache 1.3.20 using all the 
same configure stuff, etc...  Compiling process went normal.  I can usually debug 
things like this, but I cannot figure out what would have caused this one.  I am 
guessing PHP is sending corrupted requests, but I really don't know.

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11632edit=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 #11632 Updated: Bad Request on most Sites

2001-06-23 Thread sniper

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

reclassified.


Previous Comments:
---

[2001-06-23 15:28:40] [EMAIL PROTECTED]
Whoa!  I figured something out.  If I request http://finance.yahoo.com (without the 
last slash) I get 400 errors, but with the slash (http://finance.yahoo.com/) it works 
fine.  As does any other page on the site (http://finance.yahoo.com/index.html)  I 
think PHP is sending GET  HTTP/1.0 because I used the script on MY site and in my 
error log file, it says Invalid URI 'GET  HTTP/1.0'

---

[2001-06-23 15:22:45] [EMAIL PROTECTED]
I have created a webpage to get the HTTP headers of a page.  This worked fine with 
4.0.5 (using the $http_request_header variable.)  But, in 4.0.6, almost all websites 
give me a 400 Bad Request Error when using this script.  To get the webpages I use

$pagefile=file(http://$url;);

where $url is the url (without the http://)  I want to use.  The only site I have 
found that does not give me a 400 error is www.yahoo.com.  As I said, this script 
worked fine with 4.0.5 and I have not changed anything since using 4.0.6.  I just 
installed PHP 4.0.6 today (June 23.)  I compiled it with Apache 1.3.20 using all the 
same configure stuff, etc...  Compiling process went normal.  I can usually debug 
things like this, but I cannot figure out what would have caused this one.  I am 
guessing PHP is sending corrupted requests, but I really don't know.

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11632edit=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 #11633 Updated: Cannot submit on website

2001-06-23 Thread sniper

ID: 11633
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: *Web Server problem
Operating system: 
PHP Version: 4.0.6
Assigned To: 
Comments:

Please open a new bug report with SHORT example
script that shows what the problem is. 



Previous Comments:
---

[2001-06-23 16:09:06] [EMAIL PROTECTED]
Whenever someone tries to submit on my website the error No input file specified. 
happens.  I talked to the guys at PHPSlice dev and we tried a few things but in the 
end they said it sounds like a PHP related error.  I think it may be in the php files 
they supply, but I do not know php well enough to see anything amiss.

Here are the file contents:
functions.php

?
/***
*
* Customizable Settings
*
/

/* Site Settings */
$site_url= http://totalentropy.org/;;  /* Full URL of this site WITH TRAILING 
SLASH (i.e., http://wonko.com/;) */
$site_path   = /;  /* Relative path to the site's root directory 
under the domain */
$site_title  = PHPSlice;   /* Title of the site */
$site_logo   = logo.jpg;   /* Filename of the site's logo (should be 
located in /images) */

$site_button = http://www.totalentropy.org/images/mysite.gif;; /* 88x31 button 
for this site */
$site_desc   = Lazy == Good.;  /* Description of the site */

$admin_name  = Einstein;/* Name of the site administrator (you) */
$admin_email = [EMAIL PROTECTED];/* Email address of the site administrator */

/* Anonymous User Settings */
/* (these have no effect yet) */
$anon_nick   = Anonymous Poo; /* Nickname of the anonymous user */
$anon_access = 5;   /* Access level of the anonymous user */
$anon_id = 1;   /* User ID of the anonymous user */

/* Theme Settings */
$themes = array();
$site_theme  = PHPSlice;  /* Name of the default theme for this site */

$themes[PHPSlice] = phpslice.php;   /* Themes array usage: $themes[theme name] = 
template file; */

/* Database Settings */
$db_hostname = localhost; /* Name/IP of the SQL server */
$db_username = ;  /* Username with access to the database */
$db_password = ;  /* Password for the specified user */
$db_name = phpslice;  /* Name of the database to use */

$db_type = 2;   /* Type of database to use
   1 = Microsoft SQL Server 7.0/2000
   2 = MySQL
*/


/***
*
* Initialization
*
/

/* Load the db functions for the database specified by $db_type */
switch($db_type) {
case 1: /* MSSQL */
include(lib/db_mssql.php);
break;

case 2: /* MySQL */
include(lib/db_mysql.php);
break;

/* not in this release

case 3:
include(lib/db_pgsql.php);
break;

case 4:
include(lib/db_msql.php);
break;
*/
}

/* Load the layout template */
//if (isset($HTTP_COOKIE_VARS[theme]))
//$layout = $HTTP_COOKIE_VARS[theme];
//else
$layout = $site_theme;

include(lib/templates/.$themes[$layout]);



/***
*
* Miscellaneous functions
*
/

// Check if the user has access to this page; if not, redirect to front
function checkAccess($level) {
global $userinfo, $site_url;

if (!$userinfo[access] = $level) {
header(Location: $site_url);
exit;
}
}

// Check if the user is logged in; if not, redirect to front
function checkAuth() {
global $userinfo, $site_url;

if ($userinfo[user_id] == 1) {
Header(Location: $site_url);
exit;
}
}

function fixQuotes($string) {
$string = str_replace(', '', $string);

return $string;
}

/* Strip all invalid HTML and PHP tags from the given string, convert quotes, etc. */
function makeNice($string) {
/* List of allowed tags */
$allowed = 
a,b,blockquote,br,code,div,em,hr,i,li,ol,p,pre,strike,strong,sub,sup,tt,u,ul;

$string = strip_tags($string, $allowed);

return $string;
}

/* Stricter version of the above, strips EVERYTHING it possibly can */
function makeReallyNice($string) {
$trans = get_html_translation_table(HTML_ENTITIES);
$trans[] = ;
$trans[  ] = nbsp;nbsp;;
$trans[   ] = nbsp;nbsp;nbsp;;

$string = strtr($string, $trans);

return $string;
}


/***
*
* Handle poll votes
*
/

if 

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

2001-06-23 Thread sbergmann

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

Can't reproduce this with either PHP 4.0.5 or PHP 4.0.7-dev on Win32.


Previous Comments:
---

[2001-06-23 05:06:59] [EMAIL PROTECTED]
Hi All!

I've just done some testings with the new php4.06 release and the crash is still here 
with:
- php loaded as a cgi or as an Apache module,
- php.ini = the optimized one (without any extension).

Regards,
Loïc  

---

[2001-06-15 13:33:17] [EMAIL PROTECTED]
Hi sniper and all!

Well, it's not easy to send you an accurate reply because zend snapshots for win32 
does not contain the Apache module.

BTW, Ive done some testings:
- with php4.07-dev from php4win.de the script still crashes Apache with php loaded as 
a gci or as an Apache module;
- with the latest snapshot from zend.com (cgi only), it runs :)

If someone can build the Apache module (I can't do it, sorry :() I may do some more 
tests.

Thanks for your attention,
Loïc

---

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



---

[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;
}


---

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=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 #11389 Updated: array_walk causes Apache to crash

2001-06-23 Thread sniper

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

Reproduced with PHP 4.0.6


Previous Comments:
---

[2001-06-10 20:32:59] [EMAIL PROTECTED]
I have installed PHP 4.0.5. The same problem ocurrs.
sive.

---

[2001-06-10 19:58:51] [EMAIL PROTECTED]
First, sorry, i have a very bad English.

This script:

$myarr = array(array(1,2,3), array(1,2,3), array(1,2,3));
array_walk($myarr, myfunc);
function myfunc($value, $key) {
  global $myarr;
  $myarr=null;
}

causes Apache to crash. I'm using Apache 1.3.19 and PHP 4.0.4pl1 under W98.

Is a stupid script, but it's not the real script. Is the shorter script that 
reproduces the problem that i can send you.

thanks,
sive

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11389edit=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 #11389 Updated: array_walk causes Apache to crash

2001-06-23 Thread sbergmann

ID: 11389
Updated by: sbergmann
Reported By: [EMAIL PROTECTED]
Status: Analyzed
Bug Type: Arrays related
Operating system: 
PHP Version: 4.0.6
Assigned To: 
Comments:

Reproduced with 4.0.7-dev (latest CVS, Win32)

Previous Comments:
---

[2001-06-23 17:29:51] [EMAIL PROTECTED]
Reproduced with PHP 4.0.6


---

[2001-06-10 20:32:59] [EMAIL PROTECTED]
I have installed PHP 4.0.5. The same problem ocurrs.
sive.

---

[2001-06-10 19:58:51] [EMAIL PROTECTED]
First, sorry, i have a very bad English.

This script:

$myarr = array(array(1,2,3), array(1,2,3), array(1,2,3));
array_walk($myarr, myfunc);
function myfunc($value, $key) {
  global $myarr;
  $myarr=null;
}

causes Apache to crash. I'm using Apache 1.3.19 and PHP 4.0.4pl1 under W98.

Is a stupid script, but it's not the real script. Is the shorter script that 
reproduces the problem that i can send you.

thanks,
sive

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11389edit=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 #11617 Updated: crash when restoring references

2001-06-23 Thread sniper

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

Could you please try again? The fix wasn't ok, but now
it's been rewritten and should work.

If it still crashes, try to generate a gdb backtrace of
the crash. And thank you for helping!

--Jani
 

Previous Comments:
---

[2001-06-22 11:01:25] [EMAIL PROTECTED]
There is still problem in serialize/unserialize mechanism  used to restore session 
variables(after closing #8676 bug which was supoused to correct the problem). Here is 
simplest script I can produce that does apache segfault on my machine:

?
class Cscreen {
var $page;
var $frames;

function Cscreen() {
$this - frames = array();
}
};

class CError_handler {
var $msg_error;

function CError_handler() {
$this - msg_error = new CMessage();
}
};

class CConnection_Table {
var $data;

function CConnection_table() {
$this - data = array();
}

function mconnect($message,$object,$method) {
$data[0] = $object;
$data[1] = $method;
$this - data[$message - msg_id][] = $data;
}
};

class CMessage {
var $data;
var $msg_id;

function CMessage($data = 0) {
global $__CMSGID_NEXT;
$this - msg_id = $__CMSGID_NEXT++;
$this - data = $data;
}
};

function MCONNECT($message,$obj_name,$method_name) {
global $__connection_table;
$__connection_table - mconnect($message,$obj_name,$method_name);
};

session_start();
session_destroy();
$__connection_table = new CConnection_table;
session_register(__connection_table);

$screen = new Cscreen();
session_register(screen);

$error_handler = new CError_handler($screen);
MCONNECT($error_handler - msg_error,$screen,fatal_error);
session_register(error_handler);
echo done;
exit();



---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11617edit=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 #10601 Updated: crypt() not work

2001-06-23 Thread sniper

ID: 10601
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Critical
Status: Closed
Bug Type: *Encryption and hash functions
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

This is now fixed in PHP 4.0.6. 

--Jani


Previous Comments:
---

[2001-05-09 11:13:16] [EMAIL PROTECTED]
Just marking as critical, so the one who creates
the Windows binaries will remember this.
(change in config.w32.h the HAVE_CRYPT 0 to 1..)

--Jani


---

[2001-05-02 04:09:06] [EMAIL PROTECTED]
windows php 4.0.4pl1 work with crypt(), but
windows php 4.0.5 not work with crypt().
really?

I necessarily need crypt() with windows php.
please help me.

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10601edit=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 #11290 Updated: Instruction at 0x77fcb03d referrenced memory at 0x00080100 Could not write.

2001-06-23 Thread sniper

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

Reopen if this happens with PHP 4.0.6 (no feedback)


Previous Comments:
---

[2001-06-06 01:08:01] [EMAIL PROTECTED]
Does this happen with PHP 4.0.5 ?
Or with latest CVS build from http://www.zend.com/snapshots/



---

[2001-06-05 11:46:46] [EMAIL PROTECTED]
This only occured after installing service pack 2 for Win2K, have reproduced the error 
on two different machines with service pack 2.  PHP is running as CGI.

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11290edit=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 #11358 Updated: Unable to compile php module with imap....

2001-06-23 Thread sniper

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

No feedback. Please reopen with GDB backtrace if it 
crashes with PHP 4.0.6.


Previous Comments:
---

[2001-06-08 14:00:49] [EMAIL PROTECTED]
Please try with latest RC:

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

And if it segfaults too, please include a GDB backtrace into
this bug report.

--Jani


---

[2001-06-08 11:01:24] [EMAIL PROTECTED]
./configure --prefix=/usr/local/php --without-mysql --with-openssl=/usr/local/ssl 
--with-apache=/install/src/Scalable_webmail/apache_1.3.20 
--with-config-file-path=/usr/local/php --with-ldap=/usr/local/ldap --with-imap; make 
-j 2 install

  Php compilation succesfull, uw-imap compilation succesfull, apache also succesfull, 
but when i try to run apache i receive segmentation fault. I tried to 5 different 
versions of uw-imap. Php without imap works fine with apache.
  Everything works fine under GNU/Linux, but not under my Solaris 2.6
 

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11358edit=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] phpdev

2001-06-23 Thread Brett Shaw

www.oosha.com/phpdev/index.php3

Ive had some great response to the site but not as much as id hoped if you
have any ideas please email them to me and ill implement them

--
[EMAIL PROTECTED]
[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 #11634: Submit error

2001-06-23 Thread mbeech13

From: [EMAIL PROTECTED]
Operating system: Win2K Pro SP2
PHP version:  4.0.6
PHP Bug Type: Unknown/Other Function
Bug description:  Submit error

Whenever someone tries to submit to my site they get the
error No input file specified

I think it may have something to do with this code here:

case post:
postNews($userinfo[user_id],
$HTTP_POST_VARS[topic], $HTTP_POST_VARS[section],
$HTTP_POST_VARS[title], $HTTP_POST_VARS[department],
$HTTP_POST_VARS[text], $HTTP_POST_VARS[text2],
$HTTP_POST_VARS[format], 1);
printHeader($site_title - Submission Posted)

But i am not sure.

Anyone know what I might be able to do?


-- 
Edit Bug report at: http://bugs.php.net/?id=11634edit=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 #11264 Updated: apache child crashes

2001-06-23 Thread sniper

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

I'm unable to reproduce this with PHP 4.0.6
Please try it out.


Previous Comments:
---

[2001-06-22 14:59:40] [EMAIL PROTECTED]
Yeah... like i said Apache PHP sapi LoadModule php4_module 
c:/apache/php/sapi/php4apache.dll in httpd.conf.

---

[2001-06-21 14:14:14] [EMAIL PROTECTED]
Let's try again: What SAPI are you using? 
Are you using the CGI or the Apache DSO?
(do you have a LoadModule line for php in your httpd.conf?)



---

[2001-06-19 23:24:15] [EMAIL PROTECTED]
Apache 1.3.20 with PHP sapi. This only started happening i think with PHP 4.0.5 not 
4.0.4. This happens with an older version of Apache too. I don't think it is Apache. I 
mean it is after all only 2 PHP function... die() and exit() that I notice crahing 
right now, but a while ago I noticed another one that causes a crash but I couldn't 
pinpoint which function then I ended up rewriting the script. Thanks, I really need 
this problem fixed.

---

[2001-06-19 08:17:09] [EMAIL PROTECTED]
I can not reproduce this with Apache 1.3.20/CGI or DSO. 
What SAPI are you using? Apache DSO or CGI? IIS? 

--Jani


---

[2001-06-14 22:20:52] [EMAIL PROTECTED]
actually now I know of 2 functions that are crashing it, 
die() and exit()

---

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=11264edit=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 #11634 Updated: Submit error

2001-06-23 Thread sniper

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

Please include a shortest but complete script you can
reproduce the error with into this bug report.



Previous Comments:
---

[2001-06-23 18:29:10] [EMAIL PROTECTED]
Whenever someone tries to submit to my site they get the
error No input file specified

I think it may have something to do with this code here:

case post:
postNews($userinfo[user_id],
$HTTP_POST_VARS[topic], $HTTP_POST_VARS[section],
$HTTP_POST_VARS[title], $HTTP_POST_VARS[department],
$HTTP_POST_VARS[text], $HTTP_POST_VARS[text2],
$HTTP_POST_VARS[format], 1);
printHeader($site_title - Submission Posted)

But i am not sure.

Anyone know what I might be able to do?

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11634edit=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] is_scalar

2001-06-23 Thread Zak Greant

Hello All,

I was just reviewing the is_scalar() function and noted that the function
does not consider resources to be scalar values.

Shouldn't this be changed? I must have missed this when I initially wrote
the function...


Zak Greant
Freelance Designer / Programmer / Writer

PHP QA Team Member
http://qa.php.net/

Canadian? Interested in the environment?
Please visit http://www.energyrevolution.net/

Am I working on a project for or with you?
Check http://calendar.yahoo.ca/jagreant


-- 
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 #11635: Access Violation

2001-06-23 Thread sonix

From: [EMAIL PROTECTED]
Operating system: Windows 2000/IIS5
PHP version:  4.0.6
PHP Bug Type: Unknown/Other Function
Bug description:  Access Violation

Okay... I'm working on a Big Porject.. There is Many Include. i don;t know if the 
problem is caused because i open too many file, or there is a Problem with PHP.

Humm... i see this bug with php 4.0.5, php 4.0.6.
(But the my project get bigger since these version...) Maybe php 4.0.4 will do this 
problem too...
Here is the error... (It's Never the same Access Violation

PHP has encountered an Access Violation at 01550A88

i try to kill IIS Service, but he always say Unable to kill this process.. (Stall 
Process).I need to reboot my PC.
Currently I'm the Only One on the server.. (i'm developping). Humm.. I use PEAR to 
make all my SQL query.
I really don't know what is the problem...



-- 
Edit Bug report at: http://bugs.php.net/?id=11635edit=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 #9518 Updated: dir() only returns first 6 chars correctly

2001-06-23 Thread sniper

ID: 9518
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Directory function related
Operating system: 
PHP Version: 4.0.2
Assigned To: 
Comments:

Reopen if this happens with PHP 4.0.6.


Previous Comments:
---

[2001-03-02 10:31:04] [EMAIL PROTECTED]
Hi Jani,

Thanks for the message.  I have not tried that distribution.  It took me many months 
to get a successful install on my irix box and I am a bit reluctant right now to take 
a chance and maybe 'break it'.  8-) The php/mysql system is current running an 
abstract service for a regional chemical conference and I don't want to take a chance 
at making that go down.  8-)  The abstract deadline is the 16th of march and after 
that I feel comfortable enough trying to building a new version on the irix box.  BTW, 
php/mysql has been a great addition to the my uses for chemistry web servers. 

Sorry for asking for help and not being able to try your suggestion until a couple of 
weeks.

I will try the lasted non-snapshot release as soon as the server is not so critical.  
I am guessing that I could maybe try to build it so that is doesn't write over the 
current working version.  If I can figure that out, I will try to get to that sooner.

Thanks again for the quick resonse!

---

[2001-03-02 09:26:43] [EMAIL PROTECTED]
Does this happen with PHP 4.0.4.pl1? 

--Jani


---

[2001-03-02 02:41:52] [EMAIL PROTECTED]
Hi Folks,

I have run into a problem using the dir() function.

The following code behaves properly on linux and does not using irix:

Contents of the dir (only folders) are:

CH104/
CH105/
CH120/
ABCDEFGHIJKL/
abcdefghijkl/

When I execute the following code:

chdir($dir_path);
echo (Dir Path = $dir_pathbr);
$dir = dir(.);
$dir - rewind();
$file=$dir-read();
echo (file is $filebrn);
$file=$dir-read();
echo (file is $filebrn);
$file=$dir-read();
echo (file is $filebrn);
$file=$dir-read();
echo (file is $filebrn);

I get the following incorrect results (php 4.0.2, irix 6.5.7)

Dir Path = /Public/Web/db/msds
file is .
file is ..
file is CH104
file is CH105
file is CH120
file is ABCDEFþõ~KL
file is abcdefþõ~kl

So, it appears that if the dir (or file) is less than or equal to 6 char the
dir() function work correctly.  However, if it is longer, the name get
garbled.

On a redhat linux box (php 4.0.2), it works fine and I get proper dir names. 
This behavior is the same for filenames not just dir names.

I have checked the bugs.php.net and email lists without finding information
related to this problem.  Hope I have not missed it some where...

Dean
-- 
-
Dean Waldow, Associate Professor (253) 535-7533
Department of Chemistry  (253) 536-5055 (FAX)
Pacific Lutheran University   [EMAIL PROTECTED]
Tacoma, WA  98447   USA   http://www.chem.plu.edu/waldow/
-
---CIRRUS, the UG research resource: http://cirrus.chem.plu.edu/---
-

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9518edit=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 #11062 Updated: Sharing Violation Error Message

2001-06-23 Thread sniper

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

Does this happen with PHP 4.0.6 ?


Previous Comments:
---

[2001-06-04 01:27:47] [EMAIL PROTECTED]
In order to regain control over the directories, it is necessary to restart the entire 
IIS Admin Service.  Restarting the World Wide Web Publishing Service alone does 
not fix the problem.

---

[2001-05-23 14:34:47] [EMAIL PROTECTED]
Hello, I've written a simple script which can recurse into subdirectories when needed, 
and print out an HTML table with with details about the files it finds.  The problem 
is that after I run this script, if I try and rename one of the folders it has 
recursed into, I get an error message which reads:

Cannot rename [folder name]:  There has been a sharing violation.  The source or 
destination file may be in use.

Note that I can still rename files, just not folders.  If I stop and start IIS, I am 
able to rename folders until I run the script again.  I believe I'm using the 
closedir() function correctly, and have even echoed out when the directories are 
opened and closed to make sure I'm not messing up.  One last thing to note is that 
this script is being run on an NTFS partition.  A copy of the script follows:


?php

// $hddir is the hard drive directory passed into this function from the calling page
// $mode can be either single or recurse
// $order is just ignored right now, but I would like it to be alphabetical, size, 
etc.


function list_dir($hddir, $mode, $order) {
$webdir = http://www.foo.com; . str_replace(/inetpub/www_root, , $hddir);
$handle = opendir($hddir);
chdir($hddir);


// if there are files in the directory, print out the table header and set the 
flag
// once we find a file, don't run the test (and print out the table header) 
again
while (($file = readdir($handle))  ($file_count  1)) {
if ($file == '.' || $file== '..') 
continue;
else if (is_file($file)) {
echo table border=0 cellpadding=2 cellspacing=2;
echo trth/thth class=highFilename/th;
echo th class=highSize/th;
echo th class=highModified/th/tr;
$file_count += 1;
}
}


rewinddir ($handle);// start reading again 
from the beginning of the directory
while ($file = readdir($handle)) {  // while we can read an entry 
from the directory (files and dirs)
if ($file == '.' || $file== '..') 
continue;

else if (($mode == recurse)  (is_dir($file))  (substr($file, 
0, 1) != _)) {   // don't recurse directories which begin with an underscore
$dir_count += 1;
$places_to_go[$dir_count] = $file;
}

else if (is_file($file)) {
$extension = ''; 
$parts = split('.', $file); 
if (count($parts)  1) $extension = end($parts); 
if (!$extension  count($parts)  2) $extension = 
prev($parts);

if (($extension == doc) || ($extension == DOC) || 
($extension == rtf))
echo trtdimg src=/pics/icons/word_sm.gif 
width=20 height=19/td;
else
echo trtdimg src=/pics/spacer.gif width=20 
height=19/td;

echo td bgcolor=silvera href= . $webdir . / . $file 
.  target=_blank . $file . /a/td; 

$j = 0; 
$ext = array( Bytes,  KB,  MB,  GB,  TB); 
$file_size = filesize($file); 
while ($file_size = pow(1024,$j)) ++$j; 
$file_size = round($file_size / pow(1024,$j-1) * 100) 
/ 100 . $ext[$j-1];
echo td bgcolor=silver . $file_size .  /td;

$filemod = filemtime($file); 
$file_modtime = date(F j Y h:i:s A, $filemod); 
echo td bgcolor=silver . $file_modtime .  /td/tr;
}

}   // end while we're reading files from the directory


// if we printed out a table, header (and contents) we should cap it off
if ($file_count = 1)
echo /table;


// if there are other directories to 

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

2001-06-23 Thread sniper

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

Not enough information to know where the problem even
might be. If you're using the ISAPI module, it's known
that it's not very reliable. Use the CGI binary instead.



Previous Comments:
---

[2001-06-23 20:56:40] [EMAIL PROTECTED]
Okay... I'm working on a Big Porject.. There is Many Include. i don;t know if the 
problem is caused because i open too many file, or there is a Problem with PHP.

Humm... i see this bug with php 4.0.5, php 4.0.6.
(But the my project get bigger since these version...) Maybe php 4.0.4 will do this 
problem too...
Here is the error... (It's Never the same Access Violation

PHP has encountered an Access Violation at 01550A88

i try to kill IIS Service, but he always say Unable to kill this process.. (Stall 
Process).I need to reboot my PC.
Currently I'm the Only One on the server.. (i'm developping). Humm.. I use PEAR to 
make all my SQL query.
I really don't know what is the problem...


---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11635edit=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 #11635 Updated: Access Violation

2001-06-23 Thread sonix

ID: 11635
User Update by: [EMAIL PROTECTED]
Status: Bogus
Bug Type: Unknown/Other Function
Operating system: Windows 2000/IIS5
PHP Version: 4.0.6
Description: Access Violation

Okay... Thanx... 
There is a Limit in Include ???
Because my include look like 

include (config.php);
include (news.php);
include ($basePath/SQL/$databaseType.php);

in the database file
there is other include  too ... 
to create my Object class, and load Pear :(


Previous Comments:
---

[2001-06-23 21:01:39] [EMAIL PROTECTED]
Not enough information to know where the problem even
might be. If you're using the ISAPI module, it's known
that it's not very reliable. Use the CGI binary instead.



---

[2001-06-23 20:56:40] [EMAIL PROTECTED]
Okay... I'm working on a Big Porject.. There is Many Include. i don;t know if the 
problem is caused because i open too many file, or there is a Problem with PHP.

Humm... i see this bug with php 4.0.5, php 4.0.6.
(But the my project get bigger since these version...) Maybe php 4.0.4 will do this 
problem too...
Here is the error... (It's Never the same Access Violation

PHP has encountered an Access Violation at 01550A88

i try to kill IIS Service, but he always say Unable to kill this process.. (Stall 
Process).I need to reboot my PC.
Currently I'm the Only One on the server.. (i'm developping). Humm.. I use PEAR to 
make all my SQL query.
I really don't know what is the problem...


---


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


-- 
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 versioning

2001-06-23 Thread avi


this probably should have gone to -dev rather than -cvs.
excuse the dual posting.

--

hello everyone,

i am hoping to get the module versioning issue resolved for 4.0.7.

1. do any of the core team see it being a problem?
2. is someone of suitable knowledge willing to take this one on?

http://marc.theaimsgroup.com/?l=php-devm=98911444001749w=2

for more information.

- avi



-- 
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 #11636: udm_set_agent_param($agent,UDM_PARAM_PAGE_NUM,$num) Doesn't set the active page

2001-06-23 Thread rhanic

From: [EMAIL PROTECTED]
Operating system: Linux  2.2.16
PHP version:  4.0.6
PHP Bug Type: Unknown/Other Function
Bug description:  udm_set_agent_param($agent,UDM_PARAM_PAGE_NUM,$num) Doesn't set the 
active page

After calling udm_find( $agent,search string) ;

I can loop through the first 20 results (page size=20).
Then after that I cannot set the page using

udm_set_agent_param($agent,UDM_PARAM_PAGE_NUM,$num) 

It keeps returning the same page results (ie: 1-20).



-- 
Edit Bug report at: http://bugs.php.net/?id=11636edit=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] is_scalar

2001-06-23 Thread Andi Gutmans

At 05:21 PM 6/23/2001 -0600, Zak Greant wrote:
Hello All,

I was just reviewing the is_scalar() function and noted that the function
does not consider resources to be scalar values.

Shouldn't this be changed? I must have missed this when I initially wrote
the function...

I don't think resources should be scalar. They are abstract datatypes which 
happen to be in ID (integer) form. As I've always said, people should count 
on it being an integer as this could change one day.

Andi


-- 
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] module versioning

2001-06-23 Thread Andi Gutmans

I think we should also consider saving the version in the extension 
structure and having generic function such as extension_version(xml). 
This would save us from having to bloat PHP by adding a foo_version() 
function to all extensions.

Andi

At 11:46 AM 6/24/2001 +1000, [EMAIL PROTECTED] wrote:

this probably should have gone to -dev rather than -cvs.
excuse the dual posting.

--

hello everyone,

i am hoping to get the module versioning issue resolved for 4.0.7.

1. do any of the core team see it being a problem?
2. is someone of suitable knowledge willing to take this one on?

http://marc.theaimsgroup.com/?l=php-devm=98911444001749w=2

for more information.

- avi



--
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]




Re: [PHP-DEV] module versioning

2001-06-23 Thread avi


On Sun, 24 Jun 2001, Andi Gutmans wrote:

 I think we should also consider saving the version in the extension
 structure and having generic function such as extension_version(xml).
 This would save us from having to bloat PHP by adding a foo_version()
 function to all extensions.

andi,

thanks for your quick response! i totally agree with your suggestion..
i think Anil recommended the same thing in the original thread.

will this be much work to implement for 4.0.7?

i feel that it would make things a lot cleaner, and will definitely be
needed if PEAR (the C version) is to have a chance at success.

- avi



-- 
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] module versioning

2001-06-23 Thread Andi Gutmans

At 02:38 PM 6/24/2001 +1000, [EMAIL PROTECTED] wrote:

On Sun, 24 Jun 2001, Andi Gutmans wrote:

  I think we should also consider saving the version in the extension
  structure and having generic function such as extension_version(xml).
  This would save us from having to bloat PHP by adding a foo_version()
  function to all extensions.

andi,

thanks for your quick response! i totally agree with your suggestion..
i think Anil recommended the same thing in the original thread.

will this be much work to implement for 4.0.7?

It is not huge amount of work but we should agree on php-dev first about 
what the version number will look like both number wise and format wise, 
i.e. string vs. integer, 1.0.3 vs. 2001008. Probably the latter date is 
more useful in this context.


i feel that it would make things a lot cleaner, and will definitely be
needed if PEAR (the C version) is to have a chance at success.

Andi


-- 
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] module versioning

2001-06-23 Thread Jani Taskinen

On Sun, 24 Jun 2001, Andi Gutmans wrote:

I think we should also consider saving the version in the extension
structure and having generic function such as extension_version(xml).
This would save us from having to bloat PHP by adding a foo_version()
function to all extensions.

Just add one more entry into the module_entry struct?

--Jani


Andi

At 11:46 AM 6/24/2001 +1000, [EMAIL PROTECTED] wrote:

this probably should have gone to -dev rather than -cvs.
excuse the dual posting.

--

hello everyone,

i am hoping to get the module versioning issue resolved for 4.0.7.

1. do any of the core team see it being a problem?
2. is someone of suitable knowledge willing to take this one on?

http://marc.theaimsgroup.com/?l=php-devm=98911444001749w=2

for more information.

- avi



--
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]




Re: [PHP-DEV] module versioning

2001-06-23 Thread Andi Gutmans

At 06:26 AM 6/24/2001 +0200, Jani Taskinen wrote:
On Sun, 24 Jun 2001, Andi Gutmans wrote:

 I think we should also consider saving the version in the extension
 structure and having generic function such as extension_version(xml).
 This would save us from having to bloat PHP by adding a foo_version()
 function to all extensions.

Just add one more entry into the module_entry struct?

Yep.

Andi


-- 
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] module versioning

2001-06-23 Thread avi


On Sun, 24 Jun 2001, Andi Gutmans wrote:

 It is not huge amount of work but we should agree on php-dev first about
 what the version number will look like both number wise and format wise,
 i.e. string vs. integer, 1.0.3 vs. 2001008. Probably the latter date is
 more useful in this context.

stig posted a set of really useful ones here:

http://marc.theaimsgroup.com/?l=php-devm=98918784106598w=2

personally, i would like to see something like:

$return = get_ext_version(xml);

where return contains:

$return[number][major] = 4;
$return[number][minor] = 0;
$return[number][patch] = 6;

and

$return[date][] = 2001;
$return[date][MM] = 06;
$return[date][DD] = 23;

or similar. what do you think?

dates are ok, but sometimes you have to rush a version out the door twice
on the same day. therefore, i think its probably a good idea to have a MMP
number as well as the date.

- avi



-- 
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] is_scalar

2001-06-23 Thread Zak Greant

Hi Andi,

Thanks for the clarification - I have noted it in the function writeup.

--zak


- Original Message -
From: Andi Gutmans [EMAIL PROTECTED]
To: Zak Greant [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Saturday, June 23, 2001 9:59 PM
Subject: Re: [PHP-DEV] is_scalar


 At 05:21 PM 6/23/2001 -0600, Zak Greant wrote:
 Hello All,
 
 I was just reviewing the is_scalar() function and noted that the function
 does not consider resources to be scalar values.
 
 Shouldn't this be changed? I must have missed this when I initially wrote
 the function...

 I don't think resources should be scalar. They are abstract datatypes
which
 happen to be in ID (integer) form. As I've always said, people should
count
 on it being an integer as this could change one day.

 Andi


 --
 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 #11637: GD compilation failure with GD1.5

2001-06-23 Thread mkong

From: [EMAIL PROTECTED]
Operating system: Linux 6.1 x86
PHP version:  4.0.6
PHP Bug Type: GD related
Bug description:  GD compilation failure with GD1.5

This is related to bug 10593.  4.0.6 still failes to compile with GD 1.5.  
gdImageGifCtx is indeed in the GD lib, that's why HAVE_GD_GIF_CTX is set.  But 
gdImageGifCtx prototype is not available in GD header files, so the compilation fails. 
 I have changed line 1401 to #ifdef HAVE_GD_GIF_CTX_NEVER_WILL_HAPPEN just to get the 
compilation going.


-- 
Edit Bug report at: http://bugs.php.net/?id=11637edit=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] PHP 4.0.6 Released!

2001-06-23 Thread Zeev Suraski

PHP 4.0.6 has been released.  Like 4.0.5, this is a maintenance release 
which mostly includes fixes to bugs and issues found in earlier 
versions.  Those of you who decided not to upgrade to 4.0.5, may now wish 
to jump directly to 4.0.6 to get all the new fixes of both versions.

One very important addition is the Japanese support through the new 
multibyte extension, that was ported from the PHP 3.0-jp code and improved 
by Rui Hirokawa.  This makes PHP 4.0.6 the first version of PHP to have 
integrated support for Japanese in the standard distribution package, which 
is significantly better than the old solution of having a different version 
especially for Japanaese users.  We hope that additional far-eastern 
languages will be supported in the future.

Another major feature in 4.0.6 is the reduced memory requirements, thanks 
to a patch from Andi ([EMAIL PROTECTED]) that reduced memory fragmentation very 
significantly.

Finally, the MySQL module now features the ability to use unbuffered 
queries, for reduced memory consumption when having large result 
sets.  Look at mysql_unbuffered_query() for further details.

A full list of changes is available below, and at 
http://www.php.net/ChangeLog-4.php.

As with 4.0.5, we waited until the Windows binaries are built before 
announcing the availability of the new version.  Thanks goes to Phil 
Driscoll ([EMAIL PROTECTED]) and Daniel Beulshausen 
([EMAIL PROTECTED]) for providing the Win32 builds.  To go on, point your 
browsers at http://www.php.net/downloads.php.

Zeev

23 Jun 2001, Version 4.0.6
- Fixed memory fragmention problem which could lead to web server processes
   growing much more than they should. (Andi, Zend Engine)
- Made $HTTP_SESSION_VARS['foo'] and $foo be references to the same value
   when register_globals is on. (Andrei)
- Fixed disk_free_space() and disk_total_space() under FreeBSD. (Jon)
- Fixed readfile/passthru losing resources during connection abort (Sascha)
- Fixed bug in the mcrypt extension that caused segfaults when using a key
   that is too large for the used algorithm, and a bug that caused
   mcrypt_generic() to segfault PHP (Derick)
- Fixed getopt so that it accepts command line arguments in the form
   -optarg and -opt arg. (Jmoore)
- Fixed race in writing session files (Sascha)
- Fixed a possible crash in the PHP CGI when no input file is
   specified (Zeev)
- Added is_callable() function that can be used to find out whether
   its argument is a valid callable construct. (Andrei)
- Fixed a rare possible crash when generating extended information. (Dmitri
   Dmitrienko, Zend Engine)
- Improved virtual() to support PHP-enabled URIs. (Zeev)
- Fixed undefined behavior when using floating point keys in array()
   expressions. (Zeev, Zend Engine)
- Fixed a possible crash in case of parse errors in include files or eval
   statements. (Zeev, Zend Engine)
- Added --with-layout configure option. (Stig)
- Improved interactive mode - supports function calls, and works in
   multithreaded builds. (Zeev, Zend Engine)
- Fixed a crash bug in interactive mode. (Zeev, Zend Engine)
- Added pg_last_notice() function. (Rasmus from suggestion by 
[EMAIL PROTECTED])
- Fixed a bug in preg_split() that would incorrectly limit the number of
   results when used along with PREG_SPLIT_NO_EMPTY flag. (Andrei)
- Added connection error support to mysql_error() and mysql_errno(). (Jason)
- Added support to getimagesize to return dimensions of BMP and PSD
   files. (Derick)
- Added heuristic to kill stale IRC connections, message scanner caching, and
   nickname escaping to IRCG, suppress option to ircg_msg(), and statistics to
   IRCG phpinfo() output. (Sascha)
- Added Japanese multibyte string functions support. (Rui)
- Added Mac OS X \r line ending support. (Andi, Zend Engine)
- Fixed a bug regarding the $PHP_SELF being incorrectly registered when
   force-cgi-redirect was not enabled. (Sterling)
- pfpro extension now supports version 3 of the Verisign SDK. (John Donagher)
- Udm_Cat_List and Udm_Cat_Path functions has been added.
- Added key_exists() to check if a given key or index exists in an
   array or object. (David Croft)
- Modify the cURL extension to compile only with the latest cURL release.
   Backwards compatibility with regards to the extension api has not been
   broken. (Sterling)
- Added the ability to use user-defined callbacks with cURL. (Sterling)
- Added the SSL_VERIFYPEER, CAINFO, MAXREDIRS, FILETIME, RANDOM_FILE, EGDSOCKET
   and CONNECTTIMEOUT options to curl_setopt(). (Sterling)
- Added support for persistent connections with cURL. (Sterling)
- Fixed a problem in cURL with file descriptors being allocated, but never
   closed. (Sterling)
- Fixed interactive mode (-a). It works again with the same limitations it
   has always had. (Andi, Zend Engine)
- Improved memory manager to use less memory and provide better memory overflow
   detection abilities in debug mode. (Andi, Zend Engine)
- Fixed resource leaks when