[PHP-DEV] (change request) PHP 4.0 Bug Summary Report

2001-05-05 Thread Joe Brown

Is it possible to include www.php.net/bugs.php?id= at the front of these, or
on a second line trailing each bug listed?

Would make the list twice as long, but a lot simpler to follow up on, w/mail
reader that recognises links.

[EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 PHP 4.0 Bug Database summary - http://bugs.php.net

  Num Status Summary (1387 total including feature requests)
 ===[*Configuration
Issues]
 8670 Open   Incorect interpretation session.gc_maxlifetime parameter
 8848 Open   open_basedir = /dir/incl validates /dir/include and so
on
 9041 Suspended  Extra #! at top of web output.
 9773 Open   Configure hangs
 10241 Open   php_flag dosn't work in httpd.conf, but it works in
.htaccess files
 10316 Open   error in connecting to MS access database
 10478 Feedback   --with-mcrypt leads to configure: error: Sorry
 10479 Open   Failure to recognize libsybdb.so
 ===[*Database
Functions]==
 8706 Feedback   Database handle corruption?
 ===[*Directory/Filesystem
functions]
 8580 Duplicate  Fileupload and Database mysql access
 9697 Open   filename ends with £
 9912 Open   exec calls run programs in the document root: different
than PHP3
 9993 Open   Wrong File Created Date and Wrong Filesize
 10152 Feedback   Success Warning with readfile(http://...;);
 10388 Open   File to file I/O problems
 10439 Open   relative chdir from root doesn´t work
 ===[*Encryption and hash
functions]
 8834 Open   crypt() starts from not random salt
 9177 Open   crypt problems with openssl
 ===[*Function
Specific]===
 8202 Open   exec(java -cp classpath classname inputArgument); has no
effect
 8563 Feedback   hebrevc() problems...
 8857 Open   microtime() doesn't work after setlocale(LC_NUMERIC,pl)
 10120 Open   implode(), if empty elements exist
 10323 Open   4.05-dev : non-html escaped strings on phpinfo
 10564 Open   feof bug isn't fixed in windows versions.
 ===[*General
Issues]==
 3076 Analyzed   system and popen are ok in safe_mode, not backquotes
 5236 Open   dlerror - conflicting declerations
 6499 Analyzed   $upload_type[] has wrong size with empty multiple-file
uploads
 6685 Analyzed   %20 mis-converted in GET mechanism
 6875 Duplicate  upload_tmp_dir in php.ini doesn't work in safe_mode
 7243 Duplicate  upload_tmp_dir does not work in safe_mode
 7685 Open   File Upload Fails with Headers in Unexpected Order
 9757 Open   Php.exe Process doesnt kill itself
 9868 Feedback   Missing  .dll.
 10026 Open   For loop always execute
 10135 Open   Problem(?) with environment variables when running as
module
 10198 Feedback   Register functions doesn't work while starting up of
apache
 10288 Open   weird intval() and settype('integer') behaviour: loosing
bits?
 10319 Open   multipart/form-data does not work with Opera browser
 10364 Open   Exec and system always return -1
 10467 Open   static array doesn't evaluate defined keys
 10547 Duplicate  PHP Crashes
 ===[*Graphics
related]
 9666 Feedback   Can't display image/pjpeg and image/gif in one sanme page
 ===[*Install and
Config]==
 6614 Duplicate  configure does not recognize sys/socket.h
 7280 Duplicate  global iniline not supported in SGI Compiler
 7731 Open   compilation with deprecated abi (no -n32)
 7959 Open   ld: 0711-317 ERROR: Undefined symbol: .alloca
 8862 Suspended  libtool does not code runpath into libphp4.so
 8918 Open   Fails when linking
 9063 Open   Configure gives errors regarding Payflow Pro
 9078 Open   php] make install
 9085 Feedback   tar file is corrupted in your web site
 9179 Open   refresh error
 9239 Open   configure tests incorrectly for IPv6
 9287 Open   Stronghold only start one process  when using DSO PHP4
with OCI8 support
 9448 Open   It does not works / -cpath   Look for php.ini file
in this directory
 9711 Open   Fatal Error while trying to install
 9856 Open   Missing run path in shared object library
 10178 Open   Configuration of extensions
 10239 Open   file MSVCIRT.DLL connected to missing export MSVCRT.DLL:
??_U@YAPAXI@Z
 10339 Open   PHP with OCI8 crashes apache
 10370 Open   ceil/fabs/getmntest undefined symbol
 10391 Feedback   regardless of having pdflib 3.03, pdflib extension
requires at least pdflib 3.x
 10407 Open   incorrect call of apxs from Apache 2
 10414 Open   mysql+charset gb2312
 10424 Open   apache crash with segmentation fault at end of phpinfo()
function call.
 10554 Assigned   IISConfig - 

Re: [PHP-DEV] Bug #10661 Updated: Problem parsing a script in mac text file format

2001-05-04 Thread Joe Brown

I say go for it.

What's the worst that can happen

*smirk*

Alessandro Astarita [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 [EMAIL PROTECTED] wrote:

  ID: 10661
  Updated by: derick
  Reported By: [EMAIL PROTECTED]
  Old-Status: Open
  Status: Closed
  Bug Type: *General Issues
  PHP Version: 4.0.5
  Assigned To:
  Comments:
 
  This should be fixed in the current CVS, please reopen if this does not
  work with the latest CVS version (or snapshot from snaps.php.net)

 Ok... in the last snapshot it works. Can I use it in production
enviroment?

 Thanks a lot!

 --
 Alessandro 'Asterix75' Astarita [EMAIL PROTECTED]
 Web Site: http://asterix75.capri.it
 Secret MS Windows code:
 while (1) { if (num_process  1) bluescreen(rand()); }

 --
 PHP Development Mailing List http://www.php.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] Re: [PHP-QA] Re: [PHP-DEV] Re: [PHP-QA] Re: [PHP-DEV] Re: [PHP-QA] Re: [PHP-DEV] Release process

2001-05-04 Thread Joe Brown

Question:
Is is_null() an alias for isset()?

Based on this statement and my understanding of both funcitons, it should
be.

Andi Gutmans [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 At 07:02 PM 5/3/2001 -0500, Andrei Zmievski wrote:
 At 06:31 PM 5/3/01 -0500, Richard Lynch wrote:
 Um, lots of people use isset($row['foo]) to detect NULL in the
database...
 
 Are you going to change that behaviour?
 
 Don't.
 
 If the column is missing, they screwed up their SQL, which is not within
the
 pervue of PHP to fix in the first place...
 
 You are arguing my point, Richard.

 Andrei,

 Not exactly. No matter if it is set to NULL or unset then isset() will
give
 the same result.
 And most people use isset() AFAIK.
 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]




Re: [PHP-DEV] Zend API changes

2001-05-04 Thread Joe Brown

Well you should, damnit!

;-)

Zeev Suraski [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
At 20:20 4/5/2001, Björn Schotte wrote:
* Zeev Suraski wrote:
  There's a good starting point already, people are more than welcome to
  extend it.

I don't understand why people should work in their spare-time
on a tool which is published under the Zend Licence (which is
similar to QPL). As we know of QPL, all developer's seem to
be equal, but some seem to be more equal.

You don't have to;  It just so happens that I don't have to either.

Zeev


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




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




Re: [PHP-DEV] PHP 4.0 Bug #10675 Updated: Executing background job from PHP causes session lock-up

2001-05-04 Thread Joe Brown

This sounds as if it may be a disk caching issue.

Is your session data stored in files (the default)?

flush() dumps io to the web browser, is there a file_flush()?

[EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 ID: 10675
 User Update by: [EMAIL PROTECTED]
 Status: Open
 Bug Type: *Session related
 Description: Executing background job from PHP causes session lock-up

 Executed a perl script in the background like this:
 perl scriptname.pl $otherParams 2 /dev/null 1 /dev/null

 Perl script forks and parent dies, so PHP should see the script as
finished
 immediately, perl child does work in background (takes a few minutes to
run).

 PHP script that spawned perl script completes OK, browser stops waiting
for more data from
 php script as it should.

 However, when using the same browser window (or one from browser's
file-new window) no
 other pages that referrence the session will load in the browser.  If we
force the session
 to destroy just after the system() call, other scripts load just fine.
Also, other
 scripts work just fine if we start a new browser from scratch (creates new
session).

 So it appears that the PHP session is getting messed up somehow b/c of the
background
 system/exec/`` call.  This seems to prevent the following pages from
loading the session
 properly and therefore they will not run.


 One other thing, once the child perl script is finally complete everything
starts working again, i.e.-the session is OK again.

 Previous Comments:
 --
-

 [2001-05-04 15:22:47] [EMAIL PROTECTED]
 Executed a perl script in the background like this:
 perl scriptname.pl $otherParams 2 /dev/null 1 /dev/null

 Perl script forks and parent dies, so PHP should see the script as
finished immediately, perl child does work in background (takes a few
minutes to run).

 PHP script that spawned perl script completes OK, browser stops waiting
for more data from php script as it should.

 However, when using the same browser window (or one from browser's
file-new window) no other pages that referrence the session will load in
the browser.  If we force the session to destroy just after the system()
call, other scripts load just fine.  Also, other scripts work just fine if
we start a new browser from scratch (creates new session).

 So it appears that the PHP session is getting messed up somehow b/c of the
background system/exec/`` call.  This seems to prevent the following pages
from loading the session properly and therefore they will not run.

 --
-


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


 --
 PHP Development Mailing List http://www.php.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] 4.1 Declaration Case Persistance

2001-05-04 Thread Joe Brown

1++;

Wez Furlong [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Sterling Hughes [EMAIL PROTECTED] wrote:
  On Fri, 4 May 2001, Chuck Hagenbuch wrote:
   That's a problem with it being an option, yes. I'd vote for
   just making php case sensitive, period.
  +1 for that! :)

 +1

 --Wez.


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




-- 
PHP Development Mailing List http://www.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 #10638: exec(), system(), ... without reply

2001-05-03 Thread Joe Brown

echo typically is not a program.
It is a command in the CMD.exe or COMMAND.com programs.

$output=exec(cmd -c echo hello); //should produce the desired effect.

Why piping output to a file changes this fact, is beyond me.

[EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 From: [EMAIL PROTECTED]
 Operating system: Windows 2000
 PHP version:  4.0.5
 PHP Bug Type: IIS related
 Bug description:  exec(), system(), ... without reply

 ?php
 $output = exec(echo hello);
 echo $output;
 ?

 ...will nothing display!
 (that's wrong!)

 ?php
 $output = exec(echo hello  hello.txt);
 ?

 ...will create a file named hello.txt with the value hello.
 (that's fine.)

Strange IMO, not fine.


 So the function exec() works properly but it gives no value back. The same
problem occures in the function system() or in the backticks.

 I'm using Windows 2000 with IIS.



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



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




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




Re: [PHP-DEV] Re: [PHP-QA] Re: [PHP-DEV] Re: [PHP-QA] Re: [PHP-DEV] Release process

2001-05-03 Thread Joe Brown

is_null() should return false if a variable is not set.

isset() should be used to test for variables existance, not is_null().

This is my opinion and I'm sticking to it.  Those whom deviate from my
opinion are wrong in my opinion!!!

-Joe

Andi Gutmans [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 At 10:38 AM 5/3/2001 -0500, Andrei Zmievski wrote:
 On Thu, 03 May 2001, Andi Gutmans wrote:
   How do you know today if it's NULL or not?
 
 is_null()?

 is_null() will also return true if it's undefined.

 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]




Re: [PHP-DEV] Bug #10552: Exit() function never work when an Oracle error occures

2001-04-29 Thread Joe Brown

This may be fixed in 4.0.5

[EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 From: [EMAIL PROTECTED]
 Operating system: Windows 2000
 PHP version:  4.0.4pl1
 PHP Bug Type: OCI8 related
 Bug description:  Exit() function never work when an Oracle error occures

 Here's my script where the problem occures.
 You can see that there is a SQL statement error in $lvRequete because
there a problem when an Oracle Error occures.
 The first execution goes well, but since the second execution i've go the
waiting cursor on my web page and the PHP module still running.

 ?php
 function MySQLStatement()
 {
 global $conn_id;

 $conn_id = OCILogon(myname, mypass, ORACLE);

 if ($conn_id == false)
 {
 echo 'OWS-20004 : Oracle error. Unable to connect to destination !';
 exit;
 }
 $lvRequete = *Select sysdate from dual;
 if ($SQLStatement = OCIParse($conn_id,$lvRequete))
 {
 if (OCIExecute($SQLStatement)==0)
 {
 OCILogOff($conn_id);
 echo 'OWS-20005 : Oracle error. SQL Syntax error !';
 exit;
 }

 }
 else
 {
 echo 'OWS-20006 : Oracle error. Parse SQL error Level 0 !';
 exit;
 }
 if(OCIFetch($SQLStatement) != 0)
 {
 $lvColumnName = OCIResult($SQLStatement,1);

 return $lvColumnName;
 }
 else
 {
 OCILogOff($conn_id);
 return Fetch Error;
 }
 OCIFreeStatement($SQLStatement);
 }

 $MyValue = MySQLStatement();
 echo $MyValue;
 ?


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



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




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




Re: [PHP-DEV] Bug #9916 Updated: fopen() in w or a mode to a remote server (via HTTP)don't give back any error

2001-04-29 Thread Joe Brown

Hehe,
If it did work, PHP might then mean:

Preferred Hacking PreProcessor

[EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 ID: 9916
 Updated by: derick
 Reported By: [EMAIL PROTECTED]
 Old-Status: Open
 Status: Closed
 Bug Type: *Directory/Filesystem functions
 PHP Version: 4.0.4pl1
 Assigned To:
 Comments:

 Are you trying to save a file on a remote URL with HTTP here? If that's
the case, then it won't ever work. The HTTP protocol is not designed for
this. Please reopen if I got this wrong.

 Derick

 Previous Comments:
 --
-

 [2001-03-22 07:52:23] [EMAIL PROTECTED]
 $fp = fopen(http://www.server.com/data/file.txt);
 fput($string,$fp);

 /* comment
 data have chmod 777
 file.txt have chmod 666
 when you execute fput() all look ok, but when you read
 file.txt nothing in.
 Thanks
 Bob
 */


 --
-



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




Re: [PHP-DEV] intval($resource)

2001-04-28 Thread Joe Brown

There is a good reason AFAIK.

Manuel Lemos' Metabase uses the intval of a resource as an array key for
managing mutiple queries, etc.

A don't do that responce does not help the situation, because it must in
order to function the way it does.

Manuel's Metabase is quite elegant PHP coding.

I have written to metabase-dev on groups.yahoo.com in hopes for another
resolution.  As it stands now, I don't foresee simple solution to this
issue.
--
Having said that,
1. is there a good reason OCI shouldn't free the resource reguardless of the
reference count?

2. Should intval not pump up the refcount when doing something silly like
converting a resource to an integer?


Andi Gutmans [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 At 06:03 PM 4/27/2001 -0400, Joe Brown wrote:
 Run into a spot of trouble using Metabase(db wrapper) because of it's use
of
 casting a $var=intval($resource) where OCIFreeCursor fails to function
after
 it has been casted.
 
 Guessing that it fails because intval is creating a reference to the
 resource, in turn OCI does not release the resource because there
additional
 reference exist.
 
 I'd like to start working on fixing this, but don't know which behaviour
to
 attack.  Does OCI need to be fixed or intval()?
 
 Suggestions anyone...

 Is there a good reason it needs to use intval() on the resource? To be
 quite honest intval() shouldn't really return a valid value for resources
 and just by chance it returns the resource id which is probably not a good
 thing.
 We can try and look into fixing this problem though.

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

2001-04-28 Thread Joe Brown

Serious problem...

I checked out php4 today, and compiled it on windows and linux.

The bang (!) in the if statement changes the resource to
if(!($connection=ociplogon(scott,tiger,orcl))) {
var_dump($connection) = resource(1) of type (Unknown)
w/out the bang(!)
if(($connection=ociplogon(scott,tiger,orcl))) {
var_dump($connection) = resource(1) of type (oci8 connection)

This code fails miserably:

?
$connection=0;
$statement=0;
if(!($connection=ociplogon(scott,tiger,orcl))) {
  echo above result is false, so this will probably never happenbr\n;
}
var_dump($connection);
$query = select user from dual;
$statement=OCIParse($connection,$query);
OCIExecute($statement);
OCIFetch($statement);
echo OCIResult($statement,1).br\n;
OCIFreeStatement($statement);
?



-- 
PHP Development Mailing List http://www.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] intval($resource)

2001-04-28 Thread Joe Brown


Andi Gutmans [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 At 08:50 PM 4/28/2001 +0200, Thies C. Arntzen wrote:
 On Sat, Apr 28, 2001 at 06:12:19PM +0200, Andi Gutmans wrote:
   At 08:28 AM 4/28/2001 -0400, Joe Brown wrote:
   Having said that,
   1. is there a good reason OCI shouldn't free the resource reguardless
  of the
   reference count?
 
  the problem is that freeing resources that are still in use
  will cause trouble once we try to use them (and expect they
  are still there)

 Well it will cause a warning because the resource doesn't exist anymore
but
 I don't think it would cause serious problems. In any case, I think there
 are two ways to look at this and none is really more correct than the
other.

 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]




Re: [PHP-DEV] intval($resource)

2001-04-28 Thread Joe Brown

Bah!

My newsreader is freaking out on replies...  Please accept apologies for
null message.

IMO.  The resource should be freed upon request, reguardless of refcount.
Further attempts to access the resource would then be in error.  This logic
makes sense to me.

If the resource is not released, a warning should be generated.
@OCIFreeStatement would then squash the warning, if this is the desired
behaviour.


Joe Brown [EMAIL PROTECTED] wrote in message
9cfi6l$75n$[EMAIL PROTECTED]">news:9cfi6l$75n$[EMAIL PROTECTED]...

 Andi Gutmans [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  At 08:50 PM 4/28/2001 +0200, Thies C. Arntzen wrote:
  On Sat, Apr 28, 2001 at 06:12:19PM +0200, Andi Gutmans wrote:
At 08:28 AM 4/28/2001 -0400, Joe Brown wrote:
Having said that,
1. is there a good reason OCI shouldn't free the resource
reguardless
   of the
reference count?
  
   the problem is that freeing resources that are still in use
   will cause trouble once we try to use them (and expect they
   are still there)
 
  Well it will cause a warning because the resource doesn't exist anymore
 but
  I don't think it would cause serious problems. In any case, I think
there
  are two ways to look at this and none is really more correct than the
 other.
 
  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 Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] intval($resource)

2001-04-27 Thread Joe Brown

Run into a spot of trouble using Metabase(db wrapper) because of it's use of
casting a $var=intval($resource) where OCIFreeCursor fails to function after
it has been casted.

Guessing that it fails because intval is creating a reference to the
resource, in turn OCI does not release the resource because there additional
reference exist.

I'd like to start working on fixing this, but don't know which behaviour to
attack.  Does OCI need to be fixed or intval()?

Suggestions anyone...

-Joe



-- 
PHP Development Mailing List http://www.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 #10465: absolute path dosen't work with file_exists()

2001-04-23 Thread Joe Brown

This is likely a permissions issue rather than a PHP or file_exists()
defect.

Make sure your web server user (typically user nobody) has permissions to
/tmp and /tmp/test

If the www user cannot read or execute your test directory, then it will
not be able to stat a file in that directory either.

Perhaps the file section of manual for should state that the web server user
must have permissions to all directories in a path as well as files themself
(repeatedly, if it doesn't already).

-Joe

[EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 From: [EMAIL PROTECTED]
 Operating system: linux 2.4.2 (red-hat 6) i686
 PHP version:  4.0.4pl1
 PHP Bug Type: Filesystem function related
 Bug description:  absolute path dosen't work with file_exists()

 file_exists () works fine with reletive paths, but seems to not work with
absolute paths, or paths starting with '../'

 this works fine:
 --
 if(file_exists(test/123)) {
 die (error message);
 }


 this does not work:
 --
 if(file_exists(/tmp/test/123)) {
 die (error message);
 }



 this does not work:
 --
 if(file_exists(../../tmp/test/123)) {
 die (error message);
 }


 thanks... atom


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



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




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




Re: [PHP-DEV] Bug #10284: sttchr() function bug

2001-04-11 Thread Joe Brown

This is the documented behavior of strrchr();
It searches for the last occurence of a CHARACTER, not a string.

There does not appear to be function to search for the last occurence of a
string.  Perhaps a feature request would be more appropriate.

In the mean time perhaps reversing both strings with strrev() will suffice.

-Joe
[EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 From: [EMAIL PROTECTED]
 Operating system: linux(redhat6.2)
 PHP version:  4.0.4pl1
 PHP Bug Type: Unknown/Other Function
 Bug description:  sttchr() function bug

 ?
 $k="%C5%DA%B7%B9%C5%E4%BA%F1%C5%DA%B7%B9%C5%E4%BA%F1";
 $q="%C5%DA";
 $b=strrchr($k,$q);
 echo $k."br";
 echo $q."br";
 echo $b;
 ?
 ///result//
 %C5%DA%B7%B9%C5%E4%BA%F1%C5%DA%B7%B9%C5%E4%BA%F1
 %C5%DA
 %F1

 I want this result,"%C5%DA%B7%B9%C5%E4%BA%F1"
 Maybe it is function's bug.



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



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




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




Re: [PHP-DEV] Codenames for releases..

2001-04-11 Thread Joe Brown

How about the 16th timezone's (US -- Alaska) 8th paper's (no clue) 16th noun
on the paper.
 P=chr(16)
 H=chr(8)
 P=chr(16)
 ===
 40

"Jani Taskinen" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
On 11 Apr 2001, Stig Sæther Bakken wrote:

[Jani Taskinen [EMAIL PROTECTED]]

 (could we have some nice 'codenames' for the releases? Please.. :)

Hey, what if we name them after the third noun on page five of your
(finnish) morning paper at the day of RC1 (using GMT)? :-)

Why not norwegian morning paper? :)

--Jani




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




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




[PHP-DEV] /ext/oci8/oci8.c win32 bugfix.

2001-04-09 Thread Joe Brown

If someone would apply this patch to ext/oci8/oci8.c I think the Oracle
using Win32 community would be greatful.

Don't know if all threaded environments have a problem with OCI8's behaviour
in threaded mode.  PHP on win32 really doesn't like it...  I haven't been
able to get it to crash with this modification.  W/out this modification I
haven't been able to keep it from crashing.

This change only affects builds on Win32, making OCI8 behave like it does on
traditional Unix.  If possible, please include in the next RC or final
release of 4.0.6

Thanks,
joebrown
podiatryfl.com

--- php4/ext/oci8/oci8.c  Fri Mar 02 04:45:08 2001
+++ php4/ext/oci8/oci8.c  Mon Apr 09 03:33:10 2001
@@ -342,7 +342,7 @@
 {
zend_class_entry oci_lob_class_entry;

-#ifdef ZTS
+#if ZTS  !WIN32
 #define PHP_OCI_INIT_MODE OCI_THREADED
 #else
 #define PHP_OCI_INIT_MODE OCI_DEFAULT



-- 
PHP Development Mailing List http://www.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] Would anybody find this useful besides me?

2001-04-09 Thread Joe Brown

I wrote a little function to do something similar to that.
It's a little weak but does a fairly good job formatting.  Maybe sombody
will make it better and send me the code too ;-)

// format($element, $format)
// element=input ...
// format="(999)999- x"
// 9=numeric digit
// X=converts alpha to uppercase
// x=anything goes
// anything-else=hardcoded format literals.
// above format would take 1234567890 and conver it to (123)456-7890
// amazingly format="99/99/" doesn't add 0's but does convert 01012000
to
// 01/01/2000 it also accepts 1/1/2000 and leaves it as 1/1/2000
// but "999-99-" truncates 333-2-2 to 333-2-2444
// Use:
// form
// input type=text name=f1
onchange="this.value=inputFormat(this.value,'99/99/')"
function format ($e,$f) {
  if (($e=='') || ($f=='')) return $e;
  $r="";
  $numbers='0123456789';
  $ei=0;
  $fi=0;
  while(strcmp($ev=substr($e,$ei,1),"")  strcmp($fv=substr($f,$fi,1),""))
{
switch($fv) {
case '9':
  if (strpos($numbers,$ev)!==false) {
 $r.=$ev;
 $ei++;
 $fi++;
  }
  else { // else clause causes 1/1/1999 to be accepted as such
 if (substr($f,$fi+1,1)==$ev)
   $fi++;
 else
   $ei++;
  }
  break;
case 'X':
  $r.=strtoupper($ev);
  $ei++;
  $fi++;
  break;
case 'x':
  $r.=$ev;
  $ei++;
  $fi++;
  break;
default:
  if ($ev==$fv){
 $r.=$fv;
 $ei++;
 $fi++;
  }
  else {
 $r.=$fv;
 $fi++;
 break;
  }
}
  }
  return $r;
}

""Chris Newbill"" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Just curious to see if anybody else would see the usefulness of having a
 masking print function?  I dunno maybe call it mprint().

 Where I could pass my mask, my value and optionally the mask char,
 defaulting to something off I guess like "~".

 mprint ( mask , value [, mask_char])

 So I could

  $str = mprint("(XXX) XXX.", "4064498056", "X");
  print $str;

 and would get

 (406) 449.8056


 Chris Newbill
 OneWest.net Inc.,
 Programmer/Analyst

 406.449.8056
 [EMAIL PROTECTED]

 /*
 Windows crashed.
 I am the Blue Screen of Death.
 No one hears your screams.
 */




 --
 PHP Development Mailing List http://www.php.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] Quick fix (was: Re: [PHP-DEV] OCI8 Thread safety)

2001-04-08 Thread Joe Brown

I'm still a neophite at thread safety/PHP internals, but I found a quick fix
to the OCI8 and PHP in threaded envrionment.

Changing OCI_THREADED to OCI_DEFAULT in the OCIInitialize function is the
quick fix I discovered.  It works because the OCI8 exention is designed for
seperate address space for all oci calls.

You can't call OCIInitialize or OCIEnvInit mutiple times in a process.  They
are designed to be called once through the life of a process.  OCI in a
threaded environment the threads share the parent's OCIEnvironment.  The OCI
module currently doesn't take this into consideration and calls OCIEnvInit
when it grabs a copy of the OCI_globals.  Works fine if they're not sharing
the Parent environment, traditional Unix style processes.

Not using OCI_THREADED in OCIInitialize, OCI threads act like seperate
processes.

OCI8 has the ability to take full advantage of a threaded environment.  I've
studied the calls etc. and there is a lot of resource sharing that can be
implemented with OCI in threaded environment.  Implementing OCI_SHARED can
provide supererior perfomance increases on threaded servers.  It's and ideal
switch to throw into the mix, but a lot of rewiring needs to be done on the
OCI8 module for this to work as advertised.

Thies, I'd love to work with you on this, if you're interested...  I need
some help understanding how the existing code operates.  I have a feel for
it, but would like some assumption verification.  ;-)

joebrown
podiatryfl.com

""Thies C. Arntzen"" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 On Fri, Apr 06, 2001 at 10:50:49PM -0400, Joe Brown wrote:
  It appears to me that the oci8 module does not behave well on win32 - a
  threaded environment.  I've begun to study the code, and believe I can
make
  it mind the rules.

 what is not thread-safe in your opinion? i don't use windows
 or any other threded server so i can't really tell
 
  Thread safe programming is new to me.  (hehe were have you heard that
b4?-)
 
  Is anyone else working on the OCI8 extension?

 i am

 tc

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




-- 
PHP Development Mailing List http://www.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] OCI8 Thread safety

2001-04-07 Thread Joe Brown

Memory allocation seems to be the issue.

On nt, with apache or IIS, if threads access OCI simultaneously, Illegeal
instructions are the result.

I'm having difficulty determining exactly why this is happening because I do
not know how to debug a multi-threaded application before an Illegeal
instruction is incurred.

joebrown
podiatryfl.com

""Thies C. Arntzen"" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 On Fri, Apr 06, 2001 at 10:50:49PM -0400, Joe Brown wrote:
  It appears to me that the oci8 module does not behave well on win32 - a
  threaded environment.  I've begun to study the code, and believe I can
make
  it mind the rules.

 what is not thread-safe in your opinion? i don't use windows
 or any other threded server so i can't really tell
 
  Thread safe programming is new to me.  (hehe were have you heard that
b4?-)
 
  Is anyone else working on the OCI8 extension?

 i am

 tc

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




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




[PHP-DEV] OCI8 Thread safety

2001-04-06 Thread Joe Brown

It appears to me that the oci8 module does not behave well on win32 - a
threaded environment.  I've begun to study the code, and believe I can make
it mind the rules.

Thread safe programming is new to me.  (hehe were have you heard that b4?-)

Is anyone else working on the OCI8 extension?

joebrown
podiatryfl.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] Re: PHP 4.0 Bug #9857 Updated: define(named_constant)

2001-04-06 Thread Joe Brown

I'm using the latest snapshot's on win32.

Getting some needed practice with MSVC...

I think the problem is that OCI is walking on TSRM
local storage.  I haven't been able to verify it, but
my gut says it's so.

joebrown
podiatryfl.com

--- Bug Database [EMAIL PROTECTED] wrote:
 ID: 9857
 Updated by: sniper
 Reported By: [EMAIL PROTECTED]
 Old-Status: Open
 Status: Feedback
 Bug Type: IIS related
 Assigned To: 
 Comments:
 
 Are you using PHP 4.0.1? If so, could you please try
 
 with the latest release, 4.0.4pl1?
 
 --Jani
 
 
 Previous Comments:

---
 
 [2001-03-29 01:34:23] [EMAIL PROTECTED]
 Taking a shot in the dark, hoping this bug comes to
 sombody who "knows" attention.
 
 Prior comments are somewhat misleading.  I'm using
 OCI8, and also Manuel Lemos' Metabase.
 
 Parusing through the source, I've noticed that there
 are some constants defined for OCI8 (which are
 documented):
 eg:
 REGISTER_LONG_CONSTANT("OCI_DEFAULT",OCI_DEFAULT,
 CONST_CS | CONST_PERSISTENT);
 
 I question this CONST_PERSISTENT value.  Is it
 possible that the persistence is helping non
 persistent constants (in the php code) strattle the
 void between pages?
 
 BTW: what does _zval_dtor in the source mean?
 Specifically, "dtor"
 

---
 
 [2001-03-26 17:46:42] [EMAIL PROTECTED]
 A define on php4isapi has a tendency to bleed over
 to the next page load.  refresh and a completely
 different page have retain a defined constant.
 
 eg:
 test1.php
 ?
 define("anything",1);
 echo (defined("anything")?"anything
 defined":"anything not defined");
 ?
 
 test2.php
 echo (defined("anything")?"anything
 defined":"anything not defined");
 
 after pointing browser at test1.php
 test 2.php contains "anything defined", instead of
 "not"
 

---
 
 [2001-03-20 01:15:49] [EMAIL PROTECTED]
 With this code at the top of an include file, the
 results are unpretictable.
 
 if(!defined("METABASE_MYSQL_INCLUDED"))
 {
  define("METABASE_MYSQL_INCLUDED",1);
  ...rest of include file...
 }
 
 require_once(); seems to work though.
 
 

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


__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

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




Re: [PHP-DEV] Unix timestamp maximum

2001-04-04 Thread Joe Brown

Excellent example Keith.

In order for PHP to gain acceptance in the commercial communities, a date
limitation will certainly prevent that.

Date limitation on "only" this or that operating system does not support any
argument.

Ideally it should not depend an operating system structure.

I propose #define PHP_DATE_SIZE _int64



"Keith Waters" [EMAIL PROTECTED] wrote in message
001501c0bd43$bd9215a0$d47cfea9@home">news:001501c0bd43$bd9215a0$d47cfea9@home...
  AG By the time we close in on 2038 and UNIX is still around
  AG (*smile*) then most UNIX systems will most probably have moved
  AG to 64bit timestamps, thus requiring in the best place just a
  AG recompilation of your PHP binary and in the worse case if you
  AG saved binary file stamps to a file, some kind of conversion
  AG script. It's not as bad as the Y2K bug (which wasn't too bad:)
 
  Well, seeing that most Unix concepts are alive from 60-70th till today,
  they'll probably be there in 2038. And I'm not sure all systems will be
  upgraded by then. But I would probably be retired already by then, so
why
  should I care? ;)

 What happens to, for example, somebody who takes out a policy that matures
 in 40 years and the maturation date is stored in an Oracle database using
 PHP? To start with, if the date (2038) was stored with PHP (using
 mktime), it would come out as -1   If it was stored some other way and
then
 retrieved with PHP (using date), it would show the incorrect date (2038).

 I know the bug is not PHP's fault, but surely the code for the date
related
 functions could be rewritten so as NOT to use the OS's built-in functions
 (which I suppose is what is happening at the moment?)

 Regards,
 Keith




 --
 PHP Development Mailing List http://www.php.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] Re: PHP 4.0 Bug #9964 Updated: Unresolved symbols

2001-04-03 Thread Joe Brown

Have you looked at the instructions at
http://www.php4win.de
under articles/compiling -english version?

--- Bug Database [EMAIL PROTECTED] wrote:
 ID: 9964
 Updated by: dbeu
 Reported By: [EMAIL PROTECTED]
 Old-Status: Open
 Status: Analyzed
 Bug Type: Compile Failure
 Assigned To: 
 Comments:
 
 com linkage still seems to be broken (external
 modules like dotnet fail to link).
 can someone familiar with them please have a look at
 it?
 
 Previous Comments:

---
 
 [2001-03-26 01:47:39] [EMAIL PROTECTED]
 I was trying to build with php.dsw workspace.
 phpts.dsw compiles right up.  Must have neglected to
 read the instructions.  Leaving this ticket open,
 because I think php4.dsw should be removed from the
 distribution, unless it serves some other purpose.
 

---
 
 [2001-03-24 01:12:25] [EMAIL PROTECTED]
 Trying to build php from recent cvs snaps
 php4-200103231245 and one from a day earlier.
 
 Compile is smooth, except for a few unresolved
 symbols:
 
 Linking...
Creating library ..Debug/php4nts_debug.lib and
 object ..Debug/php4nts_debug.exp
 internal_functions_win32.obj : error LNK2001:
 unresolved external symbol _VARIANT_module_entry
 COM.obj : error LNK2001: unresolved external symbol
 _php_char_to_OLECHAR
 COM.obj : error LNK2001: unresolved external symbol
 _php_OLECHAR_to_char
 COM.obj : error LNK2001: unresolved external symbol
 _php_pval_to_variant
 COM.obj : error LNK2001: unresolved external symbol
 _php_variant_to_pval
 ..Debugphp4nts_debug.dll : fatal error LNK1120: 5
 unresolved externals
 Error executing link.exe.
 
 php4nts_debug.dll - 6 error(s), 0 warning(s)
 

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


__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

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




Re: [PHP-DEV] PHP 4.0 Bug #10025: bison reports error with 'S' parameter

2001-03-27 Thread Joe Brown

Look in the win32 directory for :
php4ts.dsw

This configuration contains the correct build settings for zend and php4.

Maybe ZendTS.DSP should be removed from the distribution?

I ran into difficulties compiling with php4.dsw in the win32 directory,
php4ts.dsw works like a charm.  ;-)

[EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 From: [EMAIL PROTECTED]
 Operating system: Windows NT4 SP6a
 PHP version:  4.0.4pl1
 PHP Bug Type: Compile Failure
 Bug description:  bison reports error with 'S' parameter

 Compiling PHP4.0.4pl1 on Windows NT4 SP6a with Cygwin (setup version 2.19)
and bison 1.28 reports the following:

 Deleting intermediate files and output files for project 'TSRM - Win32
Release_TS'.
 Deleting intermediate files and output files for project 'ZendTS - Win32
Release_TS'.
 Deleting intermediate files and output files for project 'libmysql - Win32
Release_TS'.
 Deleting intermediate files and output files for project 'php4dllts -
Win32 Release_TS'.
 Deleting intermediate files and output files for project 'php4ts - Win32
Release_TS'.
 Configuration: TSRM - Win32
Release_TS
 Compiling...
 TSRM.c
 tsrm_strtok_r.c
 tsrm_virtual_cwd.c
 Creating library...
 Configuration: ZendTS - Win32
Release_TS
 Performing Custom Build Step on ".\zend_language_parser.y"
 bison: invalid option -- S
 Usage: bison [-dhklntvyV] [-b file-prefix] [-o outfile] [-p name-prefix]
[--debug] [--defines] [--fixed-output-files] [--no-lines]
[--verbose] [--version] [--help] [--yacc]
[--no-parser] [--token-table]
[--file-prefix=prefix] [--name-prefix=prefix]
[--output=outfile] grammar-file
 Report bugs to [EMAIL PROTECTED]
 Error executing c:\winnt\system32\cmd.exe.

 php.exe - 1 error(s), 0 warning(s)


 From what I understand for this to compile properly version 1.25 of the
Cygwin bison is required.


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



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




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




Re: [PHP-DEV] PHP 4.0 Bug #10006: Netscape Navigator 4.7 returns blank pages.

2001-03-26 Thread Joe Brown

Is it possible there are nulls in the output?

Read in one of the news.php.com groups that earlier versions of netscape
stop when a null is recieved in the stream.

Suggestions were to save the source and view with an editor that can
identify and display codes for null characters (chr(0)).

(Probably need to save source w/IE, or use cgi php and pipe to a file. ;-)

-Joe

[EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 From: [EMAIL PROTECTED]
 Operating system: NT 4.0 SP 4
 PHP version:  4.0.4
 PHP Bug Type: IIS related
 Bug description:  Netscape Navigator 4.7 returns blank pages.

 I have installed PHP 4.0.4 on an NT 4.0 server with SP4 applied.  IE4.0 -
IE5.5 can access my php pages just fine but when I try to access those same
pages with Netscape Navigator 4.7 I get an empty page.

 PHPINFO follows:


 PHP Version 4.0.4

 System Windows NT 4.0 build 1381
 Build Date Dec 20 2000
 Server API ISAPI
 Virtual Directory Support enabled
 Configuration File (php.ini) Path php.ini
 ZEND_DEBUG disabled
 Thread Safety enabled

  This program makes use of the Zend scripting language engine:
 Zend Engine v1.0.3, Copyright (c) 1998-2000 Zend Technologies




 --
--

 PHP 4.0 Credits

 --
--

 Configuration
 PHP Core
 Directive Local Value Master Value
 allow_call_time_pass_reference
  On On
 allow_url_fopen
  1 1
 arg_separator
   
 asp_tags
  On On
 auto_append_file
  no value no value
 auto_prepend_file
  no value no value
 browscap
  no value no value
 default_charset
  no value no value
 default_mimetype
  text/html text/html
 define_syslog_variables
  Off Off
 disable_functions
  no value no value
 display_errors
  On On
 display_startup_errors
  Off Off
 doc_root
  no value no value
 enable_dl
  On On
 error_append_string
  Off Off
 error_log
  no value no value
 error_prepend_string
  Off Off
 error_reporting
  2039 2039
 expose_php
  On On
 extension_dir
  C:\InetPub\scripts\Php\extensions C:\InetPub\scripts\Php\extensions
 file_uploads
  1 1
 gpc_order
  GPC GPC
 highlight.bg
  #FF #FF
 highlight.comment
  #FF8000 #FF8000
 highlight.default
  #BB #BB
 highlight.html
  #00 #00
 highlight.keyword
  #007700 #007700
 highlight.string
  #DD #DD
 html_errors
  On On
 ignore_user_abort
  Off Off
 implicit_flush
  Off Off
 include_path
  no value no value
 log_errors
  Off Off
 magic_quotes_gpc
  On On
 magic_quotes_runtime
  Off Off
 magic_quotes_sybase
  Off Off
 max_execution_time
  30 30
 open_basedir
  no value no value
 output_buffering
  Off Off
 output_handler
  no value no value
 post_max_size
  8M 8M
 precision
  14 14
 register_argc_argv
  On On
 register_globals
  On On
 safe_mode
  Off Off
 safe_mode_exec_dir
  no value no value
 sendmail_from
  [EMAIL PROTECTED] [EMAIL PROTECTED]
 sendmail_path
  no value no value
 short_open_tag
  On On
 SMTP
  localhost localhost
 sql.safe_mode
  Off Off
 track_errors
  On On
 upload_max_filesize
  2M 2M
 upload_tmp_dir
  no value no value
 user_dir
  no value no value
 variables_order
  EGPCS EGPCS
 y2k_compliance
  Off Off


 pgsql
 PostgreSQL Support enabled
 Active Persistent Links 0
 Active Links 0

 Directive Local Value Master Value
 pgsql.allow_persistent
  On On
 pgsql.max_links
  Unlimited Unlimited
 pgsql.max_persistent
  Unlimited Unlimited


 db
 flat file support enabled


 curl
 CURL support enabled
 CURL Information libcurl 7.5.1 (SSL 0.9.6)


 sablot
 Sablotron XSLT support enabled


 zlib
 ZLib Support enabled
 Compiled Version 1.1.3
 Linked Version 1.1.3


 mssql
 MSSQL Support enabled
 Active Persistent Links 0
 Active Links 0
 Library version 7.0

 Directive Local Value Master Value
 mssql.allow_persistent
  On On
 mssql.batchsize
  0 0
 mssql.compatability_mode
  Off Off
 mssql.connect_timeout
  5 5
 mssql.max_links
  Unlimited Unlimited
 mssql.max_persistent
  Unlimited Unlimited
 mssql.min_error_severity
  10 10
 mssql.min_message_severity
  10 10
 mssql.textlimit
  Server default Server default
 mssql.textsize
  Server default Server default


 interbase
 Interbase Support enabled
 Revision $Revision: 1.48 $
 Dynamic Module yes
 Allow Persistent Links Yes
 Persistent Links 0/unlimited
 Total Links 0/unlimited
 Timestamp Format %m/%d/%Y %H:%M:%S
 Date Format %m/%d/%Y
 Time Format %H:%M:%S


 imap
 IMAP Support enabled
 IMAP c-Client Version 4.1


 domxml
 DOM/XML, XPath, XPointer Support enabled
 libmxl Version 2.2.8


 cybercash
 Cybercash Support enabled


 standard
 Regex Library Bundled library enabled
 Dynamic Library Support enabled
 Internal Sendmail Support for Windows 4 enabled

 Directive Local Value Master Value
 assert.active
  1 1
 assert.bail
  0 0
 assert.callback
  no value no value
 assert.quiet_eval
  0 0
 assert.warning
  1 1
 safe_mode_allowed_env_vars
  PHP_ PHP_