[PHP-DEV] re: Bug #12524 Updated: Still doesn't support UNC paths

2001-08-01 Thread Cameron Just

Hi,

Thanks for the quick response

I have tested the snapshot you suggested and it still does not work.


 ID: 12524
 Updated by: sniper
 Reported By: [EMAIL PROTECTED]
 Old Status: Open
 Status: Feedback
 Bug Type: *Directory/Filesystem functions
 Operating System: WinNT 4.0
 PHP Version: 4.0.6
 New Comment:
 
 Some other fixes were made after 4.0.6 was released.
 Please try the latest snapshot build from here:
 
 http://www.zend.com/snapshots/
 
 Previous Comments:
 
 
 [2001-08-01 21:28:37] [EMAIL PROTECTED]
 
 The fix that was applied to PHP 4.0.6 still didn't fix the UNC problems which were 
broken when PHP moved from PHP3 - PHP4
 
 
   $d = dir(//ntserver14/shared/cameron);
   echo Handle: .$d-handle.br\n;
   echo Path: .$d-path.br\n;
   while($entry=$d-read()) {
  echo $entry.br\n;
   }
   $d-close();
 
 I ran the same code under php3.0.16 and it still works there.
  
 This still fails to work with the lastest version of PHP.
 It was stated as being fixed in 4.0.6 and I received a bug report closure for BUG 
9234
 http://www.php.net/bugs.php?id=9234
 
 Any Ideas why it still doesn't work?
 Am I doing something wrong from this end?
 
 PS I have checked to see that all shares and filesystem are visible by the IIS4.0 
webserver account.
 
 
 
 
 
 
 
 
 ATTENTION! Do NOT reply to this email!
 To reply, use the web interface found at http://bugs.php.net/?id=12524edit=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] 4.0.7 cvs snap

2001-05-19 Thread Cameron

compiling like usual except the following . . .


Making all in gd
gcc -I. -I/usr/local/update/php4-200105190245/ext/gd
-I/usr/local/update/php4-200105190245/main
-I/usr/local/update/php4-200105190245
-I/usr/local/update/php4-200105190245/Zend -I/usr/local/ssl/include
-I/usr/local/include -I/usr/local/include/freetype
-I/usr/local/include/gd -I/usr/local/include/c-client
-I/usr/local/mnogosearch/include -I/usr/local/include/mysql
-I/usr/local/update/php4-200105190245/ext/xml/expat
-I/usr/local/update/php4-200105190245/TSRM  -DXML_BYTE_ORDER=12 -O6
-fomit-frame-pointer  -c gd.c  touch gd.lo
gd.c:56: syntax error before `gd_globals'
gd.c:56: warning: data definition has no type or storage class
*** Error code 1

Stop in /usr/local/update/php4-200105190245/ext/gd.
*** Error code 1

Stop in /usr/local/update/php4-200105190245/ext/gd.
*** Error code 1

Stop in /usr/local/update/php4-200105190245/ext.
*** Error code 1

Stop in /usr/local/update/php4-200105190245.



Cameron


-- 
PHP Development Mailing List http://www.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 #10299 Updated: CPU and Memory Spike

2001-05-08 Thread Cameron

i dont suppose this is a session garbage collection??


Cameron

[EMAIL PROTECTED] wrote:

 ID: 10299
 User Update by: [EMAIL PROTECTED]
 Status: Critical
 Bug Type: Performance problem
 Operating system: FreeBSD 4.2 Stable
 PHP Version: 4.0.4pl1
 Description: CPU and Memory Spike

 What I found out is that using a lot of include_once, require_once + session will 
trigger the CPU and memory spike.  Add database access to the script can speed up the 
frequency of the spike.  And I also found out require_once DO leak memory.  pstat -T 
show that file in use will always increase.  Somehow require_once forgot to close the 
file after use.  lsof can give you a clear picture when you use require_once()

 I changed my code using cookie and require() statement now.  And I delete all 
sess_files in /tmp seems to correct the problem.  This is the only change I made to 
eliminate the problem.

 I can't reproduce the error now because the code that have problems have been 
changed and I don't have the backup.  But the combination of A lot of include_once, 
require_once, and session will trigger the spike, I am pretty sure because after I 
changed all that, the problem disappear.  Old session file in /tmp also contribute to 
the problem as well.

 BTW, the last time I checked, CVS version 4.06 in late April still have the problem.

 Previous Comments:
 ---

 [2001-05-08 19:26:01] [EMAIL PROTECTED]
 Is this fairly reproducible?
 If it is, any chance you could build Apache with debug information (--enable-debug 
in configure), attach to an offending process (gdb /path/to/httpd PID), and run a 
backtrace ('bt')?

 ---

 [2001-05-07 12:44:51] [EMAIL PROTECTED]
 marking critical for php 4.0.6

 ---

 [2001-04-14 09:00:57] [EMAIL PROTECTED]
 I found the problem.  since the script I use have a lot of include and require 
statement.  just a script include a bunch of files and keep reloading the page will 
kill the server in no time.  I attach a sample config file I usually include, just 
make a test.php and include this file like 10 times to simulate a lot of include 
files.  And then, just keep reloading test.php.  You should see the script take a lot 
of CPU time and eventually the httpd eat all the CPU time and the process hang.  From 
command top, one of the httpd process keep eating up CPU time.

 The following is the sample config file

 ?

 /*Root directory */
 $config[root_path] = /usr2/home/business/test/www;
 $config[w3b_path] = /usr2/home/business/test/www/wwwthreads;
 $config[data_path] = /usr2/home/business/test/data;
 $config[rdf_path] = /usr2/home/business/test/www/rdf;

 /* database */

 include $config[root_path]./db.php;

 /* global */
 $config[sitename] = www.test.net;
 $config[root_url] = http://www.test.net/;;

 // Cookie Setting
 $config[cookie_path]  = /; # web root directory
 $config[CookieURL] = .test.net;
 $config[cookieTTL] = 7200; // in seconds

 $config[minpass]= 3;  # Minimum user password length in characters

 /* language and locale */
 $config[language]   = english;# [english] english, [big5] BIG5 code

 $config[locale] = english;# Used for translation of date-related stuff

 /* story control */
 $config[commentmax] = 4096;
 $config[abstractlen]= 4996; #length of abstract show on first page

 $config[icon_width] = 100; # Topic icons width
 $config[timezone] = HKT;  #Time zone

 $config[limitnews]  = 10;   # default number of stories per page
 $config[older_story_num]= 10;   # number of older stories to display

 $config[anon_users] = 0; # 1 to allow anonymous postings
  # 0 to disable

 /* theme control */

 $config[def_theme]  = Main; # name of default theme (see themes/ directory for 
list)

 /* mail settings */
 $config[use_fake_email] = 1; # Displays fake email addresses for users instead of 
the real ones

 $config[notifyEmail]= [EMAIL PROTECTED]; #address where you want to 
receive notice

 //$config[CensorList]   = 
array('fuck','cunt','fucker','fucking','pussy','cock','c0ck','cum','bitch','shit');
 $config[CensorList] = array(/fuck/s,/fuck/s,/fuck/s,
 /[a-z]*fuck[a-z]*/is,
 /[a-z]*cunt[a-z]*/is,
 /[a-z]*pussy[a-z]*/is,
 /[a-z]*cock[a-z]*/is,
 /[a-z]*c0ck[a-z]*/is,
 /[a-z]*shit[a-z]*/is,
 /[a-z]*bitch[a-z]*/is,
 /[a-z]*diu[a-z]*/is
 );
 # See also specific LOCALE definitions

 $config[CensorMode]   = 3;  # 0: no filtering
 # 1: exact match

[PHP-DEV] mysql bug!!! :(

2001-04-28 Thread Cameron

ok, in 4.0.6 looks like there is a pretty major mysql bug

i just compiled up php here and error checking seems to kill it and im
getting a LOT of warnings that i wasnt getting 2minutes before i
installed the newest snap

if anyone wants to see the main problem hit browse in phpmyadmin and
watch what its doing . . . also imp seems to not like it either


Warning: 1 is not a valid MySQL-Link resource in
/home/gamr/vhosts/webmail.inetsalestech.com/phplib/db_mysql.inc on line
118

Warning: 1 is not a valid MySQL-Link resource in
/home/gamr/vhosts/webmail.inetsalestech.com/phplib/db_mysql.inc on line
119

if you want to see the errors yourself, check out
http://webmail.inetsalestech.com/horde/


-- 
PHP Development Mailing List http://www.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] mysql bug!!! :(

2001-04-28 Thread Cameron

Played around some more

php4-200104220845 works
php4-200104271945 doesnt
php4-latest doesnt

if someone can tell me how to get snaps in the middle there im willing to
fiddle to work out exactly what patch killed it.

Cameron wrote:

 ok, in 4.0.6 looks like there is a pretty major mysql bug

 i just compiled up php here and error checking seems to kill it and im
 getting a LOT of warnings that i wasnt getting 2minutes before i
 installed the newest snap

 if anyone wants to see the main problem hit browse in phpmyadmin and
 watch what its doing . . . also imp seems to not like it either

 Warning: 1 is not a valid MySQL-Link resource in
 /home/gamr/vhosts/webmail.inetsalestech.com/phplib/db_mysql.inc on line
 118

 Warning: 1 is not a valid MySQL-Link resource in
 /home/gamr/vhosts/webmail.inetsalestech.com/phplib/db_mysql.inc on line
 119

 if you want to see the errors yourself, check out
 http://webmail.inetsalestech.com/horde/

 --
 PHP Development Mailing List http://www.php.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] compile failure

2001-04-06 Thread Cameron

current snap:

gcc  -I. -I/usr/local/update/php4-200104052245/ext/standard
-I/usr/local/update/php4-200104052245/main
-I/usr/local/update/php4-200104052245
-I/usr/local/update/php4-200104052245/Zend -I/usr/local/ssl/include
-I/usr/local/include -I/usr/local/include/freetype
-I/usr/local/include/gd -I/usr/local/include/c-client
-I/usr/local/mnogosearch/include -I/usr/local/include/mysql
-I/usr/local/update/php4-200104052245/ext/xml/expat/xmltok
-I/usr/local/update/php4-200104052245/ext/xml/expat/xmlparse
-I/usr/local/update/php4-200104052245/TSRM  -DSUPPORT_UTF8
-DXML_BYTE_ORDER=12 -g -O2  -c url_scanner_ex.c  touch
url_scanner_ex.lo
url_scanner_ex.c:1: syntax error before `'
*** Error code 1

Stop in /usr/local/update/php4-200104052245/ext/standard.
*** Error code 1

Stop in /usr/local/update/php4-200104052245/ext/standard.
*** Error code 1

Stop in /usr/local/update/php4-200104052245/ext.
*** Error code 1

Stop in /usr/local/update/php4-200104052245.


Anyone working on that currently or what?


Cameron Brunner


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




[PHP-DEV] passthru hassles

2001-04-04 Thread Cameron

i'v just started to get these in my error_log's

[Wed Apr  4 07:07:22 2001] [notice] Apache/1.3.19 (Unix)
ApacheJServ/1.1.2 mod_throttle/3.1.2 PHP/4.0.5-dev mod_ssl/2.8.2
OpenSSL/0.9.6 configured -- resuming normal operations
traceroute to 129.188.33.222 (129.188.33.222), 30 hops max, 40 byte
packets
[Wed Apr  4 15:46:29 2001] [notice] child pid 90680 exit signal
Segmentation fault (11)

in one of my scripts i do a

blahblah
?php passthru('/usr/sbin/traceroute '.$REMOTE_ADDR); ?
blahblah

it looks as tho it is doing that when the execution time times out? not
exactly sure . . .

cvs snap from about 3hrs ago, freebsd 4.2-stable

Cameron Brunner


-- 
PHP Development Mailing List http://www.php.net/
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 4.0 Bug #6342 Updated: Can't connect to Oracle DB via ODBC

2001-04-02 Thread Cameron Just

I no longer work in the company which used oracle databases so I can't test this for 
you.

At 07:03  3/04/01, you wrote:
ID: 6342
Updated by: kalowsky
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: ODBC related
Assigned To: 
Comments:

is this still a valid bug, or has it been addressed in a recent release of php?

Previous Comments:
---

[2000-08-24 20:04:18] [EMAIL PROTECTED]
Hi,
I can't connect to any oracle databases using ODBC.
I get the following error when using the M$ oracle odbc drivers

Warning: SQL error: [Microsoft][ODBC driver for Oracle][Oracle]Error while trying to 
retrieve text for error ORA-12154, SQL state 08001 in SQLConnect in 
include/db_odbc.inc on line 30

And the following when using oracles odbc drivers
Warning: SQL error: [Oracle][ODBC][Ora]Error while trying to retrieve text for error 
ORA-12154 , SQL state 08004 in SQLConnect in include/db_odbc.inc on line 30

Any ideas?
I would try and connect via the Oracle Drivers directly but they haven't been 
included in any php4 releases yet and I don't know how to compile it. :)


---



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



Cameron Just ([EMAIL PROTECTED])

Phoenix Digital Development



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




[PHP-DEV] feature request

2001-03-18 Thread Cameron

would be nice if isset would act the same as unset, being able to feed
it more than 1 var at a time

ie. if ( isset ( $blah1, $blah2 ) ) { blah blah }

i get sick of typing it these days and that would cut down the amount of
typing a fair bit ;)

if there is something already that does this let me know.

Cameron


-- 
PHP Development Mailing List http://www.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] feature request

2001-03-18 Thread Cameron

personally all i want is isset(blah,blah,blah)

im dealing with 18 items from a form here and im getting sick of typing them all
;)

im not too worried about which one isnt set because i just display a not all
fields filled in and use a javascript back button. simple?

thats all i want but if you start adding this to one of these types of functions
you will probably want to add it to empty() and so on ?


Cameron

Andi Gutmans wrote:

 It should be possible to do this. I'll look into it. But I also need to
 think about how much sense it makes :)
 Today you're asking for isset(...,...,...). Tomorrow you will ask to know
 which one was not set if it failed.
 So I hope what youreally want is only the first.

 Andi

 At 09:42 PM 3/18/2001 -0500, Mike Robinson wrote:
 Chris Newbill writes:
 
   This would not be a bad idea IMHO and I would use it for some things.
  
   The functionality would be inclusive not exclusive.  So
   isset($var1, $var2,
   $var3) would only return true if $var1, $var2, and $var3 are set and false
   otherwise.
  
   So If I had a form passing $name, $email, $phone:
  
   example #1
   if (isSet($name, $email, $phone))
  // ALL GOOD
  
   Instead of
  
   example #2
   if ((isSet($name)) 
   (isSet($email)) 
   (isSet($phone)))
   // ALL GOOD
  
   Granted if one variable wasn't set, then you might run into some minor
   issues if you want to figure out which one is not set.  But that is the
   developers choice. :)
  
   It wouldn't break existing functionality, seems simple enough to implement
   (although my karma is limited to doc's so someone else would have
   to do it),
   and would make some people happy.  That seems to be reason enough
   to do it.
  
   Just my 2 cents.
 
 Ditto.
 It would be handy. If you are willing and able to do
 stuff like this, maybe a request for additional karma
 would be in order.
 
 Mike Robinson
 
 
 
 
 
 --
 PHP Development Mailing List http://www.php.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 Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] BerkleyDB 3

2001-03-11 Thread Cameron

are there any know bugs in it currently? i just went to compile it into
php and got a heap of warnings and then it spat it, is this a BDB
problem or PHP problem???


Cameron


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




[PHP-DEV] crap in apache logs

2001-03-05 Thread Cameron

this was fixed but seems to be back, when using output buffering, in
about 1 in 1000 web pages it doesnt ditch the html when a request is
canceled, instead it sends it to the apache error log . . .

someone mind fixing this again? im using ob for gzip'n pages but not
currently using obgzhandler. latest snap as of yesterday


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




[PHP-DEV] mcrypt

2001-03-04 Thread Cameron

when are the bugs with the latest mcrypt going to be fixed?!?


Cameron


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




[PHP-DEV] mcrypt

2001-03-02 Thread Cameron

any ideas on when mcrypt will be patched up for the latest version? also
what about a date for RC1 ?


Cameron Brunner


-- 
PHP Development Mailing List http://www.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] Time for 4.0.5?

2001-02-19 Thread Cameron

Phil Driscoll wrote:

 any other suggestions?
 There has been talk on here, or maybe on the QA list about a web page where
 you tick the items you want, and just download the necessary components.
 Maybe this was just in the context of PEAR - I can't remember. Anyway, is
 anyone working on this? It seems to be a good solution to me (but then I
 don't understand how the config and .m4 stuff works!).

that is pretty simple, make the client who is compiling the source do a
./buildconf first. if noone is working on this i am willing to offer to help
but for something like this i would prefer 2 or 3 coders doing it . . .


-- 
PHP Development Mailing List http://www.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] Weird stuff in apache error logs

2001-02-18 Thread Cameron

yes i am, the auto-prepend and auto-append were attached . . .

it's been happening for a long time but i only now realised how often it was
giving me this shit.

well if its from broken connections then we need php to dump it instead of
logging the crap.

Cameron

Zeev Suraski wrote:

 Apparently there's a bug somewhere in PHP that causes this.  I've seen that
 in the past but never looked into it yet.  My guess is that it's related to
 broken connections (user hitting stop, etc.).
 Are you using output buffering by any chance?

 Zeev

 At 07:49 18/2/2001, Cameron wrote:
 i think there might be a bug in output buffering or mhash somewhere . .
 .
 
 in my error_log file there is getting to be a shitload of html from
 pages that are generated. some from scripts i made, others from
 squirrelmail and imp. it does not happen all the time, this probably
 occur's about 1 in 1000 pages served.
 
 there is no error before it, here is a small snippet from the error_log
 
 [Sat Feb 17 21:15:39 2001] [notice] Apache/1.3.14 (Unix) PHP/4.0.5-dev
 configured -- resuming normal operations
 etc. my auto-prepend file is ?php $doGzip =
 isset($GLOBALS["HTTP_ACCEPT_ENCODING"]) 
 eregi("gzip", $GLOBALS["HTTP_ACCEPT_ENCODING"]); ob_start(); header
 ("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past header
 ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always
 modified header ("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
 header ("Pragma: no-cache"); // HTTP/1.0 ? my auto-append file is ?php
 if (isset($doGzip)  $doGzip == '1') { function printBinaryInt($val) {
 return (chr($val  0xFF) . chr(($val  8)  0xFF) . chr(($val  16) 
 0xFF) . chr($val  24)); } $content = ob_get_contents(); ob_end_clean();
 # Convert HTML tags to uppercase // $content = preg_replace
 ("/(\/?)(\w+)([^]*)/e", // "'\\1'.strtoupper('\\2').'\\3'", //
 $content); // $content = stripslashes($content); $send =
 substr(gzcompress($content, 9), 2, -4); header("Content-encoding: gzip");
 header("Content-Length: " . (strlen($send) + 18)); print(chr(31) .
 chr(139) . chr(8) . chr(0) . printBinaryInt(time()) . chr(0) . chr(3) .
 $send . mhash(MHASH_CRC32B, $content) . printBinaryInt(strlen($content)));
 } ? to see what the server is compiled up with check out
 http://tnt.dynomyte.net/ suggestions? Cameron -- PHP Development Mailing
 List 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 Development Mailing List http://www.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] Weird stuff in apache error logs

2001-02-18 Thread Cameron

Thanks

Cameron

Zeev Suraski wrote:

 I looked into it, I can see the problem. I'll try to fix it.

 Zeev

 At 15:01 18/2/2001, Cameron wrote:
 yes i am, the auto-prepend and auto-append were attached . . .
 
 it's been happening for a long time but i only now realised how often it was
 giving me this shit.
 
 well if its from broken connections then we need php to dump it instead of
 logging the crap.
 
 Cameron
 
 Zeev Suraski wrote:
 
   Apparently there's a bug somewhere in PHP that causes this.  I've seen that
   in the past but never looked into it yet.  My guess is that it's related to
   broken connections (user hitting stop, etc.).
   Are you using output buffering by any chance?
  
   Zeev
  
   At 07:49 18/2/2001, Cameron wrote:
   i think there might be a bug in output buffering or mhash somewhere . .
   .
   
   in my error_log file there is getting to be a shitload of html from
   pages that are generated. some from scripts i made, others from
   squirrelmail and imp. it does not happen all the time, this probably
   occur's about 1 in 1000 pages served.
   
   there is no error before it, here is a small snippet from the error_log
   
   [Sat Feb 17 21:15:39 2001] [notice] Apache/1.3.14 (Unix) PHP/4.0.5-dev
   configured -- resuming normal operations
   etc. my auto-prepend file is ?php $doGzip =
   isset($GLOBALS["HTTP_ACCEPT_ENCODING"]) 
   eregi("gzip", $GLOBALS["HTTP_ACCEPT_ENCODING"]); ob_start(); header
   ("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past header
   ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always
   modified header ("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
   header ("Pragma: no-cache"); // HTTP/1.0 ? my auto-append file is ?php
   if (isset($doGzip)  $doGzip == '1') { function printBinaryInt($val) {
   return (chr($val  0xFF) . chr(($val  8)  0xFF) . chr(($val  16) 
   0xFF) . chr($val  24)); } $content = ob_get_contents(); ob_end_clean();
   # Convert HTML tags to uppercase // $content = preg_replace
   ("/(\/?)(\w+)([^]*)/e", // "'\\1'.strtoupper('\\2').'\\3'", //
   $content); // $content = stripslashes($content); $send =
   substr(gzcompress($content, 9), 2, -4); header("Content-encoding: gzip");
   header("Content-Length: " . (strlen($send) + 18)); print(chr(31) .
   chr(139) . chr(8) . chr(0) . printBinaryInt(time()) . chr(0) . chr(3) .
   $send . mhash(MHASH_CRC32B, $content) . printBinaryInt(strlen($content)));
   } ? to see what the server is compiled up with check out
   http://tnt.dynomyte.net/ suggestions? Cameron -- PHP Development Mailing
   List 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]

 --
 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 Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Weird stuff in apache error logs

2001-02-17 Thread Cameron

i think there might be a bug in output buffering or mhash somewhere . .
.

in my error_log file there is getting to be a shitload of html from
pages that are generated. some from scripts i made, others from
squirrelmail and imp. it does not happen all the time, this probably
occur's about 1 in 1000 pages served.

there is no error before it, here is a small snippet from the error_log

[Sat Feb 17 21:15:39 2001] [notice] Apache/1.3.14 (Unix) PHP/4.0.5-dev
configured -- resuming normal operations
html
head
titleMusic Video Generation/title

etc.

my auto-prepend file is

?php
$doGzip = isset($GLOBALS["HTTP_ACCEPT_ENCODING"]) 
  eregi("gzip", $GLOBALS["HTTP_ACCEPT_ENCODING"]);



ob_start();

header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT");// Date in the
past
header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
  // always modified

header ("Cache-Control: no-cache, must-revalidate");  // HTTP/1.1
header ("Pragma: no-cache");  // HTTP/1.0

?

my auto-append file is

?php

  if (isset($doGzip)  $doGzip == '1')
  {

function printBinaryInt($val)
{
return (chr($val  0xFF) . chr(($val  8)  0xFF) .
chr(($val  16)  0xFF) . chr($val  24));
}


$content = ob_get_contents();
ob_end_clean();

# Convert HTML tags to uppercase
//$content = preg_replace ("/(\/?)(\w+)([^]*)/e",
//   "'\\1'.strtoupper('\\2').'\\3'",
//   $content);

//$content = stripslashes($content);


$send = substr(gzcompress($content, 9), 2, -4);

header("Content-encoding: gzip");
header("Content-Length: " . (strlen($send) + 18));
print(chr(31) . chr(139) . chr(8) . chr(0) . printBinaryInt(time())
.
  chr(0) . chr(3) . $send . mhash(MHASH_CRC32B, $content) .
  printBinaryInt(strlen($content)));
  }

?

to see what the server is compiled up with check out
http://tnt.dynomyte.net/

suggestions?


Cameron


-- 
PHP Development Mailing List http://www.php.net/
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 banners

2001-02-04 Thread Cameron

I just saw a PHP 4.0.2 is out banner on sourceforge, anyone care to
patch this up AGAIN?

Cameron


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




[PHP-DEV] Win32 Debug build

2001-01-23 Thread Cameron

where the heck can i find one? can someone send me one or give me a link
. . .

4.0.4pl1 or later . . .


Cameron


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