#7861 [Com]: mysql.sock error

2003-08-04 Thread saman_bayat2000 at yahoo dot com
 ID:   7861
 Comment by:   saman_bayat2000 at yahoo dot com
 Reported By:  jerome dot ponsin at trader dot com
 Status:   Closed
 Bug Type: MySQL related
 Operating System: Linux Redhat 7
 PHP Version:  4.0.3pl1
 New Comment:

hello


Previous Comments:


[2000-11-17 06:14:20] jerome dot ponsin at trader dot com

The directory mysql (/var/lib/mysql) hadn't the good
right for the apache owner even if the mysql.sock had !

Sorry,
Jerome



[2000-11-17 05:25:27] jerome dot ponsin at trader dot com

Warning: MySQL Connection Failed: Can't connect to local MySQL server
through socket '/var/lib/mysql/mysql.sock' (111) 

Mysql is running well and the /var/lib/mysql/mysql.sock
is here (also written in the mysql logfile)

When compiling php the sock appears well also :
/var/lib/mysql/mysql.sock (and not /tmp/mysql.sock)

I don't understand what could be wrong ?




-- 
Edit this bug report at http://bugs.php.net/?id=7861&edit=1



#24879 [Opn]: Some data lost in returned array by mysql_fetch_array

2003-08-04 Thread sm at grand-prix dot ru
 ID:   24879
 User updated by:  sm at grand-prix dot ru
 Reported By:  sm at grand-prix dot ru
 Status:   Open
 Bug Type: MySQL related
 Operating System: Linux RedHat 9
 PHP Version:  4.3.2
 New Comment:

As i mean, bug occurs when both tables (main and left joined) contains
columns with equal names and left-joined table does'nt contain needed
row. In the such case named array elements with names, equal to such
column names are cleared.

Here is test script :


";
exit;
  }

  if (!mysql_select_db($db, $link_id)) {
echo "Can't connect to mysql server";
exit;
  }

  if ($action == "create_bases") {

$query = "CREATE TABLE test1table (
  userid int(10) unsigned DEFAULT '0' NOT NULL
auto_increment,
  usergroupid smallint(5) unsigned DEFAULT '0' NOT NULL,
  username varchar(50) NOT NULL,
  password varchar(50) NOT NULL,
  PRIMARY KEY(userid) )";

$query_id = mysql_query($query,$link_id);
if (!$query_id) {
  echo "invalid SQL:$query";
  exit;
}


$query = "CREATE TABLE test2table (
  userid int(10) unsigned DEFAULT '0' NOT NULL,
  field1 char(250) NOT NULL,
  field2 char(250) NOT NULL,
  field3 char(250) NOT NULL,
  field4 char(250) NOT NULL,
  PRIMARY KEY (userid) )";

$query_id = mysql_query($query,$link_id);
if (!$query_id) {
  echo "invalid SQL:$query";
  exit;
}

$query = "INSERT INTO test1table VALUES
(1,6,'user1','password1')";
$query_id = mysql_query($query,$link_id);
if (!$query_id) {
  echo "invalid SQL:$query";
  exit;
}
$query = "INSERT INTO test1table VALUES
(2,6,'user2','password2')";
$query_id = mysql_query($query,$link_id);
if (!$query_id) {
  echo "invalid SQL:$query";
  exit;
}

$query = "INSERT INTO test2table VALUES
(1,'dummy1','dummy2','dummy3','dummy4')";
$query_id = mysql_query($query,$link_id);
if (!$query_id) {
  echo "invalid SQL:$query";
  exit;
}

echo "tables created and initialized";
exit;

  }

  $query = "SELECT * FROM test1table
LEFT JOIN test2table ON
test2table.userid=test1table.userid
WHERE test1table.userid=1";
  $query_id = mysql_query($query,$link_id);
  if (!$query_id) {
 echo "invalid SQL:$query";
 exit;
  }
  $array = mysql_fetch_array($query_id);
  print_r($array); 
  echo "";
  mysql_free_result($query_id); 

  $query = "SELECT * FROM test1table
LEFT JOIN test2table ON
test2table.userid=test1table.userid
WHERE test1table.userid=2";
  $query_id = mysql_query($query,$link_id);
  if (!$query_id) {
 echo "invalid SQL:$query";
 exit;
  }
  $array = mysql_fetch_array($query_id);
  print_r($array); 
  echo "";
  mysql_free_result($query_id); 


?>


Previous Comments:


[2003-08-01 12:08:03] sm at grand-prix dot ru

I can provide more accurate test script and tables only on monday...
And I can't install RC version, I'm not a hoster...

But some important information - this problem persist only for such
database records, for which left joined records does'nt exist.



[2003-08-01 08:45:46] [EMAIL PROTECTED]

And I asked you to try the SNAPSHOT, NOT the latest stable release..




[2003-08-01 08:45:02] [EMAIL PROTECTED]

Please provide a complete but short example script and mysql db schema
with which we can reproduce this ourselves.
(we're not going to install vbulletin just to test this)




[2003-08-01 04:02:21] sm at grand-prix dot ru

./configure :
 --with-mysql=/home/mysql
--with-apache=../apache_1.3.27rusPL30.17_match --enable-track-vars



[2003-08-01 03:59:27] sm at grand-prix dot ru

I have installed recommended version (last stable, 4.3.2). Problem
persist.

Additional info: 
 
MySQL v3.23.56
Linux kernel v2.4.20 SMP



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/24879

-- 
Edit this bug report at http://bugs.php.net/?id=24879&edit=1



#24931 [NEW]: call_user_func ignores requirement of references

2003-08-04 Thread rehsack at liwing dot de
From: rehsack at liwing dot de
Operating system: FreeBSD 5.1 i386
PHP version:  4.3.3RC2
PHP Bug Type: *General Issues
Bug description:  call_user_func ignores requirement of references

Description:

The method call_user_func ignores requirement of called
function takes it's arguments as reference. The results
in several times very ugly and hard to find bugs, eg. if
you use a template pattern combined with composite to
control child templates and want to do an action in each
child object and require to work on current data copy.

Either, if call_user_func internally is able to be called
by reference, some programs could be speed up, too (because
of the loose of expensive string copies)

This bug may related to #24631 but seems to have another
background. I can submit a more complicated example using
templates and a composite object to illustrate the problem.

Enabling call-time references in php.ini would solve this
problem by don't write a warning but I don't think it's
a good way to solve...


Reproduce code:
---



Expected result:

before call_user_func id=1
after call_user_func id=2
after call_user_func_array id=3

Actual result:
--
before call_user_func id=1
after call_user_func id=1
after call_user_func_array id=2

-- 
Edit bug report at http://bugs.php.net/?id=24931&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=24931&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=24931&r=trysnapshot5
Fixed in CVS:   http://bugs.php.net/fix.php?id=24931&r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=24931&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24931&r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=24931&r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=24931&r=support
Expected behavior:  http://bugs.php.net/fix.php?id=24931&r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=24931&r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=24931&r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=24931&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24931&r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=24931&r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=24931&r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=24931&r=gnused



#23705 [Ver->Csd]: Reassigned object-ref params don't propagate back properly.

2003-08-04 Thread zeev
 ID:   23705
 Updated by:   [EMAIL PROTECTED]
 Reported By:  joachim at lous dot org
-Status:   Verified
+Status:   Closed
 Bug Type: Zend Engine 2 problem
 Operating System: *
 PHP Version:  5.0.0b2-dev, 4.3.3RC2-dev
 New Comment:

It's not a bug.
Assigning by reference breaks any previous references that may have
existed.  So the implementation of replace() won't really work, as
$dest ends up being a referenec to $src, but only locally in the
replace() function, without effecting the global $dest.

I can't think of an easy way of achieving replace() right now, but
either way, the behavior you're experiencing is intended.

FWIW, in PHP 5, it would be practical to implement replace() with
simple assignment (=) instead of assign-by-ref (=&), if you're dealing
with objects.



Previous Comments:


[2003-07-13 00:14:58] [EMAIL PROTECTED]

Same result with ZE2.




[2003-05-19 14:59:47] joachim at lous dot org

It doesn't seem to be possible to replace a passed object references
with a different one.

I expected the following code to print "5":

class a{
var $val;
function a($val){ $this->val = $val;}
}
function replace(&$src, &$dest){
$dest =& $src;
}
$src = new a(2);
$dest = new a(1);
replace($src,$dest);
$src->val=5;
echo $dest->val;

In stead it prints "1".
Changing the '=&' to '=', it prints '2', as expected.
Surely this must be a bug? If not, is there really no way to get the
reference across?

I need this for building trees: passing the current node pointer, have
the function change the tree and make the ref point to a new current
node. I can work around it by returning the new reference in stead, but
that only works for one ref.

Using binary installer from website.





-- 
Edit this bug report at http://bugs.php.net/?id=23705&edit=1



#24569 [Ver->Csd]: Zend Engine 2 doesn't recognize access to indizes of class array constants

2003-08-04 Thread zeev
 ID:   24569
 Updated by:   [EMAIL PROTECTED]
 Reported By:  rele at gmx dot de
-Status:   Verified
+Status:   Closed
 Bug Type: Zend Engine 2 problem
 Operating System: *
 PHP Version:  5.0.0b2-dev
 New Comment:

Not supposed to work.  Constants are a value/expression, you can only
use the [] opreator on variables.


Previous Comments:


[2003-07-09 17:28:24] [EMAIL PROTECTED]

Not sure if this is even supposed to work, but 
I can confirm this:

PHP Parse error:  parse error, expecting `','' or `';'' in
/usr/src/web/php/php5/t.php on line 9

(strange, the error has changed? :)




[2003-07-09 16:57:33] rele at gmx dot de

Description:

The new per-class constants, introduced in PHP 5, don't allow to access
array indizes.
If I define an array as a constant of a class and try to access the
first index of this constant for example, the Zend Engine 2 gives a
parse error.
Only index access on a variable, that points to this constant, works.

Reproduce code:
---
Class Example {
  const CATEGORIES = array('a', 'b');
}

$c=Example::CATEGORIES;
echo $c[0] . "\n";
echo Example::CATEGORIES[1] . "\n";


Expected result:

a
b


Actual result:
--
PHP Parse error:  parse error, unexpected '[' in example.php on line 8





-- 
Edit this bug report at http://bugs.php.net/?id=24569&edit=1



#24652 [Asn->Csd]: array keys that are strings but numeric behave incorrectly

2003-08-04 Thread zeev
 ID:   24652
 Updated by:   [EMAIL PROTECTED]
 Reported By:  tater at potatoe dot com
-Status:   Assigned
+Status:   Closed
 Bug Type: Zend Engine 2 problem
 Operating System: *
 PHP Version:  5CVS-2003-07-14 (dev)
 Assigned To:  sterling
 New Comment:

This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:


[2003-07-17 23:07:57] [EMAIL PROTECTED]

The OS is irrelevant.
This simple script shows that there indeed is a bug:

 0);
  var_dump($f);
  var_dump(array_key_exists(7, $f));
  var_dump(array_key_exists('7', $f));

  /* This doesn't */
  $f = array_flip(array('7'));
  var_dump($f);
  var_dump(array_key_exists(7, $f));
  var_dump(array_key_exists('7', $f));
?>

Result with PHP 4.3.3RC2-dev:
-
array(1) {
  [7]=>
  int(0)
}
bool(true)
bool(true)
array(1) {
  [7]=>
  int(0)
}
bool(true)
bool(true)

Result with PHP 5.0.0b2-dev:
-
array(1) {
  [7]=>
  int(0)
}
bool(true)
bool(true)
array(1) {
  ["7"]=>
  int(0)
}
bool(false)
bool(false)

Assigning to Sterling who broke it. :)




[2003-07-14 16:53:10] tater at potatoe dot com

Description:

This is really bug #23935, but that's marked 'Closed' and I am still
seeing the problem in the current PHP5 code. It's beyond array_flip(),
too, strictly. I first saw this in $_POST with a field named
"myfield[1]" - this comes through as $_POST["myfield"]["1"]. Same with
array_combine() using array("1") as the key array.

Reproduce code:
---
submit a form with hidden field named 'myfield[1]':




test ", $tick++, ":\n";
var_dump($a, array_key_exists(key($a), $a), empty($a[1]),
empty($a['1']));
}
testit(array("1"=>"1"));
testit(array_flip(array(1=>"1")));
testit(array_combine(array('1'),array('1')));
if (!empty($_POST['myfield'])) { testit($_POST['myfield']); }
?>

Expected result:

Output for test 2 on PHP 4.3.3RC1 (cli) (built: Jun 20 2003 23:09:34)
(DEBUG):

array(1) {
  [1]=>
  int(1)
}
bool(true)
bool(false)
bool(false)

Actual result:
--
Output for test 2 on PHP 5.0.0b2-dev (cli) (built: Jul 14 2003
14:14:54) (DEBUG):

array(1) {
  ["1"]=>
  int(1)
}
bool(false)
bool(true)
bool(true)





-- 
Edit this bug report at http://bugs.php.net/?id=24652&edit=1



#24658 [Ver->Csd]: class hints with array_walk() causing crash

2003-08-04 Thread zeev
 ID:   24658
 Updated by:   [EMAIL PROTECTED]
 Reported By:  eric at cosky dot com
-Status:   Verified
+Status:   Closed
 Bug Type: Zend Engine 2 problem
 Operating System: irrelevant
 PHP Version:  5CVS-20030718
 New Comment:

This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:


[2003-07-18 00:08:22] [EMAIL PROTECTED]

Backtrace:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (runnable)]
0x817b4fc in zend_assign_to_variable_reference (result=0x4029dee0,
variable_ptr_ptr=0x4029a940, 
value_ptr_ptr=0x4028f9d8, Ts=0x0) at
/usr/src/web/php/php5/Zend/zend_execute.c:238
238 T(result->u.var).var.ptr_ptr =
variable_ptr_ptr;
(gdb) bt
#0  0x817b4fc in zend_assign_to_variable_reference (result=0x4029dee0,
variable_ptr_ptr=0x4029a940, 
value_ptr_ptr=0x4028f9d8, Ts=0x0) at
/usr/src/web/php/php5/Zend/zend_execute.c:238
#1  0x8197be9 in zend_recv_handler (execute_data=0xbfffccec,
op_array=0x8244858)
at /usr/src/web/php/php5/Zend/zend_execute.c:2988
#2  0x817e77e in execute (op_array=0x8244858) at
/usr/src/web/php/php5/Zend/zend_execute.c:1194
#3  0x815c0f1 in fast_call_user_function (function_table=0x81e9c78,
object_pp=0x0, function_name=0x4029cec4, 
retval_ptr_ptr=0xbfffce44, param_count=3, params=0xbfffce5c,
no_separation=0, symbol_table=0x0, 
function_pointer=0x81e516c) at
/usr/src/web/php/php5/Zend/zend_execute_API.c:693
#4  0x80cc434 in php_array_walk (target_hash=0x4029cd1c,
userdata=0x4028f9cc, recursive=0)
at /usr/src/web/php/php5/ext/standard/array.c:990
#5  0x80cc5ff in zif_array_walk (ht=3, return_value=0x4029cf24,
this_ptr=0x0, return_value_used=0)
at /usr/src/web/php/php5/ext/standard/array.c:1045
#6  0x8195cdf in zend_do_fcall_common_helper (execute_data=0xbfffd03c,
op_array=0x4029dc84)
at /usr/src/web/php/php5/Zend/zend_execute.c:2634
#7  0x8196384 in zend_do_fcall_handler (execute_data=0xbfffd03c,
op_array=0x4029dc84)
at /usr/src/web/php/php5/Zend/zend_execute.c:2763
#8  0x817e77e in execute (op_array=0x4029dc84) at
/usr/src/web/php/php5/Zend/zend_execute.c:1194
#9  0x8195dd1 in zend_do_fcall_common_helper (execute_data=0xbfffd28c,
op_array=0x4029a8b4)
at /usr/src/web/php/php5/Zend/zend_execute.c:2661
#10 0x8196128 in zend_do_fcall_by_name_handler
(execute_data=0xbfffd28c, op_array=0x4029a8b4)
at /usr/src/web/php/php5/Zend/zend_execute.c:2732
#11 0x817e77e in execute (op_array=0x4029a8b4) at
/usr/src/web/php/php5/Zend/zend_execute.c:1194
#12 0x816589f in zend_execute_scripts (type=8, retval=0x0,
file_count=3) at /usr/src/web/php/php5/Zend/zend.c:1017
#13 0x8133255 in php_execute_script (primary_file=0xb628) at
/usr/src/web/php/php5/main/main.c:1695
#14 0x81a1614 in main (argc=2, argv=0xb694) at
/usr/src/web/php/php5/sapi/cli/php_cli.c:910
#15 0x401b19cb in __libc_start_main (main=0x81a099c , argc=2,
argv=0xb694, init=0x806a744 <_init>, 
fini=0x81a1fe4 <_fini>, rtld_fini=0x4000aea0 <_dl_fini>,
stack_end=0xb68c)
at ../sysdeps/generic/libc-start.c:92




[2003-07-15 01:09:40] eric at cosky dot com

Description:

The following code crashes my install of PHP from July 13, 2003.
Removing the class hint in BoomWalker eliminates the crash.

Reproduce code:
---
class SomeClass {}
class CrashClass {
function Boom()
{
$a = array( 0,1,2 );
array_walk(&$a, "BoomWalker", &$this);
}
}
function BoomWalker(SomeClass &$arrayItem, &$key, &$crashObj) {}
$c = new CrashClass;
$c->Boom();


Expected result:

Nothing.

Actual result:
--
System alert for PHP crashing.





-- 
Edit this bug report at http://bugs.php.net/?id=24658&edit=1



#24884 [Ver->Csd]: calling $this->__clone(); crashes php

2003-08-04 Thread stas
 ID:   24884
 Updated by:   [EMAIL PROTECTED]
 Reported By:  auroraeosrose at hotmail dot com
-Status:   Verified
+Status:   Closed
 Bug Type: Zend Engine 2 problem
 Operating System: *
 PHP Version:  5CVS-2003-08-02 (dev)
 New Comment:

This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:


[2003-08-01 20:48:06] [EMAIL PROTECTED]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (runnable)]
0x8381fd4 in zend_clone_handler (execute_data=0xbfffd1ec,
op_array=0x41c760b0)
at /usr/src/web/php/php5/Zend/zend_execute.c:3042
3042if (Z_TYPE_P(obj) != IS_OBJECT) {
(gdb) bt
#0  0x8381fd4 in zend_clone_handler (execute_data=0xbfffd1ec,
op_array=0x41c760b0)
at /usr/src/web/php/php5/Zend/zend_execute.c:3042
#1  0x837b22b in execute (op_array=0x41c760b0) at
/usr/src/web/php/php5/Zend/zend_execute.c:1199
#2  0x8380278 in zend_do_fcall_common_helper (execute_data=0xbfffd4dc,
op_array=0x41c72d60)
at /usr/src/web/php/php5/Zend/zend_execute.c:2529
#3  0x83806ee in zend_do_fcall_by_name_handler
(execute_data=0xbfffd4dc, op_array=0x41c72d60)
at /usr/src/web/php/php5/Zend/zend_execute.c:2602
#4  0x837b22b in execute (op_array=0x41c72d60) at
/usr/src/web/php/php5/Zend/zend_execute.c:1199
#5  0x835a174 in zend_execute_scripts (type=8, retval=0x0,
file_count=3) at /usr/src/web/php/php5/Zend/zend.c:1032
#6  0x8313b6e in php_execute_script (primary_file=0xb870) at
/usr/src/web/php/php5/main/main.c:1573
#7  0x83959df in main (argc=3, argv=0xb8e4) at
/usr/src/web/php/php5/sapi/cli/php_cli.c:910
#8  0x4055b9cb in __libc_start_main (main=0x8394c04 , argc=3,
argv=0xb8e4, init=0x80b5b6c <_init>, 
fini=0x84f3f94 <_fini>, rtld_fini=0x4000aea0 <_dl_fini>,
stack_end=0xb8dc)
at ../sysdeps/generic/libc-start.c:92




[2003-07-31 09:40:19] auroraeosrose at hotmail dot com

Description:

calling $this->__clone(); inside a class crashes php

Latest CVS snapshot, apache 2 filter, gd, mbstring, and mysql dlls

Reason for calling it is attempting to create a backward compatible
solution for cloning objects without a 5 ini setting change or seperate
4 and 5 codebases

Reproduce code:
---
__clone();
}
}
}
$test = new Test();
$test2 = $test->__copy();
?>

Expected result:

If using php4, a copy of the object will be returned, if using php5,
the current object should be cloned and returned.

Actual result:
--
php and apache die
actually calling $this->__clone(); anywhere in a class crashes  





-- 
Edit this bug report at http://bugs.php.net/?id=24884&edit=1



#24882 [Fbk->Csd]: Failed opening phpinfo.php ... in Unknown on line 0

2003-08-04 Thread mhawkins at ukeu dot com
 ID:   24882
 User updated by:  mhawkins at ukeu dot com
 Reported By:  mhawkins at ukeu dot com
-Status:   Feedback
+Status:   Closed
 Bug Type: iPlanet related
 Operating System: Solaris 8
 PHP Version:  4.3.2
 New Comment:

Looks like it did the trick! Thanks for all your help...


Previous Comments:


[2003-07-31 13:31:05] [EMAIL PROTECTED]

Let us know then if this works / does not work and set the status
accordingly. (open/closed)




[2003-07-31 08:36:14] mhawkins at ukeu dot com

Thanks for the update - I'll try out 4.3.3RC2, and will upgrade to
4.3.3 when it's released, if it fixes this.



[2003-07-31 08:21:27] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

This is a Solaris problem. It is fixed by the fd-lexer-patch which is
included in PHP 4.3.3. If you do not want to use the latest snapshot,
you can use PHP4.3.3 RC2, which you can download from PHP homepage.
Please read the nsapi-readme.txt before installing because the NSAPI
module was improved in this version, too.



[2003-07-31 08:16:02] mhawkins at ukeu dot com

Description:

PHP works fine for a period, then fails on all php pages with the below
error. This sometimes resolves itself after a few minutes, or sometimes
is resolved by restarting the httpd. This occurs regardless of whether
the php files are local or stored on nfs, so isn't a local network
issue. This occurs intermittantly (and at different times) across two
identically configured webservers. 

No changes to the php.ini have been made. Both webservers are under a
very minimal load, and there are no cpu/memory/disk usage concerns. As
far as I can tell, the file permissions in /opt/sunone/es/bin and
/usr/local/php/lib/php are correct and unchanging, and the webservers
have read or read/write permissions to all the required files.

Please email me if more information is required.

Previous Bugs (both seem to be the same error as this):

  #12995
  #7163

Platform:

  Solaris 8 (sparc)
  SunONE Webserver 6.0 sp5 (AKA iplanet/netscape)
  PHP 4.3.2
  GCC 2.95.3

Error output (displayed in browser):

  Warning: (null)(): Failed opening
'/opt/sunone/es/docs/live/phpinfo.php' for inclusion
(include_path='.:/usr/local/php/lib/php') in Unknown on line 0

phpinfo.php:

  

configure:

  ./configure --prefix=/usr/local/php --with-mysql=/usr/local/mysql
--with-nsapi=/opt/sunone/es --enable-track-vars --enable-libgcc

obj.conf (extract):

  
  ...
  Service fn="php4_execute" type="magnus-internal/x-httpd-php"
  ...
  

  
  ObjectType fn="force-type" type="magnus-internal/x-httpd-php"
  Service fn="php4_execute"
  

magnus.conf (extract):

  StackSize 131072
  Init fn="load-modules"
funcs="php4_init,php4_close,php4_execute,php4_auth_trans"
shlib="/opt/sunone/es/bin/libphp4.so"
  Init fn=php4_init errorString="Failed to initialize PHP!"







-- 
Edit this bug report at http://bugs.php.net/?id=24882&edit=1



#24899 [Fbk->Opn]: errors compiling whith sybase

2003-08-04 Thread ejantos at yahoo dot com
 ID:   24899
 User updated by:  ejantos at yahoo dot com
 Reported By:  ejantos at yahoo dot com
-Status:   Feedback
+Status:   Open
 Bug Type: Sybase (dblib) related
 Operating System: redhat 9.0
 PHP Version:  4.3.2
 New Comment:

hello,

i  removed the configure flag --enable-ctype and i added
--disable-ctype flag to the configure line but i got 
the same results as before.
i tryed mith php-4.3.0, php-4.3.1 and php-4.3.2 but i got 
the same error messages when compiling it with sybase-11.9.2.
 



opt/sybase-11.9.2/lib/libsybdb.so: undefined reference to `__ctype_b'
/opt/sybase-11.9.2/lib/libsybdb.so: undefined reference to
`__ctype_tolower'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1


Previous Comments:


[2003-08-02 15:01:59] [EMAIL PROTECTED]

Try adding --disable-ctype flag to your configure line and see if that
resolves the problem.



[2003-08-01 02:34:45] ejantos at yahoo dot com

Description:

Hello,

i'm trying to install php with sybase but i always get 
errors. what should i do?

thanks in advance.
tomio

when i compile it i get this errors:

/opt/sybase-11.9.2/lib/libsybdb.so: undefined reference to `__ctype_b'
/opt/sybase-11.9.2/lib/libsybdb.so: undefined reference to
`__ctype_tolower'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1


my configuration:
./configure \
 --prefix=/usr/local/apache/httpd_1.3.28/php4 \
 --with-apxs=/usr/local/apache/httpd_1.3.28/bin/apxs \
 --disable-debug --enable-tracks-vars --enable-libgcc --enable-EAPI
--enable-bcmath \
 --with-tsrm-pthreads --enable-calendar --enable-ccvs --enable-cdb
--enable-cpdflib --enable-ctype \
 --enable-curl --enable-dba=shared --enable-dbase --enable-dbx
--enable-dom --enable-exif --enable-ftp \
 --enable-gd --enable-gdbm --enable-gettext --enable-hyperwave
--enable-icap --enable-imap --enable-imap-ssl \
 --enable-jpeg-dir --enable-kerberos --enable-mailparse
--enable-magic-quotes --enable-mbstring \
 --enable-mcal --enable-mcrypt --enable-mhash --enable-pdflib \
 --enable-shmop --enable-sigchild --enable-snmp --enable-sysvsem
--enable-sysvshm \
 --with-pgsql=/usr \
 --enable-tiff-dir --enable-trans-sid --enable-ttf --enable-unixODBC
--enable-wddx \
 --with-gmp --with-mysql=/usr \
 --with-openssl=/usr --with-xml --enable-t1lib --with-t1lib=/usr/local
--with-jpeg-dir=/usr/local \
 --with-gd=/usr/local --enable-gd-native-ttf --enable-gd-imgstrttf \
 --with-freetype-dir=/usr/local \
 --enable-xpm --with-xpm-dir=/usr/X11R6 \
 --with-png-dir=/usr/local --enable-png \
 --enable-zlib --with-zlib-dir=/usr --enable-sockets \
 --with-mm=/usr/local --with-bz2\
 --enable-mbstr-enc-trans --enable-mbstring --enable-dbx --enable-dio
\
 --with-sybase=/opt/sybase-11.9.2







-- 
Edit this bug report at http://bugs.php.net/?id=24899&edit=1



#24282 [Com]: Strange Open Base Dir Restriction Errors

2003-08-04 Thread fs at nessus dot at
 ID:   24282
 Comment by:   fs at nessus dot at
 Reported By:  matzrek at shw-networks dot de
 Status:   Open
 Bug Type: Apache related
 Operating System: Suse Linux 8.2 / Apache 1.3.27
 PHP Version:  4.3.2
 New Comment:

I have the same problem with version 4.3.2 under redhat 7.2 and apache
1.3.27. but i could recognize that the last request on the webserver
what a request in the path /webs/web70, the path where the error
occours...

Warning: Unknown(): open_basedir restriction in effect.
File(/webs/web20/html/produkte/index.php) is not within the allowed
path(s): (/webs/web70/) in Unknown on line 0

Warning: Unknown(/webs/web20/html/produkte/index.php): failed to open
stream: Operation not permitted in Unknown on line 0

Warning: (null)(): Failed opening '/webs/web20/html/produkte/index.php'
for inclusion (include_path='.:/usr/local/lib/php') in Unknown on line
0

my php.ini:

[PHP]

safe_mode = Off
safe_mode_gid = True
register_globals = On
expose_php = Off
magic_quotes_gpc = On
enable_dl = On
max_execution_time = 60
post_max_size = 15M
upload_max_size = 15M

and the vhost where the error occurs:

NameVirtualHost 80.252.42.2:80
php_admin_flag safe_mode On
php_admin_value safe_mode_exec_dir /webs/empty


ServerName www.server.at
ServerAlias  server1.at server2.at
DocumentRoot /webs/web20/html
User web20
Group somegroup
ScriptAlias /cgi-bin/ /webs/web20/html/cgi-bin/
php_admin_value open_basedir /webs/web20/
php_admin_value upload_tmp_dir /webs/web20/phptmp/


i hope i could help you to find this bug.

greetings,

Florian Schicker
www.nessus.at


Previous Comments:


[2003-08-02 18:27:26] matzrek at shw-networks dot de

Setting an empty open Basedir doesnt help. The only Solution at the
moment is to activate teh safemode for the vhost.



[2003-07-29 07:25:46] [EMAIL PROTECTED]

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.





[2003-07-24 20:59:15] [EMAIL PROTECTED]

If you set an empty open_basedir for virtual host 'a', does the problem
go away?



[2003-06-24 13:01:21] matzrek at shw-networks dot de

the error happend at two different configurations :

a)

ServerAdmin [EMAIL PROTECTED]
ServerName www.shw-network.de
ServerAlias shw-network.de
ServerAlias www.shw-networks.de
ServerAlias shw-networks.de
DocumentRoot /home/shw-network.de/htdocs
ErrorLog /home/shw-network.de/log/error_log.log
CustomLog /home/shw-network.de/log/access_log.log combined
CustomLog /var/log/httpd/access_log.log combined


an b ) 


ServerAdmin [EMAIL PROTECTED]
DocumentRoot /home/cusomerdomain.de/htdocs/admin
ServerName admin.cusomerdomain.de
ServerAlias www.cusomerdomain.de
ServerAlias cusomerdomain.de
ErrorLog /home/cusomerdomain.de/log/error_log.log
CustomLog /home/cusomerdomain.de/log/access_log.log combined
CustomLog /var/log/httpd/access_log.log combined
php_admin_flag safe_mode off
php_admin_value open_base_dir "/home/cusomerdomain.de"
php_admin_value safe_mode_exec_dir /bin


if the error happens or not seems to depend on the apache process wich
handles the request.

The Apache uptime may also have some effect - it did not happen,
directly after an apache restart.



[2003-06-23 21:48:57] [EMAIL PROTECTED]

Do you set open_basedir in every vhost? 
What is open_basedir set to in your php.ini?

What exactly is the open_basedir line like in your httpd.conf for the
vhost you get this everytime for the first page request? Do you set any
other php ini options there?

Do any .htaccess files set any php ini options?




The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/24282

-- 
Edit this bug report at http://bugs.php.net/?id=24282&edit=1



#24870 [Asn->Opn]: Pear segfaults on install-pear-installer (db_open symbol conflicts?)

2003-08-04 Thread cox
 ID:   24870
 Updated by:   [EMAIL PROTECTED]
 Reported By:  jbyrne at thegrid dot net
-Status:   Assigned
+Status:   Open
-Bug Type: PEAR related
+Bug Type: Compile Failure
 Operating System: linux x86
 PHP Version:  4.3.2
 Assigned To:  cox


Previous Comments:


[2003-07-30 08:30:02] jbyrne at thegrid dot net

Description:

install-pear-installer segfaults on linux x86 system (gcc-2.95.3,
glibc-2.95.3, slackware, etc...); appears to be symbol conflict issue
with db_open.

./configure --prefix=/inst/pkg-ver/`basename $PWD` \
--with-apache=../apache_1.3.28 \ --with-openssl=/inst/pkg/openssl \
--with-zlib \
--with-bz2 \
--with-jpeg-dir=/inst/pkg/jpeg \
--with-tiff-dir=/inst/pkg/tiff \
--with-curl=/inst/pkg/curl \
--with-db4=/inst/pkg/db \
--with-dom=/inst/pkg/libxml2 \ --with-dom-xslt=/inst/pkg/libxslt \
--with-dom-exslt=/inst/pkg/libxslt \
--enable-exif \
--with-gd=/inst/pkg/gd \
--with-png-dir=/inst/pkg/libpng \
--with-freetype-dir=/inst/pkg/freetype2 \
--enable-gd-native-ttf \
--with-iconv=/inst/pkg/libiconv \
--with-imap=/inst/pkg/imap \
--with-kerberos=/inst/pkg/krb5 \
--with-imap-ssl=/inst/pkg/openssl \
--with-java=/inst/pkg/j2sdk \
--with-ldap=/inst/pkg/openldap \
--with-mysql=/inst/pkg/mysql \
--with-mm=/inst/pkg/mm \
--with-snmp=/inst/pkg/net-snmp \ --with-pdflib=/inst/pkg/pdflib \
--with-xmlrpc \
--with-expat-dir=/inst/pkg/expat \ --with-iconv-dir=/inst/pkg/libiconv
\
--with-pcre-regex=/inst/pkg/pcre


(gdb) file sapi/cli/php
Reading symbols from sapi/cli/php...done.
(gdb) run pear/install-pear.php pear/package-*.xml
Starting program: /home/admin/php-4.3.2/sapi/cli/php
pear/install-pear.php pear/
package-*.xml
[New Thread 1024 (LWP 25814)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 25814)]
0x0 in __strtol_internal (nptr=0x409e70cd "/var/db/services.db",
endptr=0x1, 
base=16, group=0) at eval.c:35
35  eval.c: No such file or directory.
(gdb) bt
#0  0x0 in __strtol_internal (nptr=0x409e70cd "/var/db/services.db", 
endptr=0x1, base=16, group=0) at eval.c:35
#1  0x409e6e1e in db_open () from /lib/libnss_db.so.2
#2  0x409e6ed0 in internal_setent () from /lib/libnss_db.so.2
#3  0x409e662e in _nss_db_endservent () from /lib/libnss_db.so.2
#4  0x409e68c3 in _nss_db_getservbyname_r () from /lib/libnss_db.so.2
#5  0x409ab733 in __getservbyname_r (name=0x408beb84 "snmp", 
proto=0x408beb80 "udp", resbuf=0x409deb7c, buffer=0x82730e0 "", 
buflen=1024, result=0xb5d8) at ../nss/getXXbyYY_r.c:200
#6  0x409ab5e1 in getservbyname (name=0x408beb84 "snmp", 
proto=0x408beb80 "udp") at ../nss/getXXbyYY.c:145
#7  0x40882cbe in _init_snmp () at snmp_api.c:645
#8  0x408832ce in init_snmp (type=0x81c469f "snmpapp") at
snmp_api.c:770
#9  0x80cef23 in zm_startup_snmp (type=1, module_number=5)
at /home/admin/php-4.3.2/ext/snmp/snmp.c:164
#10 0x8150c22 in zend_startup_module (module=0x823da80)
at /home/admin/php-4.3.2/Zend/zend_API.c:1005
#11 0x812b4bf in php_startup_extensions (ptr=0x8246f50, count=23)
at /home/admin/php-4.3.2/main/main.c:1033
#12 0x8165365 in php_startup_internal_extensions ()
at main/internal_functions_cli.c:95
#13 0x812b8c5 in php_module_startup (sf=0x8246ec0,
additional_modules=0x0, 
num_additional_modules=0) at
/home/admin/php-4.3.2/main/main.c:1200
#14 0x816482a in main (argc=5, argv=0xb8d4)
at /home/admin/php-4.3.2/sapi/cli/php_cli.c:520
#15 0x408ed2eb in __libc_start_main (main=0x8164700 , argc=5, 
ubp_av=0xb8d4, init=0x80777fc <_init>, fini=0x81b743c <_fini>,

rtld_fini=0x4000c130 <_dl_fini>, stack_end=0xb8cc)
at ../sysdeps/generic/libc-start.c:129







-- 
Edit this bug report at http://bugs.php.net/?id=24870&edit=1



#24831 [Ver->Csd]: Memory Leak

2003-08-04 Thread stas
 ID:   24831
 Updated by:   [EMAIL PROTECTED]
 Reported By:  cunha17 at uol dot com dot br
-Status:   Verified
+Status:   Closed
 Bug Type: Zend Engine 2 problem
 Operating System: Linux 2.4.20 (Redhat 9)
 PHP Version:  5.0.0b2-dev
 New Comment:

This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:


[2003-08-03 15:05:53] cunha17 at uol dot com dot br

With the latest CVS there is no memory leaks anymore, but I got core
dumped at the end of script execution.



[2003-07-28 20:28:31] [EMAIL PROTECTED]

I must have had --enable-debug missing in my last build, now I got the
same leaks.




[2003-07-27 14:57:31] cunha17 at uol dot com dot br

Description:

This small OO script gives some memory leaks.


Reproduce code:
---
class ReleaseInfo
{
const NAME_LONG = "PHPORB";
const NAME_SHORT= "orb";
const VERSION_MAJOR = 0;
const VERSION_MINOR = 1;
const VERSION_MINOR_CHANGE  = 0;
const VERSION   = "" . VERSION_MAJOR . "." .
VERSION_MINOR . "." . VERSION_MINOR_CHANGE;

const SPEC_VERSION_MAJOR= 2;
const SPEC_VERSION_MINOR= 4;
const SPEC_VERSION_MINOR_CHANGE = 2;
const SPEC_VERSION  = "" . SPEC_VERSION_MAJOR . "." .
SPEC_VERSION_MINOR . "." . SPEC_VERSION_MINOR_CHANGE;

const RELEASE   = NAME_LONG . " Version " .
VERSION;
const RELEASE_TAG   = NAME_LONG . "_" . VERSION_MAJOR .
"_" . VERSION_MINOR . "_" . VERSION_MINOR_CHANGE;

public static function main($args)
{
echo NAME_LONG . ":";
echo "\t" . NAME_LONG . " " . VERSION;
echo "\t" . RELEASE_TAG;
echo "\tCORBA/IIOP " . SPEC_VERSION . "
(http://www.omg.org/cgi-bin/doc?formal/01-02-01)";
}
}


Expected result:

Nothing to the standard output and no memory leaks.

Actual result:
--
/usr/src/zend2/php5-200307262130/Zend/zend_operators.c(1087) :  Freeing
0x4070AE7C (12 bytes), script=org/openorb/ReleaseInfo.php
Last leak repeated 13 times
Zend/zend_language_scanner.c(4497) :  Freeing 0x4070AE40 (2 bytes),
script=org/openorb/ReleaseInfo.php
Last leak repeated 9 times
Zend/zend_language_scanner.c(4350) :  Freeing 0x4070ADB8 (14 bytes),
script=org/openorb/ReleaseInfo.php
Last leak repeated 11 times
/usr/src/zend2/php5-200307262130/Zend/zend_compile.c(2524) :  Freeing
0x4070AA80 (6 bytes), script=org/openorb/ReleaseInfo.php
/usr/src/zend2/php5-200307262130/Zend/zend_variables.c(111) : Actual
location (location was relayed)
Last leak repeated 2 times






-- 
Edit this bug report at http://bugs.php.net/?id=24831&edit=1



#13966 [Com]: insert id function for ODBC

2003-08-04 Thread seang at moosecat dot com dot au
 ID:   13966
 Comment by:   seang at moosecat dot com dot au
 Reported By:  john at mailsrv dot bidbay dot com
 Status:   No Feedback
 Bug Type: Feature/Change Request
 Operating System: all OSes
 PHP Version:  4.0.6
 New Comment:

I have something like this when using odbc for MS SQL - apparently
works for access 2000 too.


$temp = odbc_exec($conn, "SET NOCOUNT ON"); 

$result = odbc_exec($conn,$sql);

$result = odbc_exec($conn, "SELECT @"."@IDENTITY AS Ident");

$rc = odbc_fetch_into($result, $row);
echo "Array value :".var_dump($row)."";
echo "Getting record id :".$row[0]."";

Hope that helps I know I have searched for this quite a few times

seang.


Previous Comments:


[2003-05-12 07:17:46] nospam at nospam dot com

he means a function like mysql_insert_id
which return the last ID ( auto_increment ) of insert query



[2002-09-11 01:00:02] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".



[2002-08-10 18:23:54] [EMAIL PROTECTED]

What do you mean by id?




[2001-11-06 18:55:58] john at mailsrv dot bidbay dot com

is it possible to get a function like:

odbc_insert_id()

??

i'm guessing this might cause a problem..  not being able to support
some dbs.  but it would be nice for those dbs that do support it.  or
is there already a way to do this that i've just missed in the doc
somewhere.

thanks!

John







-- 
Edit this bug report at http://bugs.php.net/?id=13966&edit=1



#24842 [Opn->Csd]: Corrupted memory/segfault when using destructors

2003-08-04 Thread stas
 ID:   24842
 Updated by:   [EMAIL PROTECTED]
 Reported By:  vma1 at abv dot bg
-Status:   Open
+Status:   Closed
 Bug Type: Zend Engine 2 problem
 Operating System: Slackware Linux 9.0
 PHP Version:  5CVS-2003-07-28 (dev)
 New Comment:

This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.

commited that


Previous Comments:


[2003-07-30 00:07:41] vma1 at abv dot bg

I found the cause of the bug and posted a patch here:

http://marc.theaimsgroup.com/?l=php-dev&m=105954149002987&w=2



[2003-07-29 07:00:29] vma1 at abv dot bg

[EMAIL PROTECTED]:~# gcc --version
gcc (GCC) 3.2.2
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.

[EMAIL PROTECTED]:~# ls -la /lib/libc*
-rwxr-xr-x1 root root  1435624 Mar  5 05:57
/lib/libc-2.3.1.so*
lrwxrwxrwx1 root root   13 Jun  3 21:23 /lib/libc.so.6
-> libc-2.3.1.so*

[EMAIL PROTECTED]:~# ldd /usr/src/php5-200307280930/sapi/cli/php
libcrypt.so.1 => /lib/libcrypt.so.1 (0x4001d000)
libresolv.so.2 => /lib/libresolv.so.2 (0x4004b000)
libm.so.6 => /lib/libm.so.6 (0x4005c000)
libdl.so.2 => /lib/libdl.so.2 (0x4007f000)
libnsl.so.1 => /lib/libnsl.so.1 (0x40082000)
libz.so.1 => /usr/lib/libz.so.1 (0x40097000)
libxml2.so.2 => /usr/lib/libxml2.so.2 (0x400a4000)
libc.so.6 => /lib/libc.so.6 (0x4019)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x4000)

As far as I can remember everything is standard from the Slackware 9.0
distribution. The machine runs stable under heavy load so I doubt it's
a hardware problem. I'll check where the problem is, anyway, cause it
is critical for me.



[2003-07-29 06:44:41] [EMAIL PROTECTED]

Also tested with the CGI, can't reproduce this with it either. And
neither could anybody else reproduce this (whom I asked). So are you
sure there is a bug? And not just something wrong with your system?
Which GCC are you using?
What glibc do you have?




[2003-07-29 06:34:28] vma1 at abv dot bg

"php -n bug.php" gives the same script output, including the segfault.
The only difference are the HTTP headers in the beginning, because of
the missing -f option.
I started digging into the PHP code, so I'll post a patch when/if I
correct the bug.



[2003-07-29 06:06:36] [EMAIL PROTECTED]

I'm still unable to reproduce this, can you try running
the script with this command:

# sapi/cli/php -n test.php

(to make it ignore any php.ini you have..)




The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/24842

-- 
Edit this bug report at http://bugs.php.net/?id=24842&edit=1



#24932 [NEW]: pg_lo_read_all returns a modified large object from database

2003-08-04 Thread leitgebj at barada dot canisius dot edu
From: leitgebj at barada dot canisius dot edu
Operating system: Mac OS X Darwin Kernel 6.3
PHP version:  4.3.2
PHP Bug Type: PostgreSQL related
Bug description:  pg_lo_read_all returns a modified large object from database

Description:

When a PG large object is returned to the web browser from the database
using pg_lo_read_all(db resource, object id) the returned object is
modified as shown by the unix command cmp.

bash-2.05a$ cmp kat_y_justin.jpg kat_y_justin_dl.jpg 
kat_y_justin.jpg kat_y_justin_dl.jpg differ: char 1, line 1

File sizes are different but not drastically (between original and
downloaded object).  Size is field number 1 below:

30877 Aug  3 14:37 kat_y_justin.jpg
30884 Aug  3 15:15 kat_y_justin_dl.jpg

Reproduce code:
---
function send_object() {
   $db = do_db_connect();
   cdb_query($db, "begin");
   $res = pg_lo_open($db, $_POST['object_id'], 'r');
   header("Content-type: " . $_POST['file_type']);
   header("Content-Disposition: file; filename=" .   
   $_POST['filename']);
   header("Content-Transfer-Encoding: binary");
   pg_lo_read_all($res);
   pg_lo_close($res);
   cdb_query($db, "end");
   exit();
}

cdb_query(db resource, string) is just a SQL wrapper function.

Expected result:

The same large object (which can be retrieved by using command line psql)
should be returned to browser.

Actual result:
--
A modified file is returned to the browser.

-- 
Edit bug report at http://bugs.php.net/?id=24932&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=24932&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=24932&r=trysnapshot5
Fixed in CVS:   http://bugs.php.net/fix.php?id=24932&r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=24932&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24932&r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=24932&r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=24932&r=support
Expected behavior:  http://bugs.php.net/fix.php?id=24932&r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=24932&r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=24932&r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=24932&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24932&r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=24932&r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=24932&r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=24932&r=gnused



#24924 [Bgs]: timeout don't work - URGENT ISSUE

2003-08-04 Thread gdoroftei at sicme dot ro
 ID:   24924
 User updated by:  gdoroftei at sicme dot ro
 Reported By:  gdoroftei at sicme dot ro
 Status:   Bogus
 Bug Type: Sockets related
 Operating System: RedHat 8
 PHP Version:  4.3.3RC2
 New Comment:

I did that, the same problem.
After few sites, the script is blocked.
thanks.


Previous Comments:


[2003-08-03 14:24:08] [EMAIL PROTECTED]

Timeout is the 5th parameter of fsockopen, see
.



[2003-08-03 13:24:05] gdoroftei at sicme dot ro

Description:

Hi,

I use fsockopen to query a list of sites. I wish that script to
continue when the connection can't be made (after a give TIMEOUT).
I had tryed the last RC but no success.
question: if connection isn't made the script will continue after that
TIMEOUT?
Thanks.

Reproduce code:
---
$this->TIMEOUT = 10;

This line is used in a while().

$ptr = @fsockopen($server,$this->PORT,$this->TIMEOUT);


Actual result:
--
When the site is down or the connection can't be made the script is
blocked. No error, nothing.






-- 
Edit this bug report at http://bugs.php.net/?id=24924&edit=1



#24916 [Fbk->Opn]: IIS6.0 & CGI PHP header()

2003-08-04 Thread sadun at isikun dot org
 ID:   24916
 User updated by:  sadun at isikun dot org
 Reported By:  sadun at isikun dot org
-Status:   Feedback
+Status:   Open
 Bug Type: IIS related
 Operating System: Windows Server 2003
 PHP Version:  4.3.2
 New Comment:

HERE ARE THE HEADERS:


--
index.php WITH LOGIN FORM:
--

(Request Method)GET / HTTP/1.1
Accept  image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-powerpoint, application/vnd.ms-excel,
application/msword, application/x-shockwave-flash, */*
Accept-Language tr
Accept-Encoding gzip, deflate
User-Agent  Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR
1.1.4322)
Hostwebgroup.isikun.edu.tr

--
AFTER SUBMITING POST FORM:
--

(Request Method)POST /main.php HTTP/1.1
Accept  image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-powerpoint, application/vnd.ms-excel,
application/msword, application/x-shockwave-flash, */*
Referer http://webgroup.isikun.edu.tr
Accept-Language tr
Content-Typeapplication/x-www-form-urlencoded
Accept-Encoding gzip, deflate
User-Agent  Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR
1.1.4322)
Hostwebgroup.isikun.edu.tr
Content-Length  52
Connection  Keep-Alive
Cache-Control   no-cache
Cookie  PHPSESSID=67488994c4c4884b3f241c852f4a0978;
student_session_id=0; screen_resolution_width=1024


---

now i gonna try 4.3.3 RC2


Previous Comments:


[2003-08-03 13:24:53] [EMAIL PROTECTED]

And try PHP-4.3.3RC2 while you're at it.



[2003-08-02 11:24:26] [EMAIL PROTECTED]

Please reply with all the headers php sends back.



[2003-08-02 08:11:28] sadun at isikun dot org

it was working fine with ISAPI on IIS 6.0

but i need to use like CGI and i faced with CGI Error. i have searched
the net but i can't find anything about it.



[2003-08-02 08:06:02] sadun at isikun dot org

Description:

;changes in php.ini

error_reporting  =  E_ALL & ~E_NOTICE
register_globals = On
include_path = ".;W:\wwwroot\includes"
extension_dir = "W:\php\extensions"
cgi.force_redirect = 0
cgi.redirect_status_env = ENV_VAR_NAME
fastcgi.impersonate = 1
cgi.rfc2616_headers = 1 
upload_tmp_dir = "W:\php\phpupload"

extension=php_mbstring.dll
extension=php_imap.dll
extension=php_gd2.dll

session.save_path = "W:\php\phpsession"
session.auto_start = 1




Reproduce code:
---
Header("Location: Http://".$GLOBALS["HTTP_HOST"]."/main.php?";);

// i checked URL is correct 

Expected result:

redirect to url

Actual result:
--
CGI Error
The specified CGI application misbehaved by not returning a complete
set of, HTTP headers.





-- 
Edit this bug report at http://bugs.php.net/?id=24916&edit=1



#16272 [Com]: SegFault in MySQL

2003-08-04 Thread prog at programmeurs dot fr
 ID:   16272
 Comment by:   prog at programmeurs dot fr
 Reported By:  jweiss at greyzone dot com
 Status:   Closed
 Bug Type: MySQL related
 Operating System: Linux 2.4.x
 PHP Version:  4.1.2
 New Comment:

Hi
The last contrib is the good one. 
Only our machines with MySQL-shared not at the same version as
MySQL-client show the segmentation fault. After the upgrades, all
become fine again.
Many Thanks
( apache 1.3.28 , php 4.3.2 , mysql 4.1 )


Previous Comments:


[2003-03-20 11:00:04] rcarvalho at clix dot pt

Sorry, I meant "libmysqlclient" instead of "libmysql" in the previous
post.



[2003-03-20 10:58:08] rcarvalho at clix dot pt

Hi!

I was having the same problem using MySQL 4.0.12 and PHP 4.2.2.

I figured out I should never made a symlink from
/usr/lib/libmysql.so.10 to the actual file /usr/lib/libmysql.so.12 (the
package required .10 but I only had .12 and I assumed the lib was
pretty much stable and had similar functions than .10).

In fact, after deleting the link and downgrading the
MySQL-shared-4.0.12 to MySQL-shared-3.23 as this package adds the
correct libmysql.so.10, the segmentation faults stopped.

Finnaly, after a few days of zero sized reply, blank pages and apache
slowness, my problem is solved...

Hope this tip helps someone.

Regards,
Raul



[2002-11-15 12:56:09] [EMAIL PROTECTED]

This is fixed in 4.3



[2002-11-15 12:52:42] matteo at albatravel dot it

Same problem:
PHP 4.2.3 compiled from php.net sources
Distro Red Hat 7.3
Dual Intel XEON 1.8GHz
...tons of Segmentation Faults SIG(11)... :(

Any news?
Please, contact me if you have!!!
Everyone of you!

Thank you!



[2002-10-20 17:59:30] shanti at mojo dot cc

hi people,

i cant get a rest .. this issue just took me weeks for now .. is there
some new knowledge around about this BUG? well ist it one .. is it just
bad php-code .. i am totally lost in this issue .. plz anybody gives
more info and a status about this .. i touched this problem using
latest version am xams(.sourgeforge.net) .. its annoying



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/16272

-- 
Edit this bug report at http://bugs.php.net/?id=16272&edit=1



#24916 [Opn]: IIS6.0 & CGI PHP header()

2003-08-04 Thread sadun at isikun dot org
 ID:   24916
 User updated by:  sadun at isikun dot org
 Reported By:  sadun at isikun dot org
 Status:   Open
 Bug Type: IIS related
 Operating System: Windows Server 2003
 PHP Version:  4.3.2
 New Comment:

SORRY PREVIOUS POST IS SEND HEADERS HERE ARE RECEIVED HEADERS
-

--
index.php WITH LOGIN FORM:
--
(Response Status)   HTTP/1.1 200 OK
Cache-Control   no-store, no-cache, must-revalidate, post-check=0,
pre-check=0
Pragma  no-cache
Content-Typetext/html
Expires Thu, 19 Nov 1981 08:52:00 GMT
Server  Microsoft-IIS/6.0
X-Powered-ByPHP/4.3.2
Set-Cookie  PHPSESSID=d67841ed88adca6bc603bd7e480d90ec; path=/
Set-Cookie  student_session_id=0
X-Powered-ByASP.NET
DateMon, 04 Aug 2003 12:53:11 GMT
Connection  close

--
AFTER SUBMITING POST FORM:
--

(Response Status)   HTTP/1.1 502 Bad Gateway
Content-Length  232
Content-Typetext/html
Server  Microsoft-IIS/6.0
X-Powered-ByASP.NET
DateMon, 04 Aug 2003 12:55:10 GMT

---

now i gonna try 4.3.3 RC2


Previous Comments:


[2003-08-04 07:50:14] sadun at isikun dot org

HERE ARE THE HEADERS:


--
index.php WITH LOGIN FORM:
--

(Request Method)GET / HTTP/1.1
Accept  image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-powerpoint, application/vnd.ms-excel,
application/msword, application/x-shockwave-flash, */*
Accept-Language tr
Accept-Encoding gzip, deflate
User-Agent  Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR
1.1.4322)
Hostwebgroup.isikun.edu.tr

--
AFTER SUBMITING POST FORM:
--

(Request Method)POST /main.php HTTP/1.1
Accept  image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-powerpoint, application/vnd.ms-excel,
application/msword, application/x-shockwave-flash, */*
Referer http://webgroup.isikun.edu.tr
Accept-Language tr
Content-Typeapplication/x-www-form-urlencoded
Accept-Encoding gzip, deflate
User-Agent  Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR
1.1.4322)
Hostwebgroup.isikun.edu.tr
Content-Length  52
Connection  Keep-Alive
Cache-Control   no-cache
Cookie  PHPSESSID=67488994c4c4884b3f241c852f4a0978;
student_session_id=0; screen_resolution_width=1024


---

now i gonna try 4.3.3 RC2



[2003-08-03 13:24:53] [EMAIL PROTECTED]

And try PHP-4.3.3RC2 while you're at it.



[2003-08-02 11:24:26] [EMAIL PROTECTED]

Please reply with all the headers php sends back.



[2003-08-02 08:11:28] sadun at isikun dot org

it was working fine with ISAPI on IIS 6.0

but i need to use like CGI and i faced with CGI Error. i have searched
the net but i can't find anything about it.



[2003-08-02 08:06:02] sadun at isikun dot org

Description:

;changes in php.ini

error_reporting  =  E_ALL & ~E_NOTICE
register_globals = On
include_path = ".;W:\wwwroot\includes"
extension_dir = "W:\php\extensions"
cgi.force_redirect = 0
cgi.redirect_status_env = ENV_VAR_NAME
fastcgi.impersonate = 1
cgi.rfc2616_headers = 1 
upload_tmp_dir = "W:\php\phpupload"

extension=php_mbstring.dll
extension=php_imap.dll
extension=php_gd2.dll

session.save_path = "W:\php\phpsession"
session.auto_start = 1




Reproduce code:
---
Header("Location: Http://".$GLOBALS["HTTP_HOST"]."/main.php?";);

// i checked URL is correct 

Expected result:

redirect to url

Actual result:
--
CGI Error
The specified CGI application misbehaved by not returning a complete
set of, HTTP headers.





-- 
Edit this bug report at http://bugs.php.net/?id=24916&edit=1



#24805 [Bgs->Opn]: skip_long_header_sep routine break email

2003-08-04 Thread bobe at phpcodeur dot net
 ID:   24805
 User updated by:  bobe at phpcodeur dot net
 Reported By:  bobe at phpcodeur dot net
-Status:   Bogus
+Status:   Open
 Bug Type: Mail related
 Operating System: Linux
 PHP Version:  4.3.2
 New Comment:

No response ? :(


Previous Comments:


[2003-07-31 09:42:04] bobe at phpcodeur dot net

Mhh, there is no difference between the version 4.3.2 and the lastest
version except this: 
http://cvs.php.net/diff.php/php4.fubar/ext/standard/mail.c?login=2&r1=1.71&r2=1.72&ty=h&php=828897d059357e53be222dc10bd8be65

Why the sequence \r\n was replaced by \n here and not in
skip_long_header_sep ()?



[2003-07-30 11:08:17] [EMAIL PROTECTED]

Sorry, I re-bogus this bug.
(you're not using latest CVS, we are, it works.)




[2003-07-30 10:31:28] bobe at phpcodeur dot net

Sorry, i re-open this bug



[2003-07-29 12:55:09] bobe at phpcodeur dot net

mhh, and if you test with an address on the same server (and qmail). 

the test script on domain.tld and the "to" address [EMAIL PROTECTED]

What is the result ?



[2003-07-27 22:05:01] [EMAIL PROTECTED]

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

I am using qmail as well as sendmail and in both cases the code works
fine.



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/24805

-- 
Edit this bug report at http://bugs.php.net/?id=24805&edit=1



#24916 [Opn->Bgs]: IIS6.0 & CGI PHP header()

2003-08-04 Thread sniper
 ID:   24916
 Updated by:   [EMAIL PROTECTED]
 Reported By:  sadun at isikun dot org
-Status:   Open
+Status:   Bogus
 Bug Type: IIS related
 Operating System: Windows Server 2003
 PHP Version:  4.3.2
 New Comment:

Comment this line out: cgi.redirect_status_env = ENV_VAR_NAME



Previous Comments:


[2003-08-04 07:54:32] sadun at isikun dot org

SORRY PREVIOUS POST IS SEND HEADERS HERE ARE RECEIVED HEADERS
-

--
index.php WITH LOGIN FORM:
--
(Response Status)   HTTP/1.1 200 OK
Cache-Control   no-store, no-cache, must-revalidate, post-check=0,
pre-check=0
Pragma  no-cache
Content-Typetext/html
Expires Thu, 19 Nov 1981 08:52:00 GMT
Server  Microsoft-IIS/6.0
X-Powered-ByPHP/4.3.2
Set-Cookie  PHPSESSID=d67841ed88adca6bc603bd7e480d90ec; path=/
Set-Cookie  student_session_id=0
X-Powered-ByASP.NET
DateMon, 04 Aug 2003 12:53:11 GMT
Connection  close

--
AFTER SUBMITING POST FORM:
--

(Response Status)   HTTP/1.1 502 Bad Gateway
Content-Length  232
Content-Typetext/html
Server  Microsoft-IIS/6.0
X-Powered-ByASP.NET
DateMon, 04 Aug 2003 12:55:10 GMT

---

now i gonna try 4.3.3 RC2



[2003-08-03 13:24:53] [EMAIL PROTECTED]

And try PHP-4.3.3RC2 while you're at it.



[2003-08-02 11:24:26] [EMAIL PROTECTED]

Please reply with all the headers php sends back.



[2003-08-02 08:11:28] sadun at isikun dot org

it was working fine with ISAPI on IIS 6.0

but i need to use like CGI and i faced with CGI Error. i have searched
the net but i can't find anything about it.



[2003-08-02 08:06:02] sadun at isikun dot org

Description:

;changes in php.ini

error_reporting  =  E_ALL & ~E_NOTICE
register_globals = On
include_path = ".;W:\wwwroot\includes"
extension_dir = "W:\php\extensions"
cgi.force_redirect = 0
cgi.redirect_status_env = ENV_VAR_NAME
fastcgi.impersonate = 1
cgi.rfc2616_headers = 1 
upload_tmp_dir = "W:\php\phpupload"

extension=php_mbstring.dll
extension=php_imap.dll
extension=php_gd2.dll

session.save_path = "W:\php\phpsession"
session.auto_start = 1




Reproduce code:
---
Header("Location: Http://".$GLOBALS["HTTP_HOST"]."/main.php?";);

// i checked URL is correct 

Expected result:

redirect to url

Actual result:
--
CGI Error
The specified CGI application misbehaved by not returning a complete
set of, HTTP headers.





-- 
Edit this bug report at http://bugs.php.net/?id=24916&edit=1



#24879 [Opn->Dup]: Some data lost in returned array by mysql_fetch_array

2003-08-04 Thread georg
 ID:   24879
 Updated by:   [EMAIL PROTECTED]
 Reported By:  sm at grand-prix dot ru
-Status:   Open
+Status:   Duplicate
 Bug Type: MySQL related
 Operating System: Linux RedHat 9
 PHP Version:  4.3.2
 New Comment:

see #21589


Previous Comments:


[2003-08-04 03:13:21] sm at grand-prix dot ru

As i mean, bug occurs when both tables (main and left joined) contains
columns with equal names and left-joined table does'nt contain needed
row. In the such case named array elements with names, equal to such
column names are cleared.

Here is test script :


";
exit;
  }

  if (!mysql_select_db($db, $link_id)) {
echo "Can't connect to mysql server";
exit;
  }

  if ($action == "create_bases") {

$query = "CREATE TABLE test1table (
  userid int(10) unsigned DEFAULT '0' NOT NULL
auto_increment,
  usergroupid smallint(5) unsigned DEFAULT '0' NOT NULL,
  username varchar(50) NOT NULL,
  password varchar(50) NOT NULL,
  PRIMARY KEY(userid) )";

$query_id = mysql_query($query,$link_id);
if (!$query_id) {
  echo "invalid SQL:$query";
  exit;
}


$query = "CREATE TABLE test2table (
  userid int(10) unsigned DEFAULT '0' NOT NULL,
  field1 char(250) NOT NULL,
  field2 char(250) NOT NULL,
  field3 char(250) NOT NULL,
  field4 char(250) NOT NULL,
  PRIMARY KEY (userid) )";

$query_id = mysql_query($query,$link_id);
if (!$query_id) {
  echo "invalid SQL:$query";
  exit;
}

$query = "INSERT INTO test1table VALUES
(1,6,'user1','password1')";
$query_id = mysql_query($query,$link_id);
if (!$query_id) {
  echo "invalid SQL:$query";
  exit;
}
$query = "INSERT INTO test1table VALUES
(2,6,'user2','password2')";
$query_id = mysql_query($query,$link_id);
if (!$query_id) {
  echo "invalid SQL:$query";
  exit;
}

$query = "INSERT INTO test2table VALUES
(1,'dummy1','dummy2','dummy3','dummy4')";
$query_id = mysql_query($query,$link_id);
if (!$query_id) {
  echo "invalid SQL:$query";
  exit;
}

echo "tables created and initialized";
exit;

  }

  $query = "SELECT * FROM test1table
LEFT JOIN test2table ON
test2table.userid=test1table.userid
WHERE test1table.userid=1";
  $query_id = mysql_query($query,$link_id);
  if (!$query_id) {
 echo "invalid SQL:$query";
 exit;
  }
  $array = mysql_fetch_array($query_id);
  print_r($array); 
  echo "";
  mysql_free_result($query_id); 

  $query = "SELECT * FROM test1table
LEFT JOIN test2table ON
test2table.userid=test1table.userid
WHERE test1table.userid=2";
  $query_id = mysql_query($query,$link_id);
  if (!$query_id) {
 echo "invalid SQL:$query";
 exit;
  }
  $array = mysql_fetch_array($query_id);
  print_r($array); 
  echo "";
  mysql_free_result($query_id); 


?>



[2003-08-01 12:08:03] sm at grand-prix dot ru

I can provide more accurate test script and tables only on monday...
And I can't install RC version, I'm not a hoster...

But some important information - this problem persist only for such
database records, for which left joined records does'nt exist.



[2003-08-01 08:45:46] [EMAIL PROTECTED]

And I asked you to try the SNAPSHOT, NOT the latest stable release..




[2003-08-01 08:45:02] [EMAIL PROTECTED]

Please provide a complete but short example script and mysql db schema
with which we can reproduce this ourselves.
(we're not going to install vbulletin just to test this)




[2003-08-01 04:02:21] sm at grand-prix dot ru

./configure :
 --with-mysql=/home/mysql
--with-apache=../apache_1.3.27rusPL30.17_match --enable-track-vars



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/24879

-- 
Edit this bug report at http://bugs.php.net/?id=24879&edit=1



#24899 [Opn->Fbk]: errors compiling whith sybase

2003-08-04 Thread sniper
 ID:   24899
 Updated by:   [EMAIL PROTECTED]
 Reported By:  ejantos at yahoo dot com
-Status:   Open
+Status:   Feedback
 Bug Type: Sybase (dblib) related
 Operating System: redhat 9.0
 PHP Version:  4.3.2
 New Comment:

What does this output:

# ldd /opt/sybase-11.9.2/lib/libsybdb.so

Is /opt/sybase-11.9.2/lib/ in your /etc/ld.so.conf ??



Previous Comments:


[2003-08-04 04:39:45] ejantos at yahoo dot com

hello,

i  removed the configure flag --enable-ctype and i added
--disable-ctype flag to the configure line but i got 
the same results as before.
i tryed mith php-4.3.0, php-4.3.1 and php-4.3.2 but i got 
the same error messages when compiling it with sybase-11.9.2.
 



opt/sybase-11.9.2/lib/libsybdb.so: undefined reference to `__ctype_b'
/opt/sybase-11.9.2/lib/libsybdb.so: undefined reference to
`__ctype_tolower'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1



[2003-08-02 15:01:59] [EMAIL PROTECTED]

Try adding --disable-ctype flag to your configure line and see if that
resolves the problem.



[2003-08-01 02:34:45] ejantos at yahoo dot com

Description:

Hello,

i'm trying to install php with sybase but i always get 
errors. what should i do?

thanks in advance.
tomio

when i compile it i get this errors:

/opt/sybase-11.9.2/lib/libsybdb.so: undefined reference to `__ctype_b'
/opt/sybase-11.9.2/lib/libsybdb.so: undefined reference to
`__ctype_tolower'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1


my configuration:
./configure \
 --prefix=/usr/local/apache/httpd_1.3.28/php4 \
 --with-apxs=/usr/local/apache/httpd_1.3.28/bin/apxs \
 --disable-debug --enable-tracks-vars --enable-libgcc --enable-EAPI
--enable-bcmath \
 --with-tsrm-pthreads --enable-calendar --enable-ccvs --enable-cdb
--enable-cpdflib --enable-ctype \
 --enable-curl --enable-dba=shared --enable-dbase --enable-dbx
--enable-dom --enable-exif --enable-ftp \
 --enable-gd --enable-gdbm --enable-gettext --enable-hyperwave
--enable-icap --enable-imap --enable-imap-ssl \
 --enable-jpeg-dir --enable-kerberos --enable-mailparse
--enable-magic-quotes --enable-mbstring \
 --enable-mcal --enable-mcrypt --enable-mhash --enable-pdflib \
 --enable-shmop --enable-sigchild --enable-snmp --enable-sysvsem
--enable-sysvshm \
 --with-pgsql=/usr \
 --enable-tiff-dir --enable-trans-sid --enable-ttf --enable-unixODBC
--enable-wddx \
 --with-gmp --with-mysql=/usr \
 --with-openssl=/usr --with-xml --enable-t1lib --with-t1lib=/usr/local
--with-jpeg-dir=/usr/local \
 --with-gd=/usr/local --enable-gd-native-ttf --enable-gd-imgstrttf \
 --with-freetype-dir=/usr/local \
 --enable-xpm --with-xpm-dir=/usr/X11R6 \
 --with-png-dir=/usr/local --enable-png \
 --enable-zlib --with-zlib-dir=/usr --enable-sockets \
 --with-mm=/usr/local --with-bz2\
 --enable-mbstr-enc-trans --enable-mbstring --enable-dbx --enable-dio
\
 --with-sybase=/opt/sybase-11.9.2







-- 
Edit this bug report at http://bugs.php.net/?id=24899&edit=1



#24924 [Bgs]: timeout don't work - URGENT ISSUE

2003-08-04 Thread vincent
 ID:   24924
 Updated by:   [EMAIL PROTECTED]
 Reported By:  gdoroftei at sicme dot ro
 Status:   Bogus
 Bug Type: Sockets related
 Operating System: RedHat 8
 PHP Version:  4.3.3RC2
 New Comment:

Are you now using something like 
$ptr = @fsockopen($server,$this->PORT, $errno, $errstr, 
$this->TIMEOUT); 
 
did you try this? 
if(!$ptr){ 
echo "$errstr ($errno)"; 
} 
 


Previous Comments:


[2003-08-04 07:41:23] gdoroftei at sicme dot ro

I did that, the same problem.
After few sites, the script is blocked.
thanks.



[2003-08-03 14:24:08] [EMAIL PROTECTED]

Timeout is the 5th parameter of fsockopen, see
.



[2003-08-03 13:24:05] gdoroftei at sicme dot ro

Description:

Hi,

I use fsockopen to query a list of sites. I wish that script to
continue when the connection can't be made (after a give TIMEOUT).
I had tryed the last RC but no success.
question: if connection isn't made the script will continue after that
TIMEOUT?
Thanks.

Reproduce code:
---
$this->TIMEOUT = 10;

This line is used in a while().

$ptr = @fsockopen($server,$this->PORT,$this->TIMEOUT);


Actual result:
--
When the site is down or the connection can't be made the script is
blocked. No error, nothing.






-- 
Edit this bug report at http://bugs.php.net/?id=24924&edit=1



#24899 [Fbk]: errors compiling whith sybase

2003-08-04 Thread sniper
 ID:   24899
 Updated by:   [EMAIL PROTECTED]
 Reported By:  ejantos at yahoo dot com
 Status:   Feedback
 Bug Type: Sybase (dblib) related
 Operating System: redhat 9.0
 PHP Version:  4.3.2
 New Comment:

Also, remove these from your configure line:

--enable-tracks-vars (does not exist)
--enable-libgcc (not needed)
--enable-EAPI (automatic)
--with-tsrm-pthreads (detected)

And lot of those --enable-* options you have do NOT exist,
read the "./configure --help" to see what really exists and how the
options are supposed to be used.



Previous Comments:


[2003-08-04 08:24:30] [EMAIL PROTECTED]

What does this output:

# ldd /opt/sybase-11.9.2/lib/libsybdb.so

Is /opt/sybase-11.9.2/lib/ in your /etc/ld.so.conf ??




[2003-08-01 02:34:45] ejantos at yahoo dot com

Description:

Hello,

i'm trying to install php with sybase but i always get 
errors. what should i do?

thanks in advance.
tomio

when i compile it i get this errors:

/opt/sybase-11.9.2/lib/libsybdb.so: undefined reference to `__ctype_b'
/opt/sybase-11.9.2/lib/libsybdb.so: undefined reference to
`__ctype_tolower'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1


my configuration:
./configure \
 --prefix=/usr/local/apache/httpd_1.3.28/php4 \
 --with-apxs=/usr/local/apache/httpd_1.3.28/bin/apxs \
 --disable-debug --enable-tracks-vars --enable-libgcc --enable-EAPI
--enable-bcmath \
 --with-tsrm-pthreads --enable-calendar --enable-ccvs --enable-cdb
--enable-cpdflib --enable-ctype \
 --enable-curl --enable-dba=shared --enable-dbase --enable-dbx
--enable-dom --enable-exif --enable-ftp \
 --enable-gd --enable-gdbm --enable-gettext --enable-hyperwave
--enable-icap --enable-imap --enable-imap-ssl \
 --enable-jpeg-dir --enable-kerberos --enable-mailparse
--enable-magic-quotes --enable-mbstring \
 --enable-mcal --enable-mcrypt --enable-mhash --enable-pdflib \
 --enable-shmop --enable-sigchild --enable-snmp --enable-sysvsem
--enable-sysvshm \
 --with-pgsql=/usr \
 --enable-tiff-dir --enable-trans-sid --enable-ttf --enable-unixODBC
--enable-wddx \
 --with-gmp --with-mysql=/usr \
 --with-openssl=/usr --with-xml --enable-t1lib --with-t1lib=/usr/local
--with-jpeg-dir=/usr/local \
 --with-gd=/usr/local --enable-gd-native-ttf --enable-gd-imgstrttf \
 --with-freetype-dir=/usr/local \
 --enable-xpm --with-xpm-dir=/usr/X11R6 \
 --with-png-dir=/usr/local --enable-png \
 --enable-zlib --with-zlib-dir=/usr --enable-sockets \
 --with-mm=/usr/local --with-bz2\
 --enable-mbstr-enc-trans --enable-mbstring --enable-dbx --enable-dio
\
 --with-sybase=/opt/sybase-11.9.2







-- 
Edit this bug report at http://bugs.php.net/?id=24899&edit=1



#24879 [Dup->Bgs]: Some data lost in returned array by mysql_fetch_array

2003-08-04 Thread sniper
 ID:   24879
 Updated by:   [EMAIL PROTECTED]
 Reported By:  sm at grand-prix dot ru
-Status:   Duplicate
+Status:   Bogus
 Bug Type: MySQL related
 Operating System: Linux RedHat 9
 PHP Version:  4.3.2
 New Comment:

Bug #21589 is bogus -> bogus.



Previous Comments:


[2003-08-04 08:22:00] [EMAIL PROTECTED]

see #21589



[2003-08-04 03:13:21] sm at grand-prix dot ru

As i mean, bug occurs when both tables (main and left joined) contains
columns with equal names and left-joined table does'nt contain needed
row. In the such case named array elements with names, equal to such
column names are cleared.

Here is test script :


";
exit;
  }

  if (!mysql_select_db($db, $link_id)) {
echo "Can't connect to mysql server";
exit;
  }

  if ($action == "create_bases") {

$query = "CREATE TABLE test1table (
  userid int(10) unsigned DEFAULT '0' NOT NULL
auto_increment,
  usergroupid smallint(5) unsigned DEFAULT '0' NOT NULL,
  username varchar(50) NOT NULL,
  password varchar(50) NOT NULL,
  PRIMARY KEY(userid) )";

$query_id = mysql_query($query,$link_id);
if (!$query_id) {
  echo "invalid SQL:$query";
  exit;
}


$query = "CREATE TABLE test2table (
  userid int(10) unsigned DEFAULT '0' NOT NULL,
  field1 char(250) NOT NULL,
  field2 char(250) NOT NULL,
  field3 char(250) NOT NULL,
  field4 char(250) NOT NULL,
  PRIMARY KEY (userid) )";

$query_id = mysql_query($query,$link_id);
if (!$query_id) {
  echo "invalid SQL:$query";
  exit;
}

$query = "INSERT INTO test1table VALUES
(1,6,'user1','password1')";
$query_id = mysql_query($query,$link_id);
if (!$query_id) {
  echo "invalid SQL:$query";
  exit;
}
$query = "INSERT INTO test1table VALUES
(2,6,'user2','password2')";
$query_id = mysql_query($query,$link_id);
if (!$query_id) {
  echo "invalid SQL:$query";
  exit;
}

$query = "INSERT INTO test2table VALUES
(1,'dummy1','dummy2','dummy3','dummy4')";
$query_id = mysql_query($query,$link_id);
if (!$query_id) {
  echo "invalid SQL:$query";
  exit;
}

echo "tables created and initialized";
exit;

  }

  $query = "SELECT * FROM test1table
LEFT JOIN test2table ON
test2table.userid=test1table.userid
WHERE test1table.userid=1";
  $query_id = mysql_query($query,$link_id);
  if (!$query_id) {
 echo "invalid SQL:$query";
 exit;
  }
  $array = mysql_fetch_array($query_id);
  print_r($array); 
  echo "";
  mysql_free_result($query_id); 

  $query = "SELECT * FROM test1table
LEFT JOIN test2table ON
test2table.userid=test1table.userid
WHERE test1table.userid=2";
  $query_id = mysql_query($query,$link_id);
  if (!$query_id) {
 echo "invalid SQL:$query";
 exit;
  }
  $array = mysql_fetch_array($query_id);
  print_r($array); 
  echo "";
  mysql_free_result($query_id); 


?>



[2003-08-01 12:08:03] sm at grand-prix dot ru

I can provide more accurate test script and tables only on monday...
And I can't install RC version, I'm not a hoster...

But some important information - this problem persist only for such
database records, for which left joined records does'nt exist.



[2003-08-01 08:45:46] [EMAIL PROTECTED]

And I asked you to try the SNAPSHOT, NOT the latest stable release..




[2003-08-01 08:45:02] [EMAIL PROTECTED]

Please provide a complete but short example script and mysql db schema
with which we can reproduce this ourselves.
(we're not going to install vbulletin just to test this)




The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/24879

-- 
Edit this bug report at http://bugs.php.net/?id=24879&edit=1



#24916 [Bgs]: IIS6.0 & CGI PHP header()

2003-08-04 Thread sadun at isikun dot org
 ID:   24916
 User updated by:  sadun at isikun dot org
 Reported By:  sadun at isikun dot org
 Status:   Bogus
 Bug Type: IIS related
 Operating System: Windows Server 2003
 PHP Version:  4.3.2
 New Comment:

;cgi.redirect_status_env = ENV_VAR_NAME

no changes header("Location: URL_FOO");

can't be send in 4.3.2 IIS6.0 with CGI


Previous Comments:


[2003-08-04 08:21:30] [EMAIL PROTECTED]

Comment this line out: cgi.redirect_status_env = ENV_VAR_NAME




[2003-08-04 07:54:32] sadun at isikun dot org

SORRY PREVIOUS POST IS SEND HEADERS HERE ARE RECEIVED HEADERS
-

--
index.php WITH LOGIN FORM:
--
(Response Status)   HTTP/1.1 200 OK
Cache-Control   no-store, no-cache, must-revalidate, post-check=0,
pre-check=0
Pragma  no-cache
Content-Typetext/html
Expires Thu, 19 Nov 1981 08:52:00 GMT
Server  Microsoft-IIS/6.0
X-Powered-ByPHP/4.3.2
Set-Cookie  PHPSESSID=d67841ed88adca6bc603bd7e480d90ec; path=/
Set-Cookie  student_session_id=0
X-Powered-ByASP.NET
DateMon, 04 Aug 2003 12:53:11 GMT
Connection  close

--
AFTER SUBMITING POST FORM:
--

(Response Status)   HTTP/1.1 502 Bad Gateway
Content-Length  232
Content-Typetext/html
Server  Microsoft-IIS/6.0
X-Powered-ByASP.NET
DateMon, 04 Aug 2003 12:55:10 GMT

---

now i gonna try 4.3.3 RC2



[2003-08-03 13:24:53] [EMAIL PROTECTED]

And try PHP-4.3.3RC2 while you're at it.



[2003-08-02 11:24:26] [EMAIL PROTECTED]

Please reply with all the headers php sends back.



[2003-08-02 08:11:28] sadun at isikun dot org

it was working fine with ISAPI on IIS 6.0

but i need to use like CGI and i faced with CGI Error. i have searched
the net but i can't find anything about it.



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/24916

-- 
Edit this bug report at http://bugs.php.net/?id=24916&edit=1



#24909 [Opn->Fbk]: rand function with range always returns low value of range

2003-08-04 Thread sniper
 ID:   24909
 Updated by:   [EMAIL PROTECTED]
 Reported By:  a0 at hush dot com
-Status:   Open
+Status:   Feedback
 Bug Type: Math related
 Operating System: solaris 8
-PHP Version:  4.3.2
+PHP Version:  4.3.3RC3-dev
 New Comment:

Please try this:

# rm config.cache
# ./configure --disable-all --disable-cgi --enable-experimental-zts
# make clean && make
# sapi/cli/php -r 'echo rand(),"\n"; echo rand(0,100),"\n";'




Previous Comments:


[2003-08-02 15:17:29] a0 at hush dot com

i used the cli binary in both cases



[2003-08-02 15:00:52] [EMAIL PROTECTED]

I've tried the ZTS version on both Linux & Windows and it worked
perfectly in both cases. Did you run test via the nsapi module or using
PHP cli or cgi binaries?



[2003-08-02 13:55:00] a0 at hush dot com

thanks for the response.

i have downloaded 4.3.3RC2 and tried it.

first, i configured it using no args.  after i compiled
it, the rand() function behaves as expected, even with
a range specified.  this works.

i then configured it with --with-nsapi=/usr/local/iws41,
which is what we need to use the module with our
webserver.  after i compiled it, the cli program now
returns a 0 whenever a range is specified to rand().

i have not really looked through the code, but i would
guess this has something to do with the fact that php
is built with -DZTS in the second scenario (a different
random function is used in rand.c when this is
defined).



[2003-08-02 12:46:58] [EMAIL PROTECTED]

I've asked a number of people to replicate the problem, however they
were unable to do so using latest PHP and Solaris 8 & 9. Please try the
latest snapshot of 4.3.3 and see if the problem persists.



[2003-08-01 14:37:22] a0 at hush dot com

Description:

when using the rand function with php 4.3.2 on solaris 8, it will
return a random value as expected if no range is specified.  if a
range
is specified it will always return the low value of the range.

i'm building the module with -DZTS, and it is being loaded into
IWS4.1.

i've modified the code so it works by changing line 36 of
php_rand.h from
#if HAVE_LRAND48
to
#if (HAVE_LRAND48 && !sun)
so PHP_RAND_MAX will get a value of RAND_MAX.

Reproduce code:
---



Expected result:

24384
0

(it will always return 0)






-- 
Edit this bug report at http://bugs.php.net/?id=24909&edit=1



#24911 [Fbk->Opn]: intermittent error conecting to oracle

2003-08-04 Thread nilza at mg dot gov dot br
 ID:   24911
 User updated by:  nilza at mg dot gov dot br
 Reported By:  nilza at mg dot gov dot br
-Status:   Feedback
+Status:   Open
 Bug Type: Oracle related
 Operating System: Solaris 8
 PHP Version:  4.3.2
 New Comment:

What I did:



What I wanted to happen:

A connection to the oracle. The oracle is Ok and the listener too. All
the environment variables are ok and the
tnsname.ora is correct.

titanio.world =
  (DESCRIPTION =
(ADDRESS = (PROTOCOL= TCP)(Host= titanio)(Port= 1527))
(CONNECT_DATA = (SID = bdo))
  )


What actually happened:

Some times (in a intermittent way) I got the message:

Warning: Oracle: Connection Failed:ORA-12154: TNS:could not resolve
service name in /web/sipnet/IndexUsu/connect.inc on line 2

The connect.inc is the code listed above (What I did).
There is no problem with Oracle when this message happens.
If I try again I usually can connect to Oracle.
As I told you in the first message, I noticed the following messages in
Apache log:

[Fri Aug  1 17:18:43 2003] [info] [client 10.17.206.4] (32)Broken
pipe:
   client stopped connection before send mmap completed
   [Fri Aug  1 17:21:06 2003] [info] [client 192.168.168.48]
(32)Broken
   pipe: client stopped connection before rwrite completed

Thanks for your help.


Previous Comments:


[2003-08-01 20:28:52] [EMAIL PROTECTED]

Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.






[2003-08-01 15:42:46] nilza at mg dot gov dot br

Description:

Oracle=7.3.4 in another server
Apache/1.3.9 (Unix) PHP/4.3.2 mod_perl/1.21 

PHP was compiled with:

'./configure' '--with-apxs=/usr/apache/bin/apxs' '--enable-track-vars'
'--with-oracle=/produtos/ora_tmp' '--enable-sigchild' '--without-mysql'


No errors on compilation and no errors to start apache.
It works most fine some time, but we got intermittent errors:

ORA-12154 (main error)

and in error_log file of apache these messages:

[Fri Aug  1 17:18:43 2003] [info] [client 10.17.206.4] (32)Broken pipe:
client stopped connection before send mmap completed
[Fri Aug  1 17:21:06 2003] [info] [client 192.168.168.48] (32)Broken
pipe: client stopped connection before rwrite completed

All my oracle environment variables are set before the apache start, my
user nobody belongs to the group dba and the session.trans_sid is set
to on.

Can someone help me? 






-- 
Edit this bug report at http://bugs.php.net/?id=24911&edit=1



#24934 [NEW]: create_text_node() does not handle special characters

2003-08-04 Thread tony at marston-home dot demon dot co dot uk
From: tony at marston-home dot demon dot co dot uk
Operating system: Windows XP
PHP version:  4.3.2
PHP Bug Type: DOM XML related
Bug description:  create_text_node() does not handle special characters

Description:

I have a field with the value "Cote d'Ivoire" (where the letter 'o' is
actually 'o circumflex') which is not being deal with correctly by
$doc->create_text_node().

If I pass the text through htmlentities() beforehand what appears in the
XML output is "Côte d'Ivoire" instead of "Côte d'Ivoire".

If I do not use htmlentities() on the value the output is
"C�'Ivoire" (which is totally corrupt) instead of "Côte
d'Ivoire" (which is what I expect).

A similar fault exists with all the other special charcters I have tried,
such as 'c cedila' etc.

Expected result:

If my input is "Co(circumflex)te d'Ivoire" I expect the output to be
"Côte d'Ivoire"

Actual result:
--
Instead of "Côte d'Ivoire" I am getting "C�'Ivoire"

-- 
Edit bug report at http://bugs.php.net/?id=24934&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=24934&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=24934&r=trysnapshot5
Fixed in CVS:   http://bugs.php.net/fix.php?id=24934&r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=24934&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24934&r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=24934&r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=24934&r=support
Expected behavior:  http://bugs.php.net/fix.php?id=24934&r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=24934&r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=24934&r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=24934&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24934&r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=24934&r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=24934&r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=24934&r=gnused



#24899 [Fbk->Opn]: errors compiling whith sybase

2003-08-04 Thread ejantos at yahoo dot com
 ID:   24899
 User updated by:  ejantos at yahoo dot com
 Reported By:  ejantos at yahoo dot com
-Status:   Feedback
+Status:   Open
 Bug Type: Sybase (dblib) related
 Operating System: redhat 9.0
 PHP Version:  4.3.2
 New Comment:

What does this output:
># ldd /opt/sybase-11.9.2/lib/libsybdb.so
 statically linked

>Is /opt/sybase-11.9.2/lib/ in your /etc/ld.so.conf ??
yes. it is there.


tomio


Previous Comments:


[2003-08-04 08:32:13] [EMAIL PROTECTED]

Also, remove these from your configure line:

--enable-tracks-vars (does not exist)
--enable-libgcc (not needed)
--enable-EAPI (automatic)
--with-tsrm-pthreads (detected)

And lot of those --enable-* options you have do NOT exist,
read the "./configure --help" to see what really exists and how the
options are supposed to be used.




[2003-08-04 08:24:30] [EMAIL PROTECTED]

What does this output:

# ldd /opt/sybase-11.9.2/lib/libsybdb.so

Is /opt/sybase-11.9.2/lib/ in your /etc/ld.so.conf ??




[2003-08-01 02:34:45] ejantos at yahoo dot com

Description:

Hello,

i'm trying to install php with sybase but i always get 
errors. what should i do?

thanks in advance.
tomio

when i compile it i get this errors:

/opt/sybase-11.9.2/lib/libsybdb.so: undefined reference to `__ctype_b'
/opt/sybase-11.9.2/lib/libsybdb.so: undefined reference to
`__ctype_tolower'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1


my configuration:
./configure \
 --prefix=/usr/local/apache/httpd_1.3.28/php4 \
 --with-apxs=/usr/local/apache/httpd_1.3.28/bin/apxs \
 --disable-debug --enable-tracks-vars --enable-libgcc --enable-EAPI
--enable-bcmath \
 --with-tsrm-pthreads --enable-calendar --enable-ccvs --enable-cdb
--enable-cpdflib --enable-ctype \
 --enable-curl --enable-dba=shared --enable-dbase --enable-dbx
--enable-dom --enable-exif --enable-ftp \
 --enable-gd --enable-gdbm --enable-gettext --enable-hyperwave
--enable-icap --enable-imap --enable-imap-ssl \
 --enable-jpeg-dir --enable-kerberos --enable-mailparse
--enable-magic-quotes --enable-mbstring \
 --enable-mcal --enable-mcrypt --enable-mhash --enable-pdflib \
 --enable-shmop --enable-sigchild --enable-snmp --enable-sysvsem
--enable-sysvshm \
 --with-pgsql=/usr \
 --enable-tiff-dir --enable-trans-sid --enable-ttf --enable-unixODBC
--enable-wddx \
 --with-gmp --with-mysql=/usr \
 --with-openssl=/usr --with-xml --enable-t1lib --with-t1lib=/usr/local
--with-jpeg-dir=/usr/local \
 --with-gd=/usr/local --enable-gd-native-ttf --enable-gd-imgstrttf \
 --with-freetype-dir=/usr/local \
 --enable-xpm --with-xpm-dir=/usr/X11R6 \
 --with-png-dir=/usr/local --enable-png \
 --enable-zlib --with-zlib-dir=/usr --enable-sockets \
 --with-mm=/usr/local --with-bz2\
 --enable-mbstr-enc-trans --enable-mbstring --enable-dbx --enable-dio
\
 --with-sybase=/opt/sybase-11.9.2







-- 
Edit this bug report at http://bugs.php.net/?id=24899&edit=1



#24916 [Bgs]: IIS6.0 & CGI PHP header()

2003-08-04 Thread sadun at isikun dot org
 ID:   24916
 User updated by:  sadun at isikun dot org
 Reported By:  sadun at isikun dot org
 Status:   Bogus
 Bug Type: IIS related
 Operating System: Windows Server 2003
 PHP Version:  4.3.2
 New Comment:

PROBLEM IS SOLVED WITH PHP4.3.3RC2

thanks for your help


Previous Comments:


[2003-08-04 08:38:44] sadun at isikun dot org

;cgi.redirect_status_env = ENV_VAR_NAME

no changes header("Location: URL_FOO");

can't be send in 4.3.2 IIS6.0 with CGI



[2003-08-04 08:21:30] [EMAIL PROTECTED]

Comment this line out: cgi.redirect_status_env = ENV_VAR_NAME




[2003-08-04 07:54:32] sadun at isikun dot org

SORRY PREVIOUS POST IS SEND HEADERS HERE ARE RECEIVED HEADERS
-

--
index.php WITH LOGIN FORM:
--
(Response Status)   HTTP/1.1 200 OK
Cache-Control   no-store, no-cache, must-revalidate, post-check=0,
pre-check=0
Pragma  no-cache
Content-Typetext/html
Expires Thu, 19 Nov 1981 08:52:00 GMT
Server  Microsoft-IIS/6.0
X-Powered-ByPHP/4.3.2
Set-Cookie  PHPSESSID=d67841ed88adca6bc603bd7e480d90ec; path=/
Set-Cookie  student_session_id=0
X-Powered-ByASP.NET
DateMon, 04 Aug 2003 12:53:11 GMT
Connection  close

--
AFTER SUBMITING POST FORM:
--

(Response Status)   HTTP/1.1 502 Bad Gateway
Content-Length  232
Content-Typetext/html
Server  Microsoft-IIS/6.0
X-Powered-ByASP.NET
DateMon, 04 Aug 2003 12:55:10 GMT

---

now i gonna try 4.3.3 RC2



[2003-08-03 13:24:53] [EMAIL PROTECTED]

And try PHP-4.3.3RC2 while you're at it.



[2003-08-02 11:24:26] [EMAIL PROTECTED]

Please reply with all the headers php sends back.



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/24916

-- 
Edit this bug report at http://bugs.php.net/?id=24916&edit=1



#24899 [Opn]: errors compiling whith sybase

2003-08-04 Thread ejantos at yahoo dot com
 ID:   24899
 User updated by:  ejantos at yahoo dot com
 Reported By:  ejantos at yahoo dot com
 Status:   Open
 Bug Type: Sybase (dblib) related
 Operating System: redhat 9.0
 PHP Version:  4.3.2
 New Comment:

i tryied to use php4-STABLE-200308041330 and i got another 
error messages:


/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:
In function `php_sybase_do_connect':
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:395:
request for member `value' in something not a structure or union
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:
In function `zif_sybase_select_db':
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:657:
invalid type argument of `unary *'
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:
In function `zif_sybase_free_result':
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:954:
parse error before "if"
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:
At top level:
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:955:
parse error before "return"
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:957:
`sybase_result_index' undeclared here (not in a function)
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:957:
`type' undeclared here (not in a function)
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:957:
warning: initialization makes integer from pointer without a cast
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:957:
initializer element is not constant
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:957:
warning: data definition has no type or storage class
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:959:
parse error before "if"
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:961:
parse error before '->' token
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:963:
parse error before '(' token
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:964:
parse error before '->' token
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:
In function `zif_sybase_result':
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:1326:
request for member `value' in something not a structure or union
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:
In function `zif_sybase_affected_rows':
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:1370:
invalid type argument of `->'
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:1370:
invalid type argument of `->'
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:1370:
incompatible types in initialization
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:1370:
incompatible types in assignment
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:1370:
invalid type argument of `unary *'
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:1370:
incompatible type for argument 1 of `_zval_copy_ctor'
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:1370:
invalid type argument of `->'
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:1370:
invalid type argument of `->'
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:1370:
incompatible type for argument 1 of `convert_to_long'
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:1371:
invalid type argument of `unary *'
make: *** [ext/sybase/php_sybase_db.lo] Error 1
w


my configuartion:
./configure \
 --prefix=/usr/local/apache/httpd_1.3.28/php4 \
 --with-apxs=/usr/local/apache/httpd_1.3.28/bin/apxs \
 --disable-debug --enable-EAPI --enable-bcmath \
 --enable-calendar --enable-ccvs --enable-cdb --enable-cpdflib \
 --enable-dbase --enable-dbx --enable-dom --enable-exif --enable-ftp \
 --enable-dba \
 --enable-gd --enable-gettext --enable-hyperwave --enable-icap
--enable-imap \
 --enable-jpeg-dir --enable-kerberos --enable-mailparse
--enable-

#24899 [Opn]: errors compiling whith sybase

2003-08-04 Thread ejantos at yahoo dot com
 ID:   24899
 User updated by:  ejantos at yahoo dot com
 Reported By:  ejantos at yahoo dot com
 Status:   Open
 Bug Type: Sybase (dblib) related
 Operating System: redhat 9.0
 PHP Version:  4.3.2
 New Comment:

i compiled php-4.3.0 and again i got this same message with 
my configure flags:

opt/sybase-11.9.2/lib/libsybdb.so: undefined reference to `__ctype_b'
/opt/sybase-11.9.2/lib/libsybdb.so: undefined reference to
`__ctype_tolower'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1



./configure \
 --prefix=/usr/local/apache/httpd_1.3.28/php4 \
 --with-apxs=/usr/local/apache/httpd_1.3.28/bin/apxs \
 --disable-debug --enable-EAPI --enable-bcmath \
 --enable-calendar \
 --enable-exif \
 --enable-gd --enable-gettext --enable-imap \
 --enable-jpeg-dir --enable-magic-quotes \
 --enable-mcal --enable-mcrypt --enable-mhash \
 --with-pgsql=/usr \
 --enable-trans-sid \
 --with-gmp --with-mysql=/usr \
 --enable-t1lib --with-t1lib=/usr/local --with-jpeg-dir=/usr/local \
 --with-gd=/usr/local --enable-gd-native-ttf --enable-gd-imgstrttf \
 --with-freetype-dir=/usr/local \
 --with-png-dir=/usr/local --enable-png \
 --enable-zlib --with-zlib-dir=/usr \
 --with-mm=/usr/local --with-bz2 \
 --enable-mbstr-enc-trans --enable-mbstring \
 --with-openssl=/usr --enable-imap-ssl \
 --with-sybase=/opt/sybase-11.9.2


Previous Comments:


[2003-08-04 09:07:09] ejantos at yahoo dot com

i tryied to use php4-STABLE-200308041330 and i got another 
error messages:


/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:
In function `php_sybase_do_connect':
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:395:
request for member `value' in something not a structure or union
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:
In function `zif_sybase_select_db':
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:657:
invalid type argument of `unary *'
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:
In function `zif_sybase_free_result':
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:954:
parse error before "if"
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:
At top level:
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:955:
parse error before "return"
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:957:
`sybase_result_index' undeclared here (not in a function)
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:957:
`type' undeclared here (not in a function)
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:957:
warning: initialization makes integer from pointer without a cast
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:957:
initializer element is not constant
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:957:
warning: data definition has no type or storage class
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:959:
parse error before "if"
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:961:
parse error before '->' token
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:963:
parse error before '(' token
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:964:
parse error before '->' token
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:
In function `zif_sybase_result':
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:1326:
request for member `value' in something not a structure or union
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:
In function `zif_sybase_affected_rows':
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:1370:
invalid type argument of `->'
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:1370:
invalid type argument of `->'
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:1370:
incompatible types in initialization
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:1370:
incompatible types in assignment
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:1370:
invalid

#24899 [Opn]: errors compiling whith sybase

2003-08-04 Thread sniper
 ID:   24899
 Updated by:   [EMAIL PROTECTED]
 Reported By:  ejantos at yahoo dot com
 Status:   Open
 Bug Type: Sybase (dblib) related
 Operating System: redhat 9.0
 PHP Version:  4.3.2
 New Comment:

The compile failures should be fixed in CVS now. Should be in
snapshot(s) in an hour from now.



Previous Comments:


[2003-08-04 09:34:54] ejantos at yahoo dot com

i compiled php-4.3.0 and again i got this same message with 
my configure flags:

opt/sybase-11.9.2/lib/libsybdb.so: undefined reference to `__ctype_b'
/opt/sybase-11.9.2/lib/libsybdb.so: undefined reference to
`__ctype_tolower'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1



./configure \
 --prefix=/usr/local/apache/httpd_1.3.28/php4 \
 --with-apxs=/usr/local/apache/httpd_1.3.28/bin/apxs \
 --disable-debug --enable-EAPI --enable-bcmath \
 --enable-calendar \
 --enable-exif \
 --enable-gd --enable-gettext --enable-imap \
 --enable-jpeg-dir --enable-magic-quotes \
 --enable-mcal --enable-mcrypt --enable-mhash \
 --with-pgsql=/usr \
 --enable-trans-sid \
 --with-gmp --with-mysql=/usr \
 --enable-t1lib --with-t1lib=/usr/local --with-jpeg-dir=/usr/local \
 --with-gd=/usr/local --enable-gd-native-ttf --enable-gd-imgstrttf \
 --with-freetype-dir=/usr/local \
 --with-png-dir=/usr/local --enable-png \
 --enable-zlib --with-zlib-dir=/usr \
 --with-mm=/usr/local --with-bz2 \
 --enable-mbstr-enc-trans --enable-mbstring \
 --with-openssl=/usr --enable-imap-ssl \
 --with-sybase=/opt/sybase-11.9.2



[2003-08-04 09:07:09] ejantos at yahoo dot com

i tryied to use php4-STABLE-200308041330 and i got another 
error messages:


/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:
In function `php_sybase_do_connect':
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:395:
request for member `value' in something not a structure or union
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:
In function `zif_sybase_select_db':
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:657:
invalid type argument of `unary *'
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:
In function `zif_sybase_free_result':
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:954:
parse error before "if"
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:
At top level:
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:955:
parse error before "return"
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:957:
`sybase_result_index' undeclared here (not in a function)
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:957:
`type' undeclared here (not in a function)
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:957:
warning: initialization makes integer from pointer without a cast
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:957:
initializer element is not constant
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:957:
warning: data definition has no type or storage class
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:959:
parse error before "if"
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:961:
parse error before '->' token
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:963:
parse error before '(' token
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:964:
parse error before '->' token
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:
In function `zif_sybase_result':
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:1326:
request for member `value' in something not a structure or union
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:
In function `zif_sybase_affected_rows':
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:1370:
invalid type argument of `->'
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:1370:
invalid type argument of `->'
/usr/local/jantos/CVSROOT/Webserver/apache/php4-STABLE-200308041330/ext/sybase/php_sybase_db.c:1370:
incompatible types in initialization
/usr/local/jantos/CVSROOT/Webs

#24935 [NEW]: Internal server error with accents

2003-08-04 Thread csterchi at free dot fr
From: csterchi at free dot fr
Operating system: Windows XP
PHP version:  4.3.1
PHP Bug Type: *Web Server problem
Bug description:  Internal server error with accents

Description:

I'm now on an Apachache 2.0.47 with Windows XP.

I was on a Apache 1 with PHP 4.xx and i had not the bug.

When i want the URL xxx.php?toto=toto
   It's working fine

But if want the URL xxx.php?toto=tété 
   Then the server generate an Internal server error
and the apache.log says :
[Mon Aug 04 16:45:28 2003] [error] [client 127.0.0.1] (22)Invalid
argument: couldn't create child process: 22: php.exe
[Mon Aug 04 16:45:28 2003] [error] [client 127.0.0.1] (22)Invalid
argument: couldn't spawn child process: D:/Private/php431/php.exe

Thanks
Charles



-- 
Edit bug report at http://bugs.php.net/?id=24935&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=24935&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=24935&r=trysnapshot5
Fixed in CVS:   http://bugs.php.net/fix.php?id=24935&r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=24935&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24935&r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=24935&r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=24935&r=support
Expected behavior:  http://bugs.php.net/fix.php?id=24935&r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=24935&r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=24935&r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=24935&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24935&r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=24935&r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=24935&r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=24935&r=gnused



#24866 [Opn->Fbk]: PHP CLI crashes when locale has certain values

2003-08-04 Thread sniper
 ID:   24866
 Updated by:   [EMAIL PROTECTED]
 Reported By:  herouth at itouch dot co dot il
-Status:   Open
+Status:   Feedback
 Bug Type: Reproducible crash
 Operating System: Linux
 PHP Version:  4.3.2
 New Comment:

And I guess it works also when you compile PHP with sybase, but without
imap?



Previous Comments:


[2003-08-03 04:11:30] herouth at itouch dot co dot il

I think I pinpointed it. 
I tried your configure/compile sequence and it eliminated the 
problem. 
I went on and re-compiled using my original configure line, 
except the sybase-ct line. No problem. 
I added the --with-sybase-ct line, and the crash reappeared. 
As for my Linux, it's an old RedHat, kernel 2.2.16-3smp. glibc is, 
I think, 2.1.3.



[2003-07-31 13:39:44] [EMAIL PROTECTED]

Does it crash with this:

# rm config.cache && ./configure --disable-all --disable-cgi
--enable-debug
# make clean && make
# unset LC_ALL
# export LANG=en_US
# sapi/cli/php -n -v

Don't set any CFLAGS/other compile related settings, PHP configure
knows better..
Which linux is this? glibc version?






[2003-07-31 07:58:42] herouth at itouch dot co dot il

Tried --enable-debug and -g3, same result in gdb. 
Note that crash doesn't happen if running php within gdb.



[2003-07-31 07:21:39] [EMAIL PROTECTED]

To get the most debug information do the following:
1) Compile php with --enable-debug
2) export CFLAGS=-g3 (optional, but recommended)



[2003-07-31 04:42:14] herouth at itouch dot co dot il

I'm not sure whether I'm using the right procedure to do a 
backtrace. Basically, I reconfigured php with CFLAGS=-O0 -g, did 
a make, then ran again, then ran gdb php core, and within gdb, 
did "backtrace". This is all I've got, and if I did it wrong, well, 
correct me. 
 
(gdb) backtrace 
#0  0x40445d88 in main_arena () from /lib/libc.so.6 
#1  0xb1914044 in ?? () 
Cannot access memory at address 0x6840445d 
(gdb)



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/24866

-- 
Edit this bug report at http://bugs.php.net/?id=24866&edit=1



#24870 [Opn->Fbk]: Pear segfaults on install-pear-installer (db_open symbol conflicts?)

2003-08-04 Thread sniper
 ID:   24870
 Updated by:   [EMAIL PROTECTED]
 Reported By:  jbyrne at thegrid dot net
-Status:   Open
+Status:   Feedback
 Bug Type: Compile Failure
 Operating System: linux x86
 PHP Version:  4.3.2
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

Then if it still crashes, reduce the configure options used to bare
minimum that still causes this.
(remember to delete config.cache between the tests)



Previous Comments:


[2003-07-30 08:30:02] jbyrne at thegrid dot net

Description:

install-pear-installer segfaults on linux x86 system (gcc-2.95.3,
glibc-2.95.3, slackware, etc...); appears to be symbol conflict issue
with db_open.

./configure --prefix=/inst/pkg-ver/`basename $PWD` \
--with-apache=../apache_1.3.28 \ --with-openssl=/inst/pkg/openssl \
--with-zlib \
--with-bz2 \
--with-jpeg-dir=/inst/pkg/jpeg \
--with-tiff-dir=/inst/pkg/tiff \
--with-curl=/inst/pkg/curl \
--with-db4=/inst/pkg/db \
--with-dom=/inst/pkg/libxml2 \ --with-dom-xslt=/inst/pkg/libxslt \
--with-dom-exslt=/inst/pkg/libxslt \
--enable-exif \
--with-gd=/inst/pkg/gd \
--with-png-dir=/inst/pkg/libpng \
--with-freetype-dir=/inst/pkg/freetype2 \
--enable-gd-native-ttf \
--with-iconv=/inst/pkg/libiconv \
--with-imap=/inst/pkg/imap \
--with-kerberos=/inst/pkg/krb5 \
--with-imap-ssl=/inst/pkg/openssl \
--with-java=/inst/pkg/j2sdk \
--with-ldap=/inst/pkg/openldap \
--with-mysql=/inst/pkg/mysql \
--with-mm=/inst/pkg/mm \
--with-snmp=/inst/pkg/net-snmp \ --with-pdflib=/inst/pkg/pdflib \
--with-xmlrpc \
--with-expat-dir=/inst/pkg/expat \ --with-iconv-dir=/inst/pkg/libiconv
\
--with-pcre-regex=/inst/pkg/pcre


(gdb) file sapi/cli/php
Reading symbols from sapi/cli/php...done.
(gdb) run pear/install-pear.php pear/package-*.xml
Starting program: /home/admin/php-4.3.2/sapi/cli/php
pear/install-pear.php pear/
package-*.xml
[New Thread 1024 (LWP 25814)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 25814)]
0x0 in __strtol_internal (nptr=0x409e70cd "/var/db/services.db",
endptr=0x1, 
base=16, group=0) at eval.c:35
35  eval.c: No such file or directory.
(gdb) bt
#0  0x0 in __strtol_internal (nptr=0x409e70cd "/var/db/services.db", 
endptr=0x1, base=16, group=0) at eval.c:35
#1  0x409e6e1e in db_open () from /lib/libnss_db.so.2
#2  0x409e6ed0 in internal_setent () from /lib/libnss_db.so.2
#3  0x409e662e in _nss_db_endservent () from /lib/libnss_db.so.2
#4  0x409e68c3 in _nss_db_getservbyname_r () from /lib/libnss_db.so.2
#5  0x409ab733 in __getservbyname_r (name=0x408beb84 "snmp", 
proto=0x408beb80 "udp", resbuf=0x409deb7c, buffer=0x82730e0 "", 
buflen=1024, result=0xb5d8) at ../nss/getXXbyYY_r.c:200
#6  0x409ab5e1 in getservbyname (name=0x408beb84 "snmp", 
proto=0x408beb80 "udp") at ../nss/getXXbyYY.c:145
#7  0x40882cbe in _init_snmp () at snmp_api.c:645
#8  0x408832ce in init_snmp (type=0x81c469f "snmpapp") at
snmp_api.c:770
#9  0x80cef23 in zm_startup_snmp (type=1, module_number=5)
at /home/admin/php-4.3.2/ext/snmp/snmp.c:164
#10 0x8150c22 in zend_startup_module (module=0x823da80)
at /home/admin/php-4.3.2/Zend/zend_API.c:1005
#11 0x812b4bf in php_startup_extensions (ptr=0x8246f50, count=23)
at /home/admin/php-4.3.2/main/main.c:1033
#12 0x8165365 in php_startup_internal_extensions ()
at main/internal_functions_cli.c:95
#13 0x812b8c5 in php_module_startup (sf=0x8246ec0,
additional_modules=0x0, 
num_additional_modules=0) at
/home/admin/php-4.3.2/main/main.c:1200
#14 0x816482a in main (argc=5, argv=0xb8d4)
at /home/admin/php-4.3.2/sapi/cli/php_cli.c:520
#15 0x408ed2eb in __libc_start_main (main=0x8164700 , argc=5, 
ubp_av=0xb8d4, init=0x80777fc <_init>, fini=0x81b743c <_fini>,

rtld_fini=0x4000c130 <_dl_fini>, stack_end=0xb8cc)
at ../sysdeps/generic/libc-start.c:129







-- 
Edit this bug report at http://bugs.php.net/?id=24870&edit=1



#24805 [Opn->Fbk]: skip_long_header_sep routine break email

2003-08-04 Thread sniper
 ID:   24805
 Updated by:   [EMAIL PROTECTED]
 Reported By:  bobe at phpcodeur dot net
-Status:   Open
+Status:   Feedback
 Bug Type: Mail related
 Operating System: Linux
 PHP Version:  4.3.2
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip




Previous Comments:


[2003-08-04 08:10:13] bobe at phpcodeur dot net

No response ? :(



[2003-07-31 09:42:04] bobe at phpcodeur dot net

Mhh, there is no difference between the version 4.3.2 and the lastest
version except this: 
http://cvs.php.net/diff.php/php4.fubar/ext/standard/mail.c?login=2&r1=1.71&r2=1.72&ty=h&php=828897d059357e53be222dc10bd8be65

Why the sequence \r\n was replaced by \n here and not in
skip_long_header_sep ()?



[2003-07-30 11:08:17] [EMAIL PROTECTED]

Sorry, I re-bogus this bug.
(you're not using latest CVS, we are, it works.)




[2003-07-30 10:31:28] bobe at phpcodeur dot net

Sorry, i re-open this bug



[2003-07-29 12:55:09] bobe at phpcodeur dot net

mhh, and if you test with an address on the same server (and qmail). 

the test script on domain.tld and the "to" address [EMAIL PROTECTED]

What is the result ?



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/24805

-- 
Edit this bug report at http://bugs.php.net/?id=24805&edit=1



#24866 [Fbk->Opn]: PHP CLI crashes when locale has certain values

2003-08-04 Thread herouth at itouch dot co dot il
 ID:   24866
 User updated by:  herouth at itouch dot co dot il
 Reported By:  herouth at itouch dot co dot il
-Status:   Feedback
+Status:   Open
 Bug Type: Reproducible crash
 Operating System: Linux
 PHP Version:  4.3.2
 New Comment:

No. Compiling with sybase and without imap has no effect. It still 
crashes with LANG=en_US, and works with LANG=C.


Previous Comments:


[2003-08-04 09:58:22] [EMAIL PROTECTED]

And I guess it works also when you compile PHP with sybase, but without
imap?




[2003-08-03 04:11:30] herouth at itouch dot co dot il

I think I pinpointed it. 
I tried your configure/compile sequence and it eliminated the 
problem. 
I went on and re-compiled using my original configure line, 
except the sybase-ct line. No problem. 
I added the --with-sybase-ct line, and the crash reappeared. 
As for my Linux, it's an old RedHat, kernel 2.2.16-3smp. glibc is, 
I think, 2.1.3.



[2003-07-31 13:39:44] [EMAIL PROTECTED]

Does it crash with this:

# rm config.cache && ./configure --disable-all --disable-cgi
--enable-debug
# make clean && make
# unset LC_ALL
# export LANG=en_US
# sapi/cli/php -n -v

Don't set any CFLAGS/other compile related settings, PHP configure
knows better..
Which linux is this? glibc version?






[2003-07-31 07:58:42] herouth at itouch dot co dot il

Tried --enable-debug and -g3, same result in gdb. 
Note that crash doesn't happen if running php within gdb.



[2003-07-31 07:21:39] [EMAIL PROTECTED]

To get the most debug information do the following:
1) Compile php with --enable-debug
2) export CFLAGS=-g3 (optional, but recommended)



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/24866

-- 
Edit this bug report at http://bugs.php.net/?id=24866&edit=1



#24879 [Bgs]: Some data lost in returned array by mysql_fetch_array

2003-08-04 Thread sm at grand-prix dot ru
 ID:   24879
 User updated by:  sm at grand-prix dot ru
 Reported By:  sm at grand-prix dot ru
 Status:   Bogus
 Bug Type: MySQL related
 Operating System: Linux RedHat 9
 PHP Version:  4.3.2
 New Comment:

Hmmm... But why numbered element is not equal to named?


Previous Comments:


[2003-08-04 08:33:46] [EMAIL PROTECTED]

Bug #21589 is bogus -> bogus.




[2003-08-04 08:22:00] [EMAIL PROTECTED]

see #21589



[2003-08-04 03:13:21] sm at grand-prix dot ru

As i mean, bug occurs when both tables (main and left joined) contains
columns with equal names and left-joined table does'nt contain needed
row. In the such case named array elements with names, equal to such
column names are cleared.

Here is test script :


";
exit;
  }

  if (!mysql_select_db($db, $link_id)) {
echo "Can't connect to mysql server";
exit;
  }

  if ($action == "create_bases") {

$query = "CREATE TABLE test1table (
  userid int(10) unsigned DEFAULT '0' NOT NULL
auto_increment,
  usergroupid smallint(5) unsigned DEFAULT '0' NOT NULL,
  username varchar(50) NOT NULL,
  password varchar(50) NOT NULL,
  PRIMARY KEY(userid) )";

$query_id = mysql_query($query,$link_id);
if (!$query_id) {
  echo "invalid SQL:$query";
  exit;
}


$query = "CREATE TABLE test2table (
  userid int(10) unsigned DEFAULT '0' NOT NULL,
  field1 char(250) NOT NULL,
  field2 char(250) NOT NULL,
  field3 char(250) NOT NULL,
  field4 char(250) NOT NULL,
  PRIMARY KEY (userid) )";

$query_id = mysql_query($query,$link_id);
if (!$query_id) {
  echo "invalid SQL:$query";
  exit;
}

$query = "INSERT INTO test1table VALUES
(1,6,'user1','password1')";
$query_id = mysql_query($query,$link_id);
if (!$query_id) {
  echo "invalid SQL:$query";
  exit;
}
$query = "INSERT INTO test1table VALUES
(2,6,'user2','password2')";
$query_id = mysql_query($query,$link_id);
if (!$query_id) {
  echo "invalid SQL:$query";
  exit;
}

$query = "INSERT INTO test2table VALUES
(1,'dummy1','dummy2','dummy3','dummy4')";
$query_id = mysql_query($query,$link_id);
if (!$query_id) {
  echo "invalid SQL:$query";
  exit;
}

echo "tables created and initialized";
exit;

  }

  $query = "SELECT * FROM test1table
LEFT JOIN test2table ON
test2table.userid=test1table.userid
WHERE test1table.userid=1";
  $query_id = mysql_query($query,$link_id);
  if (!$query_id) {
 echo "invalid SQL:$query";
 exit;
  }
  $array = mysql_fetch_array($query_id);
  print_r($array); 
  echo "";
  mysql_free_result($query_id); 

  $query = "SELECT * FROM test1table
LEFT JOIN test2table ON
test2table.userid=test1table.userid
WHERE test1table.userid=2";
  $query_id = mysql_query($query,$link_id);
  if (!$query_id) {
 echo "invalid SQL:$query";
 exit;
  }
  $array = mysql_fetch_array($query_id);
  print_r($array); 
  echo "";
  mysql_free_result($query_id); 


?>



[2003-08-01 12:08:03] sm at grand-prix dot ru

I can provide more accurate test script and tables only on monday...
And I can't install RC version, I'm not a hoster...

But some important information - this problem persist only for such
database records, for which left joined records does'nt exist.



[2003-08-01 08:45:46] [EMAIL PROTECTED]

And I asked you to try the SNAPSHOT, NOT the latest stable release..




The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/24879

-- 
Edit this bug report at http://bugs.php.net/?id=24879&edit=1



#24923 [Opn->Bgs]: session_start() does not set session id cookie !!!

2003-08-04 Thread sniper
 ID:   24923
 Updated by:   [EMAIL PROTECTED]
 Reported By:  bestmischmaker at web dot de
-Status:   Open
+Status:   Bogus
 Bug Type: Session related
 Operating System: windows2000sp4
 PHP Version:  4.3.3RC2
 New Comment:

1. There is no such constant as private_no_expire (it's a string, you
need to have quotes around it)
2. Use valid domain in the 3rd parameter for
session_set_cookie_params() call. See http://www.php.net/setcookie for
detailed explanation for the  domain in cookies.



Previous Comments:


[2003-08-03 09:40:43] bestmischmaker at web dot de

Description:

Hy...

i have try to use session as file version...it should set the PHPSESSID
as COOKIE, but it doesn't do this...

if have use this with any other php version befor and it runs fine...

if have check my php.ini
session.save_handler = files
session.use_cookies = 1
session.name = PHPSESSID

so the session will started but the cookie will not set !!!

OS: Win32 (w2k_sp4)
Apache 2.0.46 / php4.3.3RC2

hope i could help :)
cya

Reproduce code:
---



Expected result:

Result should be:

$_COOKIE["PHPSESSID"] = "34grgerjheqwgr76226453828";



Actual result:
--
is nothing !!!





-- 
Edit this bug report at http://bugs.php.net/?id=24923&edit=1



#24929 [Opn->Csd]: date("G") returns nothing

2003-08-04 Thread sniper
 ID:   24929
 Updated by:   [EMAIL PROTECTED]
 Reported By:  sean at shrum dot net
-Status:   Open
+Status:   Closed
 Bug Type: Date/time related
 Operating System: Linux
 PHP Version:  4.3.2
 New Comment:

Using latest CVS:

[EMAIL PROTECTED] jani]$ date
Mon Aug  4 18:54:40 EEST 2003
[EMAIL PROTECTED] jani]$ php -r '$offset = strtotime("+3 hours"); echo
$offset,"\n",date("G", $offset);'
1060023283
21

No bug here.



Previous Comments:


[2003-08-04 01:56:13] sean at shrum dot net

Description:

I get nothing back from the date("G") function call.  Granted, I am
using a offset value with it but the offset works with every other date
call so I know the offset value is not the cause



Reproduce code:
---
$offset = strtotime("+3 hours");
$time_vars["hour_24"] = date("G", $offset);


Expected result:

$time_vars["hour_24"] should have the current hour in 24-hour format
without leading zeros. If it is 1 am, the result should be "4" (due to
the offset).  If it is 5 pm, the result should be "22" (due to the
offset).

Actual result:
--
nothing; blank value





-- 
Edit this bug report at http://bugs.php.net/?id=24929&edit=1



#24931 [Opn->Ver]: call_user_func ignores requirement of references

2003-08-04 Thread sniper
 ID:   24931
 Updated by:   [EMAIL PROTECTED]
 Reported By:  rehsack at liwing dot de
-Status:   Open
+Status:   Verified
-Bug Type: *General Issues
+Bug Type: Scripting Engine problem
 Operating System: FreeBSD 5.1 i386
-PHP Version:  4.3.3RC2
+PHP Version:  4.3.3RC2, 5.0.0b2-dev


Previous Comments:


[2003-08-04 03:22:31] rehsack at liwing dot de

Description:

The method call_user_func ignores requirement of called
function takes it's arguments as reference. The results
in several times very ugly and hard to find bugs, eg. if
you use a template pattern combined with composite to
control child templates and want to do an action in each
child object and require to work on current data copy.

Either, if call_user_func internally is able to be called
by reference, some programs could be speed up, too (because
of the loose of expensive string copies)

This bug may related to #24631 but seems to have another
background. I can submit a more complicated example using
templates and a composite object to illustrate the problem.

Enabling call-time references in php.ini would solve this
problem by don't write a warning but I don't think it's
a good way to solve...


Reproduce code:
---



Expected result:

before call_user_func id=1
after call_user_func id=2
after call_user_func_array id=3

Actual result:
--
before call_user_func id=1
after call_user_func id=1
after call_user_func_array id=2





-- 
Edit this bug report at http://bugs.php.net/?id=24931&edit=1



#24932 [Opn->Fbk]: pg_lo_read_all returns a modified large object from database

2003-08-04 Thread sniper
 ID:   24932
 Updated by:   [EMAIL PROTECTED]
 Reported By:  leitgebj at barada dot canisius dot edu
-Status:   Open
+Status:   Feedback
 Bug Type: PostgreSQL related
 Operating System: Mac OS X Darwin Kernel 6.3
 PHP Version:  4.3.2
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip


Previous Comments:


[2003-08-04 07:27:34] leitgebj at barada dot canisius dot edu

Description:

When a PG large object is returned to the web browser from the database
using pg_lo_read_all(db resource, object id) the returned object is
modified as shown by the unix command cmp.

bash-2.05a$ cmp kat_y_justin.jpg kat_y_justin_dl.jpg 
kat_y_justin.jpg kat_y_justin_dl.jpg differ: char 1, line 1

File sizes are different but not drastically (between original and
downloaded object).  Size is field number 1 below:

30877 Aug  3 14:37 kat_y_justin.jpg
30884 Aug  3 15:15 kat_y_justin_dl.jpg

Reproduce code:
---
function send_object() {
   $db = do_db_connect();
   cdb_query($db, "begin");
   $res = pg_lo_open($db, $_POST['object_id'], 'r');
   header("Content-type: " . $_POST['file_type']);
   header("Content-Disposition: file; filename=" .   
   $_POST['filename']);
   header("Content-Transfer-Encoding: binary");
   pg_lo_read_all($res);
   pg_lo_close($res);
   cdb_query($db, "end");
   exit();
}

cdb_query(db resource, string) is just a SQL wrapper function.

Expected result:

The same large object (which can be retrieved by using command line
psql) should be returned to browser.

Actual result:
--
A modified file is returned to the browser.





-- 
Edit this bug report at http://bugs.php.net/?id=24932&edit=1



#24935 [Opn->Bgs]: Internal server error with accents

2003-08-04 Thread sniper
 ID:   24935
 Updated by:   [EMAIL PROTECTED]
 Reported By:  csterchi at free dot fr
-Status:   Open
+Status:   Bogus
-Bug Type: *Web Server problem
+Bug Type: Apache2 related
 Operating System: Windows XP
 PHP Version:  4.3.1
 New Comment:

not PHP bug.



Previous Comments:


[2003-08-04 09:50:26] csterchi at free dot fr

Description:

I'm now on an Apachache 2.0.47 with Windows XP.

I was on a Apache 1 with PHP 4.xx and i had not the bug.

When i want the URL xxx.php?toto=toto
   It's working fine

But if want the URL xxx.php?toto=tété 
   Then the server generate an Internal server error
and the apache.log says :
[Mon Aug 04 16:45:28 2003] [error] [client 127.0.0.1] (22)Invalid
argument: couldn't create child process: 22: php.exe
[Mon Aug 04 16:45:28 2003] [error] [client 127.0.0.1] (22)Invalid
argument: couldn't spawn child process: D:/Private/php431/php.exe

Thanks
Charles







-- 
Edit this bug report at http://bugs.php.net/?id=24935&edit=1



#24916 [Bgs]: IIS6.0 & CGI PHP header()

2003-08-04 Thread sadun at isikun dot org
 ID:   24916
 User updated by:  sadun at isikun dot org
 Reported By:  sadun at isikun dot org
 Status:   Bogus
 Bug Type: IIS related
 Operating System: Windows Server 2003
 PHP Version:  4.3.2
 New Comment:

!!! UPS.. NOW I CAN REDIRECT WITH GET BUT NOT WITH POST

i don't really know if my codes make this problem but except "IIS 6.0
CGI" i try it several apache servers 1.x 2.x both on unix and winNT
platforms and it always worked.

HERE ARE THE HEADERS



19:54:03.7320.203   *   POSTINET_E_REDIRECT_FAILED  text/html   
http://webgroup.isikun.edu.tr/main.php

-

(Response Status)   HTTP/1.1 302 Redirect
Cache-Control   no-store, no-cache, must-revalidate, post-check=0,
pre-check=0
Pragma  no-cache
Content-Length  161
Content-Typetext/html
Expires Thu, 19 Nov 1981 08:52:00 GMT
LocationHttp://webgroup.isikun.edu.tr/main.php
Server  Microsoft-IIS/6.0
X-Powered-ByPHP/4.3.3RC2
Set-Cookie  PHPSESSID=ad1a199467d611ed39773d5e56358239; path=/
Set-Cookie  student_session_id=6c9009a421a409c1385dde256b693840
X-Powered-ByASP.NET
DateMon, 04 Aug 2003 17:00:28 GMT

--

sorry for disturbing


Previous Comments:


[2003-08-04 09:02:59] sadun at isikun dot org

PROBLEM IS SOLVED WITH PHP4.3.3RC2

thanks for your help



[2003-08-04 08:38:44] sadun at isikun dot org

;cgi.redirect_status_env = ENV_VAR_NAME

no changes header("Location: URL_FOO");

can't be send in 4.3.2 IIS6.0 with CGI



[2003-08-04 08:21:30] [EMAIL PROTECTED]

Comment this line out: cgi.redirect_status_env = ENV_VAR_NAME




[2003-08-04 07:54:32] sadun at isikun dot org

SORRY PREVIOUS POST IS SEND HEADERS HERE ARE RECEIVED HEADERS
-

--
index.php WITH LOGIN FORM:
--
(Response Status)   HTTP/1.1 200 OK
Cache-Control   no-store, no-cache, must-revalidate, post-check=0,
pre-check=0
Pragma  no-cache
Content-Typetext/html
Expires Thu, 19 Nov 1981 08:52:00 GMT
Server  Microsoft-IIS/6.0
X-Powered-ByPHP/4.3.2
Set-Cookie  PHPSESSID=d67841ed88adca6bc603bd7e480d90ec; path=/
Set-Cookie  student_session_id=0
X-Powered-ByASP.NET
DateMon, 04 Aug 2003 12:53:11 GMT
Connection  close

--
AFTER SUBMITING POST FORM:
--

(Response Status)   HTTP/1.1 502 Bad Gateway
Content-Length  232
Content-Typetext/html
Server  Microsoft-IIS/6.0
X-Powered-ByASP.NET
DateMon, 04 Aug 2003 12:55:10 GMT

---

now i gonna try 4.3.3 RC2



[2003-08-03 13:24:53] [EMAIL PROTECTED]

And try PHP-4.3.3RC2 while you're at it.



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/24916

-- 
Edit this bug report at http://bugs.php.net/?id=24916&edit=1



#24916 [Bgs]: IIS6.0 & CGI PHP header()

2003-08-04 Thread sadun at isikun dot org
 ID:   24916
 User updated by:  sadun at isikun dot org
 Reported By:  sadun at isikun dot org
 Status:   Bogus
 Bug Type: IIS related
 Operating System: Windows Server 2003
 PHP Version:  4.3.2
 New Comment:

I FOUND THE PROBLEM IF YOU REDIRECT USER TO SAME PHP FILE IT MAKES AN
ERROR LOOP.

let's say i execute a code at main.php and if i redirect user to
main.php you can see in the headers that it makes a loop with errors at
headers with "INET_E_REDIRECT_FAILED" but you can redirect anywhere
else except same file...

CODE
-
http://webgroup.isikun.edu.tr/arge/header.php";);

?>

ERROR AT HEADERS
-

20:15:48.2790.109   *   GET INET_E_REDIRECT_FAILED  text/html   
http://webgroup.isikun.edu.tr/arge/header.php


Previous Comments:


[2003-08-04 12:03:35] sadun at isikun dot org

!!! UPS.. NOW I CAN REDIRECT WITH GET BUT NOT WITH POST

i don't really know if my codes make this problem but except "IIS 6.0
CGI" i try it several apache servers 1.x 2.x both on unix and winNT
platforms and it always worked.

HERE ARE THE HEADERS



19:54:03.7320.203   *   POSTINET_E_REDIRECT_FAILED  text/html   
http://webgroup.isikun.edu.tr/main.php

-

(Response Status)   HTTP/1.1 302 Redirect
Cache-Control   no-store, no-cache, must-revalidate, post-check=0,
pre-check=0
Pragma  no-cache
Content-Length  161
Content-Typetext/html
Expires Thu, 19 Nov 1981 08:52:00 GMT
LocationHttp://webgroup.isikun.edu.tr/main.php
Server  Microsoft-IIS/6.0
X-Powered-ByPHP/4.3.3RC2
Set-Cookie  PHPSESSID=ad1a199467d611ed39773d5e56358239; path=/
Set-Cookie  student_session_id=6c9009a421a409c1385dde256b693840
X-Powered-ByASP.NET
DateMon, 04 Aug 2003 17:00:28 GMT

--

sorry for disturbing



[2003-08-04 09:02:59] sadun at isikun dot org

PROBLEM IS SOLVED WITH PHP4.3.3RC2

thanks for your help



[2003-08-04 08:38:44] sadun at isikun dot org

;cgi.redirect_status_env = ENV_VAR_NAME

no changes header("Location: URL_FOO");

can't be send in 4.3.2 IIS6.0 with CGI



[2003-08-04 08:21:30] [EMAIL PROTECTED]

Comment this line out: cgi.redirect_status_env = ENV_VAR_NAME




[2003-08-04 07:54:32] sadun at isikun dot org

SORRY PREVIOUS POST IS SEND HEADERS HERE ARE RECEIVED HEADERS
-

--
index.php WITH LOGIN FORM:
--
(Response Status)   HTTP/1.1 200 OK
Cache-Control   no-store, no-cache, must-revalidate, post-check=0,
pre-check=0
Pragma  no-cache
Content-Typetext/html
Expires Thu, 19 Nov 1981 08:52:00 GMT
Server  Microsoft-IIS/6.0
X-Powered-ByPHP/4.3.2
Set-Cookie  PHPSESSID=d67841ed88adca6bc603bd7e480d90ec; path=/
Set-Cookie  student_session_id=0
X-Powered-ByASP.NET
DateMon, 04 Aug 2003 12:53:11 GMT
Connection  close

--
AFTER SUBMITING POST FORM:
--

(Response Status)   HTTP/1.1 502 Bad Gateway
Content-Length  232
Content-Typetext/html
Server  Microsoft-IIS/6.0
X-Powered-ByASP.NET
DateMon, 04 Aug 2003 12:55:10 GMT

---

now i gonna try 4.3.3 RC2



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/24916

-- 
Edit this bug report at http://bugs.php.net/?id=24916&edit=1



#22741 [Com]: session.bug_compat_warn and session.bug_compat_42 are ignored in the ini file

2003-08-04 Thread sustainedenergy at hotmail dot com
 ID:   22741
 Comment by:   sustainedenergy at hotmail dot com
 Reported By:  bodgadle at yahoo dot co dot uk
 Status:   No Feedback
 Bug Type: Session related
 Operating System: Windows 2000 SP3
 PHP Version:  4.3.2-RC
 New Comment:

I've received the same error with the script below:
---

---

I'm using v.4.2.2 on AIX.  rigister_globals = off.
Like the other reports, if session_unset is not used the error only
occurs once.

My problem is compounded by the fact that I'm not the sysad for this
server and I cannot simply make upgrades or edit the php.ini file. 
What are my options?


Previous Comments:


[2003-05-30 15:32:26] fbaker at olm1 dot com

I found that an 'empty' table causes the error message to be printed. 
If I put a dummy entry in the table, the error message stops.  

This is possibly bad code on my part, although the routine works fine
otherwise...  If the table is empty, the table is empty.  Who needs
it...  :-)

That still does not explain the reason we cannot turn off the error
message, if in fact we are supposed to be able to, but it's a fix.

Actually it might be good to keep the warning?  If the empty table
'cause' needs to be fixed, it might be best to do that more elegant
code, eh?  At least we know the error message works if there's some
reason for it to do so, eh?

Hope this helps.

Floyd



[2003-05-30 12:59:56] fbaker at olm1 dot com

I am having this problem when script uploaded to new site.

No help on any settings in php.ini.
Restarted apache with each change.

Dev on win98 with apache 1.3.24 and php 4.2.0.
Online apache 1.3.27 and php 4.3.1.

Vanilla php.ini-recommended had been copied to /etc/php.ini.

That was only copy found at first, but then I saw phpinfo looking for
it in /usr/local/lib.  Must have been using defaults all the way...,
whatever they were.  But it was running fairly well.  :-)

Now copied the recommended version into /usr/local/lib/php.ini but
unfortunately no help.

Floyd



[2003-05-22 03:47:29] pipe_mou at hotmail dot com

I have the same warning as yours :
PHP Warning:  Unknown(): Your script possibly
relies on a session side-effect which existed until PHP 4.2.3. Please
be
advised that the session extension does not consider global variables
as
a source of data, unless register_globals is enabled. You can disable
this functionality and this warning by setting session.bug_compat_42
or
session.bug_compat_warn to off, respectively. in Unknown on line 0

I resolved the problem setting

session.bug_compat_42 = 1 (and On)
session.bug_compat_warn = 0 (and Off)

and finally

register_globals = On

I hope it could help you.



[2003-04-28 11:14:06] [EMAIL PROTECTED]

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.





[2003-03-17 19:51:43] [EMAIL PROTECTED]

And your php.ini is under C:\winnt\ ??
What are the settings set to in phpinfo() output?




The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/22741

-- 
Edit this bug report at http://bugs.php.net/?id=22741&edit=1



#23104 [Asn->Csd]: Default array parameter value

2003-08-04 Thread iliaa
 ID:   23104
 Updated by:   [EMAIL PROTECTED]
 Reported By:  mkong at intisoft dot com
-Status:   Assigned
+Status:   Closed
 Bug Type: Scripting Engine problem
 Operating System: i86 Linux 2.4.7-10
 PHP Version:  4.3.3RC2-dev, 5.0.0b2-dev
 Assigned To:  iliaa
 New Comment:

This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:


[2003-04-08 07:54:10] [EMAIL PROTECTED]

 Changing to another category.



[2003-04-08 07:52:30] [EMAIL PROTECTED]



bool(false)

The internal hash pos is set after the last element.



[2003-04-07 22:26:09] mkong at intisoft dot com

If an array is used as a default parameter value, e.g:

function foo ($arrParam = array ("a", "b", "c")
{
  .
  .
  .
}

If the function is called without the corresponding parameter, i.e. the
default parameter value is used, the parameter ($arrParam) will need to
be reset first.




-- 
Edit this bug report at http://bugs.php.net/?id=23104&edit=1



#24909 [Fbk->Opn]: rand function with range always returns low value of range

2003-08-04 Thread a0 at hush dot com
 ID:   24909
 User updated by:  a0 at hush dot com
 Reported By:  a0 at hush dot com
-Status:   Feedback
+Status:   Open
 Bug Type: Math related
 Operating System: solaris 8
 PHP Version:  4.3.3RC3-dev
 New Comment:

i configured and built as you specified

Build complete.
(It is safe to ignore warnings about tempnam and tmpnam).

bash-2.05# sapi/cli/php -r 'echo rand(),"\n"; echo rand(0,100),"\n";'
16162
0
bash-2.05# sapi/cli/php -r 'echo rand(),"\n"; echo rand(0,100),"\n";'
31971
0
bash-2.05#


Previous Comments:


[2003-08-04 08:39:37] [EMAIL PROTECTED]

Please try this:

# rm config.cache
# ./configure --disable-all --disable-cgi --enable-experimental-zts
# make clean && make
# sapi/cli/php -r 'echo rand(),"\n"; echo rand(0,100),"\n";'





[2003-08-02 15:17:29] a0 at hush dot com

i used the cli binary in both cases



[2003-08-02 15:00:52] [EMAIL PROTECTED]

I've tried the ZTS version on both Linux & Windows and it worked
perfectly in both cases. Did you run test via the nsapi module or using
PHP cli or cgi binaries?



[2003-08-02 13:55:00] a0 at hush dot com

thanks for the response.

i have downloaded 4.3.3RC2 and tried it.

first, i configured it using no args.  after i compiled
it, the rand() function behaves as expected, even with
a range specified.  this works.

i then configured it with --with-nsapi=/usr/local/iws41,
which is what we need to use the module with our
webserver.  after i compiled it, the cli program now
returns a 0 whenever a range is specified to rand().

i have not really looked through the code, but i would
guess this has something to do with the fact that php
is built with -DZTS in the second scenario (a different
random function is used in rand.c when this is
defined).



[2003-08-02 12:46:58] [EMAIL PROTECTED]

I've asked a number of people to replicate the problem, however they
were unable to do so using latest PHP and Solaris 8 & 9. Please try the
latest snapshot of 4.3.3 and see if the problem persists.



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/24909

-- 
Edit this bug report at http://bugs.php.net/?id=24909&edit=1



#24936 [NEW]: FDFInitialize not defined

2003-08-04 Thread ceo at l-i-e dot com
From: ceo at l-i-e dot com
Operating system: Mandrake 8
PHP version:  4.3.2
PHP Bug Type: FDF related
Bug description:  FDFInitialize not defined

Description:

Compiling from source Apache 1.3.28 + PHP 4.3.2 --with-fdftk=shared +
libfdftk.so installed and displayed by "ldconfig -v", yields:

/usr/local/apache/bin/httpd: relocation error:
/usr/lib/php/extensions/fdf.so: undefined symbol: FDFInitialize


Attempting a static compilation yielded:

phpinfo() then showed me that FDF was there:
fdf
FDF Support  enabled
FdfTk Version  5.0

Alas, attempting to use fdf_create() yielded:

FDF Error: An internal FDF Library error occurred


Previously, using RPMs of PHP 4.2.3 and Apache 1.3.26 and then compiling
the PHP fdf.so from source and tossing it in the extensions directory, I
was able to use FDF.

So I'm reasonably certain that the FDFTK is working correctly.

But I need fdf_open_string and fdf_enum_values from PHP 4.3+

A much more long-winded version of this problem is at:
http://marc.theaimsgroup.com/?l=php-general&m=105976533301489&w=2



-- 
Edit bug report at http://bugs.php.net/?id=24936&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=24936&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=24936&r=trysnapshot5
Fixed in CVS:   http://bugs.php.net/fix.php?id=24936&r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=24936&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24936&r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=24936&r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=24936&r=support
Expected behavior:  http://bugs.php.net/fix.php?id=24936&r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=24936&r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=24936&r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=24936&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24936&r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=24936&r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=24936&r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=24936&r=gnused



#24407 [NoF->Csd]: configure: error: pcntl: fork() not supported by this platform

2003-08-04 Thread sonny at sun dot com
 ID:   24407
 User updated by:  sonny at sun dot com
 Reported By:  sonny at sun dot com
-Status:   No Feedback
+Status:   Closed
 Bug Type: *Configuration Issues
 Operating System: Solaris 9
 PHP Version:  5.0.0b1 (beta1)
 New Comment:

configure with pcntl works


Previous Comments:


[2003-07-30 22:09:24] [EMAIL PROTECTED]

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.





[2003-07-24 15:27:40] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip

And check config.log for possible more information about the error.




[2003-06-30 08:48:10] sonny at sun dot com

Description:

Due configure of php5.0beta comes following error:
checking for fork... no
configure: error: pcntl: fork() not supported by this platform

On php4.3.2 was it all fine.

I'm using it on Solaris 9 && SPARC Platform.

Reproduce code:
---
Run an configure on an sparc plattform.

Expected result:

pcntl extension should work.






-- 
Edit this bug report at http://bugs.php.net/?id=24407&edit=1



#24937 [NEW]: Serv-U 4.1 & FTP ftp_nlist() , ftp_rawlist()

2003-08-04 Thread sadun at isikun dot org
From: sadun at isikun dot org
Operating system: windows server 2003
PHP version:  4.3.3RC2
PHP Bug Type: FTP related
Bug description:  Serv-U 4.1 & FTP ftp_nlist() , ftp_rawlist()

Description:

when i use these functions on v-ftp (unix) OR "IIS6.0 FTP server" there
are no problems but when i started use "Serv-U 4.1" (which is commonly
used at virtual hosting companies) fallowing error started to accour.

** this server let you to create virtual directory accounts.

user se u:\home\user_name as / root folder.



Reproduce code:
---
";
print_r($nlist); /*simple array of directories & files*/
print_r($rawlist); /*complete array of directories & files*/
echo "";
?>

Expected result:

Array
(
[0] => php
[1] => php.4.3.3rc2
[2] => php4.3.2
[3] => temp
[4] => wwwroot
)
Array
(
[0] => drw-rw-rw-   1 user group   0 Aug  4 17:08 php
[1] => drw-rw-rw-   1 user group   0 Aug  4 16:46
php.4.3.3rc2
[2] => drw-rw-rw-   1 user group   0 Jul 31 16:19
php4.3.2
[3] => drw-rw-rw-   1 user group   0 Aug  4 16:56 temp
[4] => drw-rw-rw-   1 user group   0 Aug  4 21:09 wwwroot
)



Actual result:
--
Array
(
[0] => tr8  /*no such directory */
)
Array
(
[0] => drw-rw-rw-   1 user group   0 Aug  4 17:08 php
[1] => drw-rw-rw-   1 user group   0 Aug  4 16:46
php.4.3.3rc2
[2] => drw-rw-rw-   1 user group   0 Jul 31 16:19
php4.3.2
[3] => drw-rw-rw-   1 user group   0 Aug  4 16:56 temp
[4] => -rw-rw-rw-   1 user group   0 Aug  4 21:09 tr8.1
[5] => drw-rw-rw-   1 user group   0 Aug  4 19:55 wwwroot
)



-- 
Edit bug report at http://bugs.php.net/?id=24937&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=24937&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=24937&r=trysnapshot5
Fixed in CVS:   http://bugs.php.net/fix.php?id=24937&r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=24937&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24937&r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=24937&r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=24937&r=support
Expected behavior:  http://bugs.php.net/fix.php?id=24937&r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=24937&r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=24937&r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=24937&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24937&r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=24937&r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=24937&r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=24937&r=gnused



#24938 [NEW]: Error due compiling sockets

2003-08-04 Thread sonny at sun dot com
From: sonny at sun dot com
Operating system: Solaris 9
PHP version:  5CVS-2003-08-04 (dev)
PHP Bug Type: Compile Failure
Bug description:  Error due compiling sockets

Description:

Compiling Error with --enable-sockets

/tmp/php5-200308041730/ext/sockets/sockets.c: In function
`zif_socket_recvmsg':
/tmp/php5-200308041730/ext/sockets/sockets.c:1783: structure has no member
named `msg_control'
/tmp/php5-200308041730/ext/sockets/sockets.c:1784: structure has no member
named `msg_controllen'
/tmp/php5-200308041730/ext/sockets/sockets.c:1793: structure has no member
named `msg_control'
/tmp/php5-200308041730/ext/sockets/sockets.c:1801: structure has no member
named `msg_controllen'
/tmp/php5-200308041730/ext/sockets/sockets.c:1812: warning: passing arg 4
of `add_assoc_string_ex' makes pointer from integer without a cast
/tmp/php5-200308041730/ext/sockets/sockets.c:1841: structure has no member
named `msg_control'
/tmp/php5-200308041730/ext/sockets/sockets.c:1842: structure has no member
named `msg_controllen'
/tmp/php5-200308041730/ext/sockets/sockets.c:1851: structure has no member
named `msg_control'
/tmp/php5-200308041730/ext/sockets/sockets.c:1859: structure has no member
named `msg_controllen'
/tmp/php5-200308041730/ext/sockets/sockets.c:1870: warning: passing arg 4
of `add_assoc_string_ex' makes pointer from integer without a cast
/tmp/php5-200308041730/ext/sockets/sockets.c:1894: structure has no member
named `msg_control'
/tmp/php5-200308041730/ext/sockets/sockets.c:1895: structure has no member
named `msg_controllen'
/tmp/php5-200308041730/ext/sockets/sockets.c:1897: structure has no member
named `msg_control'
/tmp/php5-200308041730/ext/sockets/sockets.c:1898: structure has no member
named `msg_controllen'
/tmp/php5-200308041730/ext/sockets/sockets.c:1909: structure has no member
named `msg_control'
/tmp/php5-200308041730/ext/sockets/sockets.c:1918: structure has no member
named `msg_controllen'
/tmp/php5-200308041730/ext/sockets/sockets.c:1927: warning: passing arg 4
of `add_assoc_string_ex' makes pointer from integer without a cast
make: *** [ext/sockets/sockets.lo] Error 1


Reproduce code:
---
CONFIGURE:
./configure --prefix=/tmp/PHP --enable-memory-limit --enable-yp
--enable-wddx --enable-sysvmsg --enable-sysvsem --enable-sysvshm
--enable-sockets --enable-pcntl --enable-cli --enable-ftp --enable-dbase
--enable-dbx --enable-dio --enable-bcmath --enable-calendar

GCC:
gcc version 3.2

make:
GNU Make version 3.79.1

Expected result:

Working sockets


-- 
Edit bug report at http://bugs.php.net/?id=24938&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=24938&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=24938&r=trysnapshot5
Fixed in CVS:   http://bugs.php.net/fix.php?id=24938&r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=24938&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24938&r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=24938&r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=24938&r=support
Expected behavior:  http://bugs.php.net/fix.php?id=24938&r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=24938&r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=24938&r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=24938&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24938&r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=24938&r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=24938&r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=24938&r=gnused



#24931 [Ver->Bgs]: call_user_func ignores requirement of references

2003-08-04 Thread iliaa
 ID:   24931
 Updated by:   [EMAIL PROTECTED]
 Reported By:  rehsack at liwing dot de
-Status:   Verified
+Status:   Bogus
 Bug Type: Scripting Engine problem
 Operating System: FreeBSD 5.1 i386
 PHP Version:  4.3.3RC2, 5.0.0b2-dev
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

$id is modified because the original $id passed to  call_user_func() is
not being passed by reference.


Previous Comments:


[2003-08-04 03:22:31] rehsack at liwing dot de

Description:

The method call_user_func ignores requirement of called
function takes it's arguments as reference. The results
in several times very ugly and hard to find bugs, eg. if
you use a template pattern combined with composite to
control child templates and want to do an action in each
child object and require to work on current data copy.

Either, if call_user_func internally is able to be called
by reference, some programs could be speed up, too (because
of the loose of expensive string copies)

This bug may related to #24631 but seems to have another
background. I can submit a more complicated example using
templates and a composite object to illustrate the problem.

Enabling call-time references in php.ini would solve this
problem by don't write a warning but I don't think it's
a good way to solve...


Reproduce code:
---



Expected result:

before call_user_func id=1
after call_user_func id=2
after call_user_func_array id=3

Actual result:
--
before call_user_func id=1
after call_user_func id=1
after call_user_func_array id=2





-- 
Edit this bug report at http://bugs.php.net/?id=24931&edit=1



#24938 [Opn]: Error due compiling sockets

2003-08-04 Thread sonny at sun dot com
 ID:   24938
 User updated by:  sonny at sun dot com
 Reported By:  sonny at sun dot com
 Status:   Open
 Bug Type: Compile Failure
 Operating System: Solaris 9
 PHP Version:  5CVS-2003-08-04 (dev)
 New Comment:

Just tried with:

configure:
env CC=cc CXX=CC CFLAGS="-O" ./configure --with-tsrm-pthreads
--enable-zend-multibyte --enable-memory-limit ...

Compiler:
cc: Sun C 5.5 Patch 112760-01 2003/05/18


Previous Comments:


[2003-08-04 13:32:24] sonny at sun dot com

Description:

Compiling Error with --enable-sockets

/tmp/php5-200308041730/ext/sockets/sockets.c: In function
`zif_socket_recvmsg':
/tmp/php5-200308041730/ext/sockets/sockets.c:1783: structure has no
member named `msg_control'
/tmp/php5-200308041730/ext/sockets/sockets.c:1784: structure has no
member named `msg_controllen'
/tmp/php5-200308041730/ext/sockets/sockets.c:1793: structure has no
member named `msg_control'
/tmp/php5-200308041730/ext/sockets/sockets.c:1801: structure has no
member named `msg_controllen'
/tmp/php5-200308041730/ext/sockets/sockets.c:1812: warning: passing arg
4 of `add_assoc_string_ex' makes pointer from integer without a cast
/tmp/php5-200308041730/ext/sockets/sockets.c:1841: structure has no
member named `msg_control'
/tmp/php5-200308041730/ext/sockets/sockets.c:1842: structure has no
member named `msg_controllen'
/tmp/php5-200308041730/ext/sockets/sockets.c:1851: structure has no
member named `msg_control'
/tmp/php5-200308041730/ext/sockets/sockets.c:1859: structure has no
member named `msg_controllen'
/tmp/php5-200308041730/ext/sockets/sockets.c:1870: warning: passing arg
4 of `add_assoc_string_ex' makes pointer from integer without a cast
/tmp/php5-200308041730/ext/sockets/sockets.c:1894: structure has no
member named `msg_control'
/tmp/php5-200308041730/ext/sockets/sockets.c:1895: structure has no
member named `msg_controllen'
/tmp/php5-200308041730/ext/sockets/sockets.c:1897: structure has no
member named `msg_control'
/tmp/php5-200308041730/ext/sockets/sockets.c:1898: structure has no
member named `msg_controllen'
/tmp/php5-200308041730/ext/sockets/sockets.c:1909: structure has no
member named `msg_control'
/tmp/php5-200308041730/ext/sockets/sockets.c:1918: structure has no
member named `msg_controllen'
/tmp/php5-200308041730/ext/sockets/sockets.c:1927: warning: passing arg
4 of `add_assoc_string_ex' makes pointer from integer without a cast
make: *** [ext/sockets/sockets.lo] Error 1


Reproduce code:
---
CONFIGURE:
./configure --prefix=/tmp/PHP --enable-memory-limit --enable-yp
--enable-wddx --enable-sysvmsg --enable-sysvsem --enable-sysvshm
--enable-sockets --enable-pcntl --enable-cli --enable-ftp
--enable-dbase --enable-dbx --enable-dio --enable-bcmath
--enable-calendar

GCC:
gcc version 3.2

make:
GNU Make version 3.79.1

Expected result:

Working sockets






-- 
Edit this bug report at http://bugs.php.net/?id=24938&edit=1



#24939 [NEW]: Variable method names have become less flexible

2003-08-04 Thread hans at velum dot net
From: hans at velum dot net
Operating system: Linux (Debian)
PHP version:  5.0.0b1 (beta1)
PHP Bug Type: Zend Engine 2 problem
Bug description:  Variable method names have become less flexible

Description:

Smarty uses a rather complex variable method name replacement system.  In
the "compiled" Smarty templates there is code like this:

  $this->_plugins['function']['assign'][0](/* params */)

Which works fine in PHP4, but PHP5 issues a fatal error:

  "Fatal error: Method name must be a string"

Is this a PHP5 bug or an abuse of PHP syntax (and therefore a Smarty bug)?

Reproduce code:
---
A Smarty compiled template:

_load_plugins(array(
array('function', 'assign', 'sql/db-init/Control.tpl', 1, false),));
?>_plugins['function']['assign'][0](array('var' =>
'fname','value' =>
"sql/db-init/".$this->_tpl_vars['targetDatabase']."/createdb.tpl"), $this)
; ?>

_tpl_vars;
$this->_smarty_include($this->_tpl_vars['fname'], array());
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
~

Expected result:

No error.

Actual result:
--
Fatal error: Method name must be a string in
templates_c/%%-16/%%-1662958972/Control.tpl.php

-- 
Edit bug report at http://bugs.php.net/?id=24939&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=24939&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=24939&r=trysnapshot5
Fixed in CVS:   http://bugs.php.net/fix.php?id=24939&r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=24939&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24939&r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=24939&r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=24939&r=support
Expected behavior:  http://bugs.php.net/fix.php?id=24939&r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=24939&r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=24939&r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=24939&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24939&r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=24939&r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=24939&r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=24939&r=gnused



#24937 [Opn->Bgs]: Serv-U 4.1 & FTP ftp_nlist() , ftp_rawlist()

2003-08-04 Thread iliaa
 ID:   24937
 Updated by:   [EMAIL PROTECTED]
 Reported By:  sadun at isikun dot org
-Status:   Open
+Status:   Bogus
 Bug Type: FTP related
 Operating System: windows server 2003
 PHP Version:  4.3.3RC2
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

 ftp_nlist() will only return the files inside a particular directory.
While  ftp_rawlist() will list both files & directories. Since other
then tr8.1 there are no files in the specified directory output of
ftp_nlist() only contains a single element.


Previous Comments:


[2003-08-04 13:24:56] sadun at isikun dot org

Description:

when i use these functions on v-ftp (unix) OR "IIS6.0 FTP server" there
are no problems but when i started use "Serv-U 4.1" (which is commonly
used at virtual hosting companies) fallowing error started to accour.

** this server let you to create virtual directory accounts.

user se u:\home\user_name as / root folder.



Reproduce code:
---
";
print_r($nlist); /*simple array of directories & files*/
print_r($rawlist); /*complete array of directories & files*/
echo "";
?>

Expected result:

Array
(
[0] => php
[1] => php.4.3.3rc2
[2] => php4.3.2
[3] => temp
[4] => wwwroot
)
Array
(
[0] => drw-rw-rw-   1 user group   0 Aug  4 17:08 php
[1] => drw-rw-rw-   1 user group   0 Aug  4 16:46
php.4.3.3rc2
[2] => drw-rw-rw-   1 user group   0 Jul 31 16:19
php4.3.2
[3] => drw-rw-rw-   1 user group   0 Aug  4 16:56 temp
[4] => drw-rw-rw-   1 user group   0 Aug  4 21:09
wwwroot
)



Actual result:
--
Array
(
[0] => tr8  /*no such directory */
)
Array
(
[0] => drw-rw-rw-   1 user group   0 Aug  4 17:08 php
[1] => drw-rw-rw-   1 user group   0 Aug  4 16:46
php.4.3.3rc2
[2] => drw-rw-rw-   1 user group   0 Jul 31 16:19
php4.3.2
[3] => drw-rw-rw-   1 user group   0 Aug  4 16:56 temp
[4] => -rw-rw-rw-   1 user group   0 Aug  4 21:09
tr8.1
[5] => drw-rw-rw-   1 user group   0 Aug  4 19:55
wwwroot
)







-- 
Edit this bug report at http://bugs.php.net/?id=24937&edit=1



#24916 [Bgs->Opn]: IIS6.0 & CGI PHP header()

2003-08-04 Thread sadun at isikun dot org
 ID:   24916
 User updated by:  sadun at isikun dot org
 Reported By:  sadun at isikun dot org
-Status:   Bogus
+Status:   Open
 Bug Type: IIS related
 Operating System: Windows Server 2003
 PHP Version:  4.3.2
 New Comment:

i forgot to pick Status Open  :)

still have the problem which is at the top...


Previous Comments:


[2003-08-04 12:25:32] sadun at isikun dot org

I FOUND THE PROBLEM IF YOU REDIRECT USER TO SAME PHP FILE IT MAKES AN
ERROR LOOP.

let's say i execute a code at main.php and if i redirect user to
main.php you can see in the headers that it makes a loop with errors at
headers with "INET_E_REDIRECT_FAILED" but you can redirect anywhere
else except same file...

CODE
-
http://webgroup.isikun.edu.tr/arge/header.php";);

?>

ERROR AT HEADERS
-

20:15:48.2790.109   *   GET INET_E_REDIRECT_FAILED  text/html   
http://webgroup.isikun.edu.tr/arge/header.php



[2003-08-04 12:03:35] sadun at isikun dot org

!!! UPS.. NOW I CAN REDIRECT WITH GET BUT NOT WITH POST

i don't really know if my codes make this problem but except "IIS 6.0
CGI" i try it several apache servers 1.x 2.x both on unix and winNT
platforms and it always worked.

HERE ARE THE HEADERS



19:54:03.7320.203   *   POSTINET_E_REDIRECT_FAILED  text/html   
http://webgroup.isikun.edu.tr/main.php

-

(Response Status)   HTTP/1.1 302 Redirect
Cache-Control   no-store, no-cache, must-revalidate, post-check=0,
pre-check=0
Pragma  no-cache
Content-Length  161
Content-Typetext/html
Expires Thu, 19 Nov 1981 08:52:00 GMT
LocationHttp://webgroup.isikun.edu.tr/main.php
Server  Microsoft-IIS/6.0
X-Powered-ByPHP/4.3.3RC2
Set-Cookie  PHPSESSID=ad1a199467d611ed39773d5e56358239; path=/
Set-Cookie  student_session_id=6c9009a421a409c1385dde256b693840
X-Powered-ByASP.NET
DateMon, 04 Aug 2003 17:00:28 GMT

--

sorry for disturbing



[2003-08-04 09:02:59] sadun at isikun dot org

PROBLEM IS SOLVED WITH PHP4.3.3RC2

thanks for your help



[2003-08-04 08:38:44] sadun at isikun dot org

;cgi.redirect_status_env = ENV_VAR_NAME

no changes header("Location: URL_FOO");

can't be send in 4.3.2 IIS6.0 with CGI



[2003-08-04 08:21:30] [EMAIL PROTECTED]

Comment this line out: cgi.redirect_status_env = ENV_VAR_NAME




The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/24916

-- 
Edit this bug report at http://bugs.php.net/?id=24916&edit=1



#24936 [Opn->Fbk]: FDFInitialize not defined

2003-08-04 Thread iliaa
 ID:   24936
 Updated by:   [EMAIL PROTECTED]
 Reported By:  ceo at l-i-e dot com
-Status:   Open
+Status:   Feedback
 Bug Type: FDF related
 Operating System: Mandrake 8
 PHP Version:  4.3.2
 New Comment:

Did tell php to load the fdf extension?


Previous Comments:


[2003-08-04 13:10:28] ceo at l-i-e dot com

Description:

Compiling from source Apache 1.3.28 + PHP 4.3.2 --with-fdftk=shared +
libfdftk.so installed and displayed by "ldconfig -v", yields:

/usr/local/apache/bin/httpd: relocation error:
/usr/lib/php/extensions/fdf.so: undefined symbol: FDFInitialize


Attempting a static compilation yielded:

phpinfo() then showed me that FDF was there:
fdf
FDF Support  enabled
FdfTk Version  5.0

Alas, attempting to use fdf_create() yielded:

FDF Error: An internal FDF Library error occurred


Previously, using RPMs of PHP 4.2.3 and Apache 1.3.26 and then
compiling the PHP fdf.so from source and tossing it in the extensions
directory, I was able to use FDF.

So I'm reasonably certain that the FDFTK is working correctly.

But I need fdf_open_string and fdf_enum_values from PHP 4.3+

A much more long-winded version of this problem is at:
http://marc.theaimsgroup.com/?l=php-general&m=105976533301489&w=2







-- 
Edit this bug report at http://bugs.php.net/?id=24936&edit=1



#22189 [Ver->Bgs]: Configuration file is not loaded, though PHP reports it is

2003-08-04 Thread iliaa
 ID:   22189
 Updated by:   [EMAIL PROTECTED]
 Reported By:  krenya at inf dot bme dot hu
-Status:   Verified
+Status:   Bogus
 Bug Type: Scripting Engine problem
 Operating System: Linux 2.2 / 2.4
 PHP Version:  4.3.2-RC
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

It seems to me that if an admin decides to create a php.ini directory
for the purpose of storing php.ini not only are they creating confusion
by inviting trouble. Plus if they absolutely must do this they should
be using the --with-config-file-scan-dir configuration directive.


Previous Comments:


[2003-03-22 19:25:36] [EMAIL PROTECTED]

For me, it fails with this error, IF I have /etc/php.ini/
directory:

input in flex scanner failed
/www/apache/bin/apachectl startssl: httpd could not be started

So I can't even start Apache in such case.




[2003-02-12 16:05:26] krenya at inf dot bme dot hu

Thanks for the answer but I think might you have missed the point so
let me put this in another context:
Some slightly insane sysop wants php.ini to reside here:
/etc/php.ini/php.ini
and uses the following config line to specify the path:
'--with-config-file-path=/etc/php.ini'

phpinfo() will show for Configuration file: '/etc/php.ini' instead of
'/etc/php.ini/php.ini' which would be the correct location. The problem
might be with phpinfo then: you put the config file where PHP says it
loads it from, but it doesn't load it. Well at least in this insane
case when you choose such a location.



[2003-02-12 12:12:29] [EMAIL PROTECTED]

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

Your assumption is quite correct, this option needs to be only passed
the directory where the php.ini can be found not the path to the file
itself.



[2003-02-12 10:57:52] krenya at inf dot bme dot hu

Something is probably wrong with intrepreting the following configure
option:
'--with-config-file-path=/usr/local/apache/conf/php.ini'

phpinfo() will report this:

Configuration File (php.ini):
   "/usr/local/apache/conf/php.ini"

This is exactly the same as if you compile it with a saner option:
'--with-config-file-path=/usr/local/apache/conf/'

The difference between the two cases is that in the first case the
config file is not loaded by PHP. My educated guess is that it tries to
load if from: "/usr/local/apache/conf/php.ini/php.ini" so it fails and
the location is simply misreported in phpinfo().

I fisrt met this a long ago with 4.0.6 or 4.1.2 or so, but it's still
there in 4.3.0 as I just ran into this type of a problem again.





-- 
Edit this bug report at http://bugs.php.net/?id=22189&edit=1



#24931 [Bgs->Opn]: call_user_func ignores requirement of references

2003-08-04 Thread rehsack at liwing dot de
 ID:   24931
 User updated by:  rehsack at liwing dot de
 Reported By:  rehsack at liwing dot de
-Status:   Bogus
+Status:   Open
 Bug Type: Scripting Engine problem
 Operating System: FreeBSD 5.1 i386
 PHP Version:  4.3.3RC2, 5.0.0b2-dev
 New Comment:

Hi Ilia,

your wrong, because:
$ cat test1.php


$ php test1.php

Warning: Call-time pass-by-reference has been deprecated - argument
passed by value;  If you would like to pass it by reference, modify the
declaration of call_
user_func().  If you would like to enable call-time pass-by-reference,
you can set allow_call_time_pass_reference to true in your INI file. 
However, future versions may not support this any longer.  in
/var/www/data/trevor/flexpage/test/php-bugs/test1.php on line 10
before call_user_func id=1
after call_user_func id=2
after call_user_func_array id=3

This gives the wanted result but prints out a warning.
By the way, I don't want to discus whether call_user_func is
implemented as described neither it's not working as designed. I want
to tell you (as php team), that the design
might be wrong.

Either, if you (as php team) don't have any plans to extend
the design (what shouldn't be to complicated), I consider you update
the documentation that way, that you describe
that call_user_func will duplicate the given argument.

call_user_func is not an intelligent function (what it
could be), it's a dumb one (this is not an offending but
it is like a dumb terminal as some old unix ones).

I want to consider by this bug report to rewrite call_user_func becomes
intelligent (looks what kind of
argument is required and calls that way).

Otherwise I had to open a documentation bug, because this
behaviour should be documented explicitely.


Previous Comments:


[2003-08-04 13:37:42] [EMAIL PROTECTED]

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

$id is modified because the original $id passed to  call_user_func() is
not being passed by reference.



[2003-08-04 03:22:31] rehsack at liwing dot de

Description:

The method call_user_func ignores requirement of called
function takes it's arguments as reference. The results
in several times very ugly and hard to find bugs, eg. if
you use a template pattern combined with composite to
control child templates and want to do an action in each
child object and require to work on current data copy.

Either, if call_user_func internally is able to be called
by reference, some programs could be speed up, too (because
of the loose of expensive string copies)

This bug may related to #24631 but seems to have another
background. I can submit a more complicated example using
templates and a composite object to illustrate the problem.

Enabling call-time references in php.ini would solve this
problem by don't write a warning but I don't think it's
a good way to solve...


Reproduce code:
---



Expected result:

before call_user_func id=1
after call_user_func id=2
after call_user_func_array id=3

Actual result:
--
before call_user_func id=1
after call_user_func id=1
after call_user_func_array id=2





-- 
Edit this bug report at http://bugs.php.net/?id=24931&edit=1



#20558 [Com]: Notice: Undefined variable:

2003-08-04 Thread niklas_u_f at bredband dot net
 ID:   20558
 Comment by:   niklas_u_f at bredband dot net
 Reported By:  chat_cha at hotmail dot com
 Status:   Bogus
 Bug Type: Variables related
 Operating System: window 2000
 PHP Version:  4.2.3
 New Comment:

hello i got a problemI´m about to start my own webserver and domain
name...but i´m just foling around now with windows 2000 server.
so i can learn the software.

but the problem is i get a error message :

Notice: Undefined variable: REMOTE_ADDR in
c:\inetpub\wwwroot\test\online\online.php on line 19

the code is in the online.php :



Please response to my e-mail please


Previous Comments:


[2002-11-21 21:36:07] [EMAIL PROTECTED]

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

If you do not want to see notice warnings, set your error reporting
level to E_ALL ^ E_NOTICE



[2002-11-21 21:21:49] chat_cha at hotmail dot com

Where test php code, show error that
Notice: Undefined variable: [var_name] in [file_name.php] on line
[name_line]

How I can do for don't show this error message?

Note : I use IIS for web server.
Thanks




-- 
Edit this bug report at http://bugs.php.net/?id=20558&edit=1



#24941 [NEW]: strtotime returns same date for "first wednesday" and "second Wednesday"

2003-08-04 Thread jpage at javeo dot com
From: jpage at javeo dot com
Operating system: Red Hat Linux
PHP version:  4.3.1
PHP Bug Type: Date/time related
Bug description:  strtotime returns same date for "first wednesday" and "second 
Wednesday"

Description:

strtotime() returns the same result for "first wednesday" and "second
wednesday".  I ran this against 'today' - Aug 4 2003, but the code below
should show the error on any day.


Reproduce code:
---
$t=strtotime("Aug 3 2003"); 

$r=strtotime("first wednesday",$t);
print(date('r',$r));

print("");

$r=strtotime("second wednesday",$t);
print(date('r',$r));


Expected result:

two different dates a week apart

Actual result:
--
Wed Aug for both

-- 
Edit bug report at http://bugs.php.net/?id=24941&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=24941&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=24941&r=trysnapshot5
Fixed in CVS:   http://bugs.php.net/fix.php?id=24941&r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=24941&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24941&r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=24941&r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=24941&r=support
Expected behavior:  http://bugs.php.net/fix.php?id=24941&r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=24941&r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=24941&r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=24941&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24941&r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=24941&r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=24941&r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=24941&r=gnused



#24941 [Opn]: strtotime returns same date for "first wednesday" and "second Wednesday"

2003-08-04 Thread jpage at javeo dot com
 ID:   24941
 User updated by:  jpage at javeo dot com
 Reported By:  jpage at javeo dot com
 Status:   Open
 Bug Type: Date/time related
 Operating System: Red Hat Linux
 PHP Version:  4.3.1
 New Comment:

Typo:
Actual result: both produce Aug 6 2003


Previous Comments:


[2003-08-04 17:29:15] jpage at javeo dot com

Description:

strtotime() returns the same result for "first wednesday" and "second
wednesday".  I ran this against 'today' - Aug 4 2003, but the code
below should show the error on any day.


Reproduce code:
---
$t=strtotime("Aug 3 2003"); 

$r=strtotime("first wednesday",$t);
print(date('r',$r));

print("");

$r=strtotime("second wednesday",$t);
print(date('r',$r));


Expected result:

two different dates a week apart

Actual result:
--
Wed Aug for both





-- 
Edit this bug report at http://bugs.php.net/?id=24941&edit=1



#20558 [Bgs]: Notice: Undefined variable:

2003-08-04 Thread philip
 ID:   20558
 Updated by:   [EMAIL PROTECTED]
 Reported By:  chat_cha at hotmail dot com
 Status:   Bogus
 Bug Type: Variables related
 Operating System: window 2000
 PHP Version:  4.2.3
 New Comment:

It has to do with your setup, specifically the register_globals
directive.

 * http://www.php.net/support.php


Previous Comments:


[2003-08-04 15:22:32] niklas_u_f at bredband dot net

hello i got a problemI´m about to start my own webserver and domain
name...but i´m just foling around now with windows 2000 server.
so i can learn the software.

but the problem is i get a error message :

Notice: Undefined variable: REMOTE_ADDR in
c:\inetpub\wwwroot\test\online\online.php on line 19

the code is in the online.php :



Please response to my e-mail please



[2002-11-21 21:36:07] [EMAIL PROTECTED]

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

If you do not want to see notice warnings, set your error reporting
level to E_ALL ^ E_NOTICE



[2002-11-21 21:21:49] chat_cha at hotmail dot com

Where test php code, show error that
Notice: Undefined variable: [var_name] in [file_name.php] on line
[name_line]

How I can do for don't show this error message?

Note : I use IIS for web server.
Thanks




-- 
Edit this bug report at http://bugs.php.net/?id=20558&edit=1



#24941 [Opn->Bgs]: strtotime returns same date for "first wednesday" and "second Wednesday"

2003-08-04 Thread iliaa
 ID:   24941
 Updated by:   [EMAIL PROTECTED]
 Reported By:  jpage at javeo dot com
-Status:   Open
+Status:   Bogus
 Bug Type: Date/time related
 Operating System: Red Hat Linux
 PHP Version:  4.3.1
 New Comment:

Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. Because of this, we hope you add your comments
to the existing bug instead.

Thank you for your interest in PHP.

Same bug as 2 other strtotime() bugs, which are currently opened.


Previous Comments:


[2003-08-04 17:31:17] jpage at javeo dot com

Typo:
Actual result: both produce Aug 6 2003



[2003-08-04 17:29:15] jpage at javeo dot com

Description:

strtotime() returns the same result for "first wednesday" and "second
wednesday".  I ran this against 'today' - Aug 4 2003, but the code
below should show the error on any day.


Reproduce code:
---
$t=strtotime("Aug 3 2003"); 

$r=strtotime("first wednesday",$t);
print(date('r',$r));

print("");

$r=strtotime("second wednesday",$t);
print(date('r',$r));


Expected result:

two different dates a week apart

Actual result:
--
Wed Aug for both





-- 
Edit this bug report at http://bugs.php.net/?id=24941&edit=1



#24931 [Opn->Bgs]: call_user_func ignores requirement of references

2003-08-04 Thread iliaa
 ID:   24931
 Updated by:   [EMAIL PROTECTED]
 Reported By:  rehsack at liwing dot de
-Status:   Open
+Status:   Bogus
 Bug Type: Scripting Engine problem
 Operating System: FreeBSD 5.1 i386
 PHP Version:  4.3.3RC2, 5.0.0b2-dev
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

I admit that the error is misleading, because it cannot tell that
function was not executed directly but rather via call_user_func().
However, the actual functionality of the code is correct. The variable
is not passed by reference to call_user_func(), hence making it pass a
copy to nextID(). The documentation does not mention that you can pass
variables by reference and that's because in this case you cannot.


Previous Comments:


[2003-08-04 17:06:16] rehsack at liwing dot de

Hi Ilia,

your wrong, because:
$ cat test1.php


$ php test1.php

Warning: Call-time pass-by-reference has been deprecated - argument
passed by value;  If you would like to pass it by reference, modify the
declaration of call_
user_func().  If you would like to enable call-time pass-by-reference,
you can set allow_call_time_pass_reference to true in your INI file. 
However, future versions may not support this any longer.  in
/var/www/data/trevor/flexpage/test/php-bugs/test1.php on line 10
before call_user_func id=1
after call_user_func id=2
after call_user_func_array id=3

This gives the wanted result but prints out a warning.
By the way, I don't want to discus whether call_user_func is
implemented as described neither it's not working as designed. I want
to tell you (as php team), that the design
might be wrong.

Either, if you (as php team) don't have any plans to extend
the design (what shouldn't be to complicated), I consider you update
the documentation that way, that you describe
that call_user_func will duplicate the given argument.

call_user_func is not an intelligent function (what it
could be), it's a dumb one (this is not an offending but
it is like a dumb terminal as some old unix ones).

I want to consider by this bug report to rewrite call_user_func becomes
intelligent (looks what kind of
argument is required and calls that way).

Otherwise I had to open a documentation bug, because this
behaviour should be documented explicitely.



[2003-08-04 13:37:42] [EMAIL PROTECTED]

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

$id is modified because the original $id passed to  call_user_func() is
not being passed by reference.



[2003-08-04 03:22:31] rehsack at liwing dot de

Description:

The method call_user_func ignores requirement of called
function takes it's arguments as reference. The results
in several times very ugly and hard to find bugs, eg. if
you use a template pattern combined with composite to
control child templates and want to do an action in each
child object and require to work on current data copy.

Either, if call_user_func internally is able to be called
by reference, some programs could be speed up, too (because
of the loose of expensive string copies)

This bug may related to #24631 but seems to have another
background. I can submit a more complicated example using
templates and a composite object to illustrate the problem.

Enabling call-time references in php.ini would solve this
problem by don't write a warning but I don't think it's
a good way to solve...


Reproduce code:
---



Expected result:

before call_user_func id=1
after call_user_func id=2
after call_user_func_array id=3

Actual result:
--
before call_user_func id=1
after call_user_func id=1
after call_user_func_array id=2





-- 
Edit this bug report at http://bugs.php.net/?id=24931&edit=1



#24941 [Bgs]: strtotime returns same date for "first wednesday" and "second Wednesday"

2003-08-04 Thread iliaa
 ID:   24941
 Updated by:   [EMAIL PROTECTED]
 Reported By:  jpage at javeo dot com
 Status:   Bogus
 Bug Type: Date/time related
 Operating System: Red Hat Linux
 PHP Version:  4.3.1
 New Comment:

Bug #20382 and #18670


Previous Comments:


[2003-08-04 20:25:37] jpage at javeo dot com

Well I tried to search for similar bugs but did not find any that
struck me as the same.  You say there are two but fail to mention which
ones they are.  Can you help me out here?



[2003-08-04 19:30:46] [EMAIL PROTECTED]

Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. Because of this, we hope you add your comments
to the existing bug instead.

Thank you for your interest in PHP.

Same bug as 2 other strtotime() bugs, which are currently opened.



[2003-08-04 17:31:17] jpage at javeo dot com

Typo:
Actual result: both produce Aug 6 2003



[2003-08-04 17:29:15] jpage at javeo dot com

Description:

strtotime() returns the same result for "first wednesday" and "second
wednesday".  I ran this against 'today' - Aug 4 2003, but the code
below should show the error on any day.


Reproduce code:
---
$t=strtotime("Aug 3 2003"); 

$r=strtotime("first wednesday",$t);
print(date('r',$r));

print("");

$r=strtotime("second wednesday",$t);
print(date('r',$r));


Expected result:

two different dates a week apart

Actual result:
--
Wed Aug for both





-- 
Edit this bug report at http://bugs.php.net/?id=24941&edit=1



#24916 [Opn->Bgs]: IIS6.0 & CGI PHP header()

2003-08-04 Thread iliaa
 ID:   24916
 Updated by:   [EMAIL PROTECTED]
 Reported By:  sadun at isikun dot org
-Status:   Open
+Status:   Bogus
 Bug Type: IIS related
 Operating System: Windows Server 2003
 PHP Version:  4.3.2
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

It would seem to me that if you make a redirect loop that the webserver
may detect such an occurance and throw an error as it happens in your
case. This is hardly a PHP bug.


Previous Comments:


[2003-08-04 13:55:40] sadun at isikun dot org

i forgot to pick Status Open  :)

still have the problem which is at the top...



[2003-08-04 12:25:32] sadun at isikun dot org

I FOUND THE PROBLEM IF YOU REDIRECT USER TO SAME PHP FILE IT MAKES AN
ERROR LOOP.

let's say i execute a code at main.php and if i redirect user to
main.php you can see in the headers that it makes a loop with errors at
headers with "INET_E_REDIRECT_FAILED" but you can redirect anywhere
else except same file...

CODE
-
http://webgroup.isikun.edu.tr/arge/header.php";);

?>

ERROR AT HEADERS
-

20:15:48.2790.109   *   GET INET_E_REDIRECT_FAILED  text/html   
http://webgroup.isikun.edu.tr/arge/header.php



[2003-08-04 12:03:35] sadun at isikun dot org

!!! UPS.. NOW I CAN REDIRECT WITH GET BUT NOT WITH POST

i don't really know if my codes make this problem but except "IIS 6.0
CGI" i try it several apache servers 1.x 2.x both on unix and winNT
platforms and it always worked.

HERE ARE THE HEADERS



19:54:03.7320.203   *   POSTINET_E_REDIRECT_FAILED  text/html   
http://webgroup.isikun.edu.tr/main.php

-

(Response Status)   HTTP/1.1 302 Redirect
Cache-Control   no-store, no-cache, must-revalidate, post-check=0,
pre-check=0
Pragma  no-cache
Content-Length  161
Content-Typetext/html
Expires Thu, 19 Nov 1981 08:52:00 GMT
LocationHttp://webgroup.isikun.edu.tr/main.php
Server  Microsoft-IIS/6.0
X-Powered-ByPHP/4.3.3RC2
Set-Cookie  PHPSESSID=ad1a199467d611ed39773d5e56358239; path=/
Set-Cookie  student_session_id=6c9009a421a409c1385dde256b693840
X-Powered-ByASP.NET
DateMon, 04 Aug 2003 17:00:28 GMT

--

sorry for disturbing



[2003-08-04 09:02:59] sadun at isikun dot org

PROBLEM IS SOLVED WITH PHP4.3.3RC2

thanks for your help



[2003-08-04 08:38:44] sadun at isikun dot org

;cgi.redirect_status_env = ENV_VAR_NAME

no changes header("Location: URL_FOO");

can't be send in 4.3.2 IIS6.0 with CGI



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/24916

-- 
Edit this bug report at http://bugs.php.net/?id=24916&edit=1



#24942 [NEW]: site is broken

2003-08-04 Thread alcarpenterjr at hotmail dot com
From: alcarpenterjr at hotmail dot com
Operating system: dont know
PHP version:  Irrelevant
PHP Bug Type: Scripting Engine problem
Bug description:  site is broken

Description:

this is displayed when trying to view the site:

Power Plant Job Board
http://64.239.18.131/jobs/index.php

Warning: main(config_inc.php) [function.main]: failed to create stream: No
such file or directory in
/home/hsphere/local/home/wishihad/wishihadajob.com/jobs/index.php on line
2

Fatal error: main() [function.main]: Failed opening required
'config_inc.php' (include_path='.:/usr/local/lib/php') in
/home/hsphere/local/home/wishihad/wishihadajob.com/jobs/index.php on line
2

-

https://cp.worldispnetwork.com/psoft/servlet/psoft.hsphere.CP/wishihadajob/257393_0/psoft.hsphere.CP?template_name=design/logout.html&action=logout
 
 
HOSTDEPARTMENT.COM 
LOGIN PAGE.
 
Domain: wishihadajob.com

User name: wishihadajob
Password: 12345678
 
https://cp.worldispnetwork.com/psoft/servlet/psoft.hsphere.CP/wishihadajob/257393_0/
 
http://66.221.125.150/cgi-bin/monstercontrols

---









-- 
Edit bug report at http://bugs.php.net/?id=24942&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=24942&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=24942&r=trysnapshot5
Fixed in CVS:   http://bugs.php.net/fix.php?id=24942&r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=24942&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24942&r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=24942&r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=24942&r=support
Expected behavior:  http://bugs.php.net/fix.php?id=24942&r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=24942&r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=24942&r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=24942&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24942&r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=24942&r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=24942&r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=24942&r=gnused



#24943 [Opn]: static variables in tick handler persist across multiple invocations

2003-08-04 Thread php at ideacode dot com
 ID:   24943
 User updated by:  php at ideacode dot com
 Reported By:  php at ideacode dot com
 Status:   Open
 Bug Type: *Programming Data Structures
 Operating System: Linux 2.4.18-3
-PHP Version:  4.3.2
+PHP Version:  4.3.2 (Apache module)
 New Comment:

The bug also occurs if you use a member variable within an object and
an object method as the callback:

  3 class Foo {
  4 function Foo() {
  5 $this->static = 0;
  6 }
  7
  8 function heartbeat($return = false) {
  9 $auto   = 0;
 10
 11 if ($return) {
 12 return "static=[{$this->static}]\nauto=[$auto]\n";
 13 } else {
 14 $this->static++;
 15 $auto++;
 16 }
 17
 18 }
 19 }
 20 $foo = new Foo();
 21
 22 register_tick_function(array (&$foo, 'heartbeat'));
 23 declare (ticks = 1) {
 24 // no op
 25 }
 26 echo $foo->heartbeat(true);


Previous Comments:


[2003-08-04 21:10:34] php at ideacode dot com

Description:

The values of static variables within a tick handler (registered with
register_tick_function) persist across multiple invocations of the
script.

You can run and re-run this script as many times as you like; the
static variable value keeps growing.

This bug is similar to #11536 and #17283, but those were closed due to
lack of response.

Reproduce code:
---
  1 function heartbeat($return = false) {
  2 static $static = 0;
  3$auto   = 0;
  4
  5 if ($return) {
  6 return "static=[$static]\nauto=[$auto]\n";
  7 } else {
  8 $static++;
  9 $auto++;
 10 }
 11
 12 }
 13
 14 register_tick_function('heartbeat');
 15 declare (ticks = 1) {
 16 }
 17 echo heartbeat(true);

Expected result:

At the end of each run of this script, the value of $static should be 1
and the value of $auto should be 0.

According to the documentation, the tick function (heartbeat) will be
called for every tick (1) statements ecxecuted in the declare block,
PLUS 1 for the declare close curly (line 16).  Because there are 0
statements in the block, I expect 0/1 + 1 callbacks to hearbeat.

Consequently, $static should have a value of 1 (incremented once) and
$auto should have a value of 0 (incremented once but looses value after
each call) when explicitly called on line 18.

If you set ticks = 2, I would expect 0/2 + 1 callbacks. Because there
are no statements in the block, ANY value of ticks should still execute
only once.  Ergo, regardless of the ticks setting, $static should still
have a value of 1 and $auto a value of 0.

Actual result:
--
At the end of each run of this script, the value of $static increases
relative to the value it had at the LAST run, and $auto remains at 0
always.  Furthermore, "LAST" appears to refer to the last value in the
particular Apache child. If I set Apache to 1 child only, the value
always increases relative to that single value, rather than bouncing
around.

In other words, the static variable within heartbeat appears to retain
its value ACROSS invocations. While this would otherwise be a nice
feature, the value bounces around (ie is not monotonically
increasing).

Also, with ticks = 1, the value of the static variable appears to
increase by 2 each time: 2, 4, 6, 8, etc. With ticks = 2, $static
increases by 1: 1, 2, 3, etc.  With ticks >= 3, $static doesn't
increase at all: 0, 0, 0, etc.
(This may be a separate bug, but I'd rather just mention it here)





-- 
Edit this bug report at http://bugs.php.net/?id=24943&edit=1



#24945 [NEW]: foreach on simplexml_element loops forever

2003-08-04 Thread tater at potatoe dot com
From: tater at potatoe dot com
Operating system: OS X 10.2
PHP version:  5CVS-2003-08-04 (dev)
PHP Bug Type: XML related
Bug description:  foreach on simplexml_element loops forever

Description:

I don't even know if this is supposed to work yet or not.
May also be related to #24392 issues.
Doing foreach($xmlobject as $property => $value)
goes into an infinite loop. I tried it on a
stdClass object and it worked OK.

Oh and it segfaults when i bail with a user_error()
but who knows if that's related...

Reproduce code:
---
$xml = simplexml_load_string('4');
var_dump($xml);
$bound = 0;
foreach ($xml as $p => $v)
{
var_dump($p,$v);
if (++$bound > 5)
user_error("Yikes!", E_USER_ERROR);
}

Expected result:

object(simplexml_element)#1 (1) {
  ["inner"]=>
  string(1) "4"
}
string(5) "inner"
string(1) "4"

Actual result:
--
object(simplexml_element)#1 (1) {
  ["inner"]=>
  string(1) "4"
}
string(5) "inner"
string(1) "4"
string(5) "inner"
string(1) "4"
string(5) "inner"
string(1) "4"
string(5) "inner"
string(1) "4"
string(5) "inner"
string(1) "4"
string(5) "inner"
string(1) "4"

Fatal error: Yikes! in
/usr/local/book/apache/htdocs/cvsbook/php5/bugs/simplexml/test.php on line
9
Segmentation fault

-- 
Edit bug report at http://bugs.php.net/?id=24945&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=24945&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=24945&r=trysnapshot5
Fixed in CVS:   http://bugs.php.net/fix.php?id=24945&r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=24945&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24945&r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=24945&r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=24945&r=support
Expected behavior:  http://bugs.php.net/fix.php?id=24945&r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=24945&r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=24945&r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=24945&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24945&r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=24945&r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=24945&r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=24945&r=gnused



#24944 [NEW]: compile fail with freetds ('--with-sybase') option

2003-08-04 Thread kalipso at lycos dot co dot kr
From: kalipso at lycos dot co dot kr
Operating system: FreeBSD 4.8 stable
PHP version:  4.3.3RC2
PHP Bug Type: Compile Failure
Bug description:  compile fail with freetds ('--with-sybase') option

Description:

FreeBSD 4.8,
compile failed PHP 4.3.3RC2 with freetds 0.61

/usr/ports/lang/php4/work/php-4.3.3RC2/ext/sybase/php_sybase_db.c: In
function `php_sybase_do_connect':
/usr/ports/lang/php4/work/php-4.3.3RC2/ext/sybase/php_sybase_db.c:395:
request for member `value' in something not a structure or union
/usr/ports/lang/php4/work/php-4.3.3RC2/ext/sybase/php_sybase_db.c: In
function `zif_sybase_select_db':
/usr/ports/lang/php4/work/php-4.3.3RC2/ext/sybase/php_sybase_db.c:657:
invalid type argument of `unary *'
/usr/ports/lang/php4/work/php-4.3.3RC2/ext/sybase/php_sybase_db.c: In
function `zif_sybase_free_result':
/usr/ports/lang/php4/work/php-4.3.3RC2/ext/sybase/php_sybase_db.c:954:
syntax error before `if'
/usr/ports/lang/php4/work/php-4.3.3RC2/ext/sybase/php_sybase_db.c: At top
level:
/usr/ports/lang/php4/work/php-4.3.3RC2/ext/sybase/php_sybase_db.c:955:
syntax error before `return'
*** Error code 1

my compile config :
configure  --enable-versioning --enable-memory-limit --with-layout=GNU \
--with-zlib-dir=/usr --disable-all --with-regex=php
--with-apxs2=/usr/local/sbin/apxs \
--enable-ctype --with-mysql=/usr/local --enable-overload
--with-pcre-regex=yes \
--enable-posix --enable-session --with-sybase=/usr/local
--enable-tokenizer \
--enable-xml --with-expat-dir=/usr/local --with-zlib=yes
--prefix=/usr/local \
i386-portbld-freebsd4.8

Please, answer !!


-- 
Edit bug report at http://bugs.php.net/?id=24944&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=24944&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=24944&r=trysnapshot5
Fixed in CVS:   http://bugs.php.net/fix.php?id=24944&r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=24944&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24944&r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=24944&r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=24944&r=support
Expected behavior:  http://bugs.php.net/fix.php?id=24944&r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=24944&r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=24944&r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=24944&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24944&r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=24944&r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=24944&r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=24944&r=gnused



#24916 [Bgs->Opn]: IIS6.0 & CGI PHP header()

2003-08-04 Thread sadun at isikun dot org
 ID:   24916
 User updated by:  sadun at isikun dot org
 Reported By:  sadun at isikun dot org
-Status:   Bogus
+Status:   Open
 Bug Type: IIS related
 Operating System: Windows Server 2003
 PHP Version:  4.3.2
 New Comment:

INET_E_REDIRECT_FAILED is kind of an error that exe can cause. for more
information look at TechNET

"INET_E_REDIRECT_FAILED (0x800C0014L) -2,146,697,196 Attempt to
redirect the navigation failed."

the case is simple. login form action goes to main.php and if login is
correct it sets SESSION and COOKIE then it redirects user to main.php.
After redirection (which is need to set cookies) main.php checks users
cookie and sessions if they are valid bla bla bla

as you seee there are no loop in redirections. there is only one
redirection which is done in main.php for one to set cookies. and if it
is not a bug why isapi module works well ???

i wish you could fix it. cause we are waiting for this debug. we can't
change all authentication for one redirection bug for spesific
combination.


Previous Comments:


[2003-08-04 20:25:00] [EMAIL PROTECTED]

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

It would seem to me that if you make a redirect loop that the webserver
may detect such an occurance and throw an error as it happens in your
case. This is hardly a PHP bug.



[2003-08-04 13:55:40] sadun at isikun dot org

i forgot to pick Status Open  :)

still have the problem which is at the top...



[2003-08-04 12:25:32] sadun at isikun dot org

I FOUND THE PROBLEM IF YOU REDIRECT USER TO SAME PHP FILE IT MAKES AN
ERROR LOOP.

let's say i execute a code at main.php and if i redirect user to
main.php you can see in the headers that it makes a loop with errors at
headers with "INET_E_REDIRECT_FAILED" but you can redirect anywhere
else except same file...

CODE
-
http://webgroup.isikun.edu.tr/arge/header.php";);

?>

ERROR AT HEADERS
-

20:15:48.2790.109   *   GET INET_E_REDIRECT_FAILED  text/html   
http://webgroup.isikun.edu.tr/arge/header.php



[2003-08-04 12:03:35] sadun at isikun dot org

!!! UPS.. NOW I CAN REDIRECT WITH GET BUT NOT WITH POST

i don't really know if my codes make this problem but except "IIS 6.0
CGI" i try it several apache servers 1.x 2.x both on unix and winNT
platforms and it always worked.

HERE ARE THE HEADERS



19:54:03.7320.203   *   POSTINET_E_REDIRECT_FAILED  text/html   
http://webgroup.isikun.edu.tr/main.php

-

(Response Status)   HTTP/1.1 302 Redirect
Cache-Control   no-store, no-cache, must-revalidate, post-check=0,
pre-check=0
Pragma  no-cache
Content-Length  161
Content-Typetext/html
Expires Thu, 19 Nov 1981 08:52:00 GMT
LocationHttp://webgroup.isikun.edu.tr/main.php
Server  Microsoft-IIS/6.0
X-Powered-ByPHP/4.3.3RC2
Set-Cookie  PHPSESSID=ad1a199467d611ed39773d5e56358239; path=/
Set-Cookie  student_session_id=6c9009a421a409c1385dde256b693840
X-Powered-ByASP.NET
DateMon, 04 Aug 2003 17:00:28 GMT

--

sorry for disturbing



[2003-08-04 09:02:59] sadun at isikun dot org

PROBLEM IS SOLVED WITH PHP4.3.3RC2

thanks for your help



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/24916

-- 
Edit this bug report at http://bugs.php.net/?id=24916&edit=1