#42366 [Opn->Fbk]: xmlwriter fails "make test"

2007-08-22 Thread jani
 ID:   42366
 Updated by:   [EMAIL PROTECTED]
 Reported By:  dannie dot stanley at gmail dot com
-Status:   Open
+Status:   Feedback
-Bug Type: *Compile Issues
+Bug Type: Unknown/Other Function
 Operating System: RHEL3
 PHP Version:  5.2.3
 New Comment:

What is the libxml version you have linked PHP with?


Previous Comments:


[2007-08-21 20:47:19] dannie dot stanley at gmail dot com

Example diff of file with the problem:


--- /tmp/ootest.txt 2007-08-21 16:17:11.0 -0400
+++ ext/xmlwriter/tests/OO_007.exp  2007-08-21 16:38:59.0
-0400
@@ -1,6 +1,6 @@
 
 
-   
+   
   special characters: <>"'&

-
+
\ No newline at end of file



[2007-08-21 20:39:04] dannie dot stanley at gmail dot com

Description:

Two of the tests for xmlwriter fail.  The expected output seems to be
incorrect.  The expected output files 

   * ext/xmlwriter/tests/OO_007.exp
   * ext/xmlwriter/tests/007.exp

Have the xmlns:ns1 attribute repeated 3 times.  The output provided
from the test only has that attribute listed one time, which seems to be
valid.






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


#42370 [NEW]: Inheritance problem

2007-08-22 Thread chauhansudhir at fastmail dot in
From: chauhansudhir at fastmail dot in
Operating system: Win XP
PHP version:  5.2.3
PHP Bug Type: Feature/Change Request
Bug description:  Inheritance problem

Description:

When we inherit classes and creates an object of derieved class the
constructor of parent classes are not executed we need to execute this
explicitly. Please check the following code

Reproduce code:
---


Expected result:

abc but it ab getting on c why so? as inheritance moves form parent to
child same as java.

Actual result:
--
c

-- 
Edit bug report at http://bugs.php.net/?id=42370&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=42370&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=42370&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=42370&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=42370&r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=42370&r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=42370&r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=42370&r=needscript
Try newer version:http://bugs.php.net/fix.php?id=42370&r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=42370&r=support
Expected behavior:http://bugs.php.net/fix.php?id=42370&r=notwrong
Not enough info:  
http://bugs.php.net/fix.php?id=42370&r=notenoughinfo
Submitted twice:  
http://bugs.php.net/fix.php?id=42370&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=42370&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=42370&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=42370&r=dst
IIS Stability:http://bugs.php.net/fix.php?id=42370&r=isapi
Install GNU Sed:  http://bugs.php.net/fix.php?id=42370&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=42370&r=float
No Zend Extensions:   http://bugs.php.net/fix.php?id=42370&r=nozend
MySQL Configuration Error:http://bugs.php.net/fix.php?id=42370&r=mysqlcfg



#42370 [Opn->Bgs]: Inheritance problem

2007-08-22 Thread derick
 ID:   42370
 Updated by:   [EMAIL PROTECTED]
 Reported By:  chauhansudhir at fastmail dot in
-Status:   Open
+Status:   Bogus
 Bug Type: Feature/Change Request
 Operating System: Win XP
 PHP Version:  5.2.3
 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

This is how php works, you have to call parent::__construct() yourself.


Previous Comments:


[2007-08-22 08:36:47] chauhansudhir at fastmail dot in

Description:

When we inherit classes and creates an object of derieved class the
constructor of parent classes are not executed we need to execute this
explicitly. Please check the following code

Reproduce code:
---


Expected result:

abc but it ab getting on c why so? as inheritance moves form parent to
child same as java.

Actual result:
--
c





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


#42371 [NEW]: PDO doesn`t throw Exception

2007-08-22 Thread songqi at baidu dot com
From: songqi at baidu dot com
Operating system: Redhat linux
PHP version:  5.2.3
PHP Bug Type: PDO related
Bug description:  PDO doesn`t throw Exception

Description:

PDO doesn`t throw Exception when querying a sql with syntax error as
expected.

MySQL Client Version: 5.0.45
MySQL Server Version: 4.0.16

But if I connect to a MySQL5 server, it throws Exception correctly.

Same error happened in php-5.2.2

Reproduce code:
---
$dbt = new PDO("mysql:host=xxx;port=xxx;dbname=xxx",'xxx','xxx');
$dbt->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$a = $dbt->query("what happened?");

Expected result:

PDO should throw a Exception

Actual result:
--
nothing is throwed

-- 
Edit bug report at http://bugs.php.net/?id=42371&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=42371&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=42371&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=42371&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=42371&r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=42371&r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=42371&r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=42371&r=needscript
Try newer version:http://bugs.php.net/fix.php?id=42371&r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=42371&r=support
Expected behavior:http://bugs.php.net/fix.php?id=42371&r=notwrong
Not enough info:  
http://bugs.php.net/fix.php?id=42371&r=notenoughinfo
Submitted twice:  
http://bugs.php.net/fix.php?id=42371&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=42371&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=42371&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=42371&r=dst
IIS Stability:http://bugs.php.net/fix.php?id=42371&r=isapi
Install GNU Sed:  http://bugs.php.net/fix.php?id=42371&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=42371&r=float
No Zend Extensions:   http://bugs.php.net/fix.php?id=42371&r=nozend
MySQL Configuration Error:http://bugs.php.net/fix.php?id=42371&r=mysqlcfg


#42367 [Opn->Bgs]: Keeping track of session ID fails due to referer_check when referer is sent

2007-08-22 Thread jani
 ID:   42367
 Updated by:   [EMAIL PROTECTED]
 Reported By:  g dot schuster at laxit dot com
-Status:   Open
+Status:   Bogus
 Bug Type: Session related
 Operating System: Windows XP Pro SP2
 PHP Version:  5.2.3
 New Comment:

You should sometimes read what is said in the php.ini-dist about the
options. This has always been like this:

; Check HTTP Referer to invalidate externally stored URLs containing
ids.
; HTTP_REFERER has to contain this substring for the session to be
; considered as valid.
session.referer_check =

This is NOT some option you turn off/on. To "turn it off" you simply
don't a) set it in php.ini or b) set it with empty value.


Previous Comments:


[2007-08-21 23:10:34] g dot schuster at laxit dot com

>when a link is clicked
should mean "when a referer is sent"

Sorry for that mistake, been awake for too long.



[2007-08-21 22:04:07] g dot schuster at laxit dot com

Description:

Keeping track of the session ID fails due to refere_check when a link
is clicked even if session.refere_check is disabled in the global AND in
the local config.
phpinfo() correctly states session.referer_check=0 for both global and
local config.

If you add the URL parameters (NOT the session id parameters!) to the
URL and hit "Enter" everything works fine because, in my case, FireFox
doesn't send a referer.

Problem can be solved if ini_set('session.referer_check', FALSE); is
set in the script.

Reproduce code:
---
http://www.laxit.com/tmp_files/phpbug/session_bug.html
http://www.laxit.com/tmp_files/phpbug/phpinfo.html

Expected result:

Session keeps state and doesn't check for referer if
session.referer_check=0

Actual result:
--
session_id($_REQUEST[session_name()]);
session_start();

creates a new session because it doesn't respect the
session.refere_check=0





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


#42372 [NEW]: [DateTime] Difference function

2007-08-22 Thread [EMAIL PROTECTED]
From: [EMAIL PROTECTED]
Operating system: doesn't matter
PHP version:  5CVS-2007-08-22 (CVS)
PHP Bug Type: Feature/Change Request
Bug description:  [DateTime] Difference function

Description:

Would be nice if DateTime had some sort of differences functions.

Something that could get around the 2038 issue of this:

$diffTime = strtotime($endDateString) - strtotime($startDateString)

may be something like this:

$endDateString = new DateTime("@$X");

$diffTime = $endDateString->difference("@$Y");




-- 
Edit bug report at http://bugs.php.net/?id=42372&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=42372&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=42372&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=42372&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=42372&r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=42372&r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=42372&r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=42372&r=needscript
Try newer version:http://bugs.php.net/fix.php?id=42372&r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=42372&r=support
Expected behavior:http://bugs.php.net/fix.php?id=42372&r=notwrong
Not enough info:  
http://bugs.php.net/fix.php?id=42372&r=notenoughinfo
Submitted twice:  
http://bugs.php.net/fix.php?id=42372&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=42372&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=42372&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=42372&r=dst
IIS Stability:http://bugs.php.net/fix.php?id=42372&r=isapi
Install GNU Sed:  http://bugs.php.net/fix.php?id=42372&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=42372&r=float
No Zend Extensions:   http://bugs.php.net/fix.php?id=42372&r=nozend
MySQL Configuration Error:http://bugs.php.net/fix.php?id=42372&r=mysqlcfg


#42372 [Opn->Asn]: [DateTime] Difference function

2007-08-22 Thread derick
 ID:   42372
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Assigned
 Bug Type: Feature/Change Request
 Operating System: doesn't matter
 PHP Version:  5CVS-2007-08-22 (CVS)
-Assigned To:  
+Assigned To:  derick


Previous Comments:


[2007-08-22 09:15:35] [EMAIL PROTECTED]

Description:

Would be nice if DateTime had some sort of differences functions.

Something that could get around the 2038 issue of this:

$diffTime = strtotime($endDateString) - strtotime($startDateString)

may be something like this:

$endDateString = new DateTime("@$X");

$diffTime = $endDateString->difference("@$Y");








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


#42365 [Opn->Asn]: glob() crashes and/or accepts way too many flags

2007-08-22 Thread jani
 ID:   42365
 Updated by:   [EMAIL PROTECTED]
 Reported By:  crrodriguez at suse dot de
-Status:   Open
+Status:   Assigned
 Bug Type: Reproducible crash
 Operating System: Linux
 PHP Version:  5CVS-2007-08-21 (CVS)
-Assigned To:  
+Assigned To:  jani
 New Comment:

Verified. Patch under construction.


Previous Comments:


[2007-08-21 18:59:41] crrodriguez at suse dot de

Description:

the glob() function crashes when you pass GLOB_ALTDIRFUNC (512) as a a
flag, in short glob should only accept the flags it really supports . 

Reproduce code:
---
./php5/sapi/cli/php -r 'var_dump(glob("*",512));'

Expected result:

only the supported options whitelisted and/or at least GLOB_ALTDIRFUNC
and GLOB_APPEND blacklisted.

Actual result:
--
gdb --args ./php5/sapi/cli/php -r 'var_dump(glob("*",512));'
GNU gdb 6.5
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "x86_64-suse-linux"...Using host
libthread_db library "/lib64/libthread_db.so.1".

(gdb) run
Starting program: /home/cristian/php5/sapi/cli/php -r
var_dump\(glob\(\"\*\",512\)\)\;

Program received signal SIGSEGV, Segmentation fault.
0x in ?? ()
(gdb) bt full
#0  0x in ?? ()
No symbol table info available.
#1  0x2b8a1b81ad62 in glob_in_dir () from /lib64/libc.so.6
No symbol table info available.
#2  0x2b8a1b81b9bd in glob64 () from /lib64/libc.so.6
No symbol table info available.
#3  0x0060fff1 in zif_glob (ht=2, return_value=0xc968d8,
return_value_ptr=0x0, this_ptr=0x0, return_value_used=1) at
/home/cristian/php5/ext/standard/dir.c:417
cwd_skip = 0
pattern = 0xc96880 "*"
pattern_len = 1
flags = 512
globbuf = {gl_pathc = 0, gl_pathv = 0x0, gl_offs = 0, gl_flags
= 0, gl_closedir = 0, gl_readdir = 0, gl_opendir = 0, gl_lstat = 0,
gl_stat = 0}
n = 0
ret = -1877809728
#4  0x007319d6 in zend_do_fcall_common_helper_SPEC
(execute_data=0x7fff9012e640) at
/home/cristian/php5/Zend/zend_vm_execute.h:200
return_reference = 0 '\0'
opline = (zend_op *) 0xc965d0
original_return_value = (zval **) 0xb208d0
current_scope = (zend_class_entry *) 0x0
current_this = (zval *) 0x0
return_value_used = 1
should_change_scope = 0 '\0'
ctor_opline = (zend_op *) 0x50072fb1b
#5  0x00738190 in ZEND_DO_FCALL_SPEC_CONST_HANDLER
(execute_data=0x7fff9012e640) at
/home/cristian/php5/Zend/zend_vm_execute.h:1681
opline = (zend_op *) 0xc965d0
fname = (zval *) 0xc96600
#6  0x0073141e in execute (op_array=0xc96288) at
/home/cristian/php5/Zend/zend_vm_execute.h:92
execute_data = {opline = 0xc965d0, function_state =
{function_symbol_table = 0x0, function = 0xb208f0, reserved =
{0x7fff9012e690, 0x0, 0x0, 0x0}}, fbc = 0x0,
---Type  to continue, or q  to quit---
  op_array = 0xc96288, object = 0x0, Ts = 0x7fff9012e5c0, CVs =
0x7fff9012e5b0, original_in_execution = 0 '\0', symbol_table = 0xadc528,
prev_execute_data = 0x0,
  old_error_reporting = 0x0}
#7  0x006f87dd in zend_eval_string (str=0x7fff90130f4b
"var_dump(glob(\"*\",512));", retval_ptr=0x0, string_name=0x84052c
"Command line code")
at /home/cristian/php5/Zend/zend_execute_API.c:1171
local_retval_ptr = (zval *) 0x0
original_return_value_ptr_ptr = (zval **) 0x0
original_opline_ptr = (zend_op **) 0x0
pv = {value = {lval = 13194888, dval = 6.5191408615229139e-317,
str = {val = 0xc95688 "var_dump(glob(\"*\",512));", len = 24}, ht =
0xc95688, obj = {handle = 13194888,
  handlers = 0x18}}, refcount = 13384816, type = 6 '\006', is_ref =
0 '\0'}
new_op_array = (zend_op_array *) 0xc96288
original_active_op_array = (zend_op_array *) 0x0
original_function_state_ptr = (zend_function_state *) 0x0
original_handle_op_arrays = 1 '\001'
retval = 0
#8  0x006f8981 in zend_eval_string_ex (str=0x7fff90130f4b
"var_dump(glob(\"*\",512));", retval_ptr=0x0, string_name=0x84052c
"Command line code", handle_exceptions=1)
at /home/cristian/php5/Zend/zend_execute_API.c:1205
result = 0
#9  0x0078e8dd in main (argc=3, argv=0x7fff9012ec18) at
/home/cristian/php5/sapi/cli/php_cli.c:1179
__orig_bailout = (jmp_buf *) 0x0
__bailout = {{__jmpbuf = {47872153828320, -69669401190941675,
0, 140735610547216, 0, 0, -69669401190944539, -69801448083912037},
__mask_was_saved = 0, __saved_mask = {
  __val = {0, 0, 140735610546528, 0, 0, 0, 0, 0, 47872151728128,
47872171956992, 

#42374 [NEW]: --as-needed bug - follow-up

2007-08-22 Thread galtgendo at o2 dot pl
From: galtgendo at o2 dot pl
Operating system: gentoo linux
PHP version:  5.2.3
PHP Bug Type: Compile Failure
Bug description:  --as-needed bug - follow-up

Description:

Recently closed bug #41973 may not cover all the issues.
I have a patch that doesn't seem to break anything for me and AFAIK solves
all potential issues. The --as-needed bugs happen mostly when you use
libtool and add -L and -l to LDFLAGS instead of LIBS. So by the use of grep
I tried to change all the macros that seem to do that. I hope I didn't
break anything, however somebody should check that, cause 'works for
me'!='it works'. At least look at acinclude.m4, cause that one may lead to
false negatives with library detection.


-- 
Edit bug report at http://bugs.php.net/?id=42374&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=42374&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=42374&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=42374&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=42374&r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=42374&r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=42374&r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=42374&r=needscript
Try newer version:http://bugs.php.net/fix.php?id=42374&r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=42374&r=support
Expected behavior:http://bugs.php.net/fix.php?id=42374&r=notwrong
Not enough info:  
http://bugs.php.net/fix.php?id=42374&r=notenoughinfo
Submitted twice:  
http://bugs.php.net/fix.php?id=42374&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=42374&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=42374&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=42374&r=dst
IIS Stability:http://bugs.php.net/fix.php?id=42374&r=isapi
Install GNU Sed:  http://bugs.php.net/fix.php?id=42374&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=42374&r=float
No Zend Extensions:   http://bugs.php.net/fix.php?id=42374&r=nozend
MySQL Configuration Error:http://bugs.php.net/fix.php?id=42374&r=mysqlcfg


#42366 [Fbk->Opn]: xmlwriter fails "make test"

2007-08-22 Thread dannie dot stanley at gmail dot com
 ID:   42366
 User updated by:  dannie dot stanley at gmail dot com
 Reported By:  dannie dot stanley at gmail dot com
-Status:   Feedback
+Status:   Open
 Bug Type: Unknown/Other Function
 Operating System: RHEL3
 PHP Version:  5.2.3
 New Comment:

I have compiled against:

   libxml2-2.6.29
   libxslt-1.1.21

I believe both of those are the latest.


Previous Comments:


[2007-08-22 08:06:05] [EMAIL PROTECTED]

What is the libxml version you have linked PHP with?



[2007-08-21 20:47:19] dannie dot stanley at gmail dot com

Example diff of file with the problem:


--- /tmp/ootest.txt 2007-08-21 16:17:11.0 -0400
+++ ext/xmlwriter/tests/OO_007.exp  2007-08-21 16:38:59.0
-0400
@@ -1,6 +1,6 @@
 
 
-   
+   
   special characters: <>"'&

-
+
\ No newline at end of file



[2007-08-21 20:39:04] dannie dot stanley at gmail dot com

Description:

Two of the tests for xmlwriter fail.  The expected output seems to be
incorrect.  The expected output files 

   * ext/xmlwriter/tests/OO_007.exp
   * ext/xmlwriter/tests/007.exp

Have the xmlns:ns1 attribute repeated 3 times.  The output provided
from the test only has that attribute listed one time, which seems to be
valid.






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


#42376 [NEW]: error between date and mktime

2007-08-22 Thread piefra at gmail dot com
From: piefra at gmail dot com
Operating system: bof win(5) & linux(4.1)
PHP version:  5.2.3
PHP Bug Type: Date/time related
Bug description:  error between date and mktime

Description:

(sorry for my english i'm french )
using timestamp incrementation with date(H), i found somme datetime error
: 
the error occur on the same hours ( 02:00 ) 

echo date("Y/m/d H:i",gmmktime(2,0,0,03,25,2007)) -> 2007/03/25 03:00

reproductible on every years same month ( end mars ) 
2007/03/25 03:00,2008/03/30 03:00,2009/03/29 03:00,2010/03/28 03:00
2011/03/27 03:00,2012/03/25 03:00,2013/03/31 03:00,2014/03/30 03:00
2015/03/29 03:00 ...

to find date errors run the code 

found on windows/wamp 1.5.0 (php 5.1)
tested on linux/mandriva/appache with php 4.1
all plateform test is x86 

Reproduce code:
---
';
  $dt1=mktime(0,0,0,1,1,2007);
  echo date("Y/m/d H:i",$dt1)."\n";
  for ($i=1;$i<24*365*20;$i++){
set_time_limit(0);
   
$dt2=mktime(date("H",$dt1)+1,date("i",$dt1),0,date("m",$dt1),date("d",$dt1),date("Y",$dt1));
$d=date("H",$dt2)-date("H",$dt1);
if ($d<>1 and $d <>-23) {
echo date("Y/m/d H:i",$dt1)." ".date("Y/m/d H:i",$dt2)."\n";
flush();
}
$dt1=$dt2;
  }
  echo date("Y/m/d H:i",$dt2)."\n";
echo '';
?>


Expected result:

echo date("Y/m/d H:i",gmmktime(2,0,0,03,25,2007)) -> 2007/03/25 02:00

Actual result:
--
echo date("Y/m/d H:i",gmmktime(2,0,0,03,25,2007)) -> 2007/03/25 03:00

-- 
Edit bug report at http://bugs.php.net/?id=42376&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=42376&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=42376&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=42376&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=42376&r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=42376&r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=42376&r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=42376&r=needscript
Try newer version:http://bugs.php.net/fix.php?id=42376&r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=42376&r=support
Expected behavior:http://bugs.php.net/fix.php?id=42376&r=notwrong
Not enough info:  
http://bugs.php.net/fix.php?id=42376&r=notenoughinfo
Submitted twice:  
http://bugs.php.net/fix.php?id=42376&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=42376&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=42376&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=42376&r=dst
IIS Stability:http://bugs.php.net/fix.php?id=42376&r=isapi
Install GNU Sed:  http://bugs.php.net/fix.php?id=42376&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=42376&r=float
No Zend Extensions:   http://bugs.php.net/fix.php?id=42376&r=nozend
MySQL Configuration Error:http://bugs.php.net/fix.php?id=42376&r=mysqlcfg


#42376 [Asn]: error between date and mktime

2007-08-22 Thread piefra at gmail dot com
 ID:   42376
 User updated by:  piefra at gmail dot com
 Reported By:  piefra at gmail dot com
 Status:   Assigned
 Bug Type: Date/time related
 Operating System: bof win(5) & linux(4.1)
 PHP Version:  5.2.3
 Assigned To:  derick
 New Comment:

sorry im ' done a  wrote error

the exact fonction is mktime (not gmmktime )

expected result: 
echo date("Y/m/d H:i",mktime(2,0,0,03,25,2007)) -> 2007/03/25 02:00

actual result:
echo date("Y/m/d H:i",mktime(2,0,0,03,25,2007)) -> 2007/03/25 03:00


Previous Comments:


[2007-08-22 10:34:50] piefra at gmail dot com

Description:

(sorry for my english i'm french )
using timestamp incrementation with date(H), i found somme datetime
error : 
the error occur on the same hours ( 02:00 ) 

echo date("Y/m/d H:i",gmmktime(2,0,0,03,25,2007)) -> 2007/03/25 03:00

reproductible on every years same month ( end mars ) 
2007/03/25 03:00,2008/03/30 03:00,2009/03/29 03:00,2010/03/28 03:00
2011/03/27 03:00,2012/03/25 03:00,2013/03/31 03:00,2014/03/30 03:00
2015/03/29 03:00 ...

to find date errors run the code 

found on windows/wamp 1.5.0 (php 5.1)
tested on linux/mandriva/appache with php 4.1
all plateform test is x86 

Reproduce code:
---
';
  $dt1=mktime(0,0,0,1,1,2007);
  echo date("Y/m/d H:i",$dt1)."\n";
  for ($i=1;$i<24*365*20;$i++){
set_time_limit(0);
   
$dt2=mktime(date("H",$dt1)+1,date("i",$dt1),0,date("m",$dt1),date("d",$dt1),date("Y",$dt1));
$d=date("H",$dt2)-date("H",$dt1);
if ($d<>1 and $d <>-23) {
echo date("Y/m/d H:i",$dt1)." ".date("Y/m/d H:i",$dt2)."\n";
flush();
}
$dt1=$dt2;
  }
  echo date("Y/m/d H:i",$dt2)."\n";
echo '';
?>


Expected result:

echo date("Y/m/d H:i",gmmktime(2,0,0,03,25,2007)) -> 2007/03/25 02:00

Actual result:
--
echo date("Y/m/d H:i",gmmktime(2,0,0,03,25,2007)) -> 2007/03/25 03:00





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


#42376 [Asn->Bgs]: error between date and mktime

2007-08-22 Thread derick
 ID:   42376
 Updated by:   [EMAIL PROTECTED]
 Reported By:  piefra at gmail dot com
-Status:   Assigned
+Status:   Bogus
 Bug Type: Date/time related
 Operating System: bof win(5) & linux(4.1)
 PHP Version:  5.2.3
 Assigned To:  derick
 New Comment:

We are happy to tell you that you just discovered Daylight Savings
Time. For more information see:
http://webexhibits.org/daylightsaving/b.html
Instead of using mktime/date consider using gmmktime and gmdate which
do
not suffer from DST.




Previous Comments:


[2007-08-22 11:22:05] piefra at gmail dot com

sorry im ' done a  wrote error

the exact fonction is mktime (not gmmktime )

expected result: 
echo date("Y/m/d H:i",mktime(2,0,0,03,25,2007)) -> 2007/03/25 02:00

actual result:
echo date("Y/m/d H:i",mktime(2,0,0,03,25,2007)) -> 2007/03/25 03:00



[2007-08-22 10:34:50] piefra at gmail dot com

Description:

(sorry for my english i'm french )
using timestamp incrementation with date(H), i found somme datetime
error : 
the error occur on the same hours ( 02:00 ) 

echo date("Y/m/d H:i",gmmktime(2,0,0,03,25,2007)) -> 2007/03/25 03:00

reproductible on every years same month ( end mars ) 
2007/03/25 03:00,2008/03/30 03:00,2009/03/29 03:00,2010/03/28 03:00
2011/03/27 03:00,2012/03/25 03:00,2013/03/31 03:00,2014/03/30 03:00
2015/03/29 03:00 ...

to find date errors run the code 

found on windows/wamp 1.5.0 (php 5.1)
tested on linux/mandriva/appache with php 4.1
all plateform test is x86 

Reproduce code:
---
';
  $dt1=mktime(0,0,0,1,1,2007);
  echo date("Y/m/d H:i",$dt1)."\n";
  for ($i=1;$i<24*365*20;$i++){
set_time_limit(0);
   
$dt2=mktime(date("H",$dt1)+1,date("i",$dt1),0,date("m",$dt1),date("d",$dt1),date("Y",$dt1));
$d=date("H",$dt2)-date("H",$dt1);
if ($d<>1 and $d <>-23) {
echo date("Y/m/d H:i",$dt1)." ".date("Y/m/d H:i",$dt2)."\n";
flush();
}
$dt1=$dt2;
  }
  echo date("Y/m/d H:i",$dt2)."\n";
echo '';
?>


Expected result:

echo date("Y/m/d H:i",gmmktime(2,0,0,03,25,2007)) -> 2007/03/25 02:00

Actual result:
--
echo date("Y/m/d H:i",gmmktime(2,0,0,03,25,2007)) -> 2007/03/25 03:00





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


#42376 [Bgs->Csd]: error between date and mktime

2007-08-22 Thread piefra at gmail dot com
 ID:   42376
 User updated by:  piefra at gmail dot com
 Reported By:  piefra at gmail dot com
-Status:   Bogus
+Status:   Closed
 Bug Type: Date/time related
 Operating System: bof win(5) & linux(4.1)
 PHP Version:  5.2.3
 Assigned To:  derick
 New Comment:

oh yes ...

i did'nt know what DST means , now it's done
thanks for to take care of my knowledge.

sorry for the improductive spend time 

piefra


Previous Comments:


[2007-08-22 11:23:31] [EMAIL PROTECTED]

We are happy to tell you that you just discovered Daylight Savings
Time. For more information see:
http://webexhibits.org/daylightsaving/b.html
Instead of using mktime/date consider using gmmktime and gmdate which
do
not suffer from DST.





[2007-08-22 11:22:05] piefra at gmail dot com

sorry im ' done a  wrote error

the exact fonction is mktime (not gmmktime )

expected result: 
echo date("Y/m/d H:i",mktime(2,0,0,03,25,2007)) -> 2007/03/25 02:00

actual result:
echo date("Y/m/d H:i",mktime(2,0,0,03,25,2007)) -> 2007/03/25 03:00



[2007-08-22 10:34:50] piefra at gmail dot com

Description:

(sorry for my english i'm french )
using timestamp incrementation with date(H), i found somme datetime
error : 
the error occur on the same hours ( 02:00 ) 

echo date("Y/m/d H:i",gmmktime(2,0,0,03,25,2007)) -> 2007/03/25 03:00

reproductible on every years same month ( end mars ) 
2007/03/25 03:00,2008/03/30 03:00,2009/03/29 03:00,2010/03/28 03:00
2011/03/27 03:00,2012/03/25 03:00,2013/03/31 03:00,2014/03/30 03:00
2015/03/29 03:00 ...

to find date errors run the code 

found on windows/wamp 1.5.0 (php 5.1)
tested on linux/mandriva/appache with php 4.1
all plateform test is x86 

Reproduce code:
---
';
  $dt1=mktime(0,0,0,1,1,2007);
  echo date("Y/m/d H:i",$dt1)."\n";
  for ($i=1;$i<24*365*20;$i++){
set_time_limit(0);
   
$dt2=mktime(date("H",$dt1)+1,date("i",$dt1),0,date("m",$dt1),date("d",$dt1),date("Y",$dt1));
$d=date("H",$dt2)-date("H",$dt1);
if ($d<>1 and $d <>-23) {
echo date("Y/m/d H:i",$dt1)." ".date("Y/m/d H:i",$dt2)."\n";
flush();
}
$dt1=$dt2;
  }
  echo date("Y/m/d H:i",$dt2)."\n";
echo '';
?>


Expected result:

echo date("Y/m/d H:i",gmmktime(2,0,0,03,25,2007)) -> 2007/03/25 02:00

Actual result:
--
echo date("Y/m/d H:i",gmmktime(2,0,0,03,25,2007)) -> 2007/03/25 03:00





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


#42378 [Opn]: bind_result memory exhaustion

2007-08-22 Thread jullrich at sans dot org
 ID:   42378
 User updated by:  jullrich at sans dot org
 Reported By:  jullrich at sans dot org
 Status:   Open
 Bug Type: MySQLi related
 Operating System: Linux (CentOS 4.5)
 PHP Version:  5.2.3
 New Comment:

'cast' can be used as a workaround:

works:  cast(format(trend,2) as char(10)))

does not work (same memory error): cast(format(trend,2) as char)


Previous Comments:


[2007-08-22 11:33:14] jullrich at sans dot org

Description:

The use of the mysql command "format" will lead to memory exhaustion on
bind_results. Here sample code that does cause the issue:

$sQuery="select targetport,format(trend,2) from trends where
current_targets>10 and trend is not null order by trend desc limit
100";

$oStmt=$oDB->prepare($sQuery);
$oStmt->execute();
$oStmt->store_result();
$oStmt->bind_result($nPort,$nTrend);

This code works fine if $sQuery is replaced with:
$sQuery="select targetport,trend from trends where current_targets>10
and trend is not null order by trend desc limit 100";

removing 'store_result' has no effect. Other changes to the SQL
statement have no effect either.

Error message logged:

PHP Fatal error:  Allowed memory size of 83886080 bytes exhausted
(tried to allocate 1431655788 bytes) in query.html on line 4


Reproduce code:
---
$sQuery="select targetport,format(trend,2) from trends where
current_targets>10 and trend is not null order by trend desc limit
100";

$oStmt=$oDB->prepare($sQuery);
$oStmt->execute();
$oStmt->store_result();
$oStmt->bind_result($nPort,$nTrend);

Expected result:

I expected the query to "happen" and get executed.



Actual result:
--
PHP Fatal error:  Allowed memory size of 83886080 bytes exhausted
(tried to allocate 1431655788 bytes) in query.html on line 4

(Line number corresponds to the 'bind_result' statement)





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


#42366 [Opn->Bgs]: xmlwriter fails "make test"

2007-08-22 Thread rrichards
 ID:   42366
 Updated by:   [EMAIL PROTECTED]
 Reported By:  dannie dot stanley at gmail dot com
-Status:   Open
+Status:   Bogus
 Bug Type: Unknown/Other Function
 Operating System: RHEL3
 PHP Version:  5.2.3
 New Comment:

That test has changed since the 5.2.3 release to due bug fixes in
libxml2


Previous Comments:


[2007-08-22 10:19:55] dannie dot stanley at gmail dot com

I have compiled against:

   libxml2-2.6.29
   libxslt-1.1.21

I believe both of those are the latest.



[2007-08-22 08:06:05] [EMAIL PROTECTED]

What is the libxml version you have linked PHP with?



[2007-08-21 20:47:19] dannie dot stanley at gmail dot com

Example diff of file with the problem:


--- /tmp/ootest.txt 2007-08-21 16:17:11.0 -0400
+++ ext/xmlwriter/tests/OO_007.exp  2007-08-21 16:38:59.0
-0400
@@ -1,6 +1,6 @@
 
 
-   
+   
   special characters: <>"'&

-
+
\ No newline at end of file



[2007-08-21 20:39:04] dannie dot stanley at gmail dot com

Description:

Two of the tests for xmlwriter fail.  The expected output seems to be
incorrect.  The expected output files 

   * ext/xmlwriter/tests/OO_007.exp
   * ext/xmlwriter/tests/007.exp

Have the xmlns:ns1 attribute repeated 3 times.  The output provided
from the test only has that attribute listed one time, which seems to be
valid.






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


#42379 [NEW]: flush() will eat my server's memory!!

2007-08-22 Thread mika at netstock dot net
From: mika at netstock dot net
Operating system: freebsd-6.2
PHP version:  5.2.3
PHP Bug Type: Output Control
Bug description:  flush() will eat my server's memory!!

Description:

when i use flush() or ob_implicit_flush() to push data to browser it will
keep eating my server's memory like  4k 4k 4k..and another 4k ..
and my apache is  2.0.59 
Do anyone can help me

Reproduce code:
---


or




-- 
Edit bug report at http://bugs.php.net/?id=42379&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=42379&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=42379&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=42379&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=42379&r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=42379&r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=42379&r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=42379&r=needscript
Try newer version:http://bugs.php.net/fix.php?id=42379&r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=42379&r=support
Expected behavior:http://bugs.php.net/fix.php?id=42379&r=notwrong
Not enough info:  
http://bugs.php.net/fix.php?id=42379&r=notenoughinfo
Submitted twice:  
http://bugs.php.net/fix.php?id=42379&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=42379&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=42379&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=42379&r=dst
IIS Stability:http://bugs.php.net/fix.php?id=42379&r=isapi
Install GNU Sed:  http://bugs.php.net/fix.php?id=42379&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=42379&r=float
No Zend Extensions:   http://bugs.php.net/fix.php?id=42379&r=nozend
MySQL Configuration Error:http://bugs.php.net/fix.php?id=42379&r=mysqlcfg


#42009 [Asn->Csd]: is_subclass_of: behaviour contradicts is_a.phpt testcase description

2007-08-22 Thread dmitry
 ID:   42009
 Updated by:   [EMAIL PROTECTED]
 Reported By:  robin_fernandes at uk dot ibm dot com
-Status:   Assigned
+Status:   Closed
 Bug Type: Scripting Engine problem
 Operating System: *
 PHP Version:  5CVS-2007-08-17
 Assigned To:  dmitry
 New Comment:

This bug has been fixed in CVS.

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/.
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:


[2007-08-17 20:13:25] [EMAIL PROTECTED]

According to the commit log is_a() and is_subclass_of() should NOT call
__autoload, in the same way as "instanceof" operator.

But indeed the is_a.phpt does have check to see if __autoload was
called and expects it -> there's bug somewhere. 

Dmitry, please check this out.



[2007-07-16 15:02:50] robin_fernandes at uk dot ibm dot com

Description:

This is either a minor mistake in a testcase description, or a bug in
is_subclass_of().

The description of testcase
http://lxr.php.net/source/ZendEngine2/tests/is_a.phpt states:
"is_a() and is_subclass_of() shouldn't call __autoload".

However, the expected output explicitly checks for __autoload() calls
*in some cases* (lines 49 and 50).

Either the testcase description (and perhaps documentation) should
clarify in which circumstances is_subclass_of() does result in an
invocation of __autoload(), or is_subclass_of() should be fixed.

Below is a simplified testcase illustrating a case where
is_subclass_of() does invoke __autoload().

Reproduce code:
---


Expected result:

bool(false)

Actual result:
--
AUTOLOAD 'Undef'
bool(false)





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


#16263 [Com]: session.start() create new empty session file and not resume existing session

2007-08-22 Thread peter at 3p1 dot net
 ID:   16263
 Comment by:   peter at 3p1 dot net
 Reported By:  kur at natur dot cuni dot cz
 Status:   No Feedback
 Bug Type: Session related
 Operating System: ANY
 PHP Version:  4.3.0-dev
 New Comment:

hELLo i use php 5.1 and still experience this bug


Previous Comments:


[2007-08-03 13:17:26] shivam dot honey at gmail dot com

Hi Every one.
My name is shivam.
Thanks for the suggestion i tried it and now its not giving me any
error just simply printing mail sent successfully

But i m "NOT" getting the mail delivered to the recipient account

my new php.ini mail setting are

[mail function]
SMTP = smtp.cc.iitk.ac.in
sendmail_from = [EMAIL PROTECTED]

; For Unix only.  You may supply arguments as well (default: 'sendmail
-t -i').
sendmail_path = /usr/local/sbin/sendmail -t -i

and my code is

Mail sent successfully.'); 
} else {
 echo('Mail could not be sent.');
}
?>


Now i m just wondering if
1. my mail settings are not correct or 
2. my smtp server is not forwarding the mail or
3. the reciepient server is not excepting the mail

can anyone HELP me!!!
Please do mention ur name would b easy to address.
Thanks in advance



[2007-08-01 16:58:52] breda at unisolution dot de

I had the same problem with IIS (version? from XP Pro) and PHP 5.2.3. I
changed the session.save_path to a simple path without weird windows
short form (like PROGRA~1 and so on) and reinstalled php with the
windows php installer and it works now.



[2007-07-24 06:39:48] shivam dot honey at gmail dot com

Windows XP Professional Service Pack 2, v.2096 (build 2600)
Internet Explorer 6
Php triad
   Php 4.1.1
   Apache 1.3.23

I have changed the php.ini file in my default folder C:\apache\php
 i.e., SMTP = smtp.cc.iitk.ac.in(my mail server in iitk,india) &
   sendmail_from = [EMAIL PROTECTED] (my e-mail id)

The code i am using is simple



Everything seems to be fine but i am getting an error -->

Warning: Server Error in c:\apache\htdocs\experiment\e-mail.php on
line
2

where, as i am able to send mails from my outlook account using the
same
mail server.


Please someone listen i got some serious problem,i gotta show it to
someone!!!
Please reply me at [EMAIL PROTECTED]



[2007-07-22 15:59:07] shivam dot honey at gmail dot com

Windows XP Professional Service Pack 2, v.2096 (build 2600)
Internet Explorer 6
Php triad
   Php 4.1.1
   Apache 1.3.23

I have changed the php.ini file in my default folder C:\apache\php
 i.e., SMTP = smtp.cc.iitk.ac.in(my mail server in iitk,india) &
   sendmail_from = [EMAIL PROTECTED] (my e-mail id)

The code i am using is simple




Everything seems to be fine but i am getting an error -->

Warning: Server Error in c:\apache\htdocs\experiment\e-mail.php on line
2


where, as i am able to send mails from my outlook account using the
same mail server.

Please Help!!! me out.
Please!



[2007-07-10 14:48:23] ponas dot termas at gmail dot com

Win XP
IE 7
PHP 5.2.3
Apache 2.2

Suggested sollutions not helped. When I am using site as
http://localhost/site it works well, session resumed.
When I am using site using computer name (externally)
http://computer_name/site, session is not resumed and separate files are
created for 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/16263

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


#42365 [Asn]: glob() crashes and/or accepts way too many flags

2007-08-22 Thread jani
 ID:   42365
 Updated by:   [EMAIL PROTECTED]
 Reported By:  crrodriguez at suse dot de
 Status:   Assigned
 Bug Type: Reproducible crash
 Operating System: Linux
 PHP Version:  5CVS-2007-08-21 (CVS)
 Assigned To:  jani
 New Comment:

This is the patch I cooked up:
http://pecl.php.net/~jani/patches/bug42365.patch

Waiting for someone else (tm) to check it out first before committing
to CVS. :)


Previous Comments:


[2007-08-22 09:36:41] [EMAIL PROTECTED]

Verified. Patch under construction.



[2007-08-21 18:59:41] crrodriguez at suse dot de

Description:

the glob() function crashes when you pass GLOB_ALTDIRFUNC (512) as a a
flag, in short glob should only accept the flags it really supports . 

Reproduce code:
---
./php5/sapi/cli/php -r 'var_dump(glob("*",512));'

Expected result:

only the supported options whitelisted and/or at least GLOB_ALTDIRFUNC
and GLOB_APPEND blacklisted.

Actual result:
--
gdb --args ./php5/sapi/cli/php -r 'var_dump(glob("*",512));'
GNU gdb 6.5
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "x86_64-suse-linux"...Using host
libthread_db library "/lib64/libthread_db.so.1".

(gdb) run
Starting program: /home/cristian/php5/sapi/cli/php -r
var_dump\(glob\(\"\*\",512\)\)\;

Program received signal SIGSEGV, Segmentation fault.
0x in ?? ()
(gdb) bt full
#0  0x in ?? ()
No symbol table info available.
#1  0x2b8a1b81ad62 in glob_in_dir () from /lib64/libc.so.6
No symbol table info available.
#2  0x2b8a1b81b9bd in glob64 () from /lib64/libc.so.6
No symbol table info available.
#3  0x0060fff1 in zif_glob (ht=2, return_value=0xc968d8,
return_value_ptr=0x0, this_ptr=0x0, return_value_used=1) at
/home/cristian/php5/ext/standard/dir.c:417
cwd_skip = 0
pattern = 0xc96880 "*"
pattern_len = 1
flags = 512
globbuf = {gl_pathc = 0, gl_pathv = 0x0, gl_offs = 0, gl_flags
= 0, gl_closedir = 0, gl_readdir = 0, gl_opendir = 0, gl_lstat = 0,
gl_stat = 0}
n = 0
ret = -1877809728
#4  0x007319d6 in zend_do_fcall_common_helper_SPEC
(execute_data=0x7fff9012e640) at
/home/cristian/php5/Zend/zend_vm_execute.h:200
return_reference = 0 '\0'
opline = (zend_op *) 0xc965d0
original_return_value = (zval **) 0xb208d0
current_scope = (zend_class_entry *) 0x0
current_this = (zval *) 0x0
return_value_used = 1
should_change_scope = 0 '\0'
ctor_opline = (zend_op *) 0x50072fb1b
#5  0x00738190 in ZEND_DO_FCALL_SPEC_CONST_HANDLER
(execute_data=0x7fff9012e640) at
/home/cristian/php5/Zend/zend_vm_execute.h:1681
opline = (zend_op *) 0xc965d0
fname = (zval *) 0xc96600
#6  0x0073141e in execute (op_array=0xc96288) at
/home/cristian/php5/Zend/zend_vm_execute.h:92
execute_data = {opline = 0xc965d0, function_state =
{function_symbol_table = 0x0, function = 0xb208f0, reserved =
{0x7fff9012e690, 0x0, 0x0, 0x0}}, fbc = 0x0,
---Type  to continue, or q  to quit---
  op_array = 0xc96288, object = 0x0, Ts = 0x7fff9012e5c0, CVs =
0x7fff9012e5b0, original_in_execution = 0 '\0', symbol_table = 0xadc528,
prev_execute_data = 0x0,
  old_error_reporting = 0x0}
#7  0x006f87dd in zend_eval_string (str=0x7fff90130f4b
"var_dump(glob(\"*\",512));", retval_ptr=0x0, string_name=0x84052c
"Command line code")
at /home/cristian/php5/Zend/zend_execute_API.c:1171
local_retval_ptr = (zval *) 0x0
original_return_value_ptr_ptr = (zval **) 0x0
original_opline_ptr = (zend_op **) 0x0
pv = {value = {lval = 13194888, dval = 6.5191408615229139e-317,
str = {val = 0xc95688 "var_dump(glob(\"*\",512));", len = 24}, ht =
0xc95688, obj = {handle = 13194888,
  handlers = 0x18}}, refcount = 13384816, type = 6 '\006', is_ref =
0 '\0'}
new_op_array = (zend_op_array *) 0xc96288
original_active_op_array = (zend_op_array *) 0x0
original_function_state_ptr = (zend_function_state *) 0x0
original_handle_op_arrays = 1 '\001'
retval = 0
#8  0x006f8981 in zend_eval_string_ex (str=0x7fff90130f4b
"var_dump(glob(\"*\",512));", retval_ptr=0x0, string_name=0x84052c
"Command line code", handle_exceptions=1)
at /home/cristian/php5/Zend/zend_execute_API.c:1205
result = 0
#9  0x0078e8dd in main (argc=3, argv=0x7fff9012ec18) at
/home/cristian/php5/sapi/cli/php_cli.c:1179
__orig_bailout = (jmp_buf *) 0x0
__bailout = {{__jmp

#42183 [Asn->Csd]: classmap cause error in non-wsdl mode

2007-08-22 Thread dmitry
 ID:   42183
 Updated by:   [EMAIL PROTECTED]
 Reported By:  heitor dot m at gmail dot com
-Status:   Assigned
+Status:   Closed
 Bug Type: SOAP related
 Operating System: Linux RedHat Enterprise V4
 PHP Version:  5.2.3
 Assigned To:  dmitry
 New Comment:

The crash is fixed in CVS HEAD and PHP_5_2, however classmap doesn't
work without WSDL anyway.


Previous Comments:


[2007-08-02 14:57:19] heitor dot m at gmail dot com

Description:

Hi,

I was tryning to implement a soap server-cliint in non-wsdl mode but i
get some strange errors. This set o tests is about the class option.
I try to use this option in non-wsdl mode. Like i don't find any
explicity explanatin about the possibility of this use, i has been maked
some tests, and i think tath i found a bug.

When i put the classmap option in the server i have the follow
response:

(HTTP) Error Fetching http headers


And when i put the classmap in the client i have no response. The
server offer to me download the called file, but this is a blank
archive.


I hav been reported the documentation leak here:
http://bugs.php.net/bug.php?id=42182

i already serach to related bug reports and don't find nothing.

Reproduce code:
---
SERVER:
prop1 = $a;
$this->prop2 = $b;
$this->propc = $c;
}

}

function send($client_builded) 
{

$server_builded = new PHPObject("server_sttuf", 0.3, false);

$arr_params['server_builded'] = $server_builded;
$arr_params['client_builded'] = $client_builded;

return $arr_params;
}

$classmap = array('Object' => 'PHPObject');

$server = new SoapServer(NULL, array('uri' => 'http://ws.sit.com',
'classmap' => $classmap));

$server->addFunction(array("send"));
$server->handle();  

?>

=
Client:
prop1 = $a;
$this->prop2 = $b;
$this->propc = $c;
}

}

try {

$classmap = array('Object' => 'PHPObject');

$client = new SoapClient(NULL, 
array(
'uri' => 'http://ws.sit.com', 
'location' =>
'http://10.11.40.177/developers/heitor/ws/teste2/teste2_ser.php',
'trace' => 1
)
);

$obj = new PHPObject("things", 3.14, TRUE);
$res = $client->__call('send', array(new SoapParam($obj, 'Object')));

echo "SEND";
var_dump($res);
echo "";

echo "RESPONSE";
echo htmlspecialchars(str_replace("><", ">\n<",
$client->__getLastResponse()));
echo "";

} catch (SoapFault $sf) {

echo "";
print_r("(" . $sf->faultcode . ") " . $sf->faultstring);
echo "";

} catch (Exception  $e) { 

echo "";
print_r($e);
echo "";

}

?>

Expected result:

the print of the obects

Actual result:
--
described errors





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


#42377 [Opn->Bgs]: file_get_contents or fopen produce my_thread_global_end error

2007-08-22 Thread jani
 ID:   42377
 Updated by:   [EMAIL PROTECTED]
 Reported By:  antonello dot bogi at staff dot tol dot it
-Status:   Open
+Status:   Bogus
 Bug Type: *General Issues
 Operating System: Win 2003 server
 PHP Version:  5.2.3
 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. 

Thank you for your interest in PHP.




Previous Comments:


[2007-08-22 11:00:57] antonello dot bogi at staff dot tol dot it

Description:

I have PHP 5.2.3 on my win2003 server

when I launch a simple script like :

http://www.google.com";);
print $data;
?>

 return to me :

'Error in my_thread_global_end(): 1 threads didn't exit'
this bug was already marked in bug ID: #41967
but without answer

thanx in advance 

Reproduce code:
---
http://www.google.com";);
print $data;
?>

Expected result:

'Error in my_thread_global_end(): 1 threads didn't exit'






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


#40286 [Csd->Opn]: PHP fastcgi with PHP_FCGI_CHILDREN don't kill children when parent is killed

2007-08-22 Thread gabriel at oxeva dot fr
 ID:   40286
 User updated by:  gabriel at oxeva dot fr
 Reported By:  gabriel at oxeva dot fr
-Status:   Closed
+Status:   Open
 Bug Type: CGI related
 Operating System: Linux 2.6
-PHP Version:  4.4.4
+PHP Version:  4.4.4 / 5.2.0
 Assigned To:  dmitry
 New Comment:

Comment from [EMAIL PROTECTED] : 

I don't believe that this patch could correct blocking I/O.

What this patch does is just remove one extra memory pointer which was
not needed.
 
Correct fix would be to use O_NONBLOCK when opening file descriptor
and
then test for EAGAIN.  Or use select(2) before reading from descriptor
in safe_read() function to test if data is available for reading.

I could be wrong, but it just doesn't seems to be fix for this problem.


Previous Comments:


[2007-02-16 11:48:12] [EMAIL PROTECTED]

I hope the bug is fixed in CVS HEAD, PHP_5_2 (not in 5.2.1) and PHP_4_4
(not in 4.4.5).

The patch for PHP_5_2 folows:

Index: sapi/cgi/cgi_main.c
===
RCS file: /repository/php-src/sapi/cgi/cgi_main.c,v
retrieving revision 1.267.2.15.2.22
diff -u -p -d -r1.267.2.15.2.22 cgi_main.c
--- sapi/cgi/cgi_main.c 15 Feb 2007 12:33:16 -  1.267.2.15.2.22
+++ sapi/cgi/cgi_main.c 16 Feb 2007 11:16:39 -
@@ -355,18 +355,14 @@ static int sapi_cgi_send_headers(sapi_he
 
 static int sapi_cgi_read_post(char *buffer, uint count_bytes
TSRMLS_DC)
 {
-   uint read_bytes=0, tmp_read_bytes;
-#if PHP_FASTCGI
-   char *pos = buffer;
-#endif
+   int read_bytes=0, tmp_read_bytes;
 
count_bytes = MIN(count_bytes, (uint) SG(request_info).content_length
- SG(read_post_bytes));
while (read_bytes < count_bytes) {
 #if PHP_FASTCGI
if (fcgi_is_fastcgi()) {
fcgi_request *request = (fcgi_request*) 
SG(server_context);
-   tmp_read_bytes = fcgi_read(request, pos, count_bytes -
read_bytes);
-   pos += tmp_read_bytes;
+   tmp_read_bytes = fcgi_read(request, buffer + read_bytes,
count_bytes - read_bytes);
} else {
tmp_read_bytes = read(0, buffer + read_bytes, 
count_bytes -
read_bytes);
}




[2007-01-31 11:56:49] gabriel at oxeva dot fr

And today, I can now confirm that the bugs exists with PHP 5.2.0 too.
Here is the backtrace :

(gdb) bt
#0  0xb7fb2410 in ?? ()
#1  0xbfc06988 in ?? ()
#2  0x0008 in ?? ()
#3  0xbfc069b0 in ?? ()
#4  0x006ee4f3 in __read_nocancel () from /lib/tls/libc.so.6
#5  0x0841b6d4 in fcgi_init_request ()
#6  0x0841b770 in fcgi_read ()
#7  0x0841c546 in fcgi_putenv ()
#8  0x08382d33 in sapi_deactivate ()
#9  0x0837c4f6 in php_request_shutdown ()
#10 0x0841e463 in main ()



[2007-01-30 14:33:38] gabriel at oxeva dot fr

Forgot to mention that the backtrace provided is from a PHP 5.1.4
process, not php 5.2. Sorry for the misreading.

I can compile and run a PHP 5.2 process and wait for having one killed
without his children, but it will take some time to give you the
results.



[2007-01-30 14:27:52] gabriel at oxeva dot fr

Missed to say that PHP 5 has exactly the same problem



[2007-01-30 14:26:42] gabriel at oxeva dot fr

strace -p  provides the following :
read(3,  

and gdb program  and "bt" provides :
(gdb) bt
#0  0xb7fe3410 in ?? ()
#1  0xbfd86618 in ?? ()
#2  0x0008 in ?? ()
#3  0xbfd86600 in ?? ()
#4  0x008e14f3 in __read_nocancel () from /lib/tls/libc.so.6
#5  0x083ba23e in fcgi_read ()
#6  0x083bbb38 in FCGX_FPrintF ()
#7  0x0831ab22 in sapi_deactivate ()
#8  0x08314a3d in php_request_shutdown ()
#9  0x083bcdeb in main ()

Please note that I can't test with debugging symbols (the libraries and
PHP are stripped), as this binary is in production environment and the
bug occurs only under load.



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/40286

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


#41641 [Opn->Asn]: Indirect Modification Notice due to modification using __set

2007-08-22 Thread jani
 ID:   41641
 Updated by:   [EMAIL PROTECTED]
 Reported By:  asnyder at mddev dot com
-Status:   Open
+Status:   Assigned
 Bug Type: Scripting Engine problem
 Operating System: Linux Fedora Core 4
 PHP Version:  5.2.3
 Assigned To:  helly
 New Comment:

Marcus, can you give an educated answer to this..? 


Previous Comments:


[2007-08-22 05:53:14] asnyder at mddev dot com

First of all, I don't appreciate your snotty attitude.  Second, if you
actuallyread the post, you would realize this is not the same issue. In
that post they were actually modifying a value, in my post, I'm simply
using the __get, __set as magic methods in order to call a different
function. This is VERY different. It's ok for the call to Set and not
raise the notice. If you look at the functions there's nothing in danger
of being modifed incorrectly. Please read before you post an incorrect
response. 

I know its hard from that pedestool your on, but sometimes it's best to
come down, and discuss things with other people. I would like to think
myself as educated in the ways of PHP, and might consider fixing this
myself, and submitting it to the repository. I was hoping to save myself
the trouble, and let someone more experienced with the php internals
work on it, but if you won't fix it, I will.



[2007-08-17 20:12:26] [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. 

Thank you for your interest in PHP.

Same as bug #38102.



[2007-07-18 14:26:49] [EMAIL PROTECTED]

Oops, wrong id, see bug #42030



[2007-06-25 19:49:07] asnyder at mddev dot com

Ok, HOW is this code, or code like it "WRONG"? The code has the desired
effect. The purpose of the code is to allow the user to call a function
via the __set, __get without having to actually call the actual
function. For instance, if one would want to have properties. Regardless
of what you think the code should be, the code has the effect that the
developer wanted, thus the code is not wrong, it's just confusing to
you.

What EXACTLY is wrong with this code? What effect is it having that is
not the desired effect?



[2007-06-25 19:43:22] [EMAIL PROTECTED]

>But it DOES have an affect.
But the code is STILL wrong, that's what the warning is trying to tell
you.



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/41641

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


#42365 [Asn->Csd]: glob() crashes with invalid flags

2007-08-22 Thread jani
 ID:   42365
 Updated by:   [EMAIL PROTECTED]
-Summary:  glob() crashes and/or accepts way too many flags
 Reported By:  crrodriguez at suse dot de
-Status:   Assigned
+Status:   Closed
 Bug Type: Reproducible crash
 Operating System: Linux
 PHP Version:  5CVS-2007-08-21 (CVS)
 Assigned To:  jani
 New Comment:

This bug has been fixed in CVS.

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/.
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:


[2007-08-22 14:07:35] [EMAIL PROTECTED]

This is the patch I cooked up:
http://pecl.php.net/~jani/patches/bug42365.patch

Waiting for someone else (tm) to check it out first before committing
to CVS. :)



[2007-08-22 09:36:41] [EMAIL PROTECTED]

Verified. Patch under construction.



[2007-08-21 18:59:41] crrodriguez at suse dot de

Description:

the glob() function crashes when you pass GLOB_ALTDIRFUNC (512) as a a
flag, in short glob should only accept the flags it really supports . 

Reproduce code:
---
./php5/sapi/cli/php -r 'var_dump(glob("*",512));'

Expected result:

only the supported options whitelisted and/or at least GLOB_ALTDIRFUNC
and GLOB_APPEND blacklisted.

Actual result:
--
gdb --args ./php5/sapi/cli/php -r 'var_dump(glob("*",512));'
GNU gdb 6.5
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "x86_64-suse-linux"...Using host
libthread_db library "/lib64/libthread_db.so.1".

(gdb) run
Starting program: /home/cristian/php5/sapi/cli/php -r
var_dump\(glob\(\"\*\",512\)\)\;

Program received signal SIGSEGV, Segmentation fault.
0x in ?? ()
(gdb) bt full
#0  0x in ?? ()
No symbol table info available.
#1  0x2b8a1b81ad62 in glob_in_dir () from /lib64/libc.so.6
No symbol table info available.
#2  0x2b8a1b81b9bd in glob64 () from /lib64/libc.so.6
No symbol table info available.
#3  0x0060fff1 in zif_glob (ht=2, return_value=0xc968d8,
return_value_ptr=0x0, this_ptr=0x0, return_value_used=1) at
/home/cristian/php5/ext/standard/dir.c:417
cwd_skip = 0
pattern = 0xc96880 "*"
pattern_len = 1
flags = 512
globbuf = {gl_pathc = 0, gl_pathv = 0x0, gl_offs = 0, gl_flags
= 0, gl_closedir = 0, gl_readdir = 0, gl_opendir = 0, gl_lstat = 0,
gl_stat = 0}
n = 0
ret = -1877809728
#4  0x007319d6 in zend_do_fcall_common_helper_SPEC
(execute_data=0x7fff9012e640) at
/home/cristian/php5/Zend/zend_vm_execute.h:200
return_reference = 0 '\0'
opline = (zend_op *) 0xc965d0
original_return_value = (zval **) 0xb208d0
current_scope = (zend_class_entry *) 0x0
current_this = (zval *) 0x0
return_value_used = 1
should_change_scope = 0 '\0'
ctor_opline = (zend_op *) 0x50072fb1b
#5  0x00738190 in ZEND_DO_FCALL_SPEC_CONST_HANDLER
(execute_data=0x7fff9012e640) at
/home/cristian/php5/Zend/zend_vm_execute.h:1681
opline = (zend_op *) 0xc965d0
fname = (zval *) 0xc96600
#6  0x0073141e in execute (op_array=0xc96288) at
/home/cristian/php5/Zend/zend_vm_execute.h:92
execute_data = {opline = 0xc965d0, function_state =
{function_symbol_table = 0x0, function = 0xb208f0, reserved =
{0x7fff9012e690, 0x0, 0x0, 0x0}}, fbc = 0x0,
---Type  to continue, or q  to quit---
  op_array = 0xc96288, object = 0x0, Ts = 0x7fff9012e5c0, CVs =
0x7fff9012e5b0, original_in_execution = 0 '\0', symbol_table = 0xadc528,
prev_execute_data = 0x0,
  old_error_reporting = 0x0}
#7  0x006f87dd in zend_eval_string (str=0x7fff90130f4b
"var_dump(glob(\"*\",512));", retval_ptr=0x0, string_name=0x84052c
"Command line code")
at /home/cristian/php5/Zend/zend_execute_API.c:1171
local_retval_ptr = (zval *) 0x0
original_return_value_ptr_ptr = (zval **) 0x0
original_opline_ptr = (zend_op **) 0x0
pv = {value = {lval = 13194888, dval = 6.5191408615229139e-317,
str = {val = 0xc95688 "var_dump(glob(\"*\",512));", len = 24}, ht =
0xc95688, obj = {handle = 13194888,
  handlers = 0x18}}, refcount = 13384816, type = 6 '\006', is_ref =
0 '\0'}
new_op_array = (zend_op_array *) 0xc96288
original_active_op_array = (zend_op_array *) 0x0
original_function_state_ptr = (zend_function_state *) 0x0
original_handle_op_arr

#42381 [NEW]: Double-flock()ing a file crashes

2007-08-22 Thread phpbugs dot 20 dot zsh at spamgourmet dot com
From: phpbugs dot 20 dot zsh at spamgourmet dot com
Operating system: Windows XP
PHP version:  5.2.3
PHP Bug Type: Reproducible crash
Bug description:  Double-flock()ing a file crashes

Description:

Double-flock()ing a file with different handles crashes. 

Reproduce code:
---


Expected result:

Dun!

Actual result:
--
Nothing

-- 
Edit bug report at http://bugs.php.net/?id=42381&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=42381&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=42381&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=42381&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=42381&r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=42381&r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=42381&r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=42381&r=needscript
Try newer version:http://bugs.php.net/fix.php?id=42381&r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=42381&r=support
Expected behavior:http://bugs.php.net/fix.php?id=42381&r=notwrong
Not enough info:  
http://bugs.php.net/fix.php?id=42381&r=notenoughinfo
Submitted twice:  
http://bugs.php.net/fix.php?id=42381&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=42381&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=42381&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=42381&r=dst
IIS Stability:http://bugs.php.net/fix.php?id=42381&r=isapi
Install GNU Sed:  http://bugs.php.net/fix.php?id=42381&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=42381&r=float
No Zend Extensions:   http://bugs.php.net/fix.php?id=42381&r=nozend
MySQL Configuration Error:http://bugs.php.net/fix.php?id=42381&r=mysqlcfg


#42382 [NEW]: array_map not working properly with string indexed array

2007-08-22 Thread neel dot basu dot z at gmail dot com
From: neel dot basu dot z at gmail dot com
Operating system: Debian Linux
PHP version:  5.2.3
PHP Bug Type: Arrays related
Bug description:  array_map not working properly with string indexed array

Description:

If string indexed array is given to array_map it returns numerically
indexed array after applying the callback.
I am using PHP 5.2.1 on Debian Linux.

Reproduce code:
---
 'HeLlO', 'two' => 'Hi');
print_r($r);//Orgiginal array
$r = array_map('tst_it', $r, array(false));
function tst_it($r, $bool = false){
if($bool){return strtoupper($r);}
else{return strtolower($r);}
}
print_r($r);//Array after array_map
?>

Expected result:

Array
(
[one] => HeLlO
[two] => Hi
)
Array
(
[one] => hello
[two] => hi
)

Actual result:
--
Array
(
[one] => HeLlO
[two] => Hi
)
Array
(
[0] => hello
[1] => hi
)

-- 
Edit bug report at http://bugs.php.net/?id=42382&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=42382&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=42382&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=42382&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=42382&r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=42382&r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=42382&r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=42382&r=needscript
Try newer version:http://bugs.php.net/fix.php?id=42382&r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=42382&r=support
Expected behavior:http://bugs.php.net/fix.php?id=42382&r=notwrong
Not enough info:  
http://bugs.php.net/fix.php?id=42382&r=notenoughinfo
Submitted twice:  
http://bugs.php.net/fix.php?id=42382&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=42382&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=42382&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=42382&r=dst
IIS Stability:http://bugs.php.net/fix.php?id=42382&r=isapi
Install GNU Sed:  http://bugs.php.net/fix.php?id=42382&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=42382&r=float
No Zend Extensions:   http://bugs.php.net/fix.php?id=42382&r=nozend
MySQL Configuration Error:http://bugs.php.net/fix.php?id=42382&r=mysqlcfg


#42383 [NEW]: Configuring with mysqli enabled consistently fails

2007-08-22 Thread intel352 at gmail dot com
From: intel352 at gmail dot com
Operating system: Centos 4
PHP version:  5.2.3
PHP Bug Type: Compile Failure
Bug description:  Configuring with mysqli enabled consistently fails

Description:

Using Centos 4 with latest updates, running Cpanel/WHM EDGE release.

Compiling php manually to enable mysqli, consistently fails. Received
result with PHP 5.2.2 and 5.2.3. I've tried multiple variations of enabling
mysqli, mysqli + mysql, etc. Enabling mysql by itself works great, it's
just mysqli that errors.

Apache 2.2, MySQL 5.0.45 installed.

[EMAIL PROTECTED] [/home/cpphpbuild/php-5.2.3]# mysqladmin -V
mysqladmin  Ver 8.41 Distrib 5.0.45, for pc-linux-gnu on i686
r

Error from configure:

checking for MySQL support... no
checking for specified location of the MySQL UNIX socket... no
checking for MySQLi support... yes
checking whether to enable embedded MySQLi support... yes
checking for mysql_set_server_option in -lmysqlclient... no
configure: error: wrong mysql library version or lib not found. Check
config.log


Reproduce code:
---
./configure --enable-discard-path --enable-fastcgi
--enable-force-cgi-redirect --prefix=/usr/local
--with-apxs2=/usr/local/apache/bin/apxs --with-mysqli=/usr/bin/mysql_config
--enable-embedded-mysqli

Actual result:
--
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:2175: checking for Cygwin environment
configure:2191: cc -c   conftest.c 1>&5
configure: In function `main':
configure:2187: error: `__CYGWIN32__' undeclared (first use in this
function)
configure:2187: error: (Each undeclared identifier is reported only once
configure:2187: error: for each function it appears in.)
configure: failed program was:
#line 2180 "configure"
#include "confdefs.h"

int main() {

#ifndef __CYGWIN__
#define __CYGWIN__ __CYGWIN32__
#endif
return __CYGWIN__;
; return 0; }
configure:2208: checking for mingw32 environment
configure:2220: cc -c   conftest.c 1>&5
configure: In function `main':
configure:2216: error: `__MINGW32__' undeclared (first use in this
function)
configure:2216: error: (Each undeclared identifier is reported only once
configure:2216: error: for each function it appears in.)
configure: failed program was:
#line 2213 "configure"
#include "confdefs.h"

int main() {
return __MINGW32__;
; return 0; }
configure:2239: checking for egrep
configure:2254: checking for a sed that does not truncate output
configure:2391: checking host system type
configure:2412: checking target system type
configure:2511: checking for gcc
configure:2624: checking whether the C compiler (gcc  ) works
configure:2640: gcc -o conftestconftest.c  1>&5
configure:2666: checking whether the C compiler (gcc  ) is a
cross-compiler
configure:2671: checking whether we are using GNU C
configure:2680: gcc -E conftest.c
configure:2699: checking whether gcc accepts -g
configure:2731: checking how to run the C preprocessor
configure:2752: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:2813: checking for icc
configure:2835: checking whether gcc and cc understand -c and -o together
configure:2850: gcc -c conftest.c -o conftest.o 1>&5
configure:2851: gcc -c conftest.c -o conftest.o 1>&5
configure:2856: cc -c conftest.c 1>&5
configure:2858: cc -c conftest.c -o conftest.o 1>&5
configure:2859: cc -c conftest.c -o conftest.o 1>&5
configure:2886: checking how to run the C preprocessor
configure:2966: checking for AIX
configure:2990: checking whether ln -s works
configure:3022: checking if compiler supports -R
configure:3037: gcc -o conftest -g -O2   conftest.c -R /usr/lib  1>&5
gcc: unrecognized option `-R'
/usr/lib: file not recognized: Is a directory
collect2: ld returned 1 exit status
configure: failed program was:
#line 3030 "configure"
#include "confdefs.h"

int main() {

; return 0; }
configure:3055: checking if compiler supports -Wl,-rpath,
configure:3070: gcc -o conftest -g -O2   conftest.c -Wl,-rpath,/usr/lib 
1>&5
configure:3096: checking for re2c
configure:3156: checking for gawk
configure:3216: checking for bison
configure:3256: checking for bison version
configure:3297: checking for flex
configure:3331: checking for yywrap in -lfl
configure:3350: gcc -o conftest -g -O2   conftest.c -lfl   1>&5
configure:3374: checking lex output file root
configure:3395: checking whether yytext is a pointer
configure:3414: gcc -o conftest -g -O2   conftest.c  -lfl 1>&5
configure:3438: checking for working const
configure:3492: gcc -c -g -O2  conftest.c 1>&5
configure:3518: checking for flex version
configure:3773: checking whether to force non-PIC code in shared modules
configure:3801: checking whether /dev/urandom exists
configure:3880: gcc -o conftest -g -O2   conftest.c  1>&5
/tmp/ccuLwssn.o(.text+0x20): In function `main':
/home/cpphpbuild/php-5.2.3/configure:3875: undefined reference to
`pthread_mutexattr_init'
/tmp/ccuLwssn.o(.text+0x34):/home/cpphpbuild/php-5.2.3/configure:3

#42191 [Asn->Fbk]: Multiple SOAP Calls Fail in WSDL Mode

2007-08-22 Thread dmitry
 ID:   42191
 Updated by:   [EMAIL PROTECTED]
 Reported By:  jsinglet at gmail dot com
-Status:   Assigned
+Status:   Feedback
 Bug Type: SOAP related
 Operating System: Mac OS X 10.4.10
 PHP Version:  5.2.3
 Assigned To:  dmitry
 New Comment:

The problem is probably related to HTTP Keap-Alive.
Could you please show result of $client->__getLastResponseHeaders() and
$client->__getLastResponse() after first call?
Do you use http:// or https:// ?


Previous Comments:


[2007-08-02 22:36:26] jsinglet at gmail dot com

Description:

Multiple calls from a PHP-based SOAPClient to a PHP-based SOAPServer 
fail. When you make even two using the same client handle, the call 
fails with the error: 

PHP Warning:  SoapClient::__doRequest(): 7168 bytes of buffered data 
lost during stream conversion! 




Reproduce code:
---
THE SERVER CODE

$GLOBALS['HTTP_RAW_POST_DATA'] = file_get_contents("php://input");
ini_set("soap.wsdl_cache_enabled", 0);

$s = new SoapServer('MyWS.wsdl');
$s->setClass('ClientService');
$s->handle();

CLIENT CLODE

ini_set("soap.wsdl_cache_enabled", 0);

$client = new SoapClient('MyWS.wsdl',
array("classmap"=>array("NewClient"=>"NewClient")));

$result = $client->getNewClient();
//SECOND CALL CREATES WARNING
$result = $client->getNewClient();




Expected result:

The script should run with no errors or warnings.

Actual result:
--
PHP Warning:  SoapClient::__doRequest(): 7168 bytes of buffered data 
lost during stream conversion! in /Users/../test.php





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


#42137 [Bgs->Csd]: Update MySQL & MySQLI Libraries

2007-08-22 Thread dj02 dot net at nbl dot fi
 ID:   42137
 User updated by:  dj02 dot net at nbl dot fi
 Reported By:  dj02 dot net at nbl dot fi
-Status:   Bogus
+Status:   Closed
 Bug Type: Feature/Change Request
 Operating System: Windows Vista 6.0.6000
 PHP Version:  5CVS-2007-08-16 (snap)
 New Comment:

Seems to be updated at version: 5CVS-2007-08-22 (snap)


Previous Comments:


[2007-08-16 13:43:16] [EMAIL PROTECTED]

The other ticket is still open, no point in opening another.



[2007-08-16 11:24:22] dj02 dot net at nbl dot fi

Still not updated



[2007-07-29 18:41:27] dj02 dot net at nbl dot fi

See #41350 its already tracking a version upgrade.



[2007-07-29 12:34:12] [EMAIL PROTECTED]

See #41350 its already tracking a version upgrade.



[2007-07-29 11:23:11] dj02 dot net at nbl dot fi

Description:

Hi,

Could you Update MySQL & MySQLi Libraries against MySQL Version
5.0.45?

Because MySQL Team have updated sources and WIN32 BINARIES to v5.0.45.
Brevious win32 binary release
was v5.0.41 so it would be good to build MySQL & MySQLi Libraries
against MySQL Version 5.0.45.






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


#41350 [Com]: Error in my_thread_global_end()

2007-08-22 Thread dj02 dot net at nbl dot fi
 ID:   41350
 Comment by:   dj02 dot net at nbl dot fi
 Reported By:  graham at directhostinguk dot com
 Status:   Feedback
 Bug Type: MySQL related
 Operating System: Windows 2003
 PHP Version:  5.2.3
 Assigned To:  scottmac
 New Comment:

I updated to: 5.2.4RC3-dev (08-22-2007, SNAP).

And libraries are updated.

mysql
--
MySQL Support   enabled
Active Persistent Links 0
Active Links0
Client API version  5.0.45

Directive   Local Value Master Value
mysql.allow_persistent  On  On
mysql.connect_timeout   60  60
mysql.default_host  no valueno value
mysql.default_password  no valueno value
mysql.default_port  33063306
mysql.default_socketno valueno value
mysql.default_user  no valueno value
mysql.max_links Unlimited   Unlimited
mysql.max_persistentUnlimited   Unlimited
mysql.trace_modeOff Off

mysqli
--
MysqlI Support  enabled
Client API library version  5.0.45
Client API header version   5.0.45
MYSQLI_SOCKET   /tmp/mysql.sock

Directive   Local Value Master Value
mysqli.default_host no valueno value
mysqli.default_port 33063306
mysqli.default_pw   no valueno value
mysqli.default_socket   no valueno value
mysqli.default_user no valueno value
mysqli.max_linksUnlimited   Unlimited
mysqli.reconnectOff Off


Previous Comments:


[2007-08-22 01:38:45] ng dot sick dot no at gmail dot com

Looks like for some reason, the Client API library version of the snap
is 5.0.24.


PHP Version 5.2.4RC3-dev 

Build Date  Aug 21 2007 20:03:47  
Loaded Configuration File  C:\php\php.ini  

mysql
MySQL Support enabled 
Active Persistent Links  0  
Active Links  0  
Client API version  5.0.24  

Directive Local Value Master Value 
mysql.allow_persistent On On 
mysql.connect_timeout 60 60 
mysql.default_host no value no value 
mysql.default_password no value no value 
mysql.default_port no value no value 
mysql.default_socket no value no value 
mysql.default_user no value no value 
mysql.max_links Unlimited Unlimited 
mysql.max_persistent Unlimited Unlimited 
mysql.trace_mode Off Off 

mysqli
MysqlI Support enabled 
Client API library version  5.0.24  
Client API header version  5.0.45  
MYSQLI_SOCKET  /tmp/mysql.sock  

Directive Local Value Master Value 
mysqli.default_host no value no value 
mysqli.default_port 3306 3306 
mysqli.default_pw no value no value 
mysqli.default_socket no value no value 
mysqli.default_user no value no value 
mysqli.max_links Unlimited Unlimited 
mysqli.reconnect Off Off



[2007-08-21 16:37:41] [EMAIL PROTECTED]

Does your phpinfo show 5.2.3 or 5.2.4-RC2?

The MySQL library version looks correct but the code to correctly use
the library wasn't added until after 5.2.3 was released.



[2007-08-21 16:13:26] romain dot burot at laposte dot net

I try this CVS snapshot And I've got the same problem...
And I don't use Mysql Database
I'm with win2003SP2 with IIS6
PHP Version 5.2.3 Not Isapi but CGI
mysqli
MysqlI Support  enabled
Client API library version  5.0.45
Client API header version   5.0.45
MYSQLI_SOCKET   /tmp/mysql.sock

Directive   Local Value Master Value
mysqli.default_host no valueno value
mysqli.default_port 33063306
mysqli.default_pw   no valueno value
mysqli.default_socket   no valueno value
mysqli.default_user no valueno value
mysqli.max_linksUnlimited   Unlimited
mysqli.reconnectOff Off



[2007-08-19 12:12:58] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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

For Windows (installer):

  http://snaps.php.net/win32/php5.2-win32-installer-latest.msi

The libraries were updated yesterday afternoon to 5.0.45.



[2007-08-19 07:27:32] thorsten at phpmyfaq dot de

This bug is still occurs in PHP 5.2.4-RC2 because libmysql.dll is still
the wrong one. It works with libmysql.dll taken from MySQL 5.0.45.



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/41350

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


#42382 [Opn->Bgs]: array_map not working properly with string indexed array

2007-08-22 Thread johannes
 ID:   42382
 Updated by:   [EMAIL PROTECTED]
 Reported By:  neel dot basu dot z at gmail dot com
-Status:   Open
+Status:   Bogus
 Bug Type: Arrays related
 Operating System: Debian Linux
 PHP Version:  5.2.3
 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

.


Previous Comments:


[2007-08-22 15:21:07] neel dot basu dot z at gmail dot com

Description:

If string indexed array is given to array_map it returns numerically
indexed array after applying the callback.
I am using PHP 5.2.1 on Debian Linux.

Reproduce code:
---
 'HeLlO', 'two' => 'Hi');
print_r($r);//Orgiginal array
$r = array_map('tst_it', $r, array(false));
function tst_it($r, $bool = false){
if($bool){return strtoupper($r);}
else{return strtolower($r);}
}
print_r($r);//Array after array_map
?>

Expected result:

Array
(
[one] => HeLlO
[two] => Hi
)
Array
(
[one] => hello
[two] => hi
)

Actual result:
--
Array
(
[one] => HeLlO
[two] => Hi
)
Array
(
[0] => hello
[1] => hi
)





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


#42374 [Fbk->Opn]: --as-needed bug - follow-up

2007-08-22 Thread galtgendo at o2 dot pl
 ID:   42374
 User updated by:  galtgendo at o2 dot pl
 Reported By:  galtgendo at o2 dot pl
-Status:   Feedback
+Status:   Open
 Bug Type: Compile Failure
 Operating System: gentoo linux
 PHP Version:  5.2.3
 New Comment:

Well, I'm not 100%, if I was, I would mentioned it, not asked for
futher testing.
And AFAIK that commit from bug #41973 was only
http://cvs.php.net/viewvc.cgi/php-src/ext/ldap/config.m4?r1=1.44&r2=1.45&diff_format=u
so only about ext/ldap/config.m4 (as in my patch).
What's more, although I can't recall if it made any difference you
should consider changes in acinclude.m4, cause in PHP_CHECK_LIBRARY
macro you were adding libraries to LDFLAGS instead of LIBS and that's
most common source of --as-needed bugs. That's why I'm talking about
false negatives - standard configure check would put those libraries in
wrong place and check would fail even if the library was OK.


Previous Comments:


[2007-08-22 14:46:27] [EMAIL PROTECTED]

And have you even tested what was committed in our CVS?



[2007-08-22 14:45:33] [EMAIL PROTECTED]

FYI: this is not bugzilla and it's not annoying. It's just old. :)

And about your patch..are you really sure you need to change all those
places?



[2007-08-22 10:30:40] galtgendo at o2 dot pl

As I don't see a way to attach anything here, I'll give you a link to
an old gentoo bug with my patch. It's
http://bugs.gentoo.org/show_bug.cgi?id=151444
It's an old bug so it still covers the part from the closed bug.
BTW your bugzilla is REALLY annoying.



[2007-08-22 09:57:33] galtgendo at o2 dot pl

Description:

Recently closed bug #41973 may not cover all the issues.
I have a patch that doesn't seem to break anything for me and AFAIK
solves all potential issues. The --as-needed bugs happen mostly when you
use libtool and add -L and -l to LDFLAGS instead of LIBS. So by the use
of grep I tried to change all the macros that seem to do that. I hope I
didn't break anything, however somebody should check that, cause 'works
for me'!='it works'. At least look at acinclude.m4, cause that one may
lead to false negatives with library detection.






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


#42318 [Asn->Fbk]: problem with nm not finding object files

2007-08-22 Thread tony2001
 ID:   42318
 Updated by:   [EMAIL PROTECTED]
 Reported By:  rainer dot tammer at schulergroup dot com
-Status:   Assigned
+Status:   Feedback
 Bug Type: Compile Failure
 Operating System: AIX 5.2/5.3
 PHP Version:  5.2.3
 Assigned To:  dmitry
 New Comment:

So this is just a warning from AIX nm?
PHP builds and runs ok after that, am I right?


Previous Comments:


[2007-08-21 07:49:58] rainer dot tammer at schulergroup dot com

Hello,
any news ??
Bye
  Rainer



[2007-08-17 08:13:23] rainer dot tammer at schulergroup dot com

Hello,
its the same problem with gcc 3.3:

nm: ext/libxml/libxml.o: 0654-200 Cannot open the specified file.
nm: A file or directory in the path name does not exist.
nm: ext/pcre/pcrelib/pcre_chartables.o: 0654-200 Cannot open the
specified file.
nm: A file or directory in the path name does not exist.
nm: ext/pcre/pcrelib/pcre_ucp_searchfuncs.o: 0654-200 Cannot open the
specified file.
nm: A file or directory in the path name does not exist.


Bye
  Rainer



[2007-08-17 07:13:42] rainer dot tammer at schulergroup dot com

Hello,
the CVS snapshot does not change this problem (compiler xl c/c++).
But to be sure I will also test gcc 3.3
Bye
  Rainer



[2007-08-17 06:20:19] rainer dot tammer at schulergroup dot com

Hello,
I will try the snapshot - no problem.

I think that this is a bit AIX / tools dependent.
On newer AIX systems (AIX 5.2/5.3) with AIX Toolbox libtool 1.5.x 
the .libs is needed.

I will also try to build PHP with gcc. Maybe this has some influence on
the problem.

Libtool 1.5.8 and 1.5.24 defines the following on AIX:

# The name of the directory that contains temporary libtool files.
objdir=.libs

So ... this seams to be libtool related.

Bye
  Rainer Tammer



[2007-08-16 22:34:38] [EMAIL PROTECTED]

Or not really broke but tried to fix. First fix was ok but for some
reason Dmitry removed the .libs part of it, perhaps he knows why..



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/42318

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


#42337 [Fbk->Csd]: Apache 2.2.5 RC Crash while shutting down it (php5.2 as module)

2007-08-22 Thread dj02 dot net at nbl dot fi
 ID:   42337
 User updated by:  dj02 dot net at nbl dot fi
 Reported By:  dj02 dot net at nbl dot fi
-Status:   Feedback
+Status:   Closed
 Bug Type: Apache2 related
 Operating System: Windows Vista Ult.x64 (6.0.6000)
-PHP Version:  5CVS-2007-08-18 (snap)
+PHP Version:  5CVS-2007-08-22 (snap)
 New Comment:

Problem seems to be fixed at version: 5CVS-2007-08-22 (snap)


Previous Comments:


[2007-08-19 19:59:26] [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.






[2007-08-18 14:36:35] dj02 dot net at nbl dot fi

Description:

When i shutdown Apache 2.2.5 RC (service and/or console mode) Apache
2.2.5 RC crashes. PHP installed as module. This didn't happened when i
had PHP 5.2.3 (as module) installed.

php.ini enabled modules:
--
extension=php_mbstring.dll
extension=php_bz2.dll
extension=php_curl.dll
extension=php_exif.dll
extension=php_gd2.dll
extension=php_gettext.dll
extension=php_imap.dll
extension=php_ldap.dll
extension=php_mcrypt.dll
extension=php_mhash.dll
extension=php_mime_magic.dll
extension=php_ming.dll
extension=php_mysql.dll
extension=php_mysqli.dll
extension=php_openssl.dll
extension=php_pdf.dll
extension=php_pdo.dll
extension=php_pdo_mysql.dll
extension=php_pdo_sqlite.dll
extension=php_pdo_odbc.dll
extension=php_sockets.dll
extension=php_sqlite.dll
extension=php_xmlrpc.dll
extension=php_xsl.dll
extension=php_zip.dll
extension=php_zlib_filter.dll
extension=ixed/ixed.5.2.win (have tried to disable it too)






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


#42318 [Fbk->Opn]: problem with nm not finding object files

2007-08-22 Thread rainer dot tammer at schulergroup dot com
 ID:   42318
 User updated by:  rainer dot tammer at schulergroup dot com
 Reported By:  rainer dot tammer at schulergroup dot com
-Status:   Feedback
+Status:   Open
 Bug Type: Compile Failure
 Operating System: AIX 5.2/5.3
 PHP Version:  5.2.3
 Assigned To:  dmitry
 New Comment:

Hello,
yes nm -BCpg does not find the files. 

With the suggested fix nm does find all necessary file an works OK.

I have tested the fix on AIX 5.2 and AIX 5.3 with IBM XL C/C++ 8.0 and
gcc 3.3.

Bye
  Rainer


Previous Comments:


[2007-08-22 15:33:07] [EMAIL PROTECTED]

So this is just a warning from AIX nm?
PHP builds and runs ok after that, am I right?



[2007-08-21 07:49:58] rainer dot tammer at schulergroup dot com

Hello,
any news ??
Bye
  Rainer



[2007-08-17 08:13:23] rainer dot tammer at schulergroup dot com

Hello,
its the same problem with gcc 3.3:

nm: ext/libxml/libxml.o: 0654-200 Cannot open the specified file.
nm: A file or directory in the path name does not exist.
nm: ext/pcre/pcrelib/pcre_chartables.o: 0654-200 Cannot open the
specified file.
nm: A file or directory in the path name does not exist.
nm: ext/pcre/pcrelib/pcre_ucp_searchfuncs.o: 0654-200 Cannot open the
specified file.
nm: A file or directory in the path name does not exist.


Bye
  Rainer



[2007-08-17 07:13:42] rainer dot tammer at schulergroup dot com

Hello,
the CVS snapshot does not change this problem (compiler xl c/c++).
But to be sure I will also test gcc 3.3
Bye
  Rainer



[2007-08-17 06:20:19] rainer dot tammer at schulergroup dot com

Hello,
I will try the snapshot - no problem.

I think that this is a bit AIX / tools dependent.
On newer AIX systems (AIX 5.2/5.3) with AIX Toolbox libtool 1.5.x 
the .libs is needed.

I will also try to build PHP with gcc. Maybe this has some influence on
the problem.

Libtool 1.5.8 and 1.5.24 defines the following on AIX:

# The name of the directory that contains temporary libtool files.
objdir=.libs

So ... this seams to be libtool related.

Bye
  Rainer Tammer



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/42318

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


#42266 [Opn]: BLOB functions do not work on 64bit systems

2007-08-22 Thread karasek at ceskyserver dot cz
 ID:   42266
 User updated by:  karasek at ceskyserver dot cz
 Reported By:  karasek at ceskyserver dot cz
 Status:   Open
 Bug Type: InterBase related
 Operating System: Linux 64-bit
-PHP Version:  5.2.4RC1
+PHP Version:  5.2.4RC2
 New Comment:

Now I have done some tests and I'm sure, that the problem is related to
the 64-bit platform - not to Firebird 2.0. I have tested 5.2.4RC2 on
Kubuntu (32-bit) and the "InterBase: BLOB test" passed. Then, with the
same version (5.2.4RC2) on CentOS (64-bit) "InterBase: BLOB test"
failed. On both systems was installed the same version of Firebird...


Previous Comments:


[2007-08-10 15:40:26] karasek at ceskyserver dot cz

Description:

When I compile PHP on our new installation of CentOS 5.0 (64-bit
version) with Firebird 2.0, "InterBase: BLOB test" fails.

It's really critical issue for our company, because some of our
applications stoped working...

When I tryed the same on CentOS 4.1 (32-bit version) with Firebird 1.5,
the test passed.

In fact, I'm not sure, whether is the problem caused by the new version
of Firebird, or by the 64-bit architecture (but my guess is the
64-bit).

I tryed to work with BLOBs using a desktop application - and verified,
that BLOG support in Firebird 2.0 itself works (on the same server).

I have experienced the problem on PHP 5.2.3,  5.2.4RC1 and snapshot
php5.2-200708101430

I think, that this is the same problem as Bug #42089, but the bug is
now not open, and I don't know, how to open it again (I'm not the
person, who originally reported it).

I'm ready to colaborate, so feel free to contact me, if you need
further informations...

Regards
 Tony

Reproduce code:
---
make
make test






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


#42383 [Opn->Bgs]: Configuring with mysqli enabled consistently fails

2007-08-22 Thread scottmac
 ID:   42383
 Updated by:   [EMAIL PROTECTED]
 Reported By:  intel352 at gmail dot com
-Status:   Open
+Status:   Bogus
 Bug Type: Compile Failure
 Operating System: Centos 4
 PHP Version:  5.2.3
 New Comment:

If mysql_set_server_option isn't present then your version of
mysqlclient is less than 4.1.

You need mysqlclient 4.1 for MySQLi


Previous Comments:


[2007-08-22 15:22:44] intel352 at gmail dot com

Description:

Using Centos 4 with latest updates, running Cpanel/WHM EDGE release.

Compiling php manually to enable mysqli, consistently fails. Received
result with PHP 5.2.2 and 5.2.3. I've tried multiple variations of
enabling mysqli, mysqli + mysql, etc. Enabling mysql by itself works
great, it's just mysqli that errors.

Apache 2.2, MySQL 5.0.45 installed.

[EMAIL PROTECTED] [/home/cpphpbuild/php-5.2.3]# mysqladmin -V
mysqladmin  Ver 8.41 Distrib 5.0.45, for pc-linux-gnu on i686
r

Error from configure:

checking for MySQL support... no
checking for specified location of the MySQL UNIX socket... no
checking for MySQLi support... yes
checking whether to enable embedded MySQLi support... yes
checking for mysql_set_server_option in -lmysqlclient... no
configure: error: wrong mysql library version or lib not found. Check
config.log


Reproduce code:
---
./configure --enable-discard-path --enable-fastcgi
--enable-force-cgi-redirect --prefix=/usr/local
--with-apxs2=/usr/local/apache/bin/apxs
--with-mysqli=/usr/bin/mysql_config --enable-embedded-mysqli

Actual result:
--
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:2175: checking for Cygwin environment
configure:2191: cc -c   conftest.c 1>&5
configure: In function `main':
configure:2187: error: `__CYGWIN32__' undeclared (first use in this
function)
configure:2187: error: (Each undeclared identifier is reported only
once
configure:2187: error: for each function it appears in.)
configure: failed program was:
#line 2180 "configure"
#include "confdefs.h"

int main() {

#ifndef __CYGWIN__
#define __CYGWIN__ __CYGWIN32__
#endif
return __CYGWIN__;
; return 0; }
configure:2208: checking for mingw32 environment
configure:2220: cc -c   conftest.c 1>&5
configure: In function `main':
configure:2216: error: `__MINGW32__' undeclared (first use in this
function)
configure:2216: error: (Each undeclared identifier is reported only
once
configure:2216: error: for each function it appears in.)
configure: failed program was:
#line 2213 "configure"
#include "confdefs.h"

int main() {
return __MINGW32__;
; return 0; }
configure:2239: checking for egrep
configure:2254: checking for a sed that does not truncate output
configure:2391: checking host system type
configure:2412: checking target system type
configure:2511: checking for gcc
configure:2624: checking whether the C compiler (gcc  ) works
configure:2640: gcc -o conftestconftest.c  1>&5
configure:2666: checking whether the C compiler (gcc  ) is a
cross-compiler
configure:2671: checking whether we are using GNU C
configure:2680: gcc -E conftest.c
configure:2699: checking whether gcc accepts -g
configure:2731: checking how to run the C preprocessor
configure:2752: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:2813: checking for icc
configure:2835: checking whether gcc and cc understand -c and -o
together
configure:2850: gcc -c conftest.c -o conftest.o 1>&5
configure:2851: gcc -c conftest.c -o conftest.o 1>&5
configure:2856: cc -c conftest.c 1>&5
configure:2858: cc -c conftest.c -o conftest.o 1>&5
configure:2859: cc -c conftest.c -o conftest.o 1>&5
configure:2886: checking how to run the C preprocessor
configure:2966: checking for AIX
configure:2990: checking whether ln -s works
configure:3022: checking if compiler supports -R
configure:3037: gcc -o conftest -g -O2   conftest.c -R /usr/lib  1>&5
gcc: unrecognized option `-R'
/usr/lib: file not recognized: Is a directory
collect2: ld returned 1 exit status
configure: failed program was:
#line 3030 "configure"
#include "confdefs.h"

int main() {

; return 0; }
configure:3055: checking if compiler supports -Wl,-rpath,
configure:3070: gcc -o conftest -g -O2   conftest.c -Wl,-rpath,/usr/lib
 1>&5
configure:3096: checking for re2c
configure:3156: checking for gawk
configure:3216: checking for bison
configure:3256: checking for bison version
configure:3297: checking for flex
configure:3331: checking for yywrap in -lfl
configure:3350: gcc -o conftest -g -O2   conftest.c -lfl   1>&5
configure:3374: checking lex output file root
configure:3395: checking whether yytext is a pointer
configure:3414: gcc -o conftest -g -O2   conftest.c  -lfl 1>&5
configure:3438: checking for working const
configure:3492: gcc -c -g -O2  conftest.c 1>&5
configure:3518: checking for flex version
configure:3773: checking whether to force non-PIC code in

#42384 [NEW]: Foreach Referencing Problem

2007-08-22 Thread jw at coffeecup dot com
From: jw at coffeecup dot com
Operating system: OS X
PHP version:  5.2.3
PHP Bug Type: Scripting Engine problem
Bug description:  Foreach Referencing Problem

Description:

I get a syntax error when I cast the array_expression portion of a foreach
loop to an array while using the & operator on the value portion.

Reproduce code:
---
$arr = array(1, 2, 3, 4);
foreach ((array)$arr as &$value) {
$value = $value * 2;
}

print_r($arr);

Expected result:

Array
(
[0] => 2
[1] => 4
[2] => 6
[3] => 8
)

Actual result:
--
Parse error: syntax error, unexpected '&', expecting T_STRING or
T_VARIABLE or '$' 

-- 
Edit bug report at http://bugs.php.net/?id=42384&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=42384&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=42384&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=42384&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=42384&r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=42384&r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=42384&r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=42384&r=needscript
Try newer version:http://bugs.php.net/fix.php?id=42384&r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=42384&r=support
Expected behavior:http://bugs.php.net/fix.php?id=42384&r=notwrong
Not enough info:  
http://bugs.php.net/fix.php?id=42384&r=notenoughinfo
Submitted twice:  
http://bugs.php.net/fix.php?id=42384&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=42384&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=42384&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=42384&r=dst
IIS Stability:http://bugs.php.net/fix.php?id=42384&r=isapi
Install GNU Sed:  http://bugs.php.net/fix.php?id=42384&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=42384&r=float
No Zend Extensions:   http://bugs.php.net/fix.php?id=42384&r=nozend
MySQL Configuration Error:http://bugs.php.net/fix.php?id=42384&r=mysqlcfg


#42357 [Fbk->Opn]: add optional parameter for line ending to fputcsv

2007-08-22 Thread php at phihag dot de
 ID:  42357
 User updated by: php at phihag dot de
 Reported By: php at phihag dot de
-Status:  Feedback
+Status:  Open
 Bug Type:Feature/Change Request
 PHP Version: 5.2.4RC2
 New Comment:

No, same behavior (tested on Linux).

>From php.net/fopen:
*Windows* offers a text-mode translation flag ('t') ...

Small correction of the original bug report: \n is always used, have a
look at ext/standard/file.c:~1991:

(...)
smart_str_appendc(&csvline, '\n');
smart_str_0(&csvline);
(...)


Previous Comments:


[2007-08-21 06:20:27] [EMAIL PROTECTED]

Does it work if you open the file in text mode ("wt") ? That *should*
do the trick.



[2007-08-21 06:13:14] php at phihag dot de

Description:

Currently, there is no way to set a custom line ending when writing CSV
files with fputcsv. For instance, this is needed when writing CSV for
various Microsoft products which require "\r\n" as line ending.
Therefore, an optional parameter $ending (as for stream_get_line),
which defaults to auto-detection (current behaviour), would be nice.

To ensure the result is still a valid CSV file, either document using
anything else than line endings (or tabs etc.) is not a good idea, or
define/use constants for the common line endings.

Reproduce code:
---


Expected result:

As a php string:
"a,\"b c\"\r\n"

Actual result:
--
n/a, without the last parameter: "a,\"b c\"\n" (hardcoded line ending
in file.c)





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


#42384 [Opn->Bgs]: Foreach Referencing Problem

2007-08-22 Thread johannes
 ID:   42384
 Updated by:   [EMAIL PROTECTED]
 Reported By:  jw at coffeecup dot com
-Status:   Open
+Status:   Bogus
 Bug Type: Scripting Engine problem
 Operating System: OS X
 PHP Version:  5.2.3
 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

The value created by (array)$arr is a temporary variable which can't be
referenced.


Previous Comments:


[2007-08-22 16:21:55] jw at coffeecup dot com

Description:

I get a syntax error when I cast the array_expression portion of a
foreach loop to an array while using the & operator on the value
portion.

Reproduce code:
---
$arr = array(1, 2, 3, 4);
foreach ((array)$arr as &$value) {
$value = $value * 2;
}

print_r($arr);

Expected result:

Array
(
[0] => 2
[1] => 4
[2] => 6
[3] => 8
)

Actual result:
--
Parse error: syntax error, unexpected '&', expecting T_STRING or
T_VARIABLE or '$' 





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


#42382 [Bgs->Csd]: array_map not working properly with string indexed array

2007-08-22 Thread neel dot basu dot z at gmail dot com
 ID:   42382
 User updated by:  neel dot basu dot z at gmail dot com
 Reported By:  neel dot basu dot z at gmail dot com
-Status:   Bogus
+Status:   Closed
 Bug Type: Arrays related
 Operating System: Debian Linux
 PHP Version:  5.2.3
 New Comment:

OK so is it a feature ??


Previous Comments:


[2007-08-22 15:39:10] [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

.



[2007-08-22 15:21:07] neel dot basu dot z at gmail dot com

Description:

If string indexed array is given to array_map it returns numerically
indexed array after applying the callback.
I am using PHP 5.2.1 on Debian Linux.

Reproduce code:
---
 'HeLlO', 'two' => 'Hi');
print_r($r);//Orgiginal array
$r = array_map('tst_it', $r, array(false));
function tst_it($r, $bool = false){
if($bool){return strtoupper($r);}
else{return strtolower($r);}
}
print_r($r);//Array after array_map
?>

Expected result:

Array
(
[one] => HeLlO
[two] => Hi
)
Array
(
[one] => hello
[two] => hi
)

Actual result:
--
Array
(
[one] => HeLlO
[two] => Hi
)
Array
(
[0] => hello
[1] => hi
)





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


#42384 [Bgs->Opn]: Foreach Referencing Problem

2007-08-22 Thread jw at coffeecup dot com
 ID:   42384
 User updated by:  jw at coffeecup dot com
 Reported By:  jw at coffeecup dot com
-Status:   Bogus
+Status:   Open
 Bug Type: Scripting Engine problem
 Operating System: OS X
 PHP Version:  5.2.3
 New Comment:

Then shouldn't I get this error: 

Fatal error: Cannot create references to elements of a temporary array
expression


Previous Comments:


[2007-08-22 16:38:24] [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

The value created by (array)$arr is a temporary variable which can\'t
be referenced.



[2007-08-22 16:21:55] jw at coffeecup dot com

Description:

I get a syntax error when I cast the array_expression portion of a
foreach loop to an array while using the & operator on the value
portion.

Reproduce code:
---
$arr = array(1, 2, 3, 4);
foreach ((array)$arr as &$value) {
$value = $value * 2;
}

print_r($arr);

Expected result:

Array
(
[0] => 2
[1] => 4
[2] => 6
[3] => 8
)

Actual result:
--
Parse error: syntax error, unexpected '&', expecting T_STRING or
T_VARIABLE or '$' 





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


#42386 [NEW]: install /mysql pain in the neck

2007-08-22 Thread annoyed at home dot com
From: annoyed at home dot com
Operating system: windows xp
PHP version:  5.2.3
PHP Bug Type: Feature/Change Request
Bug description:  install /mysql pain in the neck

Description:

Can't get PHP working with MYSQL and your windows install help is clear as
MUD. It's looking for a PHP5 directory and where is that, pray tell ? Not
in the .INI file. LOTS of annoyed folks on the web about this; me too now.


-- 
Edit bug report at http://bugs.php.net/?id=42386&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=42386&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=42386&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=42386&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=42386&r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=42386&r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=42386&r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=42386&r=needscript
Try newer version:http://bugs.php.net/fix.php?id=42386&r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=42386&r=support
Expected behavior:http://bugs.php.net/fix.php?id=42386&r=notwrong
Not enough info:  
http://bugs.php.net/fix.php?id=42386&r=notenoughinfo
Submitted twice:  
http://bugs.php.net/fix.php?id=42386&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=42386&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=42386&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=42386&r=dst
IIS Stability:http://bugs.php.net/fix.php?id=42386&r=isapi
Install GNU Sed:  http://bugs.php.net/fix.php?id=42386&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=42386&r=float
No Zend Extensions:   http://bugs.php.net/fix.php?id=42386&r=nozend
MySQL Configuration Error:http://bugs.php.net/fix.php?id=42386&r=mysqlcfg


#42386 [Opn->Bgs]: install /mysql pain in the neck

2007-08-22 Thread derick
 ID:   42386
 Updated by:   [EMAIL PROTECTED]
 Reported By:  annoyed at home dot com
-Status:   Open
+Status:   Bogus
 Bug Type: Feature/Change Request
 Operating System: windows xp
 PHP Version:  5.2.3
 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.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

.


Previous Comments:


[2007-08-22 17:46:28] annoyed at home dot com

Description:

Can't get PHP working with MYSQL and your windows install help is clear
as MUD. It's looking for a PHP5 directory and where is that, pray tell ?
Not in the .INI file. LOTS of annoyed folks on the web about this; me
too now.






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


#42387 [NEW]: Error notification callback not called

2007-08-22 Thread chad at herballure dot com
From: chad at herballure dot com
Operating system: Linux
PHP version:  5.2.4RC2
PHP Bug Type: Streams related
Bug description:  Error notification callback not called

Description:

The streams API doesn't appear to actually call the error callback. This
is definitely true if the connection fails, or if the expected hostname
doesn't match the SSL certificate. In the latter case, there is no reliable
way of detecting the error.

The reproduce code is a cut-down version of a test script being run
through the CLI, while I figure out the streams API. I get the same
behavior from 5.2.3 and 5.2.4RC2.

Reproduce code:
---
array('verify_peer' => true,
'CN_match' => "$HOST_NAME.invalid", 'capath'=>$CA_DIR)));
$ret = stream_context_set_params($ctx,
array('notification'=>'stream_err'));

var_dump($ret);

$errno = $errstr = null;
$fp = stream_socket_client("ssl://$HOST_NAME:443", $errno, $errstr, 30,
STREAM_CLIENT_CONNECT, $ctx);

var_dump($errno);
var_dump($errstr);

if( $fp !== false ) {
  fclose($fp);
}

?>

Expected result:

[stream_err, args=Array ( .. )]

Actual result:
--
PHP Warning:  stream_socket_client(): Peer certificate
CN=`secureservicesonline.com' did not match expected
CN=`secureservicesonline.com.invalid' in /.../https_client.php on line 52

Warning: stream_socket_client(): Peer certificate
CN=`secureservicesonline.com' did not match expected
CN=`secureservicesonline.com.invalid' in /.../https_client.php on line 52


-- 
Edit bug report at http://bugs.php.net/?id=42387&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=42387&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=42387&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=42387&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=42387&r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=42387&r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=42387&r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=42387&r=needscript
Try newer version:http://bugs.php.net/fix.php?id=42387&r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=42387&r=support
Expected behavior:http://bugs.php.net/fix.php?id=42387&r=notwrong
Not enough info:  
http://bugs.php.net/fix.php?id=42387&r=notenoughinfo
Submitted twice:  
http://bugs.php.net/fix.php?id=42387&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=42387&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=42387&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=42387&r=dst
IIS Stability:http://bugs.php.net/fix.php?id=42387&r=isapi
Install GNU Sed:  http://bugs.php.net/fix.php?id=42387&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=42387&r=float
No Zend Extensions:   http://bugs.php.net/fix.php?id=42387&r=nozend
MySQL Configuration Error:http://bugs.php.net/fix.php?id=42387&r=mysqlcfg


#42382 [Csd]: array_map not working properly with string indexed array

2007-08-22 Thread neel dot get at gmail dot com
 ID:   42382
 User updated by:  neel dot get at gmail dot com
-Reported By:  neel dot basu dot z at gmail dot com
+Reported By:  neel dot get at gmail dot com
 Status:   Closed
 Bug Type: Arrays related
 Operating System: Debian Linux
 PHP Version:  5.2.3
 New Comment:

Ok Thanks I messed up array_walk() with array_map(). Sorry for that


Previous Comments:


[2007-08-22 16:42:51] neel dot basu dot z at gmail dot com

OK so is it a feature ??



[2007-08-22 15:39:10] [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

.



[2007-08-22 15:21:07] neel dot get at gmail dot com

Description:

If string indexed array is given to array_map it returns numerically
indexed array after applying the callback.
I am using PHP 5.2.1 on Debian Linux.

Reproduce code:
---
 'HeLlO', 'two' => 'Hi');
print_r($r);//Orgiginal array
$r = array_map('tst_it', $r, array(false));
function tst_it($r, $bool = false){
if($bool){return strtoupper($r);}
else{return strtolower($r);}
}
print_r($r);//Array after array_map
?>

Expected result:

Array
(
[one] => HeLlO
[two] => Hi
)
Array
(
[one] => hello
[two] => hi
)

Actual result:
--
Array
(
[one] => HeLlO
[two] => Hi
)
Array
(
[0] => hello
[1] => hi
)





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


#42339 [Bgs->Opn]: Can't Build a CLI *only* must have APXS enabled

2007-08-22 Thread codeslinger at compsalot dot com
 ID:   42339
 User updated by:  codeslinger at compsalot dot com
 Reported By:  codeslinger at compsalot dot com
-Status:   Bogus
+Status:   Open
 Bug Type: *General Issues
 Operating System: SimplyMEPIS Linux 6.5
 PHP Version:  5.2.3
 New Comment:

The sources used are fine, I downloaded them direct from php.net and
verified the md5.

The documentation on the options is incomplete.

I tried --without-apxs because even though it is not documented, it is
symmetrical to the option --with-apxs  which is documented, but that did
not work.  Also, not saying anything about apxs at all did not work
either.  Everything I tried, the ./configure failed.  

After entering this bug and thinking about it some more, it occurred to
me to try  --disable-apxs   and did discover that it was the only thing
which produced the desired behavior of a CLI only build.  And that's
when I changed the category to a documentation bug.  Anything else
results in the error: "Sorry, I was not able to successfully run APXS." 
I get that error even though I have not specified --with-apxs. 

php by default is trying to build the apxs version even when it is not
requested.

I note in the change log that there have been some recent changes to
the "make".  perhaps this problem is newly introduced.

Also my actual goal was to build both CGI and CLI at the same time, but
for the purpose of this bug I decided to simplify and isolate as much as
possible.


Previous Comments:


[2007-08-20 07:48:19] [EMAIL PROTECTED]

This is  not true. Simply doing './configure --disable-cgi' gives you
CLI. There isn't such option as '--disable-apxs'..
You propably used unclean sources.



[2007-08-18 17:46:21] codeslinger at compsalot dot com

this is actually a documentation problem.

the correct command should be

'./configure'--enable-cli --disable-cgi   --disable-apxs



[2007-08-18 17:36:23] codeslinger at compsalot dot com

Description:

There are many options for PHP, such as ncurses, which are not
compatible with phpN-mod.so  

But when trying to build a CLI only config, it fails with an error
message that APXS is not enabled.



Reproduce code:
---
I tried many variants, here is the simplest:

'./configure'--enable-cli--disable-cgi --without-apxs2 
--without-apxs


Expected result:

Expected: No errors


Note:  the following command *does* work

'./configure'--enable-cli--disable-cgi   
'--with-apxs2=/usr/bin/apxs2'  


Actual result:
--
Configuring SAPI modules
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS...

Sorry, I was not able to successfully run APXS.  Possible reasons:

1.  Perl is not installed;
2.  Apache was not compiled with DSO support (--enable-module=so);
3.  'apxs' is not in your path.  Try to use --with-apxs=/path/to/apxs
The output of /usr/local/src/php-5.2.3/no follows
./configure: line 4396: /usr/local/src/php-5.2.3/no: No such file or
directory
configure: error: Aborting







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


#42388 [NEW]: $_ SESSION don't registry variable from array and don't report error

2007-08-22 Thread sica at wnet dot com dot br
From: sica at wnet dot com dot br
Operating system: linux
PHP version:  4.4.7
PHP Bug Type: Session related
Bug description:  $_ SESSION don't registry variable from array and don't 
report error

Description:

$_ SESSION don't registry variable from array and don't report error

Reproduce code:
---
$pesquisa  = "SELECT indice FROM sica_cadastro WHERE login='$login'";
$resultado = mysql_query($pesquisa) or exit(mysql_error());
$dados = mysql_fetch_assoc($resultado);
// it's not working
$_SESSION['s_indice'] = $dados['indice'];
// it don't work
// but don't report error


Expected result:

registry a variable

Actual result:
--
$pesquisa  = "SELECT indice FROM sica_cadastro WHERE login='$login'";
$resultado = mysql_query($pesquisa) or exit(mysql_error());
$dados = mysql_fetch_assoc($resultado);
// it's working
$indice= $dados['indice'];
$_SESSION['s_indice'] = $indice;

-- 
Edit bug report at http://bugs.php.net/?id=42388&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=42388&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=42388&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=42388&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=42388&r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=42388&r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=42388&r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=42388&r=needscript
Try newer version:http://bugs.php.net/fix.php?id=42388&r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=42388&r=support
Expected behavior:http://bugs.php.net/fix.php?id=42388&r=notwrong
Not enough info:  
http://bugs.php.net/fix.php?id=42388&r=notenoughinfo
Submitted twice:  
http://bugs.php.net/fix.php?id=42388&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=42388&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=42388&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=42388&r=dst
IIS Stability:http://bugs.php.net/fix.php?id=42388&r=isapi
Install GNU Sed:  http://bugs.php.net/fix.php?id=42388&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=42388&r=float
No Zend Extensions:   http://bugs.php.net/fix.php?id=42388&r=nozend
MySQL Configuration Error:http://bugs.php.net/fix.php?id=42388&r=mysqlcfg


#42388 [Opn->Bgs]: $_ SESSION don't registry variable from array and don't report error

2007-08-22 Thread johannes
 ID:   42388
 Updated by:   [EMAIL PROTECTED]
 Reported By:  sica at wnet dot com dot br
-Status:   Open
+Status:   Bogus
 Bug Type: Session related
 Operating System: linux
 PHP Version:  4.4.7
 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

As long as there's no session_start() $_SESSION is a regular variable
without special meaning


Previous Comments:


[2007-08-22 19:57:05] sica at wnet dot com dot br

Description:

$_ SESSION don't registry variable from array and don't report error

Reproduce code:
---
$pesquisa  = "SELECT indice FROM sica_cadastro WHERE login='$login'";
$resultado = mysql_query($pesquisa) or exit(mysql_error());
$dados = mysql_fetch_assoc($resultado);
// it's not working
$_SESSION['s_indice'] = $dados['indice'];
// it don't work
// but don't report error


Expected result:

registry a variable

Actual result:
--
$pesquisa  = "SELECT indice FROM sica_cadastro WHERE login='$login'";
$resultado = mysql_query($pesquisa) or exit(mysql_error());
$dados = mysql_fetch_assoc($resultado);
// it's working
$indice= $dados['indice'];
$_SESSION['s_indice'] = $indice;





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


#42383 [Bgs]: Configuring with mysqli enabled consistently fails

2007-08-22 Thread intel352 at gmail dot com
 ID:   42383
 User updated by:  intel352 at gmail dot com
 Reported By:  intel352 at gmail dot com
 Status:   Bogus
 Bug Type: Compile Failure
 Operating System: Centos 4
 PHP Version:  5.2.3
 New Comment:

Actually, I just checked, I have MySQL Client 5.0.45 installed. The
only possible issue that I see, is that MySQL 4.1 Embedded is installed,
so I dunno if that's overriding the MySQL 5 Client somehow.

Any thoughts?


Previous Comments:


[2007-08-22 20:00:46] intel352 at gmail dot com

Thanks very much for letting me know, I'll check into that. This has
been bothering the heck outta me, it'll be nice to get this resolved
:-)

Thanks!



[2007-08-22 15:56:12] [EMAIL PROTECTED]

If mysql_set_server_option isn't present then your version of
mysqlclient is less than 4.1.

You need mysqlclient 4.1 for MySQLi



[2007-08-22 15:22:44] intel352 at gmail dot com

Description:

Using Centos 4 with latest updates, running Cpanel/WHM EDGE release.

Compiling php manually to enable mysqli, consistently fails. Received
result with PHP 5.2.2 and 5.2.3. I've tried multiple variations of
enabling mysqli, mysqli + mysql, etc. Enabling mysql by itself works
great, it's just mysqli that errors.

Apache 2.2, MySQL 5.0.45 installed.

[EMAIL PROTECTED] [/home/cpphpbuild/php-5.2.3]# mysqladmin -V
mysqladmin  Ver 8.41 Distrib 5.0.45, for pc-linux-gnu on i686
r

Error from configure:

checking for MySQL support... no
checking for specified location of the MySQL UNIX socket... no
checking for MySQLi support... yes
checking whether to enable embedded MySQLi support... yes
checking for mysql_set_server_option in -lmysqlclient... no
configure: error: wrong mysql library version or lib not found. Check
config.log


Reproduce code:
---
./configure --enable-discard-path --enable-fastcgi
--enable-force-cgi-redirect --prefix=/usr/local
--with-apxs2=/usr/local/apache/bin/apxs
--with-mysqli=/usr/bin/mysql_config --enable-embedded-mysqli

Actual result:
--
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:2175: checking for Cygwin environment
configure:2191: cc -c   conftest.c 1>&5
configure: In function `main':
configure:2187: error: `__CYGWIN32__' undeclared (first use in this
function)
configure:2187: error: (Each undeclared identifier is reported only
once
configure:2187: error: for each function it appears in.)
configure: failed program was:
#line 2180 "configure"
#include "confdefs.h"

int main() {

#ifndef __CYGWIN__
#define __CYGWIN__ __CYGWIN32__
#endif
return __CYGWIN__;
; return 0; }
configure:2208: checking for mingw32 environment
configure:2220: cc -c   conftest.c 1>&5
configure: In function `main':
configure:2216: error: `__MINGW32__' undeclared (first use in this
function)
configure:2216: error: (Each undeclared identifier is reported only
once
configure:2216: error: for each function it appears in.)
configure: failed program was:
#line 2213 "configure"
#include "confdefs.h"

int main() {
return __MINGW32__;
; return 0; }
configure:2239: checking for egrep
configure:2254: checking for a sed that does not truncate output
configure:2391: checking host system type
configure:2412: checking target system type
configure:2511: checking for gcc
configure:2624: checking whether the C compiler (gcc  ) works
configure:2640: gcc -o conftestconftest.c  1>&5
configure:2666: checking whether the C compiler (gcc  ) is a
cross-compiler
configure:2671: checking whether we are using GNU C
configure:2680: gcc -E conftest.c
configure:2699: checking whether gcc accepts -g
configure:2731: checking how to run the C preprocessor
configure:2752: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:2813: checking for icc
configure:2835: checking whether gcc and cc understand -c and -o
together
configure:2850: gcc -c conftest.c -o conftest.o 1>&5
configure:2851: gcc -c conftest.c -o conftest.o 1>&5
configure:2856: cc -c conftest.c 1>&5
configure:2858: cc -c conftest.c -o conftest.o 1>&5
configure:2859: cc -c conftest.c -o conftest.o 1>&5
configure:2886: checking how to run the C preprocessor
configure:2966: checking for AIX
configure:2990: checking whether ln -s works
configure:3022: checking if compiler supports -R
configure:3037: gcc -o conftest -g -O2   conftest.c -R /usr/lib  1>&5
gcc: unrecognized option `-R'
/usr/lib: file not recognized: Is a directory
collect2: ld returned 1 exit status
configure: failed program was:
#line 3030 "configure"
#include "confdefs.h"

int main() {

; return 0; }
configure:3055: checking if compiler supports -Wl,-rpath,
configure:3070: gcc -o conftest -g -O2   conftest.c -Wl,-rpath,/usr/lib
 1>&5
configure:3096: checking for re2c
configure:3156

#42389 [NEW]: PHP+Apache2+mod_fcgid kills all processes after submit

2007-08-22 Thread webmaster at machostlink dot net
From: webmaster at machostlink dot net
Operating system: OSX 10.4.10
PHP version:  5.2.3
PHP Bug Type: CGI related
Bug description:  PHP+Apache2+mod_fcgid kills all processes after submit

Description:

When using a simple upload form to submit a file, all php4-cgi & php5-cgi
processes (parent & children) are killed and server throws "500 Internal
Server Error" message. This happens ONLY when filesize is larger then 4KB.

Apache error.log from vhost
---
[warn] (35)Resource temporarily unavailable: mod_fcgid: write data to
fastcgi server error

Apache error.log from main/default server
-
mod_fcgid: process /Volumes/home/www/vhost1/public_html/test.php(2293)
exit(communication error), terminated by calling exit(), return code: 0

I am not sure now, after reading other (older) bug reports  regarding  
cgi problems, if this is not an older issue as well!? However, since I
could not find many similarities to these posts I decided to file this
one.

I am running PHP 4.4.7 & PHP 5.2.3 as CGI using mod_fcgid 2.2 and Apache
2.2.4



Reproduce code:
---
';
if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) {
echo "File is valid, and was successfully uploaded.\n";
} else {
echo "Possible file upload attack!\n";
}

echo 'Here is some more debugging info:';
print_r($_FILES);

print "";

?>


Send this file: 



Expected result:

File is valid, and was successfully uploaded.
Here is some more debugging info:Array
(
[userfile] => Array
(
[name] => test.jpg
[type] => image/jpeg
[tmp_name] => /Volumes/home/www/vhost1/tmp/phpcYOdvd
[error] => 0
[size] => 24852930
)

)

Actual result:
--
Error 500
Internal Server Error
...

-- 
Edit bug report at http://bugs.php.net/?id=42389&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=42389&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=42389&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=42389&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=42389&r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=42389&r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=42389&r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=42389&r=needscript
Try newer version:http://bugs.php.net/fix.php?id=42389&r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=42389&r=support
Expected behavior:http://bugs.php.net/fix.php?id=42389&r=notwrong
Not enough info:  
http://bugs.php.net/fix.php?id=42389&r=notenoughinfo
Submitted twice:  
http://bugs.php.net/fix.php?id=42389&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=42389&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=42389&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=42389&r=dst
IIS Stability:http://bugs.php.net/fix.php?id=42389&r=isapi
Install GNU Sed:  http://bugs.php.net/fix.php?id=42389&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=42389&r=float
No Zend Extensions:   http://bugs.php.net/fix.php?id=42389&r=nozend
MySQL Configuration Error:http://bugs.php.net/fix.php?id=42389&r=mysqlcfg


#42390 [NEW]: GMP functions exhausts memory

2007-08-22 Thread cbimax at gmail dot com
From: cbimax at gmail dot com
Operating system: Linux Gentoo K.2.6.20
PHP version:  5.2.3
PHP Bug Type: Math related
Bug description:  GMP functions exhausts memory

Description:

Any gmp_* function running on PHP 5.2.2-r1 (compiled with GMP extensions),
throws after a few invokes "Fatal error: Allowed memory size of  bytes exhausted (tried to allocate 16 bytes) in ".


Reproduce code:
---
for( $i= 0; $i!= 10; $i++ )
{
  $node = gmp_init( $i );
  $id = gmp_div( $node, '0x1' );

  $edge = gmp_and( $node, '0x' );
  $vert = gmp_div( $node, '0x1000' );
  $path = gmp_and( $node, '0x00ff' );

  $str_edge = gmp_strval( $edge );
  $str_vert = gmp_strval( $vert );
  $str_path = gmp_strval( $path );

  echo "Graph -> ($str_edge, $str_vert, $str_path) \n";
}



Expected result:

The iterated procedure runs on PHP 5.1.x (and PHP 5.0.x) near to 1 million
times per call.

In this case, it's only runs 500 times and then drop the Fatal error.


Actual result:
--
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to
allocate 16 bytes) in quixtor/compute-graph-map.php on line 443 (actually
line 443 isn't a gmp related function, but it is called under for()
iteration which uses GMP functions).

-- 
Edit bug report at http://bugs.php.net/?id=42390&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=42390&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=42390&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=42390&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=42390&r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=42390&r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=42390&r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=42390&r=needscript
Try newer version:http://bugs.php.net/fix.php?id=42390&r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=42390&r=support
Expected behavior:http://bugs.php.net/fix.php?id=42390&r=notwrong
Not enough info:  
http://bugs.php.net/fix.php?id=42390&r=notenoughinfo
Submitted twice:  
http://bugs.php.net/fix.php?id=42390&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=42390&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=42390&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=42390&r=dst
IIS Stability:http://bugs.php.net/fix.php?id=42390&r=isapi
Install GNU Sed:  http://bugs.php.net/fix.php?id=42390&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=42390&r=float
No Zend Extensions:   http://bugs.php.net/fix.php?id=42390&r=nozend
MySQL Configuration Error:http://bugs.php.net/fix.php?id=42390&r=mysqlcfg


#42391 [NEW]: DOM handles doctype incorrectly.

2007-08-22 Thread linus dot martensson at elplan-gm dot se
From: linus dot martensson at elplan-gm dot se
Operating system: Linux - Ubuntu Feisty Fawn
PHP version:  5.2.3
PHP Bug Type: DOM XML related
Bug description:  DOM handles doctype incorrectly.

Description:

The DOM parser fails to parse SEVERAL valid xhtml entities, such as
ยป and โ‡’, even though both are specified in
http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent and
http://www.w3.org/TR/xhtml1/DTD/xhtml-symbol.ent.
These two files (among others) are referred to by the specified doctype
definition, xhtml1-strict.dtd.
The parser is obviously not taking all valid xhtml entities into account,
which is a serious problem.

Reproduce code:
---
loadXML('http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
โ‡’โ‡’'))
var_dump(libxml_get_last_error());

Expected result:

No output, should correctly parse the document and store the two entities
in the DOMDocument.

Actual result:
--
When the libXml error is retrieved, this is the apparent error:
Line 1: Entity 'rArr' not defined. The parse is aborted.

-- 
Edit bug report at http://bugs.php.net/?id=42391&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=42391&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=42391&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=42391&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=42391&r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=42391&r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=42391&r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=42391&r=needscript
Try newer version:http://bugs.php.net/fix.php?id=42391&r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=42391&r=support
Expected behavior:http://bugs.php.net/fix.php?id=42391&r=notwrong
Not enough info:  
http://bugs.php.net/fix.php?id=42391&r=notenoughinfo
Submitted twice:  
http://bugs.php.net/fix.php?id=42391&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=42391&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=42391&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=42391&r=dst
IIS Stability:http://bugs.php.net/fix.php?id=42391&r=isapi
Install GNU Sed:  http://bugs.php.net/fix.php?id=42391&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=42391&r=float
No Zend Extensions:   http://bugs.php.net/fix.php?id=42391&r=nozend
MySQL Configuration Error:http://bugs.php.net/fix.php?id=42391&r=mysqlcfg


#42391 [Opn]: DOM ignores several valid dtd entities.

2007-08-22 Thread linus dot martensson at elplan-gm dot se
 ID:   42391
 User updated by:  linus dot martensson at elplan-gm dot se
-Summary:  DOM handles doctype incorrectly.
 Reported By:  linus dot martensson at elplan-gm dot se
 Status:   Open
 Bug Type: DOM XML related
 Operating System: Linux - Ubuntu Feisty Fawn
 PHP Version:  5.2.3
 New Comment:

Retouched the summary.


Previous Comments:


[2007-08-22 21:45:43] linus dot martensson at elplan-gm dot se

Description:

The DOM parser fails to parse SEVERAL valid xhtml entities, such as
ยป and โ‡’, even though both are specified in
http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent and
http://www.w3.org/TR/xhtml1/DTD/xhtml-symbol.ent.
These two files (among others) are referred to by the specified doctype
definition, xhtml1-strict.dtd.
The parser is obviously not taking all valid xhtml entities into
account, which is a serious problem.

Reproduce code:
---
loadXML('http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
โ‡’โ‡’'))
var_dump(libxml_get_last_error());

Expected result:

No output, should correctly parse the document and store the two
entities in the DOMDocument.

Actual result:
--
When the libXml error is retrieved, this is the apparent error:
Line 1: Entity 'rArr' not defined. The parse is aborted.





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


#42383 [Bgs]: Configuring with mysqli enabled consistently fails

2007-08-22 Thread scottmac
 ID:   42383
 Updated by:   [EMAIL PROTECTED]
 Reported By:  intel352 at gmail dot com
 Status:   Bogus
 Bug Type: Compile Failure
 Operating System: Centos 4
 PHP Version:  5.2.3
 New Comment:

find / -name libmysqlclient* 2>/dev/null

you have a libmysqlclient thats its linking against.


Previous Comments:


[2007-08-22 20:21:34] intel352 at gmail dot com

Actually, I just checked, I have MySQL Client 5.0.45 installed. The
only possible issue that I see, is that MySQL 4.1 Embedded is installed,
so I dunno if that's overriding the MySQL 5 Client somehow.

Any thoughts?



[2007-08-22 20:00:46] intel352 at gmail dot com

Thanks very much for letting me know, I'll check into that. This has
been bothering the heck outta me, it'll be nice to get this resolved
:-)

Thanks!



[2007-08-22 15:56:12] [EMAIL PROTECTED]

If mysql_set_server_option isn't present then your version of
mysqlclient is less than 4.1.

You need mysqlclient 4.1 for MySQLi



[2007-08-22 15:22:44] intel352 at gmail dot com

Description:

Using Centos 4 with latest updates, running Cpanel/WHM EDGE release.

Compiling php manually to enable mysqli, consistently fails. Received
result with PHP 5.2.2 and 5.2.3. I've tried multiple variations of
enabling mysqli, mysqli + mysql, etc. Enabling mysql by itself works
great, it's just mysqli that errors.

Apache 2.2, MySQL 5.0.45 installed.

[EMAIL PROTECTED] [/home/cpphpbuild/php-5.2.3]# mysqladmin -V
mysqladmin  Ver 8.41 Distrib 5.0.45, for pc-linux-gnu on i686
r

Error from configure:

checking for MySQL support... no
checking for specified location of the MySQL UNIX socket... no
checking for MySQLi support... yes
checking whether to enable embedded MySQLi support... yes
checking for mysql_set_server_option in -lmysqlclient... no
configure: error: wrong mysql library version or lib not found. Check
config.log


Reproduce code:
---
./configure --enable-discard-path --enable-fastcgi
--enable-force-cgi-redirect --prefix=/usr/local
--with-apxs2=/usr/local/apache/bin/apxs
--with-mysqli=/usr/bin/mysql_config --enable-embedded-mysqli

Actual result:
--
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:2175: checking for Cygwin environment
configure:2191: cc -c   conftest.c 1>&5
configure: In function `main':
configure:2187: error: `__CYGWIN32__' undeclared (first use in this
function)
configure:2187: error: (Each undeclared identifier is reported only
once
configure:2187: error: for each function it appears in.)
configure: failed program was:
#line 2180 "configure"
#include "confdefs.h"

int main() {

#ifndef __CYGWIN__
#define __CYGWIN__ __CYGWIN32__
#endif
return __CYGWIN__;
; return 0; }
configure:2208: checking for mingw32 environment
configure:2220: cc -c   conftest.c 1>&5
configure: In function `main':
configure:2216: error: `__MINGW32__' undeclared (first use in this
function)
configure:2216: error: (Each undeclared identifier is reported only
once
configure:2216: error: for each function it appears in.)
configure: failed program was:
#line 2213 "configure"
#include "confdefs.h"

int main() {
return __MINGW32__;
; return 0; }
configure:2239: checking for egrep
configure:2254: checking for a sed that does not truncate output
configure:2391: checking host system type
configure:2412: checking target system type
configure:2511: checking for gcc
configure:2624: checking whether the C compiler (gcc  ) works
configure:2640: gcc -o conftestconftest.c  1>&5
configure:2666: checking whether the C compiler (gcc  ) is a
cross-compiler
configure:2671: checking whether we are using GNU C
configure:2680: gcc -E conftest.c
configure:2699: checking whether gcc accepts -g
configure:2731: checking how to run the C preprocessor
configure:2752: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:2813: checking for icc
configure:2835: checking whether gcc and cc understand -c and -o
together
configure:2850: gcc -c conftest.c -o conftest.o 1>&5
configure:2851: gcc -c conftest.c -o conftest.o 1>&5
configure:2856: cc -c conftest.c 1>&5
configure:2858: cc -c conftest.c -o conftest.o 1>&5
configure:2859: cc -c conftest.c -o conftest.o 1>&5
configure:2886: checking how to run the C preprocessor
configure:2966: checking for AIX
configure:2990: checking whether ln -s works
configure:3022: checking if compiler supports -R
configure:3037: gcc -o conftest -g -O2   conftest.c -R /usr/lib  1>&5
gcc: unrecognized option `-R'
/usr/lib: file not recognized: Is a directory
collect2: ld returned 1 exit status
configure: failed program was:
#line 3030 "configure"
#include "confdefs.h"

i

#42368 [Asn->Csd]: Incorrect error message displayed by pg_escape_string

2007-08-22 Thread iliaa
 ID:   42368
 Updated by:   [EMAIL PROTECTED]
 Reported By:  vesselin at awcreator dot com
-Status:   Assigned
+Status:   Closed
 Bug Type: PostgreSQL related
 Operating System: Linux
 PHP Version:  5CVS-2007-08-21 (snap)
 Assigned To:  iliaa
 New Comment:

This bug has been fixed in CVS.

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/.
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:


[2007-08-21 23:05:23] vesselin at awcreator dot com

Description:

pg_escape_string() displays an incorrect error message

Reproduce code:
---
pg_escape_string (array ());


Expected result:

Warning: pg_escape_string() expects parameter 1 to be string, array
given in Command line code on line 1

Actual result:
--
Warning: pg_escape_string() expects exactly 2 parameters, 1 given in
Command line code on line 1





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


#42391 [Opn->Bgs]: DOM ignores several valid dtd entities.

2007-08-22 Thread rrichards
 ID:   42391
 Updated by:   [EMAIL PROTECTED]
 Reported By:  linus dot martensson at elplan-gm dot se
-Status:   Open
+Status:   Bogus
 Bug Type: DOM XML related
 Operating System: Linux - Ubuntu Feisty Fawn
 PHP Version:  5.2.3
 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

You need to pass the LIBXML_DTDLOAD option to loadXML as external
subsets are not loaded by default


Previous Comments:


[2007-08-22 22:01:13] linus dot martensson at elplan-gm dot se

Retouched the summary.



[2007-08-22 21:45:43] linus dot martensson at elplan-gm dot se

Description:

The DOM parser fails to parse SEVERAL valid xhtml entities, such as
ยป and โ‡’, even though both are specified in
http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent and
http://www.w3.org/TR/xhtml1/DTD/xhtml-symbol.ent.
These two files (among others) are referred to by the specified doctype
definition, xhtml1-strict.dtd.
The parser is obviously not taking all valid xhtml entities into
account, which is a serious problem.

Reproduce code:
---
loadXML('http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
โ‡’โ‡’'))
var_dump(libxml_get_last_error());

Expected result:

No output, should correctly parse the document and store the two
entities in the DOMDocument.

Actual result:
--
When the libXml error is retrieved, this is the apparent error:
Line 1: Entity 'rArr' not defined. The parse is aborted.





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


#42383 [Bgs->Csd]: Configuring with mysqli enabled consistently fails

2007-08-22 Thread intel352 at gmail dot com
 ID:   42383
 User updated by:  intel352 at gmail dot com
 Reported By:  intel352 at gmail dot com
-Status:   Bogus
+Status:   Closed
 Bug Type: Compile Failure
 Operating System: Centos 4
 PHP Version:  5.2.3
 New Comment:

Thanks, that tip helped me find the culprit file. I've got it compiling
successfully now, I appreciate it!


Previous Comments:


[2007-08-22 22:36:49] [EMAIL PROTECTED]

find / -name libmysqlclient* 2>/dev/null

you have a libmysqlclient thats its linking against.



[2007-08-22 20:21:34] intel352 at gmail dot com

Actually, I just checked, I have MySQL Client 5.0.45 installed. The
only possible issue that I see, is that MySQL 4.1 Embedded is installed,
so I dunno if that's overriding the MySQL 5 Client somehow.

Any thoughts?



[2007-08-22 20:00:46] intel352 at gmail dot com

Thanks very much for letting me know, I'll check into that. This has
been bothering the heck outta me, it'll be nice to get this resolved
:-)

Thanks!



[2007-08-22 15:56:12] [EMAIL PROTECTED]

If mysql_set_server_option isn't present then your version of
mysqlclient is less than 4.1.

You need mysqlclient 4.1 for MySQLi



[2007-08-22 15:22:44] intel352 at gmail dot com

Description:

Using Centos 4 with latest updates, running Cpanel/WHM EDGE release.

Compiling php manually to enable mysqli, consistently fails. Received
result with PHP 5.2.2 and 5.2.3. I've tried multiple variations of
enabling mysqli, mysqli + mysql, etc. Enabling mysql by itself works
great, it's just mysqli that errors.

Apache 2.2, MySQL 5.0.45 installed.

[EMAIL PROTECTED] [/home/cpphpbuild/php-5.2.3]# mysqladmin -V
mysqladmin  Ver 8.41 Distrib 5.0.45, for pc-linux-gnu on i686
r

Error from configure:

checking for MySQL support... no
checking for specified location of the MySQL UNIX socket... no
checking for MySQLi support... yes
checking whether to enable embedded MySQLi support... yes
checking for mysql_set_server_option in -lmysqlclient... no
configure: error: wrong mysql library version or lib not found. Check
config.log


Reproduce code:
---
./configure --enable-discard-path --enable-fastcgi
--enable-force-cgi-redirect --prefix=/usr/local
--with-apxs2=/usr/local/apache/bin/apxs
--with-mysqli=/usr/bin/mysql_config --enable-embedded-mysqli

Actual result:
--
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:2175: checking for Cygwin environment
configure:2191: cc -c   conftest.c 1>&5
configure: In function `main':
configure:2187: error: `__CYGWIN32__' undeclared (first use in this
function)
configure:2187: error: (Each undeclared identifier is reported only
once
configure:2187: error: for each function it appears in.)
configure: failed program was:
#line 2180 "configure"
#include "confdefs.h"

int main() {

#ifndef __CYGWIN__
#define __CYGWIN__ __CYGWIN32__
#endif
return __CYGWIN__;
; return 0; }
configure:2208: checking for mingw32 environment
configure:2220: cc -c   conftest.c 1>&5
configure: In function `main':
configure:2216: error: `__MINGW32__' undeclared (first use in this
function)
configure:2216: error: (Each undeclared identifier is reported only
once
configure:2216: error: for each function it appears in.)
configure: failed program was:
#line 2213 "configure"
#include "confdefs.h"

int main() {
return __MINGW32__;
; return 0; }
configure:2239: checking for egrep
configure:2254: checking for a sed that does not truncate output
configure:2391: checking host system type
configure:2412: checking target system type
configure:2511: checking for gcc
configure:2624: checking whether the C compiler (gcc  ) works
configure:2640: gcc -o conftestconftest.c  1>&5
configure:2666: checking whether the C compiler (gcc  ) is a
cross-compiler
configure:2671: checking whether we are using GNU C
configure:2680: gcc -E conftest.c
configure:2699: checking whether gcc accepts -g
configure:2731: checking how to run the C preprocessor
configure:2752: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:2813: checking for icc
configure:2835: checking whether gcc and cc understand -c and -o
together
configure:2850: gcc -c conftest.c -o conftest.o 1>&5
configure:2851: gcc -c conftest.c -o conftest.o 1>&5
configure:2856: cc -c conftest.c 1>&5
configure:2858: cc -c conftest.c -o conftest.o 1>&5
configure:2859: cc -c conftest.c -o conftest.o 1>&5
configure:2886: checking how to run the C preprocessor
configure:2966: checking for AIX
configure:2990: checking whether ln -s works
configure:3022: checking if compiler supports -R
con

#42392 [NEW]: Multiple Connections to the same Server and Login Override Previous Connections

2007-08-22 Thread memso at memso dot net
From: memso at memso dot net
Operating system: Windows 2003 Server
PHP version:  5.2.3
PHP Bug Type: MSSQL related
Bug description:  Multiple Connections to the same Server and Login Override 
Previous Connections

Description:

After creating a MSSQL connection, any subsequent connections to MSSQL,
whether persistant or otherwise, using the same server and login
information, will override the original MSSQL connection. Using two
different logins do not cause the problem.

This has been tested and found to occur in PHP 5.2.0 and 5.2.3 for Windows
(Windows 2003 Server) as well as PHP 5.2.3 for Linux (a heavily customized
v2.2.24).

This is very similar to Bug #17305.

Reproduce code:
---
$testquery = "SELECT EMAILADDRESS FROM adminmain WHERE ID = 1";

$conn1 = mssql_connect("localhost", "sa", "");
mssql_select_db("generic", $conn1);

// First Query!
$result = mssql_query($testquery, $conn1);
$qarray = mssql_fetch_array($result);
echo("First Result: " . $qarray["EMAILADDRESS"] . "");

$conn2 = mssql_connect("localhost", "sa", "");
mssql_select_db("buymanitou", $conn2);

// Second Query!
// NOTE THAT THIS IS ON CONN1 AGAIN!
$result = mssql_query($testquery, $conn1);
$qarray = mssql_fetch_array($result);
echo("Second Result: " . $qarray["EMAILADDRESS"] . "");

mssql_close($conn1);
mssql_close($conn2);


Expected result:

In my test case, I am grabbing an email address from the first
administrator in the system from the first database connection. Since in my
case, the first DB connection returns [EMAIL PROTECTED] , I
expect the following output:

First Result: [EMAIL PROTECTED]
Second Result: [EMAIL PROTECTED]


Actual result:
--
Because of the bug, the email address from the SECOND database is returned
for the second query:

First Result: [EMAIL PROTECTED]
Second Result: [EMAIL PROTECTED]

-- 
Edit bug report at http://bugs.php.net/?id=42392&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=42392&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=42392&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=42392&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=42392&r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=42392&r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=42392&r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=42392&r=needscript
Try newer version:http://bugs.php.net/fix.php?id=42392&r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=42392&r=support
Expected behavior:http://bugs.php.net/fix.php?id=42392&r=notwrong
Not enough info:  
http://bugs.php.net/fix.php?id=42392&r=notenoughinfo
Submitted twice:  
http://bugs.php.net/fix.php?id=42392&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=42392&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=42392&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=42392&r=dst
IIS Stability:http://bugs.php.net/fix.php?id=42392&r=isapi
Install GNU Sed:  http://bugs.php.net/fix.php?id=42392&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=42392&r=float
No Zend Extensions:   http://bugs.php.net/fix.php?id=42392&r=nozend
MySQL Configuration Error:http://bugs.php.net/fix.php?id=42392&r=mysqlcfg


#42381 [Opn->Bgs]: Double-flock()ing a file crashes

2007-08-22 Thread stas
 ID:   42381
 Updated by:   [EMAIL PROTECTED]
 Reported By:  phpbugs dot 20 dot zsh at spamgourmet dot com
-Status:   Open
+Status:   Bogus
 Bug Type: Reproducible crash
 Operating System: Windows XP
 PHP Version:  5.2.3
 New Comment:

Can't reproduce ceashing. What you probably seeing is php waiting on
flock until it's killed by the timeout thread. 


Previous Comments:


[2007-08-22 15:13:55] phpbugs dot 20 dot zsh at spamgourmet dot com

Description:

Double-flock()ing a file with different handles crashes. 

Reproduce code:
---


Expected result:

Dun!

Actual result:
--
Nothing





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


#26739 [Opn]: __call() doesn't work for static methods

2007-08-22 Thread stas
 ID:   26739
 Updated by:   [EMAIL PROTECTED]
 Reported By:  demiurg at terra dot es
 Status:   Open
 Bug Type: Feature/Change Request
 Operating System: *
 PHP Version:  5.0.0
 New Comment:

Actually AFAIK it's implemented in PHP 6 HEAD and maybe will be also
backported to 5.3. 


Previous Comments:


[2007-07-29 22:45:56] tom at ix dot tc

The last response was 3 years ago but this has yet to be implemented.
Any updates on this? I would really like to have this feature.



[2007-03-16 08:40:01] ecentinela at gmail dot com

Have been resolved this issue? There is some workaround?

Thanks



[2003-12-29 08:07:21] [EMAIL PROTECTED]

__call() doesn't offer anything to distinguish between static and
dynamic calls. So we'd need a new magic function say __static_call().

For 5.0.0 we have a feature freeze already, so this might take a while.



[2003-12-29 07:50:16] demiurg at terra dot es

Description:

Hello,
I'm not sure whether it is a bug or a feature, so I just point this out
and you decide.

__class() method works like OK for objects, but completely fails when
calling a class method (see Reproduce Code).

P.S. Before sending this report, I did a search on "__call" and have
found 11 bugs, none of which describes the issue.

Thanks!


Reproduce code:
---
test(1, 2, 3);

a::test(3, 2, 1);

?>

Expected result:

Called test(1, 2, 3)

Called test(3, 2, 1)


Actual result:
--
Called test(1, 2, 3)

Fatal error: Call to undefined method a::test() in a.php on line 12





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


#37273 [Asn->Csd]: Symlinks and session handler allow open_basedir bypass

2007-08-22 Thread iliaa
 ID:   37273
 Updated by:   [EMAIL PROTECTED]
 Reported By:  c dot i dot morris at durham dot ac dot uk
-Status:   Assigned
+Status:   Closed
 Bug Type: Session related
 Operating System: Linux
 PHP Version:  5.1.3
 Assigned To:  iliaa
 New Comment:

This bug has been fixed in CVS.

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/.
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:


[2007-08-20 10:37:11] [EMAIL PROTECTED]

Ilia, is this fixed or not? :)



[2007-08-20 10:19:34] [EMAIL PROTECTED]

Security vulnerability should be better fixed in source than
documented.



[2006-07-27 11:41:42] a dot d dot stribblehill at durham dot ac dot uk

This is *not* a documentation bug: as the original report says, it is a
security vulnerability -- one that can and should be fixed in the code.



[2006-07-27 01:34:11] [EMAIL PROTECTED]

Reclassified. Ilia will give more info for whomever is going to
document this.



[2006-06-16 14:32:37] c dot i dot morris at durham dot ac dot uk

For a possible solution to this, in ext/session/mod_files.c, the
ps_files_open function has:
data->fd = VCWD_OPEN_MODE(buf, O_CREAT | O_RDWR | O_BINARY, 
data->filemode);

On systems that support O_NOFOLLOW (FreeBSD, Linux>=2.2, maybe others)
you can probably do
data->fd = VCWD_OPEN_MODE(buf, O_CREAT | O_RDWR | O_BINARY |
O_NOFOLLOW, 
data->filemode);
which will cause this open to fail (with error ELOOP) if the session
file is a symlink rather than a regular file.

On systems that don't support O_NOFOLLOW, stat()ing the file and making
sure the file mode isn't S_IFLNK should do it.

Would you like me to try to put together a patch for 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/37273

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


#42374 [Opn]: --as-needed bug - follow-up

2007-08-22 Thread galtgendo at o2 dot pl
 ID:   42374
 User updated by:  galtgendo at o2 dot pl
 Reported By:  galtgendo at o2 dot pl
 Status:   Open
 Bug Type: Compile Failure
 Operating System: gentoo linux
 PHP Version:  5.2.3
 New Comment:

As I don't see a way to attach anything here, I'll give you a link to
an old gentoo bug with my patch. It's
http://bugs.gentoo.org/show_bug.cgi?id=151444
It's an old bug so it still covers the part from the closed bug.
BTW your bugzilla is REALLY annoying.


Previous Comments:


[2007-08-22 09:57:33] galtgendo at o2 dot pl

Description:

Recently closed bug #41973 may not cover all the issues.
I have a patch that doesn't seem to break anything for me and AFAIK
solves all potential issues. The --as-needed bugs happen mostly when you
use libtool and add -L and -l to LDFLAGS instead of LIBS. So by the use
of grep I tried to change all the macros that seem to do that. I hope I
didn't break anything, however somebody should check that, cause 'works
for me'!='it works'. At least look at acinclude.m4, cause that one may
lead to false negatives with library detection.






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


#42374 [Opn->Fbk]: --as-needed bug - follow-up

2007-08-22 Thread jani
 ID:   42374
 Updated by:   [EMAIL PROTECTED]
 Reported By:  galtgendo at o2 dot pl
-Status:   Open
+Status:   Feedback
 Bug Type: Compile Failure
 Operating System: gentoo linux
 PHP Version:  5.2.3
 New Comment:

FYI: this is not bugzilla and it's not annoying. It's just old. :)

And about your patch..are you really sure you need to change all those
places?


Previous Comments:


[2007-08-22 10:30:40] galtgendo at o2 dot pl

As I don't see a way to attach anything here, I'll give you a link to
an old gentoo bug with my patch. It's
http://bugs.gentoo.org/show_bug.cgi?id=151444
It's an old bug so it still covers the part from the closed bug.
BTW your bugzilla is REALLY annoying.



[2007-08-22 09:57:33] galtgendo at o2 dot pl

Description:

Recently closed bug #41973 may not cover all the issues.
I have a patch that doesn't seem to break anything for me and AFAIK
solves all potential issues. The --as-needed bugs happen mostly when you
use libtool and add -L and -l to LDFLAGS instead of LIBS. So by the use
of grep I tried to change all the macros that seem to do that. I hope I
didn't break anything, however somebody should check that, cause 'works
for me'!='it works'. At least look at acinclude.m4, cause that one may
lead to false negatives with library detection.






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


#42369 [Opn->Fbk]: Implicit conversion to string leaks memory

2007-08-22 Thread stas
 ID:   42369
 Updated by:   [EMAIL PROTECTED]
 Reported By:  david at acz dot org
-Status:   Open
+Status:   Feedback
 Bug Type: SimpleXML related
 Operating System: SuSE Linux
 PHP Version:  5.2.3
 New Comment:

Please try using this CVS snapshot:

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

For Windows (installer):

  http://snaps.php.net/win32/php5.2-win32-installer-latest.msi

couldn't reproduce on latest 5.2.4 RC


Previous Comments:


[2007-08-21 23:30:17] david at acz dot org

Description:

Passing a SimpleXML string object to most builtin string functions
causes a memory leak.

Reproduce code:
---
#!/usr/local/bin/php -d memory_limit=128M
';
$x = simplexml_load_string($xml . "foo");

echo "explicit conversion\n";
for ($i = 0; $i < 100; $i++)
md5(strval($x->x));

echo "no conversion\n";
for ($i = 0; $i < 100; $i++)
md5($x->x);

echo "done\n";
?>


Expected result:

$ ./crash.php
explicit conversion
no conversion
done


Actual result:
--
$ ./crash.php
explicit conversion
no conversion

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to
allocate 40 bytes) in /tmp/crash.php on line 12






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


#42374 [Fbk]: --as-needed bug - follow-up

2007-08-22 Thread jani
 ID:   42374
 Updated by:   [EMAIL PROTECTED]
 Reported By:  galtgendo at o2 dot pl
 Status:   Feedback
 Bug Type: Compile Failure
 Operating System: gentoo linux
 PHP Version:  5.2.3
 New Comment:

And have you even tested what was committed in our CVS?


Previous Comments:


[2007-08-22 14:45:33] [EMAIL PROTECTED]

FYI: this is not bugzilla and it's not annoying. It's just old. :)

And about your patch..are you really sure you need to change all those
places?



[2007-08-22 10:30:40] galtgendo at o2 dot pl

As I don't see a way to attach anything here, I'll give you a link to
an old gentoo bug with my patch. It's
http://bugs.gentoo.org/show_bug.cgi?id=151444
It's an old bug so it still covers the part from the closed bug.
BTW your bugzilla is REALLY annoying.



[2007-08-22 09:57:33] galtgendo at o2 dot pl

Description:

Recently closed bug #41973 may not cover all the issues.
I have a patch that doesn't seem to break anything for me and AFAIK
solves all potential issues. The --as-needed bugs happen mostly when you
use libtool and add -L and -l to LDFLAGS instead of LIBS. So by the use
of grep I tried to change all the macros that seem to do that. I hope I
didn't break anything, however somebody should check that, cause 'works
for me'!='it works'. At least look at acinclude.m4, cause that one may
lead to false negatives with library detection.






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


#42376 [Opn->Asn]: error between date and mktime

2007-08-22 Thread derick
 ID:   42376
 Updated by:   [EMAIL PROTECTED]
 Reported By:  piefra at gmail dot com
-Status:   Open
+Status:   Assigned
 Bug Type: Date/time related
 Operating System: bof win(5) & linux(4.1)
 PHP Version:  5.2.3
-Assigned To:  
+Assigned To:  derick


Previous Comments:


[2007-08-22 10:34:50] piefra at gmail dot com

Description:

(sorry for my english i'm french )
using timestamp incrementation with date(H), i found somme datetime
error : 
the error occur on the same hours ( 02:00 ) 

echo date("Y/m/d H:i",gmmktime(2,0,0,03,25,2007)) -> 2007/03/25 03:00

reproductible on every years same month ( end mars ) 
2007/03/25 03:00,2008/03/30 03:00,2009/03/29 03:00,2010/03/28 03:00
2011/03/27 03:00,2012/03/25 03:00,2013/03/31 03:00,2014/03/30 03:00
2015/03/29 03:00 ...

to find date errors run the code 

found on windows/wamp 1.5.0 (php 5.1)
tested on linux/mandriva/appache with php 4.1
all plateform test is x86 

Reproduce code:
---
';
  $dt1=mktime(0,0,0,1,1,2007);
  echo date("Y/m/d H:i",$dt1)."\n";
  for ($i=1;$i<24*365*20;$i++){
set_time_limit(0);
   
$dt2=mktime(date("H",$dt1)+1,date("i",$dt1),0,date("m",$dt1),date("d",$dt1),date("Y",$dt1));
$d=date("H",$dt2)-date("H",$dt1);
if ($d<>1 and $d <>-23) {
echo date("Y/m/d H:i",$dt1)." ".date("Y/m/d H:i",$dt2)."\n";
flush();
}
$dt1=$dt2;
  }
  echo date("Y/m/d H:i",$dt2)."\n";
echo '';
?>


Expected result:

echo date("Y/m/d H:i",gmmktime(2,0,0,03,25,2007)) -> 2007/03/25 02:00

Actual result:
--
echo date("Y/m/d H:i",gmmktime(2,0,0,03,25,2007)) -> 2007/03/25 03:00





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


#42361 [Bgs]: strtotime() can't return any properly result

2007-08-22 Thread s679160 at yandex dot ru
 ID:   42361
 User updated by:  s679160 at yandex dot ru
 Reported By:  s679160 at yandex dot ru
 Status:   Bogus
 Bug Type: Date/time related
 Operating System: Linux
 PHP Version:  5.2.3
 New Comment:

Thank you !

I find mistake. MY browser show russian help page usign your link and
in the russian page present old version of return value. 
In newer russian CHM helpfile  too :(.

In newer English CHM helpfile all is OK.


Previous Comments:


[2007-08-22 06:43:35] [EMAIL PROTECTED]

No, it already says this (http://no.php.net/strtotime):

Return Values

Returns a timestamp on success, FALSE otherwise. Previous to PHP 5.1.0,
this function would return -1 on failure. 



[2007-08-22 06:27:11] s679160 at yandex dot ru

But in manual i see next:

if error occurs function return (-1). 

May be it is mistake in manual ?



[2007-08-21 14:55:28] [EMAIL PROTECTED]

it returns false:

[EMAIL PROTECTED]:~$ php -r 'var_dump(Strtotime("2006-06-446"));'
bool(false)




[2007-08-21 14:33:18] s679160 at yandex dot ru

So, but why function don't return error value (-1) ?



[2007-08-21 14:14:48] [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

2006-06-446 is clearly not a valid date.



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/42361

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


#42377 [NEW]: file_get_contents or fopen produce my_thread_global_end error

2007-08-22 Thread antonello dot bogi at staff dot tol dot it
From: antonello dot bogi at staff dot tol dot it
Operating system: Win 2003 server
PHP version:  5.2.3
PHP Bug Type: *General Issues
Bug description:  file_get_contents or fopen produce my_thread_global_end error

Description:

I have PHP 5.2.3 on my win2003 server

when I launch a simple script like :

http://www.google.com";);
print $data;
?>

 return to me :

'Error in my_thread_global_end(): 1 threads didn't exit'
this bug was already marked in bug ID: #41967
but without answer

thanx in advance 

Reproduce code:
---
http://www.google.com";);
print $data;
?>

Expected result:

'Error in my_thread_global_end(): 1 threads didn't exit'


-- 
Edit bug report at http://bugs.php.net/?id=42377&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=42377&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=42377&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=42377&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=42377&r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=42377&r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=42377&r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=42377&r=needscript
Try newer version:http://bugs.php.net/fix.php?id=42377&r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=42377&r=support
Expected behavior:http://bugs.php.net/fix.php?id=42377&r=notwrong
Not enough info:  
http://bugs.php.net/fix.php?id=42377&r=notenoughinfo
Submitted twice:  
http://bugs.php.net/fix.php?id=42377&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=42377&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=42377&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=42377&r=dst
IIS Stability:http://bugs.php.net/fix.php?id=42377&r=isapi
Install GNU Sed:  http://bugs.php.net/fix.php?id=42377&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=42377&r=float
No Zend Extensions:   http://bugs.php.net/fix.php?id=42377&r=nozend
MySQL Configuration Error:http://bugs.php.net/fix.php?id=42377&r=mysqlcfg


#42317 [Fbk]: The JVM cores in at _zval_ptr_dtor()

2007-08-22 Thread stas
 ID:   42317
 Updated by:   [EMAIL PROTECTED]
 Reported By:  jfclere at gmail dot com
 Status:   Feedback
 Bug Type: Reproducible crash
 Operating System: RHEL 5 + JRockit
 PHP Version:  5.2.3
 New Comment:

PHP engine intentionally doesn't check pointers for nulls where they
can't be nulls so that these checks won't mask a real bug. The real bug
seems to be in the code that passed null pointer to zval_ptr_dtor, so
that's where the fix should be. 


Previous Comments:


[2007-08-16 22:36:35] [EMAIL PROTECTED]

Also, you should provide any patches against the latest sources:
http://snaps.php.net/php5.2-latest.tar.gz

Please try the snapshot first (without any patches!).



[2007-08-16 22:35:55] [EMAIL PROTECTED]

I'm more interested on what platform and configuration you need this
"fix" since it's not proper fix. 



[2007-08-16 14:29:25] jfclere at gmail dot com

If *zval_ptr is NULL the actual code in
php-5.2.3/Zend/zend_execute_API.c will core on some platforms

This is fixed by applying the following patch:
+++
--- php-5.2.3/Zend/zend_execute_API.c   2007-08-16 08:12:59.927931000
-0400
+++ php-5.2.3/Zend/zend_execute_API.c   2007-08-16 10:12:26.91901
-0400
@@ -406,6 +406,8 @@

 ZEND_API void _zval_ptr_dtor(zval **zval_ptr ZEND_FILE_LINE_DC)
 {
+if (*zval_ptr == NULL)
+return;
 #if DEBUG_ZEND>=2
printf("Reducing refcount for %x (%x):  %d->%d\n", *zval_ptr,
zval_ptr, (*zval_ptr)->refcount, (*zval_ptr)->refcount-1);
 #endif
+++



[2007-08-16 12:02:42] jfclere at gmail dot com

Description:

When accessing to a php page via our php servlet on IA64 with JRockit
1.5.x we get a core.

Reproduce code:
---
That is an embbedded php in a JVM. Any php code causes the problem.

Expected result:

A page to be displayed.

Actual result:
--
+++
Thread Stack Trace:
at _zval_ptr_dtor(zend_execute_API.c:412)@0x4a520e80
at zend_do_fcall_common_helper_SPEC(zend_execute.h:155)@0x4a59f1a0
at execute(zend_vm_execute.h:92)@0x4a59e4d0
at
zend_do_fcall_common_helper_SPEC(zend_vm_execute.h:234)@0x4a59ec80
at execute(zend_vm_execute.h:92)@0x4a59e4d0
at zend_execute_scripts(zend.c:1135)@0x4a54d560
at php_execute_script(main.c:1794)@0x4a4984a0
at Java_org_jboss_web_php_Handler_php()@0x45372770
+++

The problem is fixed by adding in _zval_ptr_dtor:
+++
if (*zval_ptr == NULL)
return;
+++





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


#42378 [NEW]: bind_result memory exhaustion

2007-08-22 Thread jullrich at sans dot org
From: jullrich at sans dot org
Operating system: Linux (CentOS 4.5)
PHP version:  5.2.3
PHP Bug Type: MySQLi related
Bug description:  bind_result memory exhaustion

Description:

The use of the mysql command "format" will lead to memory exhaustion on
bind_results. Here sample code that does cause the issue:

$sQuery="select targetport,format(trend,2) from trends where
current_targets>10 and trend is not null order by trend desc limit 100";

$oStmt=$oDB->prepare($sQuery);
$oStmt->execute();
$oStmt->store_result();
$oStmt->bind_result($nPort,$nTrend);

This code works fine if $sQuery is replaced with:
$sQuery="select targetport,trend from trends where current_targets>10 and
trend is not null order by trend desc limit 100";

removing 'store_result' has no effect. Other changes to the SQL statement
have no effect either.

Error message logged:

PHP Fatal error:  Allowed memory size of 83886080 bytes exhausted (tried
to allocate 1431655788 bytes) in query.html on line 4


Reproduce code:
---
$sQuery="select targetport,format(trend,2) from trends where
current_targets>10 and trend is not null order by trend desc limit 100";

$oStmt=$oDB->prepare($sQuery);
$oStmt->execute();
$oStmt->store_result();
$oStmt->bind_result($nPort,$nTrend);

Expected result:

I expected the query to "happen" and get executed.



Actual result:
--
PHP Fatal error:  Allowed memory size of 83886080 bytes exhausted (tried
to allocate 1431655788 bytes) in query.html on line 4

(Line number corresponds to the 'bind_result' statement)

-- 
Edit bug report at http://bugs.php.net/?id=42378&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=42378&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=42378&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=42378&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=42378&r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=42378&r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=42378&r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=42378&r=needscript
Try newer version:http://bugs.php.net/fix.php?id=42378&r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=42378&r=support
Expected behavior:http://bugs.php.net/fix.php?id=42378&r=notwrong
Not enough info:  
http://bugs.php.net/fix.php?id=42378&r=notenoughinfo
Submitted twice:  
http://bugs.php.net/fix.php?id=42378&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=42378&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=42378&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=42378&r=dst
IIS Stability:http://bugs.php.net/fix.php?id=42378&r=isapi
Install GNU Sed:  http://bugs.php.net/fix.php?id=42378&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=42378&r=float
No Zend Extensions:   http://bugs.php.net/fix.php?id=42378&r=nozend
MySQL Configuration Error:http://bugs.php.net/fix.php?id=42378&r=mysqlcfg


#42184 [Asn->Bgs]: Object Type mismatch using classmap in WSDL mode

2007-08-22 Thread dmitry
 ID:   42184
 Updated by:   [EMAIL PROTECTED]
 Reported By:  heitor dot m at gmail dot com
-Status:   Assigned
+Status:   Bogus
 Bug Type: SOAP related
 Operating System: Linux RedHat Enterprise V4
 PHP Version:  5.2.3
 Assigned To:  dmitry
 New Comment:

Your have three errors in your report.

1) In WSDL file you've forgot  tag inside  element:

http://schemas.nothing.com";>
  

  
  
  

  


2) You shuold use "rpc/encoded" instead of "document/literal" encoding,
or the envilope won't contain type name and it cannot be used to restore
object of proper class.

3) PHPObject ius incompatible with WSDL type. The first one has $prop1
but the second one $param1.





Previous Comments:


[2007-08-02 17:27:35] heitor dot m at gmail dot com

Description:

tryning to get the object type that i was specified in classmap option.
i ever get a object of the type stdClass.

I'm expecting to get in this case a instance of the Class PHPObject
previusly declared by me.

I already search for related bug reports and just has found this:
http://bugs.php.net/bug.php?id=42157
thats already closed.

Reproduce code:
---
SERVER(teste_ser.php):
prop1 = $a;
$this->prop2 = $b;
$this->propc = $c;
}
}

function send($arg_obj)
{
$obj = new PHPObject("SERVER_1", "SERVER_2", "SERVER_3");
return $obj;
}

$classmap = array('WSDLObject' => 'PHPObject');

$server = new SoapServer("teste.wsdl", array('classmap' =>
$classmap));

$server->addFunction(array("send"));

$server->handle();

?>
=
CLIENT(teste_cli.php):
prop1 = $a;
$this->prop2 = $b;
$this->propc = $c;
}
}

try {

$classmap = array('WSDLObject' => 'PHPObject');

$client = new SoapClient("teste.wsdl", array("classmap"  => $classmap,
'trace' => 1));

$arg_obj = new PHPObject("ARG_1", "ARG_2", "ARG_3");

$res = $client->send($arg_obj);

echo "RESPONSE FROM SERVER";
var_dump($res);
echo "";

echo "SOAP RESPONSE";
echo htmlspecialchars(str_replace("><", ">\n<",
$client->__getLastResponse()));
echo "";

} catch (SoapFault $sf) {

echo "";
print_r("(" . $sf->faultcode . ") " . $sf->faultstring);
echo "";

} catch (Exception  $e) { 

echo "";
print_r($e);
echo "";

} 

?>
==
WSDL(teste.wsdl):


http://schemas.xmlsoap.org/wsdl/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:tns="http://www.sit.com.br/wsdl"; 
xmlns:soap-env="http://schemas.xmlsoap.org/wsdl/soap/"; 
xmlns:wsdl="http://www.w3.org/2003/06/wsdl"; 
xmlns:soapenc="http://www.w3.org/2003/05/soap-encoding"; 
targetNamespace="http://www.sit.com.br/wsdl";>



 















 


  









  



















http://schemas.xmlsoap.org/soap/http"/>



http://schemas.xmlsoap.org/soap/encoding/";
namespace="urn:Types" use="literal" />


http://schemas.xmlsoap.org/soap/encoding/";
namespace="urn:Types" use="literal" />








Web-Services para operaes matematicas

http://10.11.40.177/developers/heitor/ws/teste/teste_ser.php"/>






Expected result:

RESPONSE FROM SERVER

object(PHPObject)[3]
  public 'prop1' => string 'SERVER_1' (length=8)
  public 'prop2' => string 'SERVER_2' (length=8)
  public 'propc' => string 'SERVER_3' (length=8)
  [methods list]

SOAP RESPONSE


http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>


SERVER_1
SERVER_2
SERVER_3






Actual result:
--
RESPONSE FROM SERVER

object(stdClass)[3]
  public 'prop1' => string 'SERVER_1' (length=8)
  public 'prop2' => string 'SERVER_2' (length=8)
  public 'propc' => string 'SERVER_3' (length=8)

SOAP RESPONSE


http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>


SERVER_1
SERVER_2
SERVER_3










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


#42383 [Bgs]: Configuring with mysqli enabled consistently fails

2007-08-22 Thread intel352 at gmail dot com
 ID:   42383
 User updated by:  intel352 at gmail dot com
 Reported By:  intel352 at gmail dot com
 Status:   Bogus
 Bug Type: Compile Failure
 Operating System: Centos 4
 PHP Version:  5.2.3
 New Comment:

Thanks very much for letting me know, I'll check into that. This has
been bothering the heck outta me, it'll be nice to get this resolved
:-)

Thanks!


Previous Comments:


[2007-08-22 15:56:12] [EMAIL PROTECTED]

If mysql_set_server_option isn't present then your version of
mysqlclient is less than 4.1.

You need mysqlclient 4.1 for MySQLi



[2007-08-22 15:22:44] intel352 at gmail dot com

Description:

Using Centos 4 with latest updates, running Cpanel/WHM EDGE release.

Compiling php manually to enable mysqli, consistently fails. Received
result with PHP 5.2.2 and 5.2.3. I've tried multiple variations of
enabling mysqli, mysqli + mysql, etc. Enabling mysql by itself works
great, it's just mysqli that errors.

Apache 2.2, MySQL 5.0.45 installed.

[EMAIL PROTECTED] [/home/cpphpbuild/php-5.2.3]# mysqladmin -V
mysqladmin  Ver 8.41 Distrib 5.0.45, for pc-linux-gnu on i686
r

Error from configure:

checking for MySQL support... no
checking for specified location of the MySQL UNIX socket... no
checking for MySQLi support... yes
checking whether to enable embedded MySQLi support... yes
checking for mysql_set_server_option in -lmysqlclient... no
configure: error: wrong mysql library version or lib not found. Check
config.log


Reproduce code:
---
./configure --enable-discard-path --enable-fastcgi
--enable-force-cgi-redirect --prefix=/usr/local
--with-apxs2=/usr/local/apache/bin/apxs
--with-mysqli=/usr/bin/mysql_config --enable-embedded-mysqli

Actual result:
--
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:2175: checking for Cygwin environment
configure:2191: cc -c   conftest.c 1>&5
configure: In function `main':
configure:2187: error: `__CYGWIN32__' undeclared (first use in this
function)
configure:2187: error: (Each undeclared identifier is reported only
once
configure:2187: error: for each function it appears in.)
configure: failed program was:
#line 2180 "configure"
#include "confdefs.h"

int main() {

#ifndef __CYGWIN__
#define __CYGWIN__ __CYGWIN32__
#endif
return __CYGWIN__;
; return 0; }
configure:2208: checking for mingw32 environment
configure:2220: cc -c   conftest.c 1>&5
configure: In function `main':
configure:2216: error: `__MINGW32__' undeclared (first use in this
function)
configure:2216: error: (Each undeclared identifier is reported only
once
configure:2216: error: for each function it appears in.)
configure: failed program was:
#line 2213 "configure"
#include "confdefs.h"

int main() {
return __MINGW32__;
; return 0; }
configure:2239: checking for egrep
configure:2254: checking for a sed that does not truncate output
configure:2391: checking host system type
configure:2412: checking target system type
configure:2511: checking for gcc
configure:2624: checking whether the C compiler (gcc  ) works
configure:2640: gcc -o conftestconftest.c  1>&5
configure:2666: checking whether the C compiler (gcc  ) is a
cross-compiler
configure:2671: checking whether we are using GNU C
configure:2680: gcc -E conftest.c
configure:2699: checking whether gcc accepts -g
configure:2731: checking how to run the C preprocessor
configure:2752: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:2813: checking for icc
configure:2835: checking whether gcc and cc understand -c and -o
together
configure:2850: gcc -c conftest.c -o conftest.o 1>&5
configure:2851: gcc -c conftest.c -o conftest.o 1>&5
configure:2856: cc -c conftest.c 1>&5
configure:2858: cc -c conftest.c -o conftest.o 1>&5
configure:2859: cc -c conftest.c -o conftest.o 1>&5
configure:2886: checking how to run the C preprocessor
configure:2966: checking for AIX
configure:2990: checking whether ln -s works
configure:3022: checking if compiler supports -R
configure:3037: gcc -o conftest -g -O2   conftest.c -R /usr/lib  1>&5
gcc: unrecognized option `-R'
/usr/lib: file not recognized: Is a directory
collect2: ld returned 1 exit status
configure: failed program was:
#line 3030 "configure"
#include "confdefs.h"

int main() {

; return 0; }
configure:3055: checking if compiler supports -Wl,-rpath,
configure:3070: gcc -o conftest -g -O2   conftest.c -Wl,-rpath,/usr/lib
 1>&5
configure:3096: checking for re2c
configure:3156: checking for gawk
configure:3216: checking for bison
configure:3256: checking for bison version
configure:3297: checking for flex
configure:3331: checking for yywrap in -lfl
configure:3350: gcc -o conftest -g -O2   conftest.c -lfl   1>&5
configure:3374: checking lex output file root
configure:3395: checking whether yytext is a pointer
c

#32330 [Com]: session_destroy, "Failed to initialize storage module", custom session handler

2007-08-22 Thread jkloske at itee dot uq dot edu dot au
 ID:   32330
 Comment by:   jkloske at itee dot uq dot edu dot au
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: Session related
 Operating System: *
 PHP Version:  6CVS, 5CVS, 4CVS (2005-03-17)
 New Comment:

I'm confirming that I'm also affected by this on all OSs and all
versions of PHP I've tried it with (4/5, win/linux)

I'm calling session_write_close() not session_destroy() and it's still
causing the same error. Re-calling session_set_save_handler between
previous close and subsequent open does nothing; the error still
occurs.

This means that phpMyAdmin (which uses multiple sessions for various
authentication handlers at least) is not compatible with user session
handlers, due to this bug :)


Previous Comments:


[2007-07-05 13:23:23] facingratio at email dot it

I confirm that the ini_set workaround doesn't work. The only solution i
found is to use the session_set_save_handler(...) again after you call
session_destroy(). Also session_write_close() followed by
session_start() seems to generate the same fatal error.



[2007-03-08 05:07:06] colossuswv at hotmail dot com

The ini_set workaround doesn't seem to work when using a db to store
sessions. Using session_set_save_handler() again after session destroy
does work however, albeit an undesirable solution.



[2006-12-14 17:24:03] faithfulsoft at tiscali dot it

I've experienced this problem today, and it was driving me crazy.
I was able to resolve it thanks to the last post on this page.
I've put this two lines of code

ini_set("session.save_handler", "files");
session_start();

in a separate file, and I include them where I need.

The strange thing is that I borrowed the piece of code I am using from
a GPL portal system, which is working like a charm on my local server
with this line

ini_set('session.save_handler', 'files');

This is really strange.

Anyhow, thank you all guys.



[2006-06-07 04:26:18] sean at oteams dot com

I struggled for several days with the "Failed to initialize storage
module: user" problem.  I read everything I could find on php.net and in
this bug database.  Finally, what solved the problem for me was this:

Whenever I made a call in my code to session_start(), I used an include
statement to include the following from an include file:



And that did it.



[2006-01-16 16:41:52] ajithts at gmail dot com

Hi folks,

I have also had the same problem. My /tmp was not a separate partition
and it had full permissions.

I have then changed session.save_handler to "files" in php.ini.
Initially it was "user". Everything worked perfectly after I have
restarted httpd saving the changes.

Thanks and regards,
Ajith



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/32330

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


#42318 [Opn]: problem with nm not finding object files

2007-08-22 Thread rainer dot tammer at schulergroup dot com
 ID:   42318
 User updated by:  rainer dot tammer at schulergroup dot com
 Reported By:  rainer dot tammer at schulergroup dot com
 Status:   Open
 Bug Type: Compile Failure
 Operating System: AIX 5.2/5.3
 PHP Version:  5.2.3
 Assigned To:  dmitry
 New Comment:

Hello,
just a quick note: The fix to the two config files (sapi/cgi/config9.m4
/ sapi/cli/config.m4) only affects AIX !!
Bye
  Rainer


Previous Comments:


[2007-08-22 15:49:07] rainer dot tammer at schulergroup dot com

Hello,
yes nm -BCpg does not find the files. 

With the suggested fix nm does find all necessary file an works OK.

I have tested the fix on AIX 5.2 and AIX 5.3 with IBM XL C/C++ 8.0 and
gcc 3.3.

Bye
  Rainer



[2007-08-22 15:33:07] [EMAIL PROTECTED]

So this is just a warning from AIX nm?
PHP builds and runs ok after that, am I right?



[2007-08-21 07:49:58] rainer dot tammer at schulergroup dot com

Hello,
any news ??
Bye
  Rainer



[2007-08-17 08:13:23] rainer dot tammer at schulergroup dot com

Hello,
its the same problem with gcc 3.3:

nm: ext/libxml/libxml.o: 0654-200 Cannot open the specified file.
nm: A file or directory in the path name does not exist.
nm: ext/pcre/pcrelib/pcre_chartables.o: 0654-200 Cannot open the
specified file.
nm: A file or directory in the path name does not exist.
nm: ext/pcre/pcrelib/pcre_ucp_searchfuncs.o: 0654-200 Cannot open the
specified file.
nm: A file or directory in the path name does not exist.


Bye
  Rainer



[2007-08-17 07:13:42] rainer dot tammer at schulergroup dot com

Hello,
the CVS snapshot does not change this problem (compiler xl c/c++).
But to be sure I will also test gcc 3.3
Bye
  Rainer



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/42318

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