#35272 [NEW]: PDO->prepare() (mysql) causes apache 1.3 to crash

2005-11-17 Thread alexdow__ at hotmail dot com
From: alexdow__ at hotmail dot com
Operating system: Windows XP SP2
PHP version:  5.1.0RC5
PHP Bug Type: PDO related
Bug description:  PDO->prepare() (mysql) causes apache 1.3 to crash

Description:

Preparing a query on MySQL 5.0 using PDO results in Apache crashing.

Reproduce code:
---
$pdo = new
PDO('mysql:host=localhost;dbname=somedb','user','pass',array(PDO::ATTR_PERSISTENT
=> true));  

$statement = $pdo->prepare($argQuery);

Expected result:

I expect $statement to be a proper PDOStatement object.

Actual result:
--
Actual result is Apache crashing. I'm not sure how to generate backtraces
in windows other than debugging through VS.NET, if you want that.

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


#35271 [NEW]: xml_parse_into_struct silently drops defined entities

2005-11-17 Thread bugs dot php dot net at nanonanonano dot net
From: bugs dot php dot net at nanonanonano dot net
Operating system: Linux
PHP version:  4CVS-2005-11-18 (CVS)
PHP Bug Type: XML related
Bug description:  xml_parse_into_struct silently drops defined entities

Description:

When called on an XML document that contains defined entities,
xml_parse_into_struct silently drops the entities from the parsed output.

(If the entity is undefined, it returns an error)

Reproduce code:
---

-- entityexample.xml --


]>

  
One × two
  



Expected result:

The entity should either be not replaced:

One × two

or it should be correctly replaced:

One FOO BAR two


Actual result:
--
The entity is silently dropped from the XML stream:

One  two


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


#35259 [Bgs]: This code is throwing fatal error..I dnt know Y it is happening ? Pls help me.

2005-11-17 Thread smksankar at yahoo dot com
 ID:   35259
 User updated by:  smksankar at yahoo dot com
 Reported By:  smksankar at yahoo dot com
 Status:   Bogus
 Bug Type: Unknown/Other Function
 Operating System: windows
 PHP Version:  5.0.5
 New Comment:

Please Help me ...Still I am in Problem..


Previous Comments:


[2005-11-17 14:13:40] smksankar at yahoo dot com

Sorry..I already installed php_printer.dll



[2005-11-17 13:58:12] smksankar at yahoo dot com

Hi,,Thanks for ur Reply.
I already installed php_installer.php..what can i do next ?

:)



[2005-11-17 13:28:47] [EMAIL PROTECTED]

Obviously, you need to install php_printer.dll to be able to use it.



[2005-11-17 13:26:46] smksankar at yahoo dot com

Description:

Hi,
This code is throwing fatal error..I dnt know Y it is happening ? Pls
help me..

This is the code...



Its giving the error..
Error :
Fatal error: Call to undefined function printer_open() in
c:\wamp\www\everfinn\sans\school\school_view.php on line 16


Please help me anybody..

I installed php_installer.php in PHP Folder.

Thanks and Regards,
Stephen Raj

Reproduce code:
---
This is the code...



Expected result:

Just I want to print some contents.






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


#35249 [Csd->Opn]: Compile cannot link when libedit is enabled

2005-11-17 Thread php-david at tulloh dot id dot au
 ID:   35249
 User updated by:  php-david at tulloh dot id dot au
 Reported By:  php-david at tulloh dot id dot au
-Status:   Closed
+Status:   Open
 Bug Type: Compile Failure
 Operating System: Debian Linux
-PHP Version:  5.1.0RC5
+PHP Version:  5.1.0RC6
 New Comment:

Fails in 5.1.0RC6
Fails in the 5.1 branch of CVS
Fails (in both) when the shared flag is removed.

The error is unchanged.


Previous Comments:


[2005-11-17 09:37:36] [EMAIL PROTECTED]

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.





[2005-11-17 09:24:15] [EMAIL PROTECTED]

Fast fix: NEVER EVER compile anything as shared. :)




[2005-11-17 02:15:41] php-david at tulloh dot id dot au

Description:

Compile fails with libedit.  I haven't used libedit for a while so I
don't know when this problem was introduced.

/bin/sh /home/lod/Downloads/php-5.1.0RC5/libtool --silent
--preserve-dup-deps --mode=link gcc -export-dynamic -g -O2
ext/date/php_date.lo [...] -o sapi/cli/php
sapi/cli/php_cli_readline.o(.text+0x8cc): In function
`cli_code_completion':
/home/lod/Downloads/php-5.1.0RC5/sapi/cli/php_cli_readline.c:433:
undefined reference to `rl_completion_matches'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1


Reproduce code:
---
reproducable configure line:
./configure \
'--disable-all' \
'--disable-cgi' \
'--enable-cli' \
'--with-libedit=shared,/usr'

libedit-dev is version 2.9.cvs.20040827-1, the debian stable version.






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


#35221 [Fbk->Opn]: Warning: imagepstext(): libt1 returned error 11 & 14

2005-11-17 Thread lcalvert at mn dot rr dot com
 ID:   35221
 User updated by:  lcalvert at mn dot rr dot com
 Reported By:  lcalvert at mn dot rr dot com
-Status:   Feedback
+Status:   Open
 Bug Type: GD related
 Operating System: FreeBSD 4.5
 PHP Version:  5CVS, 4CVS (2005-11-17) (snap)
 New Comment:




Previous Comments:


[2005-11-17 17:59:03] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with ,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.

(the pastebin url does not show any code)



[2005-11-17 17:04:07] lcalvert at mn dot rr dot com

Not using apache2



[2005-11-17 09:23:20] [EMAIL PROTECTED]

One more thing: Are you using Apache2? And if so, which MPM?



[2005-11-17 04:12:13] lcalvert at mn dot rr dot com

Upgraded to PHP Version 5.1.0RC5-dev

Warning: imagepstext() [function.imagepstext]: T1Lib Error: Font ID
Invalid in this Context in /usr/home/GuestBook/randomImage.php on line
35

Line 35
imagepstext($im, $rand, $font, 32, $text_color, $black, 12, 28);

Same problem after refreshing the script for about 20mins the above
error message would come up quite frequently.



[2005-11-15 06:33:52] lcalvert at mn dot rr dot com

Memory usage on system after restarting apache goes down to 50% usage
after refreshing 100 times memory usage goes to 83% and errors start
happening.



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

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


#32475 [Asn]: ["PATCH"] Memory Leak: TSRMLS_FETCH() in HTTPExtensionProc

2005-11-17 Thread lacey at lacey dot cc
 ID:   32475
 User updated by:  lacey at lacey dot cc
 Reported By:  lacey at lacey dot cc
 Status:   Assigned
 Bug Type: IIS related
 Operating System: Windows XP
 PHP Version:  5CVS-2005-11-17 (snap)
 Assigned To:  dmitry
 New Comment:

Hang on.  I've downloaded the latest version for the second time today
and the ISAPI seems to be working for a few hours without growing in
memory.  Did you Guys change something today?  I'll keep testing that
and let you know.  The CGI was still leaking memory though.  (at 4K per
hit)


Previous Comments:


[2005-11-17 21:12:24] [EMAIL PROTECTED]

This is the "patch" to fix this, according to the reportee

static void executor_globals_dtor(zend_executor_globals
*executor_globals TSRMLS_DC)
{
zend_ini_shutdown(TSRMLS_C);
zend_shutdown_constants(TSRMLS_C);
}

Dmitry, can you check this out, if it makes any sense. 




[2005-03-29 01:53:37] lacey at lacey dot cc

Yes.  Of course I will download those and do more testing.  I'll let
you know if I find out anything further.  But I've already given you
the exact subroutine.  It's the call to TSRMLS_FETCH() which calls
ts_resource_ex in trsm.c

ts_resouce_ex allocates the memory, and ts_free_thread somehow doesn't
free it all.  The memory keeps growing with the implementation of each
thread until the Server crashes.  I'd assume that's where you need to
look.  Or am I missing something here?

Jakub has explained the same scenario in this report as well.

http://bugs.php.net/bug.php?id=23331

Thanks.



[2005-03-28 17:29:32] lacey at lacey dot cc

Description:

Memory Leak using the php5isapi.dll under IIS.  When TSRMLS_FETCH() is
called from HTTPExtensionProc, ts_free_thread leaves a Memory Leak of
approximately 100K for every call.  When TSRMLS_FETCH() isn't called,
there's no leak.  This leak will crash a Server under light loads
within a few hours.






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


#35186 [Fbk->Csd]: getcwd() returns "/" when using with mod_rewrite

2005-11-17 Thread tony2001
 ID:   35186
 Updated by:   [EMAIL PROTECTED]
 Reported By:  samm at os2 dot kiev dot ua
-Status:   Feedback
+Status:   Closed
 Bug Type: Apache2 related
 Operating System: FreeBSD 6
 PHP Version:  5CVS, 4CVS (2005-11-11) (snap)
 New Comment:

Great.
Fixed -> closed.


Previous Comments:


[2005-11-17 23:39:16] adsh at univ dot kiev dot ua

I test php4-STABLE-200511172154/libs/libphp4.so.

Problem fixed. Thanks.



[2005-11-17 23:30:44] [EMAIL PROTECTED]

Download a snap in the morning, the fix didn't get into this snapshot
(Ilia has committed it only 1.5 hours ago).



[2005-11-17 23:19:50] samm at os2 dot kiev dot ua

Tested with php5-200511171930 - nothing changed, bug is still present
:(



[2005-11-17 22:11:40] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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

Hopefully fixed in CVS.
Please test it once again and confirm.



[2005-11-17 12:47:50] samm at os2 dot kiev dot ua

Just to make you absolutely sure i repeat this tests with latest php5
cvs snapshot (php5-200511170930). 
Configure string was "./configure --with-apxs2=/usr/local/sbin/apxs".
$ grep php httpd.conf
LoadModule php5_module
/usr/home/samm/src/php/php5-200511170930/libs/libphp5.so
DirectoryIndex index.php index.html index.html.var
AddType application/x-httpd-php .php .phtml

test.php content:


You can see result of this script, which i uploaded to my server:

test.php output when requested as test.html:
http://www.uba.ua/test/phptest/test.html.out.html
test.php output when requested as test.php:
http://www.uba.ua/test/phptest/test.php.out.html

I hope, this help you and you will not ask me again if i use latest php
;-)



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

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


#35186 [Com]: getcwd() returns "/" when using with mod_rewrite

2005-11-17 Thread adsh at univ dot kiev dot ua
 ID:   35186
 Comment by:   adsh at univ dot kiev dot ua
 Reported By:  samm at os2 dot kiev dot ua
 Status:   Feedback
 Bug Type: Apache2 related
 Operating System: FreeBSD 6
 PHP Version:  5CVS, 4CVS (2005-11-11) (snap)
 New Comment:

I test php4-STABLE-200511172154/libs/libphp4.so.

Problem fixed. Thanks.


Previous Comments:


[2005-11-17 23:30:44] [EMAIL PROTECTED]

Download a snap in the morning, the fix didn't get into this snapshot
(Ilia has committed it only 1.5 hours ago).



[2005-11-17 23:19:50] samm at os2 dot kiev dot ua

Tested with php5-200511171930 - nothing changed, bug is still present
:(



[2005-11-17 22:11:40] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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

Hopefully fixed in CVS.
Please test it once again and confirm.



[2005-11-17 12:47:50] samm at os2 dot kiev dot ua

Just to make you absolutely sure i repeat this tests with latest php5
cvs snapshot (php5-200511170930). 
Configure string was "./configure --with-apxs2=/usr/local/sbin/apxs".
$ grep php httpd.conf
LoadModule php5_module
/usr/home/samm/src/php/php5-200511170930/libs/libphp5.so
DirectoryIndex index.php index.html index.html.var
AddType application/x-httpd-php .php .phtml

test.php content:


You can see result of this script, which i uploaded to my server:

test.php output when requested as test.html:
http://www.uba.ua/test/phptest/test.html.out.html
test.php output when requested as test.php:
http://www.uba.ua/test/phptest/test.php.out.html

I hope, this help you and you will not ask me again if i use latest php
;-)



[2005-11-17 10:59:45] samm at os2 dot kiev dot ua

Yes, i tried with latest PHP too.
See "I check this with php5-200511102130 - the bug is still present.".



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

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


#35186 [Opn->Fbk]: getcwd() returns "/" when using with mod_rewrite

2005-11-17 Thread tony2001
 ID:   35186
 Updated by:   [EMAIL PROTECTED]
 Reported By:  samm at os2 dot kiev dot ua
-Status:   Open
+Status:   Feedback
 Bug Type: Apache2 related
 Operating System: FreeBSD 6
 PHP Version:  5CVS, 4CVS (2005-11-11) (snap)
 New Comment:

Download a snap in the morning, the fix didn't get into this snapshot
(Ilia has committed it only 1.5 hours ago).


Previous Comments:


[2005-11-17 23:19:50] samm at os2 dot kiev dot ua

Tested with php5-200511171930 - nothing changed, bug is still present
:(



[2005-11-17 22:11:40] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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

Hopefully fixed in CVS.
Please test it once again and confirm.



[2005-11-17 12:47:50] samm at os2 dot kiev dot ua

Just to make you absolutely sure i repeat this tests with latest php5
cvs snapshot (php5-200511170930). 
Configure string was "./configure --with-apxs2=/usr/local/sbin/apxs".
$ grep php httpd.conf
LoadModule php5_module
/usr/home/samm/src/php/php5-200511170930/libs/libphp5.so
DirectoryIndex index.php index.html index.html.var
AddType application/x-httpd-php .php .phtml

test.php content:


You can see result of this script, which i uploaded to my server:

test.php output when requested as test.html:
http://www.uba.ua/test/phptest/test.html.out.html
test.php output when requested as test.php:
http://www.uba.ua/test/phptest/test.php.out.html

I hope, this help you and you will not ask me again if i use latest php
;-)



[2005-11-17 10:59:45] samm at os2 dot kiev dot ua

Yes, i tried with latest PHP too.
See "I check this with php5-200511102130 - the bug is still present.".



[2005-11-17 09:41:59] [EMAIL PROTECTED]

You're using the PHP 4 snapshot. Did you or did you not try the 5.1
snapshot I asked 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/35186

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


#35186 [Fbk->Opn]: getcwd() returns "/" when using with mod_rewrite

2005-11-17 Thread samm at os2 dot kiev dot ua
 ID:   35186
 User updated by:  samm at os2 dot kiev dot ua
 Reported By:  samm at os2 dot kiev dot ua
-Status:   Feedback
+Status:   Open
 Bug Type: Apache2 related
 Operating System: FreeBSD 6
 PHP Version:  5CVS, 4CVS (2005-11-11) (snap)
 New Comment:

Tested with php5-200511171930 - nothing changed, bug is still present
:(


Previous Comments:


[2005-11-17 22:11:40] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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

Hopefully fixed in CVS.
Please test it once again and confirm.



[2005-11-17 12:47:50] samm at os2 dot kiev dot ua

Just to make you absolutely sure i repeat this tests with latest php5
cvs snapshot (php5-200511170930). 
Configure string was "./configure --with-apxs2=/usr/local/sbin/apxs".
$ grep php httpd.conf
LoadModule php5_module
/usr/home/samm/src/php/php5-200511170930/libs/libphp5.so
DirectoryIndex index.php index.html index.html.var
AddType application/x-httpd-php .php .phtml

test.php content:


You can see result of this script, which i uploaded to my server:

test.php output when requested as test.html:
http://www.uba.ua/test/phptest/test.html.out.html
test.php output when requested as test.php:
http://www.uba.ua/test/phptest/test.php.out.html

I hope, this help you and you will not ask me again if i use latest php
;-)



[2005-11-17 10:59:45] samm at os2 dot kiev dot ua

Yes, i tried with latest PHP too.
See "I check this with php5-200511102130 - the bug is still present.".



[2005-11-17 09:41:59] [EMAIL PROTECTED]

You're using the PHP 4 snapshot. Did you or did you not try the 5.1
snapshot I asked you?!



[2005-11-14 20:51:57] adsh at univ dot kiev dot ua

I have blank reply in 5 attempts with instructions in the 1-st
message.

telnet www.server.kiev.ua 80
Trying 193.xxx.xxx.xxx...
Connected to www.server.kiev.ua.
Escape character is '^]'.
GET http://www.server.kiev.ua/test/test.html HTTP/1.0

HTTP/1.0 200 OK
Date: Mon, 14 Nov 2005 19:42:58 GMT
Server: Apache/2.0.55 (FreeBSD)
X-Powered-By: PHP/4.4.2-dev
Content-Length: 0
Connection: close
Content-Type: text/html; charset=windows-1251

Connection closed by foreign host.

php4-STABLE-200511131945,  FreeBSD 4.11



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

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


#35264 [Opn->Fbk]: safe-mode errors with multiple include virtual requests

2005-11-17 Thread iliaa
 ID:   35264
 Updated by:   [EMAIL PROTECTED]
 Reported By:  maddog2k at maddog2k dot net
-Status:   Open
+Status:   Feedback
 Bug Type: Apache2 related
 Operating System: Linux
 PHP Version:  5CVS, 4CVS (2005-11-17) (snap)
 New Comment:

Please try using this CVS snapshot:

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

Apache 2 patch was just applied and there is a good chance it will fix
the problem.


Previous Comments:


[2005-11-17 17:07:16] maddog2k at maddog2k dot net

No, by the uid 1027.
All files & directories requested are owned by user 1027, not 3185.

3185 came falling out of the sky...

When I modify the file a bit, 3185 suddenly becomes for example UID
1307. 

Apparantly it goes wrong somewhere with UID-checking, I guess it's
taking UID from a different process or so instead of the executing
process.

Like I said, it works when swapping the two 

#35096 [NoF->Fbk]: using mod_rewrite with apache2 crashes

2005-11-17 Thread tony2001
 ID:   35096
 Updated by:   [EMAIL PROTECTED]
 Reported By:  rob at burningsoda dot com
-Status:   No Feedback
+Status:   Feedback
 Bug Type: Apache2 related
 Operating System: *
 PHP Version:  5CVS, 4CVS (2005-11-04) (snap)
 New Comment:

Please try using this CVS snapshot:

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

Hopefully fixed in CVS.
Please test it and confirm.


Previous Comments:


[2005-11-17 19:51:49] Chris at Epler dot net

Updating my PHP4.4.1 port to the _2 revision that Alex did:

- Fix pear pkg-plist
- Increase pear memory limit (requested by amd64)
- Revert apache2handler to the latest working version found in
  PHP 4.4.0, since PHP developers seem not interested in
  fixing the bug with apache2 and mod_rewrite

appears to work now.  I hope the PHP developers bother to take 
some time to look into this as I'm sure others are having the 
problem as well.



[2005-11-16 01:00:02] php-bugs at lists dot php dot net

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



[2005-11-10 21:16:11] asmodai at in-nomine dot org

I upgraded from FreeBSD 5.4, Apache 2.0.54 with mod_php 4.3.x to 6.0,
Apache 2.0.55 and mod_php 4.4.1.

After this both Gallery 2 and Drupal 4.6.3 are having difficulties.

At first I thought it might be threading and recompiled apache and
mod_php to be prefork.  Same issue.

What I see is that my site works normally until I try to log in with
drupal, at which point I get the famous 'empty page' and I noticed in
my log file that:

[Thu Nov 10 17:58:47 2005] [notice] child pid 73748 exit signal
Segmentation fault (11)

Like other people I have been using the same configuration files and
have not changed anything during the upgrades.

Yes, I have mod_rewrite enabled.

The ktrace output I got from one of the dying children wasn't helpful,
so I am now trying strace to see if I can get some more information.



[2005-11-09 17:23:49] free4cd at yahoo dot de

This is the only debug output I get:

/root/php-4.4.1/Zend/zend_hash.c(275) :  Freeing 0x0868C2A4 (40 bytes),
script=/
srv/www/htdocs/index.php
Last leak repeated 45 times
/root/php-4.4.1/Zend/zend_execute.c(512) :  Freeing 0x0855441C (12
bytes), scrip
t=/srv/www/htdocs/index.php
/root/php-4.4.1/Zend/zend_opcode.c(295) :  Freeing 0x08535764 (30300
bytes), scr
ipt=/srv/www/htdocs/index.php
/root/php-4.4.1/Zend/zend_operators.c(1068) :  Freeing 0x08554304 (2
bytes), scr
ipt=/srv/www/htdocs/index.php
/root/php-4.4.1/Zend/zend_compile.c(875) :  Freeing 0x085542CC (7
bytes), script
=/srv/www/htdocs/index.php
/root/php-4.4.1/Zend/zend_variables.c(111) : Actual location (location
was relay
ed)
Last leak repeated 13 times
Zend/zend_language_scanner.c(4526) :  Freeing 0x08554294 (7 bytes),
script=/srv/www/htdocs/index.php
Last leak repeated 52 times
Zend/zend_language_scanner.c(4744) :  Freeing 0x0855425C (7 bytes),
script=/srv/
www/htdocs/index.php
Last leak repeated 64 times
Zend/zend_language_scanner.c(4518) :  Freeing 0x08554224 (4 bytes),
script=/srv/
www/htdocs/index.php
Last leak repeated 118 times
Zend/zend_language_scanner.c(4653) :  Freeing 0x085541EC (3 bytes),
script=/srv/
www/htdocs/index.php
Last leak repeated 19 times
/root/php-4.4.1/Zend/zend_opcode.c(230) :  Freeing 0x0855416C (24
bytes), script
=/srv/www/htdocs/index.php
Zend/zend_language_scanner.c(3945) :  Freeing 0x085540C4 (5 bytes),
script=/srv/
www/htdocs/index.php
Last leak repeated 21 times
/root/php-4.4.1/Zend/zend_execute.c(1080) :  Freeing 0x08554084 (12
bytes), scri
pt=/srv/www/htdocs/index.php
Zend/zend_language_scanner.c(4433) :  Freeing 0x086F4704 (28 bytes),
script=/srv
/www/htdocs/index.php
Last leak repeated 7 times
/root/php-4.4.1/Zend/zend_compile.c(1790) :  Freeing 0x08711ECC (13
bytes), scri
pt=/srv/www/htdocs/index.php
/root/php-4.4.1/Zend/zend_variables.c(111) : Actual location (location
was relay
ed)
Last leak repeated 1 time
/root/php-4.4.1/Zend/zend_compile.c(1774) :  Freeing 0x08711DDC (13
bytes), scri
pt=/srv/www/htdocs/index.php
/root/php-4.4.1/Zend/zend_variables.c(111) : Actual location (location
was relay
ed)
Last leak repeated 1 time
Zend/zend_language_scanner.c(4866) :  Freeing 0x0856D684 (2 bytes),
script=/srv/
www/htdocs/index.php
Last leak repeated 3 times
Zend/zend_language_scanner.c(4534) :  Freeing 0x0868D16C (3 bytes),
script=/srv/
www/htdocs/index.php
Last leak repeated 1 time
/root/php-4.4.1/Zend/zend_opcode.c(65) :  Freeing 0x082CAE94 (4 bytes),
script=

#35186 [Opn->Fbk]: getcwd() returns "/" when using with mod_rewrite

2005-11-17 Thread tony2001
 ID:   35186
 Updated by:   [EMAIL PROTECTED]
 Reported By:  samm at os2 dot kiev dot ua
-Status:   Open
+Status:   Feedback
 Bug Type: Apache2 related
 Operating System: FreeBSD 6
 PHP Version:  5CVS, 4CVS (2005-11-11) (snap)
 New Comment:

Please try using this CVS snapshot:

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

Hopefully fixed in CVS.
Please test it once again and confirm.


Previous Comments:


[2005-11-17 12:47:50] samm at os2 dot kiev dot ua

Just to make you absolutely sure i repeat this tests with latest php5
cvs snapshot (php5-200511170930). 
Configure string was "./configure --with-apxs2=/usr/local/sbin/apxs".
$ grep php httpd.conf
LoadModule php5_module
/usr/home/samm/src/php/php5-200511170930/libs/libphp5.so
DirectoryIndex index.php index.html index.html.var
AddType application/x-httpd-php .php .phtml

test.php content:


You can see result of this script, which i uploaded to my server:

test.php output when requested as test.html:
http://www.uba.ua/test/phptest/test.html.out.html
test.php output when requested as test.php:
http://www.uba.ua/test/phptest/test.php.out.html

I hope, this help you and you will not ask me again if i use latest php
;-)



[2005-11-17 10:59:45] samm at os2 dot kiev dot ua

Yes, i tried with latest PHP too.
See "I check this with php5-200511102130 - the bug is still present.".



[2005-11-17 09:41:59] [EMAIL PROTECTED]

You're using the PHP 4 snapshot. Did you or did you not try the 5.1
snapshot I asked you?!



[2005-11-14 20:51:57] adsh at univ dot kiev dot ua

I have blank reply in 5 attempts with instructions in the 1-st
message.

telnet www.server.kiev.ua 80
Trying 193.xxx.xxx.xxx...
Connected to www.server.kiev.ua.
Escape character is '^]'.
GET http://www.server.kiev.ua/test/test.html HTTP/1.0

HTTP/1.0 200 OK
Date: Mon, 14 Nov 2005 19:42:58 GMT
Server: Apache/2.0.55 (FreeBSD)
X-Powered-By: PHP/4.4.2-dev
Content-Length: 0
Connection: close
Content-Type: text/html; charset=windows-1251

Connection closed by foreign host.

php4-STABLE-200511131945,  FreeBSD 4.11



[2005-11-11 08:04:02] samm at os2 dot kiev dot ua

I played with different version of the  sapi_apache2.c and found that
last working version was 1.1.2.40 and first failed was 1.1.2.40.2.5 . I
was unable to check versions between this, because they failed to work
with mod_rewrite giving no output at all. I hope, this help 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/35186

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


#35269 [NEW]: Error handling: @ operator behavior / __autoload() and set_error_handler()

2005-11-17 Thread thiago dot silva at kdemail dot net
From: thiago dot silva at kdemail dot net
Operating system: Linux/slackware
PHP version:  5.0.5
PHP Bug Type: Feature/Change Request
Bug description:  Error handling: @ operator behavior / __autoload()  and 
set_error_handler() 

Description:

The troublesome scenario: 
 
Using a central __autoload() function to load all classes 
of the application (wich uses libraries that uses 
different file extensions): 
 
function __autoload($classname) { 
  @include($classname.'.php'); 
  if(class_exits($classname)) return; 
  @include($classname.'.class.php'); 
  if(class_exits($classname)) return; 
 
  die("$classname not found"); 
} 
 
 
Now, it is terrible to debug applications that use this 
scheme. The @ operator supress fatal error messages. I 
don't belive there is a point for this behavior. If one 
doesn't want error messages, simply turn of the global 
error_reporting option. Why expect a blank page for one or 
two commands when something goes wrong?  
 
Request #1: It would be desirable to have the @ operator 
not supressing fatal error messages. 
 
Now, in the __autoload() context, the user error handler 
(setted with set_error_handler()) is not used, if we 
remove the @ from include() statements. The warning 
messages are sent to the default error handler (therefore, 
to the output if display_errors is on). 
 
Request #2: __autoload() should respect the current error 
handler settings. 
 
Related reports I've found: 
#8294 
#32545 


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


#32475 [Opn->Asn]: Memory Leak: TSRMLS_FETCH() in HTTPExtensionProc

2005-11-17 Thread sniper
 ID:   32475
 Updated by:   [EMAIL PROTECTED]
 Reported By:  lacey at lacey dot cc
-Status:   Open
+Status:   Assigned
 Bug Type: IIS related
 Operating System: Windows XP
 PHP Version:  5CVS-2005-03-29
-Assigned To:  
+Assigned To:  dmitry
 New Comment:

This is the "patch" to fix this, according to the reportee

static void executor_globals_dtor(zend_executor_globals
*executor_globals TSRMLS_DC)
{
zend_ini_shutdown(TSRMLS_C);
zend_shutdown_constants(TSRMLS_C);
}

Dmitry, can you check this out, if it makes any sense. 



Previous Comments:


[2005-11-17 18:11:42] lacey at lacey dot cc

Tried both CGI and ISAPI.  Same thing.  CGI gains about 4K per hit
constantly.  ISAPI dies of overweight within a few hours.  See
http://bugs.php.net/bug.php?id=35260 for the description of how I
stopped the Memory Leak.



[2005-11-17 14:00:46] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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





[2005-06-28 01:00:04] php-bugs at lists dot php dot net

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



[2005-06-20 13:13:48] [EMAIL PROTECTED]

Well, can you tell us too so we can fix it?




[2005-06-01 00:51:50] lacey at lacey dot cc

No.



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

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


#32371 [Asn->Csd]: [PATCH] php://input sometimes returns dupl data

2005-11-17 Thread pollita
 ID:   32371
 Updated by:   [EMAIL PROTECTED]
 Reported By:  phpint-bkrrym at skrt dot org
-Status:   Assigned
+Status:   Closed
 Bug Type: Filesystem function related
 Operating System: *
 PHP Version:  5CVS, 4CVS (2005-03-19)
 Assigned To:  pollita
 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.

While that fixes the observed problem, it actually still leaves a bug
when filters are applied.  The root of the issue is how php://input
treats stream->position.

I've applied a fix to branches 4.4, 5.0, 5.1, and HEAD.

If you'd like to try applying just this patch to test it out on your
own system, it can be found at:

http://cvs.php.net/php-src/ext/standard/php_fopen_wrapper.c

HEAD: r-1.51
5.1: r-1.45.2.2
5.0: r-1.44.2.1
4.4: r-1.29.2.4.8.1


Previous Comments:


[2005-08-11 16:15:29] [EMAIL PROTECTED]

Sara, could you take a look at this?
It seems ok, but I don't have time to verify it.



[2005-03-19 02:25:49] phpint-bkrrym at skrt dot org

Description:

Full description and PATCH for 5-CVS and 4.3.10 are here:

http://thepathetic.com/jozef/php_input_stream_patch.html
http://thepathetic.com/jozef/php-5.0.3-input_stream.patch
http://thepathetic.com/jozef/php-4.3.10-input_stream.patch

Both 5 and 4.3.10 have the problem (same code).

Because of a subtle buffer index bug, in some cases, the php://input
stream returns incorrect data. 

Symptoms:

If the php://input is parsed in 4000-byte chunks, the first corruption
occurs at byte number 8193 (1-based). A chunk of the previous 192 bytes
repeats there.  The same corruption happens periodically in the data if
it is long enough.

The problem was discovered when directly parsing a POSTed XML with a
long text-node.

Interestingly enough, reading the contents of php://input with
file_get_contents and parsing the string works around the symptoms.

Reproduce code:
---
$s = simplexml_load_file('php://input');

sees the text node corrupted, whereas

$d = file_get_contents('php://input');
$s = simplexml_load_string($d);

does not.

Expected result:

should be the same in both cases

Actual result:
--
difference at byte number 8193 (1-based) from the begining of the xml.





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


#35096 [Com]: using mod_rewrite with apache2 crashes

2005-11-17 Thread Chris at Epler dot net
 ID:   35096
 Comment by:   Chris at Epler dot net
 Reported By:  rob at burningsoda dot com
 Status:   No Feedback
 Bug Type: Apache2 related
 Operating System: *
 PHP Version:  5CVS, 4CVS (2005-11-04) (snap)
 New Comment:

Updating my PHP4.4.1 port to the _2 revision that Alex did:

- Fix pear pkg-plist
- Increase pear memory limit (requested by amd64)
- Revert apache2handler to the latest working version found in
  PHP 4.4.0, since PHP developers seem not interested in
  fixing the bug with apache2 and mod_rewrite

appears to work now.  I hope the PHP developers bother to take 
some time to look into this as I'm sure others are having the 
problem as well.


Previous Comments:


[2005-11-16 01:00:02] php-bugs at lists dot php dot net

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



[2005-11-10 21:16:11] asmodai at in-nomine dot org

I upgraded from FreeBSD 5.4, Apache 2.0.54 with mod_php 4.3.x to 6.0,
Apache 2.0.55 and mod_php 4.4.1.

After this both Gallery 2 and Drupal 4.6.3 are having difficulties.

At first I thought it might be threading and recompiled apache and
mod_php to be prefork.  Same issue.

What I see is that my site works normally until I try to log in with
drupal, at which point I get the famous 'empty page' and I noticed in
my log file that:

[Thu Nov 10 17:58:47 2005] [notice] child pid 73748 exit signal
Segmentation fault (11)

Like other people I have been using the same configuration files and
have not changed anything during the upgrades.

Yes, I have mod_rewrite enabled.

The ktrace output I got from one of the dying children wasn't helpful,
so I am now trying strace to see if I can get some more information.



[2005-11-09 17:23:49] free4cd at yahoo dot de

This is the only debug output I get:

/root/php-4.4.1/Zend/zend_hash.c(275) :  Freeing 0x0868C2A4 (40 bytes),
script=/
srv/www/htdocs/index.php
Last leak repeated 45 times
/root/php-4.4.1/Zend/zend_execute.c(512) :  Freeing 0x0855441C (12
bytes), scrip
t=/srv/www/htdocs/index.php
/root/php-4.4.1/Zend/zend_opcode.c(295) :  Freeing 0x08535764 (30300
bytes), scr
ipt=/srv/www/htdocs/index.php
/root/php-4.4.1/Zend/zend_operators.c(1068) :  Freeing 0x08554304 (2
bytes), scr
ipt=/srv/www/htdocs/index.php
/root/php-4.4.1/Zend/zend_compile.c(875) :  Freeing 0x085542CC (7
bytes), script
=/srv/www/htdocs/index.php
/root/php-4.4.1/Zend/zend_variables.c(111) : Actual location (location
was relay
ed)
Last leak repeated 13 times
Zend/zend_language_scanner.c(4526) :  Freeing 0x08554294 (7 bytes),
script=/srv/www/htdocs/index.php
Last leak repeated 52 times
Zend/zend_language_scanner.c(4744) :  Freeing 0x0855425C (7 bytes),
script=/srv/
www/htdocs/index.php
Last leak repeated 64 times
Zend/zend_language_scanner.c(4518) :  Freeing 0x08554224 (4 bytes),
script=/srv/
www/htdocs/index.php
Last leak repeated 118 times
Zend/zend_language_scanner.c(4653) :  Freeing 0x085541EC (3 bytes),
script=/srv/
www/htdocs/index.php
Last leak repeated 19 times
/root/php-4.4.1/Zend/zend_opcode.c(230) :  Freeing 0x0855416C (24
bytes), script
=/srv/www/htdocs/index.php
Zend/zend_language_scanner.c(3945) :  Freeing 0x085540C4 (5 bytes),
script=/srv/
www/htdocs/index.php
Last leak repeated 21 times
/root/php-4.4.1/Zend/zend_execute.c(1080) :  Freeing 0x08554084 (12
bytes), scri
pt=/srv/www/htdocs/index.php
Zend/zend_language_scanner.c(4433) :  Freeing 0x086F4704 (28 bytes),
script=/srv
/www/htdocs/index.php
Last leak repeated 7 times
/root/php-4.4.1/Zend/zend_compile.c(1790) :  Freeing 0x08711ECC (13
bytes), scri
pt=/srv/www/htdocs/index.php
/root/php-4.4.1/Zend/zend_variables.c(111) : Actual location (location
was relay
ed)
Last leak repeated 1 time
/root/php-4.4.1/Zend/zend_compile.c(1774) :  Freeing 0x08711DDC (13
bytes), scri
pt=/srv/www/htdocs/index.php
/root/php-4.4.1/Zend/zend_variables.c(111) : Actual location (location
was relay
ed)
Last leak repeated 1 time
Zend/zend_language_scanner.c(4866) :  Freeing 0x0856D684 (2 bytes),
script=/srv/
www/htdocs/index.php
Last leak repeated 3 times
Zend/zend_language_scanner.c(4534) :  Freeing 0x0868D16C (3 bytes),
script=/srv/
www/htdocs/index.php
Last leak repeated 1 time
/root/php-4.4.1/Zend/zend_opcode.c(65) :  Freeing 0x082CAE94 (4 bytes),
script=/
srv/www/htdocs/index.php
/root/php-4.4.1/Zend/zend_compile.c(137) :  Freeing 0x082CAC9C (26
bytes), scrip
t=/srv/www/htdocs/index.php
Zend/zend_language_scanner.c(3096) :  Freeing 0x0868CD2C (84 bytes),
script=/srv
/www/htdocs/index.php
/root/php-4.4.1/ext/mbstring/mbstring.c(1016) :  Freeing 0x0868CCF4 (8
bytes), s
cript=/srv/www/htdocs/in

#29521 [Fbk->Opn]: compress.bzip2 wrapper

2005-11-17 Thread nlopess
 ID:   29521
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Feedback
+Status:   Open
 Bug Type: Bzip2 Related
 Operating System: win32 only
 PHP Version:  5CVS-2005-06-30
 Assigned To:  iliaa
 New Comment:

Warning:
fopen(compress.bzip2://http://pt.php.net/backend/notes/all.bz2): failed
to open stream: Invalid argument in C:\Documents and Settings\Nuno\- on
line 3


Previous Comments:


[2005-11-17 15:42:15] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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





[2005-07-01 16:08:32] [EMAIL PROTECTED]

Yes, I'm using the binaries from snaps.php.net
BTW, my builds work :) (on cygwin, as I don't have the MSVC)



[2005-07-01 09:41:02] [EMAIL PROTECTED]

Ilia, it doesn't work! help! :)

Nuno: You ARE using the binary snapshot, right? And not trying to build
it yourself from sources..?



[2005-06-30 12:52:53] [EMAIL PROTECTED]

Still doesn't work.



[2005-06-27 23:58:24] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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





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

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


#35267 [Bgs]: Foreach value overwritten

2005-11-17 Thread mdunn at escindex dot com
 ID:   35267
 User updated by:  mdunn at escindex dot com
 Reported By:  mdunn at escindex dot com
 Status:   Bogus
 Bug Type: Arrays related
 Operating System: FreeBSD 4.10
 PHP Version:  5.0.5
 New Comment:

Unless you are referring to the -> "referencing" a variable, it is a
bug.  We have 2 "live" servers. On server 1 (PHP4), the script runs
(even with the missing =) and DOES NOT change the value.  On server 2
(PHP5) the script runs and DOES change the value.  Once we add in the
second =, both scripts run as expected.  So our logic error compounded
with the addition of PHP5 overwrites the value.  No where in the
documentation does it mention this for PHP4 or PHP5.  Even if it wasn't
a logic error, and we really wanted to set the "copy" of the value to 1,
it SHOULD NOT change the master value.


Previous Comments:


[2005-11-17 18:35:14] [EMAIL PROTECTED]

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  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.

$item->product_id = 1 <-



[2005-11-17 18:19:40] mdunn at escindex dot com

Description:

According to the documentation "foreach" operates on a copy of the
specified array and not the array itself.  I believe that in PHP5
something has been messed up as it works in PHP4.  There was a logic
error in our script (missing double ==), however in PHP4 it had no
effect on the outcome.  In PHP5 it actually changed the value.

Screen shots available at http://ww1.escindex.com/phpbug/

Reproduce code:
---
$items['product_type'] = 'CPKG';
$items['product_id'] = 2;

foreach($items as $item)
{
  if($item->product_type == 'CPKG' && ($item->product_id = 1 ||
$item->product_id == 2))
  {

Expected result:

$items['product_type'] = 'CPKG';
$items['product_id'] = 2;

Actual result:
--
$items['product_type'] = 'CPKG';
$items['product_id'] = 1;





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


#35267 [Opn->Bgs]: Foreach value overwritten

2005-11-17 Thread tony2001
 ID:   35267
 Updated by:   [EMAIL PROTECTED]
 Reported By:  mdunn at escindex dot com
-Status:   Open
+Status:   Bogus
 Bug Type: Arrays related
 Operating System: FreeBSD 4.10
 PHP Version:  5.0.5
 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.

$item->product_id = 1 <-


Previous Comments:


[2005-11-17 18:19:40] mdunn at escindex dot com

Description:

According to the documentation "foreach" operates on a copy of the
specified array and not the array itself.  I believe that in PHP5
something has been messed up as it works in PHP4.  There was a logic
error in our script (missing double ==), however in PHP4 it had no
effect on the outcome.  In PHP5 it actually changed the value.

Screen shots available at http://ww1.escindex.com/phpbug/

Reproduce code:
---
$items['product_type'] = 'CPKG';
$items['product_id'] = 2;

foreach($items as $item)
{
  if($item->product_type == 'CPKG' && ($item->product_id = 1 ||
$item->product_id == 2))
  {

Expected result:

$items['product_type'] = 'CPKG';
$items['product_id'] = 2;

Actual result:
--
$items['product_type'] = 'CPKG';
$items['product_id'] = 1;





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


#35267 [NEW]: Foreach value overwritten

2005-11-17 Thread mdunn at escindex dot com
From: mdunn at escindex dot com
Operating system: FreeBSD 4.10
PHP version:  5.0.5
PHP Bug Type: Arrays related
Bug description:  Foreach value overwritten

Description:

According to the documentation "foreach" operates on a copy of the
specified array and not the array itself.  I believe that in PHP5
something has been messed up as it works in PHP4.  There was a logic error
in our script (missing double ==), however in PHP4 it had no effect on the
outcome.  In PHP5 it actually changed the value.

Screen shots available at http://ww1.escindex.com/phpbug/

Reproduce code:
---
$items['product_type'] = 'CPKG';
$items['product_id'] = 2;

foreach($items as $item)
{
  if($item->product_type == 'CPKG' && ($item->product_id = 1 ||
$item->product_id == 2))
  {

Expected result:

$items['product_type'] = 'CPKG';
$items['product_id'] = 2;

Actual result:
--
$items['product_type'] = 'CPKG';
$items['product_id'] = 1;

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


#32475 [Fbk->Opn]: Memory Leak: TSRMLS_FETCH() in HTTPExtensionProc

2005-11-17 Thread lacey at lacey dot cc
 ID:   32475
 User updated by:  lacey at lacey dot cc
 Reported By:  lacey at lacey dot cc
-Status:   Feedback
+Status:   Open
 Bug Type: IIS related
 Operating System: Windows XP
 PHP Version:  5CVS-2005-03-29
 New Comment:

Tried both CGI and ISAPI.  Same thing.  CGI gains about 4K per hit
constantly.  ISAPI dies of overweight within a few hours.  See
http://bugs.php.net/bug.php?id=35260 for the description of how I
stopped the Memory Leak.


Previous Comments:


[2005-11-17 14:00:46] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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





[2005-06-28 01:00:04] php-bugs at lists dot php dot net

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



[2005-06-20 13:13:48] [EMAIL PROTECTED]

Well, can you tell us too so we can fix it?




[2005-06-01 00:51:50] lacey at lacey dot cc

No.



[2005-05-27 09:04:00] [EMAIL PROTECTED]

Was it same place as said in bug #33118 ??




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

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


#35241 [Bgs]: wddx deserialization problems with utf-8 data

2005-11-17 Thread mikx at mikx dot de
 ID:   35241
 User updated by:  mikx at mikx dot de
 Reported By:  mikx at mikx dot de
 Status:   Bogus
 Bug Type: WDDX related
 Operating System: Linux, Windows
 PHP Version:  5CVS-2005-11-16 (snap)
 New Comment:

Ilia, the data i have is already utf8 encoded inside the database. And
as output 5 of 6 shows in my testcase even if i specify an utf-8 xml
header on a valid utf-8 encoded packet wddx_deserialize automaticly
decodes the data to latin1. 

This has nothing to do with wddx_serialize directly, but of course:
double encoding something already in utf8 again would work if i only
serialize and deserialize in php5. But it would produce a corrupted,
double-utf-8-encoded wddx file not properly working with other wddx
tools.

Currently wddx_deserialize adds an utf8_decode on everything not cleary
marked as being already latin1 - therefore wddx_deserialize has a bug
since it is not capable of properly decoding a valid utf8 encoded WDDX
packet to an UTF-8 string. 

Well, or at least it is nowhere documented properly how to influence
the behavior of wddx_deserialize.


Previous Comments:


[2005-11-17 16:49:09] [EMAIL PROTECTED]

To handle UTF data you need to use utf8_encode() function on the data
itself and add xml header identifying the data as being UTF8. 



[2005-11-16 16:07:59] mikx at mikx dot de

Tried the snapshot for Windows you linked to (PHP Version
5.1.0RC5-dev). Result for the testcase is exactly the same as with
5.0.5.



[2005-11-16 15:53:55] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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





[2005-11-16 15:20:42] mikx at mikx dot de

Description:

It seems the behavior of wddx_deserialize is inconsistent or at least
unpredictable based on the given documentation. Not only between PHP 4
and 5, also based on the given packet data. I am not sure if this is a
bug or expected behavior. I am aware of bug #34928 - so please don't
just treat this as bogus.

The following script behaves as described on PHP 5.0.5 on Windows and
5.0.4 on Linux (currently i have no 5.0.5 Linux testcase available) and
PHP 4.3.9 on Linux. At least the windows version is a complete default
installation.

Please clearify what wddx serialize and deserialize exactly do
(encoding), why the documentation encourages to add an additional
utf8_encode to non-ascii characters on serialize and how the entire
process can be influenced (e.g. which configs get used). setlocale()
and putenv("locale=xyz") have no effect.

Currently wddx_serialize adds no character set information and keeps
whatever you supply as a string inside the resulting wddx file. So if
you send an extended character in ISO-8859-1 or UTF-8 it will be the
same in the resulting wddx packet.

The deserializer seems to always convert the packet to ISO-8859-1
unless you explicitly set information in the XML file that it is
already ISO-8859-1 (even if there is UTF-8 content in it). 

If the documentation entry to always utf8_encode a string before
sending it to serialize is correct, it would mean you would have to
double encode an UTF-8 string. But that seems like a dirty workaround.


>From my perspective both wddx_serialize and wddx_deserialize should
add/respect the information to the XML file and get an additional
parameter to enforce an input or output encoding or overwrite the
default behavior.

Currently i try to deserialize wddx packets produced with PHP4 in PHP5.
They are stored in a database, firstly in MySQL4 (latin1 encoded) and
now migrated to MySQL5 (utf8 encoded). What is the proper way to handle
that? utf8_encode the packet (producing a double encoded packet) before
sending to wddx_deserialize (which implicitly adds a utf8_decode on
that data) seems like an evil hack in a undocumented area.

This seems like a common migration path to me, so please specifiy
clearly what to expect and what to do.






Reproduce code:
---
";
echo "produces latin1 output [php5]";
echo "produces ISO-8859-1 output [php4]";
echo wddx_deserialize("abc-äöü")."";

echo "UTF-8 specified, ISO-8859-1 data";
echo "non-ascii characters get stripped [php5]";
echo "produces ISO-8859-1 output [php4]";
echo wddx_deserialize("abc-äöü")."";;

echo "Nothing specified, ISO-8859-1 data";
echo "non-ascii characters get stripped [php5]";
echo "produces ISO-8859-1 output [php4]";
echo wddx_deserialize("abc-äöü")."";;

echo "ISO-8859-1 specified, UTF-8 data";
echo "produces utf-8 output [php5]"; 
echo "produces UTF-8 output [php4]";
echo wddx_deserialize("".utf8_encode("abc-äöü")."")."";;

echo "UTF-8 specified, UTF-8 data";
echo "produces la

#35221 [Opn->Fbk]: Warning: imagepstext(): libt1 returned error 11 & 14

2005-11-17 Thread sniper
 ID:   35221
 Updated by:   [EMAIL PROTECTED]
 Reported By:  lcalvert at mn dot rr dot com
-Status:   Open
+Status:   Feedback
 Bug Type: GD related
 Operating System: FreeBSD 4.5
 PHP Version:  5CVS, 4CVS (2005-11-17) (snap)
 New Comment:

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with ,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.

(the pastebin url does not show any code)


Previous Comments:


[2005-11-17 17:04:07] lcalvert at mn dot rr dot com

Not using apache2



[2005-11-17 09:23:20] [EMAIL PROTECTED]

One more thing: Are you using Apache2? And if so, which MPM?



[2005-11-17 04:12:13] lcalvert at mn dot rr dot com

Upgraded to PHP Version 5.1.0RC5-dev

Warning: imagepstext() [function.imagepstext]: T1Lib Error: Font ID
Invalid in this Context in /usr/home/GuestBook/randomImage.php on line
35

Line 35
imagepstext($im, $rand, $font, 32, $text_color, $black, 12, 28);

Same problem after refreshing the script for about 20mins the above
error message would come up quite frequently.



[2005-11-15 06:33:52] lcalvert at mn dot rr dot com

Memory usage on system after restarting apache goes down to 50% usage
after refreshing 100 times memory usage goes to 83% and errors start
happening.



[2005-11-15 06:23:09] lcalvert at mn dot rr dot com

Description:

After a day or so (100plus refreshes) of running this code the
following two errors come up quite often

Warning: imagepstext(): libt1 returned error 11 
Warning: imagepstext(): libt1 returned error 14

Reproduce code:
---
http://pastebin.com/429956

Actual result:
--
After a day or so (100plus refreshes) of running this code the
following two errors come up quite often

Warning: imagepstext(): libt1 returned error 11 
Warning: imagepstext(): libt1 returned error 14





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


#35266 [Opn->WFx]: __CLASS__ is not always right

2005-11-17 Thread tony2001
 ID:   35266
 Updated by:   [EMAIL PROTECTED]
 Reported By:  markus at cultcom dot de
-Status:   Open
+Status:   Wont fix
 Bug Type: Feature/Change Request
 Operating System: Linux (Fedora Core 4)
 PHP Version:  5.0.5
 New Comment:

__CLASS__ is replaced with it's value during compile time.
Also, I would consider it's right, because this method actually belong
to the parent class, not to the derived one.


Previous Comments:


[2005-11-17 17:52:51] markus at cultcom dot de

Description:

__CLASS__ does not contain the correct class name in a generic class if
method is called from a derived class.

Reproduce code:
---


Expected result:

If I call a method which was implemented in a parent class I need in
any way access to the name of the class which actually was asked to
execute the method...


Actual result:
--
Always the name of the class that actualy implements the method.





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


#35266 [NEW]: __CLASS__ is not always right

2005-11-17 Thread markus at cultcom dot de
From: markus at cultcom dot de
Operating system: Linux (Fedora Core 4)
PHP version:  5.0.5
PHP Bug Type: Feature/Change Request
Bug description:  __CLASS__ is not always right

Description:

__CLASS__ does not contain the correct class name in a generic class if
method is called from a derived class.

Reproduce code:
---


Expected result:

If I call a method which was implemented in a parent class I need in any
way access to the name of the class which actually was asked to execute
the method...


Actual result:
--
Always the name of the class that actualy implements the method.

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


#35265 [Opn->Bgs]: imagejpeg does not save image

2005-11-17 Thread tony2001
 ID:   35265
 Updated by:   [EMAIL PROTECTED]
 Reported By:  hyperila at hotmail dot com
-Status:   Open
+Status:   Bogus
 Bug Type: GD related
 Operating System: windows xp
 PHP Version:  5.0.5
 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.

Try to read imagejpeg() docs?
http://php.net/imagejpeg


Previous Comments:


[2005-11-17 17:05:19] hyperila at hotmail dot com

Description:

Hi i have started using imagejpeg function from GD. However, when i
produce the following code: 

It did not give save and overwrite my working image to a new image with
a new size. please help me in this. Thanks

Reproduce code:
---
 

Expected result:

I expected to see my file : "wew.jpg" to be of size 10 x 10 pixels.

I realised that after trying my script for many times, i managed to get
the file overwritten. It became a file of the same filename but of a new
assigned size (10 x 10).

Please help as i don't seem to make it work again.

Actual result:
--
Actual result is that the browser did show me the small (10x10) picture
but the real wew.jpeg is still untouched. I want it to be affected by
the php code.





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


#35264 [Fbk->Opn]: safe-mode errors with multiple include virtual requests

2005-11-17 Thread maddog2k at maddog2k dot net
 ID:   35264
 User updated by:  maddog2k at maddog2k dot net
 Reported By:  maddog2k at maddog2k dot net
-Status:   Feedback
+Status:   Open
 Bug Type: Apache2 related
 Operating System: Linux
 PHP Version:  5CVS, 4CVS (2005-11-17) (snap)
 New Comment:

No, by the uid 1027.
All files & directories requested are owned by user 1027, not 3185.

3185 came falling out of the sky...

When I modify the file a bit, 3185 suddenly becomes for example UID
1307. 

Apparantly it goes wrong somewhere with UID-checking, I guess it's
taking UID from a different process or so instead of the executing
process.

Like I said, it works when swapping the two 

#35265 [NEW]: imagejpeg does not save image

2005-11-17 Thread hyperila at hotmail dot com
From: hyperila at hotmail dot com
Operating system: windows xp
PHP version:  5.0.5
PHP Bug Type: GD related
Bug description:  imagejpeg does not save image

Description:

Hi i have started using imagejpeg function from GD. However, when i
produce the following code: 

It did not give save and overwrite my working image to a new image with a
new size. please help me in this. Thanks

Reproduce code:
---
 

Expected result:

I expected to see my file : "wew.jpg" to be of size 10 x 10 pixels.

I realised that after trying my script for many times, i managed to get
the file overwritten. It became a file of the same filename but of a new
assigned size (10 x 10).

Please help as i don't seem to make it work again.

Actual result:
--
Actual result is that the browser did show me the small (10x10) picture
but the real wew.jpeg is still untouched. I want it to be affected by the
php code.

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


#35221 [Fbk->Opn]: Warning: imagepstext(): libt1 returned error 11 & 14

2005-11-17 Thread lcalvert at mn dot rr dot com
 ID:   35221
 User updated by:  lcalvert at mn dot rr dot com
 Reported By:  lcalvert at mn dot rr dot com
-Status:   Feedback
+Status:   Open
 Bug Type: GD related
 Operating System: FreeBSD 4.5
 PHP Version:  5CVS, 4CVS (2005-11-17) (snap)
 New Comment:

Not using apache2


Previous Comments:


[2005-11-17 09:23:20] [EMAIL PROTECTED]

One more thing: Are you using Apache2? And if so, which MPM?



[2005-11-17 04:12:13] lcalvert at mn dot rr dot com

Upgraded to PHP Version 5.1.0RC5-dev

Warning: imagepstext() [function.imagepstext]: T1Lib Error: Font ID
Invalid in this Context in /usr/home/GuestBook/randomImage.php on line
35

Line 35
imagepstext($im, $rand, $font, 32, $text_color, $black, 12, 28);

Same problem after refreshing the script for about 20mins the above
error message would come up quite frequently.



[2005-11-15 06:33:52] lcalvert at mn dot rr dot com

Memory usage on system after restarting apache goes down to 50% usage
after refreshing 100 times memory usage goes to 83% and errors start
happening.



[2005-11-15 06:23:09] lcalvert at mn dot rr dot com

Description:

After a day or so (100plus refreshes) of running this code the
following two errors come up quite often

Warning: imagepstext(): libt1 returned error 11 
Warning: imagepstext(): libt1 returned error 14

Reproduce code:
---
http://pastebin.com/429956

Actual result:
--
After a day or so (100plus refreshes) of running this code the
following two errors come up quite often

Warning: imagepstext(): libt1 returned error 11 
Warning: imagepstext(): libt1 returned error 14





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


#35264 [Opn->Fbk]: safe-mode errors with multiple include virtual requests

2005-11-17 Thread iliaa
 ID:   35264
 Updated by:   [EMAIL PROTECTED]
 Reported By:  maddog2k at maddog2k dot net
-Status:   Open
+Status:   Feedback
 Bug Type: Apache2 related
 Operating System: Linux
 PHP Version:  5CVS, 4CVS (2005-11-17) (snap)
 New Comment:

Is the HTML file owned by user with a UID of 3185?


Previous Comments:


[2005-11-17 16:30:57] maddog2k at maddog2k dot net

Like I said :) the script DOES work when FIRST including the .php and
THEN the .html. All UID's are correct, cause otherwise the above
wouldn't work either.

For some reason there seems to be a UID mix-up when calling the .html
first to be included...



[2005-11-17 16:15:15] [EMAIL PROTECTED]

There really is no bug here. If it didn't complain before, THAT was the
bug.




[2005-11-17 16:14:36] [EMAIL PROTECTED]

Then turn off the safe-mode? Or make sure the script is owned by
correct user id.



[2005-11-17 16:00:29] maddog2k at maddog2k dot net

(Nevermind the different path shown in the output, it's a 2nd
test-site)



[2005-11-17 15:58:22] maddog2k at maddog2k dot net

No segfault (as of yet), but still the safe mode errors show, that
aren't there in <= 4.4.0

This is snapshot php5-200511171330

Warning: Unknown: SAFE MODE Restriction in effect. The script whose uid
is 3185 is not allowed to access
/opt/guide/www.deventerijsclub.nl/HTML/content/langebaan/uitslagen/t1.php
owned by uid 1027 in Unknown on line 0

Warning: Unknown: failed to open stream: No such file or directory in
Unknown on line 0

Warning: Unknown: Failed opening
'/opt/guide/www.deventerijsclub.nl/HTML/content/langebaan/uitslagen/t1.php'
for inclusion (include_path='.:/usr/local/php5/lib/php') in Unknown on
line 0



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

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


#35241 [Opn->Bgs]: wddx deserialization problems with utf-8 data

2005-11-17 Thread iliaa
 ID:   35241
 Updated by:   [EMAIL PROTECTED]
 Reported By:  mikx at mikx dot de
-Status:   Open
+Status:   Bogus
 Bug Type: WDDX related
 Operating System: Linux, Windows
 PHP Version:  5CVS-2005-11-16 (snap)
 New Comment:

To handle UTF data you need to use utf8_encode() function on the data
itself and add xml header identifying the data as being UTF8. 


Previous Comments:


[2005-11-16 16:07:59] mikx at mikx dot de

Tried the snapshot for Windows you linked to (PHP Version
5.1.0RC5-dev). Result for the testcase is exactly the same as with
5.0.5.



[2005-11-16 15:53:55] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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





[2005-11-16 15:20:42] mikx at mikx dot de

Description:

It seems the behavior of wddx_deserialize is inconsistent or at least
unpredictable based on the given documentation. Not only between PHP 4
and 5, also based on the given packet data. I am not sure if this is a
bug or expected behavior. I am aware of bug #34928 - so please don't
just treat this as bogus.

The following script behaves as described on PHP 5.0.5 on Windows and
5.0.4 on Linux (currently i have no 5.0.5 Linux testcase available) and
PHP 4.3.9 on Linux. At least the windows version is a complete default
installation.

Please clearify what wddx serialize and deserialize exactly do
(encoding), why the documentation encourages to add an additional
utf8_encode to non-ascii characters on serialize and how the entire
process can be influenced (e.g. which configs get used). setlocale()
and putenv("locale=xyz") have no effect.

Currently wddx_serialize adds no character set information and keeps
whatever you supply as a string inside the resulting wddx file. So if
you send an extended character in ISO-8859-1 or UTF-8 it will be the
same in the resulting wddx packet.

The deserializer seems to always convert the packet to ISO-8859-1
unless you explicitly set information in the XML file that it is
already ISO-8859-1 (even if there is UTF-8 content in it). 

If the documentation entry to always utf8_encode a string before
sending it to serialize is correct, it would mean you would have to
double encode an UTF-8 string. But that seems like a dirty workaround.


>From my perspective both wddx_serialize and wddx_deserialize should
add/respect the information to the XML file and get an additional
parameter to enforce an input or output encoding or overwrite the
default behavior.

Currently i try to deserialize wddx packets produced with PHP4 in PHP5.
They are stored in a database, firstly in MySQL4 (latin1 encoded) and
now migrated to MySQL5 (utf8 encoded). What is the proper way to handle
that? utf8_encode the packet (producing a double encoded packet) before
sending to wddx_deserialize (which implicitly adds a utf8_decode on
that data) seems like an evil hack in a undocumented area.

This seems like a common migration path to me, so please specifiy
clearly what to expect and what to do.






Reproduce code:
---
";
echo "produces latin1 output [php5]";
echo "produces ISO-8859-1 output [php4]";
echo wddx_deserialize("abc-äöü")."";

echo "UTF-8 specified, ISO-8859-1 data";
echo "non-ascii characters get stripped [php5]";
echo "produces ISO-8859-1 output [php4]";
echo wddx_deserialize("abc-äöü")."";;

echo "Nothing specified, ISO-8859-1 data";
echo "non-ascii characters get stripped [php5]";
echo "produces ISO-8859-1 output [php4]";
echo wddx_deserialize("abc-äöü")."";;

echo "ISO-8859-1 specified, UTF-8 data";
echo "produces utf-8 output [php5]"; 
echo "produces UTF-8 output [php4]";
echo wddx_deserialize("".utf8_encode("abc-äöü")."")."";;

echo "UTF-8 specified, UTF-8 data";
echo "produces latin1 output [php5]"; 
echo "produces UTF-8 output [php4]";
echo wddx_deserialize("".utf8_encode("abc-äöü")."")."";;

echo "Nothing specified, UTF-8 data";
echo "produces latin1 output [php5]";
echo "produces UTF-8 output [php4]";
echo wddx_deserialize("".utf8_encode("abc-äöü")."")."";;

?>






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


#34987 [Opn->Bgs]: crashes during startup with --with-mssql

2005-11-17 Thread sniper
 ID:   34987
 Updated by:   [EMAIL PROTECTED]
 Reported By:  michal_czerniak at o2 dot pl
-Status:   Open
+Status:   Bogus
 Bug Type: MSSQL related
 Operating System: AIX 5.2L
 PHP Version:  5CVS-2005-11-17 (snap)
 New Comment:

Please contact IBM support. This is not an AIX support channel.


Previous Comments:


[2005-11-17 16:22:23] michal_czerniak at o2 dot pl

I'm using (trying to use..) FreeTDS 0.63
(http://www.ibiblio.org/pub/Linux/ALPHA/freetds/stable/aix/FreeTDS-0.63-AIX.tar.bz2).
I do not have any additional extensions.



[2005-11-17 15:34:17] [EMAIL PROTECTED]

What freetds version? And you don't load any shared extensions in the
php.ini?



[2005-11-17 14:59:26] michal_czerniak at o2 dot pl

Still not working:
psaix root /usr/apachessl/bin > gdb httpd
GNU gdb 6.2.1
Copyright 2004 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 "powerpc-ibm-aix5.1.0.0"...
(gdb) run -X
Starting program: /usr/apachessl/bin/httpd -X

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1]
0xd127d4a8 in tds_alloc_context ()
   from /usr/local/freetds/lib/libsybdb.a(libsybdb.so.5)
(gdb) bt
#0  0xd127d4a8 in tds_alloc_context ()
   from /usr/local/freetds/lib/libsybdb.a(libsybdb.so.5)
#1  0xd12794ec in dbinit ()
   from /usr/local/freetds/lib/libsybdb.a(libsybdb.so.5)
#2  0xd41bc1a4 in zm_startup_mssql (type=1, module_number=13)
at /usr/ins/php5-200511171130/ext/mssql/php_mssql.c:297
#3  0xd3f2d5cc in zend_startup_module_ex (module=0x2022a858)
at /usr/ins/php5-200511171130/Zend/zend_API.c:1320
#4  0xd3f1a344 in zend_hash_apply (ht=0x2015ab98,
[EMAIL PROTECTED]: 0xd3f2d47c )
at /usr/ins/php5-200511171130/Zend/zend_hash.c:664
#5  0xd3f2d7bc in zend_startup_modules ()
at /usr/ins/php5-200511171130/Zend/zend_API.c:1367
#6  0xd401f944 in php_module_startup (sf=0x2013bce0,
additional_modules=0x20133d9c, num_additional_modules=1)
at /usr/ins/php5-200511171130/main/main.c:1533
#7  0xd41f2f68 in php_apache_startup (sapi_module=0x7)
at /usr/ins/php5-200511171130/sapi/apache/mod_php5.c:270
#8  0xd41f44b0 in php_init_handler (s=0x7, p=0x202b8b98)
at /usr/ins/php5-200511171130/sapi/apache/mod_php5.c:918
#9  0x1001cf24 in ap_init_modules ()
#10 0x10008428 in main ()
(gdb)



[2005-10-26 09:56:08] michal_czerniak at o2 dot pl

Description:

I'm trying to build php with mssql support. 
I've tried almost all possible combinations of 
arguments, but after successfull compilation apache segfaults. 
My last try was with apache 1.3.34 (I have tried with 1.3.32,33, 
2.0.48) 
./configure --enable-module=so 
make 
make install 
-OK, runs fine 
php5-200510200830 (prievously almost all versions from 4.3 to 5.1RC): 
./configure --prefix=/usr/local/php51 
--with-apxs=/usr/local/apache/bin/apxs --with-mssql=/usr/local/freetds

--disable-all 
make 
make instal 
-OK 
root /usr/local/apache/bin > ./apachectl start 
./apachectl[86]: 311404 Segmentation fault(coredump) 
./apachectl start: httpd could not be started 

When I remove freetds from php configuration, everything works fine. 
Freetds tested manualy from command line also works fine.






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


#35160 [Opn->Bgs]: openssl 0.9.8a + module does not load any ciphers

2005-11-17 Thread iliaa
 ID:   35160
 Updated by:   [EMAIL PROTECTED]
 Reported By:  beckman at purplecow dot com
-Status:   Open
+Status:   Bogus
 Bug Type: OpenSSL related
 Operating System: FreeBSD 5.3-RELEASE-p10
 PHP Version:  5CVS-2005-11-09 (snap)
 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.

Works fine on fresh build on openssl 0.9.8a and PHP 5.1.0RC5. The
original message on the debian list seems to imply the problem is on
some pre-compiled openssl builds.

Not a PHP bug.


Previous Comments:


[2005-11-09 00:19:19] beckman at purplecow dot com

Code to generate errors:

file_get_contents("https://some.secure.site.com/";);
echo openssl_error_string();

BTW, this string, returned from openssl_error_string():
  
error:140A90A1:SSL routines:func(169):reason(161)

Reason 161 is "Library has no ciphers" returned from SSL_CTX_new.

Here's my layman's thought:

line 348 of ext/openssl/xp_ssl.c calls SSL_CTX_new(method)

Nowhere before this is SSL_library_init() called, as per documentation
on openssl.org:

http://www.openssl.org/docs/ssl/SSL_library_init.html

Confusingly the documentation also says that SSL_CTX_new() will load
the ciphers:

http://www.openssl.org/docs/ssl/SSL_CTX_new.html

Though it seems that in 0.9.8a it does not.

In ssl/ssl_algs.c you see that SSL_library_init() is changed a bit, and
in 0.9.8a calls ssl_load_ciphers() (defined on line 168 of
ssl/ssl_ciph.c) which doesn't exist in 0.9.7i.

I can't tell if this is a fundamental change in OpenSSL that you have
to add a function call to the openssl extension in PHP, or if OpenSSL
screwed something up.

My guess is that OpenSSL changed the way they load ciphers, and that
the OpenSSL extension needs to be changed to do so.  Granted, the
OpenSSL site isn't great at documentation..



[2005-11-08 22:14:39] beckman at purplecow dot com

Description:

Using FreeBSD ports tree, I installed openssl 0.9.8a and php5-openssl,
which installed the openssl libraries and tools and the php5 openssl
extension openssl.so.

After confirming the HTTPS/SSL contexts (streams and transports) were
enabled, and OpenSSL support was enabled, I attempted to use
file_get_contents to open an HTTPS:// url.

This resulted in the following PHP errors:

[08-Nov-2005 14:28:10] PHP Warning:  file_get_contents(): failed to
create
an SSL context in /usr/local/lib/php/762dev/functions.inc on line 576
[08-Nov-2005 14:28:10] PHP Warning:  file_get_contents(): Failed to
enable
crypto in /usr/local/lib/php/762dev/functions.inc on line 576
[08-Nov-2005 14:28:10] PHP Warning:
file_get_contents(https://##.#.com/?user=##&passwd=##&msisdn=###):
failed to open stream: Operation
 now in progress in /usr/local/lib/php/762dev/functions.inc on line
576

Here's what I got as the error from openssl_error_string():

error:140A90A1:SSL routines:func(169):reason(161)

And here's what I read to lead me to believe that the problem is with
a
change in the way openssl initializes the ciphers:
   
http://lists.alioth.debian.org/pipermail/pkg-openssl-devel/2005-October/000219.html

I think that php5-openssl does not call the SSL_library_init() function
before starting use of the library.

I de-installed openssl.so and the openssl library, re-installed
openssl-0.9.7i, re-installed the openssl.so extension/module, and the
library now works great from within PHP.


Reproduce code:
---
echo file_get_contents("https://whatever.com/";);

Expected result:

The contents of whatever.com.

Actual result:
--
Errors.
[08-Nov-2005 14:28:10] PHP Warning:  file_get_contents(): failed to
create
an SSL context in /usr/local/lib/php/762dev/functions.inc on line 576
[08-Nov-2005 14:28:10] PHP Warning:  file_get_contents(): Failed to
enable
crypto in /usr/local/lib/php/762dev/functions.inc on line 576
[08-Nov-2005 14:28:10] PHP Warning:
file_get_contents(https://##.#.com/?user=##&passwd=##&msisdn=###):
failed to open stream: Operation
 now in progress in /usr/local/lib/php/762dev/functions.inc on line
576

Here's what I got as the error from openssl_error_string():

error:140A90A1:SSL routines:func(169):reason(161)





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


#35264 [Fbk->Opn]: safe-mode errors with multiple include virtual requests

2005-11-17 Thread maddog2k at maddog2k dot net
 ID:   35264
 User updated by:  maddog2k at maddog2k dot net
 Reported By:  maddog2k at maddog2k dot net
-Status:   Feedback
+Status:   Open
 Bug Type: Apache2 related
 Operating System: Linux
 PHP Version:  4.4.1
 New Comment:

Like I said :) the script DOES work when FIRST including the .php and
THEN the .html. All UID's are correct, cause otherwise the above
wouldn't work either.

For some reason there seems to be a UID mix-up when calling the .html
first to be included...


Previous Comments:


[2005-11-17 16:15:15] [EMAIL PROTECTED]

There really is no bug here. If it didn't complain before, THAT was the
bug.




[2005-11-17 16:14:36] [EMAIL PROTECTED]

Then turn off the safe-mode? Or make sure the script is owned by
correct user id.



[2005-11-17 16:00:29] maddog2k at maddog2k dot net

(Nevermind the different path shown in the output, it's a 2nd
test-site)



[2005-11-17 15:58:22] maddog2k at maddog2k dot net

No segfault (as of yet), but still the safe mode errors show, that
aren't there in <= 4.4.0

This is snapshot php5-200511171330

Warning: Unknown: SAFE MODE Restriction in effect. The script whose uid
is 3185 is not allowed to access
/opt/guide/www.deventerijsclub.nl/HTML/content/langebaan/uitslagen/t1.php
owned by uid 1027 in Unknown on line 0

Warning: Unknown: failed to open stream: No such file or directory in
Unknown on line 0

Warning: Unknown: Failed opening
'/opt/guide/www.deventerijsclub.nl/HTML/content/langebaan/uitslagen/t1.php'
for inclusion (include_path='.:/usr/local/php5/lib/php') in Unknown on
line 0



[2005-11-17 15:27:25] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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





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

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


#35247 [Fbk->WFx]: setParameter not set if value contains single quote character ' on Windows

2005-11-17 Thread chregu
 ID:   35247
 Updated by:   [EMAIL PROTECTED]
 Reported By:  junkmail at eighteyes dot com
-Status:   Feedback
+Status:   Wont fix
 Bug Type: XSLT related
 Operating System: Windows 2000
 PHP Version:  5.0.5
 New Comment:

Right :) It generates a warning even in 5.0.x

-> Wont fix


Previous Comments:


[2005-11-17 12:28:10] [EMAIL PROTECTED]

Chregu, This shouldn't work on any platform if I am correct. In PHP 5.1
a warning is explicity issued as this case is specifically tested in XSL
extension:
Warning: XSLTProcessor::transformToXml(): Cannot create XPath
expression (string contains both quote and double-quotes)



[2005-11-17 06:52:59] [EMAIL PROTECTED]

Can you also check the libxslt and libxml2 version? And if 
possible upgrade to the latest releases.



[2005-11-16 21:08:30] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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





[2005-11-16 21:06:28] junkmail at eighteyes dot com

Description:

This error ocurs when the value of the parameter set with setParameter
contains:
- an xml/html tag with an attribute
- a single quote character in the tag's value

The parameter value will not be set. The function doesn't return FALSE
either, making you think the value was successfully set. This only
happens on my Windows setup, not in Linux.

If the tag doesn't contain an attribute, or the tag's value doesn't
contain a single quote, the error does not occur.

Reproduce code:
---
$xml = new DOMDocument();
$xml->loadXML('');

$xsl=new DOMDocument();
$xsl->loadXML('http://www.w3.org/1999/XSL/Transform";>ERROR');

$list = <setParameter('', 'parameter', $list);
$xslt->importStyleSheet($xsl);
print $xslt->transformToXML($xml);

Expected result:

parameter's value


Actual result:
--
ERROR





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


#34987 [Fbk->Opn]: crashes during startup with --with-mssql

2005-11-17 Thread michal_czerniak at o2 dot pl
 ID:   34987
 User updated by:  michal_czerniak at o2 dot pl
 Reported By:  michal_czerniak at o2 dot pl
-Status:   Feedback
+Status:   Open
 Bug Type: MSSQL related
 Operating System: AIX 5.2L
 PHP Version:  5CVS-2005-11-17 (snap)
 New Comment:

I'm using (trying to use..) FreeTDS 0.63
(http://www.ibiblio.org/pub/Linux/ALPHA/freetds/stable/aix/FreeTDS-0.63-AIX.tar.bz2).
I do not have any additional extensions.


Previous Comments:


[2005-11-17 15:34:17] [EMAIL PROTECTED]

What freetds version? And you don't load any shared extensions in the
php.ini?



[2005-11-17 14:59:26] michal_czerniak at o2 dot pl

Still not working:
psaix root /usr/apachessl/bin > gdb httpd
GNU gdb 6.2.1
Copyright 2004 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 "powerpc-ibm-aix5.1.0.0"...
(gdb) run -X
Starting program: /usr/apachessl/bin/httpd -X

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1]
0xd127d4a8 in tds_alloc_context ()
   from /usr/local/freetds/lib/libsybdb.a(libsybdb.so.5)
(gdb) bt
#0  0xd127d4a8 in tds_alloc_context ()
   from /usr/local/freetds/lib/libsybdb.a(libsybdb.so.5)
#1  0xd12794ec in dbinit ()
   from /usr/local/freetds/lib/libsybdb.a(libsybdb.so.5)
#2  0xd41bc1a4 in zm_startup_mssql (type=1, module_number=13)
at /usr/ins/php5-200511171130/ext/mssql/php_mssql.c:297
#3  0xd3f2d5cc in zend_startup_module_ex (module=0x2022a858)
at /usr/ins/php5-200511171130/Zend/zend_API.c:1320
#4  0xd3f1a344 in zend_hash_apply (ht=0x2015ab98,
[EMAIL PROTECTED]: 0xd3f2d47c )
at /usr/ins/php5-200511171130/Zend/zend_hash.c:664
#5  0xd3f2d7bc in zend_startup_modules ()
at /usr/ins/php5-200511171130/Zend/zend_API.c:1367
#6  0xd401f944 in php_module_startup (sf=0x2013bce0,
additional_modules=0x20133d9c, num_additional_modules=1)
at /usr/ins/php5-200511171130/main/main.c:1533
#7  0xd41f2f68 in php_apache_startup (sapi_module=0x7)
at /usr/ins/php5-200511171130/sapi/apache/mod_php5.c:270
#8  0xd41f44b0 in php_init_handler (s=0x7, p=0x202b8b98)
at /usr/ins/php5-200511171130/sapi/apache/mod_php5.c:918
#9  0x1001cf24 in ap_init_modules ()
#10 0x10008428 in main ()
(gdb)



[2005-10-26 09:56:08] michal_czerniak at o2 dot pl

Description:

I'm trying to build php with mssql support. 
I've tried almost all possible combinations of 
arguments, but after successfull compilation apache segfaults. 
My last try was with apache 1.3.34 (I have tried with 1.3.32,33, 
2.0.48) 
./configure --enable-module=so 
make 
make install 
-OK, runs fine 
php5-200510200830 (prievously almost all versions from 4.3 to 5.1RC): 
./configure --prefix=/usr/local/php51 
--with-apxs=/usr/local/apache/bin/apxs --with-mssql=/usr/local/freetds

--disable-all 
make 
make instal 
-OK 
root /usr/local/apache/bin > ./apachectl start 
./apachectl[86]: 311404 Segmentation fault(coredump) 
./apachectl start: httpd could not be started 

When I remove freetds from php configuration, everything works fine. 
Freetds tested manualy from command line also works fine.






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


#35257 [Csd]: Calling ob_flush after creating an ob callback causes "Segmentation fault"

2005-11-17 Thread maddog2k at maddog2k dot net
 ID:   35257
 User updated by:  maddog2k at maddog2k dot net
 Reported By:  maddog2k at maddog2k dot net
 Status:   Closed
 Bug Type: Output Control
 Operating System: Linux
 PHP Version:  4.4.1
 New Comment:

Yes, it's fixed :)
Many thanks !


Previous Comments:


[2005-11-17 12:42:38] [EMAIL PROTECTED]

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.





[2005-11-17 12:01:53] maddog2k at maddog2k dot net

Description:

This is a copy of bug #35156, which is closed...

The code there still segfaults with php4-STABLE-200511160748 (combined
with at least Apache 2.0.54/.55).

I disabled Zend Optimizer, no change.

I've put ob_* functions now into 'disabled_functions' and the logs
(Shared Hosting Server) remain free from Segmentation faults.

Reproduce code:
---
(taken from bug #35156)

 

Expected result:

(taken from bug #35156)

Before
After


Actual result:
--
Apache child Segmentation fault

[Thu Nov 17 11:08:59 2005] [notice] child pid 4657 exit signal
Segmentation fault (11)







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


#35264 [Fbk]: safe-mode errors with multiple include virtual requests

2005-11-17 Thread sniper
 ID:   35264
 Updated by:   [EMAIL PROTECTED]
 Reported By:  maddog2k at maddog2k dot net
 Status:   Feedback
 Bug Type: Apache2 related
 Operating System: Linux
 PHP Version:  4.4.1
 New Comment:

There really is no bug here. If it didn't complain before, THAT was the
bug.



Previous Comments:


[2005-11-17 16:14:36] [EMAIL PROTECTED]

Then turn off the safe-mode? Or make sure the script is owned by
correct user id.



[2005-11-17 16:00:29] maddog2k at maddog2k dot net

(Nevermind the different path shown in the output, it's a 2nd
test-site)



[2005-11-17 15:58:22] maddog2k at maddog2k dot net

No segfault (as of yet), but still the safe mode errors show, that
aren't there in <= 4.4.0

This is snapshot php5-200511171330

Warning: Unknown: SAFE MODE Restriction in effect. The script whose uid
is 3185 is not allowed to access
/opt/guide/www.deventerijsclub.nl/HTML/content/langebaan/uitslagen/t1.php
owned by uid 1027 in Unknown on line 0

Warning: Unknown: failed to open stream: No such file or directory in
Unknown on line 0

Warning: Unknown: Failed opening
'/opt/guide/www.deventerijsclub.nl/HTML/content/langebaan/uitslagen/t1.php'
for inclusion (include_path='.:/usr/local/php5/lib/php') in Unknown on
line 0



[2005-11-17 15:27:25] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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





[2005-11-17 15:26:48] maddog2k at maddog2k dot net

Description:

This is somewhat a copy of bug #35029 (segmentation faults with
multiple include virtual requests).

The problem here is that at least with php4-STABLE-200511160748
(combined with at least Apache 2.0.54/.55) either it segfaults or a
safe_mode error pops up.

This has worked in PHP 4.4.0 and below with same Apache-versions...

Here are the conditions:

.shtml page with 1 or more .php includes : OK
.shtml page with 1 or more .html includes : OK
.shtml page with 1 or more .php includes and 1 or more .html includes :
ERROR, but ONLY if the .html appears as first include (thus before the
first .php include).

If the .html is placed after the first .php include, no errors show
(see: Actual result)
However, if I place a .cgi above the first .php, no problem occurs
either for some strange reason.

Also, the UID mentioned by the PHP message occasionaly differs, and is
NEVER the actual UID... looks like some process mixup or so. (UID 978
mentioned changes sometimes, and UID 1027 is the actual UID).

But, as mentioned, you don't get PHP warning but the Apache child
process just exists with Segmentation fault (11).

Tried this on a lot (> 10) of machines.

Reproduce code:
---
test.shtml:









t1.html:
TEST1-HTML


t1.php:
\n";
?>

Expected result:



OUTPUT_OF: /t1.html
OUTPUT_OF: /t1.php



Actual result:
--


OUTPUT OF: /t1.html

Warning: Unknown(): SAFE MODE Restriction in effect. The script whose
uid is 978 is not allowed to access
/opt/guide/www.some-domain.nl/HTML/t1.php owned by uid 1027 in Unknown
on line 0

Warning: Unknown/opt/guide/www.some-domain.nl/HTML/t1.php): failed to
open stream: No such file or directory in Unknown on line 0

Warning: Unknown(): SAFE MODE Restriction in effect. The script whose
uid is 978 is not allowed to access
/opt/guide/www.some-domain.nl/HTML/t1.php owned by uid 1027 in Unknown
on line 0

Warning: Unknown(/opt/guide/www.some-domain.nl/HTML/t1.php): failed to
open stream: No such file or directory in Unknown on line 0

Warning: (null)(): Failed opening
'/opt/guide/www.some-domain.nl/HTML/t1.php' for inclusion
(include_path='.:/usr/local/php4/lib/php') in Unknown on line 0


---
With segfault: [Thu Nov 17 15:22:57 2005] [notice] child pid 20071 exit
signal Segmentation fault (11)





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


#35264 [Opn->Fbk]: safe-mode errors with multiple include virtual requests

2005-11-17 Thread sniper
 ID:   35264
 Updated by:   [EMAIL PROTECTED]
 Reported By:  maddog2k at maddog2k dot net
-Status:   Open
+Status:   Feedback
 Bug Type: Apache2 related
 Operating System: Linux
 PHP Version:  4.4.1
 New Comment:

Then turn off the safe-mode? Or make sure the script is owned by
correct user id.


Previous Comments:


[2005-11-17 16:00:29] maddog2k at maddog2k dot net

(Nevermind the different path shown in the output, it's a 2nd
test-site)



[2005-11-17 15:58:22] maddog2k at maddog2k dot net

No segfault (as of yet), but still the safe mode errors show, that
aren't there in <= 4.4.0

This is snapshot php5-200511171330

Warning: Unknown: SAFE MODE Restriction in effect. The script whose uid
is 3185 is not allowed to access
/opt/guide/www.deventerijsclub.nl/HTML/content/langebaan/uitslagen/t1.php
owned by uid 1027 in Unknown on line 0

Warning: Unknown: failed to open stream: No such file or directory in
Unknown on line 0

Warning: Unknown: Failed opening
'/opt/guide/www.deventerijsclub.nl/HTML/content/langebaan/uitslagen/t1.php'
for inclusion (include_path='.:/usr/local/php5/lib/php') in Unknown on
line 0



[2005-11-17 15:27:25] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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





[2005-11-17 15:26:48] maddog2k at maddog2k dot net

Description:

This is somewhat a copy of bug #35029 (segmentation faults with
multiple include virtual requests).

The problem here is that at least with php4-STABLE-200511160748
(combined with at least Apache 2.0.54/.55) either it segfaults or a
safe_mode error pops up.

This has worked in PHP 4.4.0 and below with same Apache-versions...

Here are the conditions:

.shtml page with 1 or more .php includes : OK
.shtml page with 1 or more .html includes : OK
.shtml page with 1 or more .php includes and 1 or more .html includes :
ERROR, but ONLY if the .html appears as first include (thus before the
first .php include).

If the .html is placed after the first .php include, no errors show
(see: Actual result)
However, if I place a .cgi above the first .php, no problem occurs
either for some strange reason.

Also, the UID mentioned by the PHP message occasionaly differs, and is
NEVER the actual UID... looks like some process mixup or so. (UID 978
mentioned changes sometimes, and UID 1027 is the actual UID).

But, as mentioned, you don't get PHP warning but the Apache child
process just exists with Segmentation fault (11).

Tried this on a lot (> 10) of machines.

Reproduce code:
---
test.shtml:









t1.html:
TEST1-HTML


t1.php:
\n";
?>

Expected result:



OUTPUT_OF: /t1.html
OUTPUT_OF: /t1.php



Actual result:
--


OUTPUT OF: /t1.html

Warning: Unknown(): SAFE MODE Restriction in effect. The script whose
uid is 978 is not allowed to access
/opt/guide/www.some-domain.nl/HTML/t1.php owned by uid 1027 in Unknown
on line 0

Warning: Unknown/opt/guide/www.some-domain.nl/HTML/t1.php): failed to
open stream: No such file or directory in Unknown on line 0

Warning: Unknown(): SAFE MODE Restriction in effect. The script whose
uid is 978 is not allowed to access
/opt/guide/www.some-domain.nl/HTML/t1.php owned by uid 1027 in Unknown
on line 0

Warning: Unknown(/opt/guide/www.some-domain.nl/HTML/t1.php): failed to
open stream: No such file or directory in Unknown on line 0

Warning: (null)(): Failed opening
'/opt/guide/www.some-domain.nl/HTML/t1.php' for inclusion
(include_path='.:/usr/local/php4/lib/php') in Unknown on line 0


---
With segfault: [Thu Nov 17 15:22:57 2005] [notice] child pid 20071 exit
signal Segmentation fault (11)





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


#35220 [Opn->Fbk]: Sigsegv in zend_execute.execute

2005-11-17 Thread sniper
 ID:   35220
 Updated by:   [EMAIL PROTECTED]
 Reported By:  grover at us dot ibm dot com
-Status:   Open
+Status:   Feedback
 Bug Type: Reproducible crash
 Operating System: AIX 5.2.0.60
 PHP Version:  5.0.5
 New Comment:

Please try using this CVS snapshot:

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

If you have any compile problems, please REPORT them here.
If you have any other problems, you need to tell us about them. Just
saying "it does not work" doesn't help much..


Previous Comments:


[2005-11-17 15:58:30] grover at us dot ibm dot com

After going to the latest php5, the crash is gone, but almost none of
the apps worl correctly. I get constant error about reformatting pages
and many are either displayed with junk at the begining OR not at all.

I have changed my compile options a little and seem to be getting a
core dump that looks very similar to bug 28064. Can I shift to using
the zend engine in the lastest php5 with 5.0.4? Or should I expect that
to also be problematic?

Thanks!



[2005-11-15 17:46:55] grover at us dot ibm dot com

Obtained latest php5 and libxml2. 
Removed --enable-maintainer-zts.
Now having problems in compiling parse_date:
YYCTYPE yych;
#define YYCURSOR cursor;
#define YYMAKER s->ptr;

yych = *(YYMARKER = *++YYCURSOR);  << this gernerated too many errors.
Compile complains about mismatch between assignment of char and char*
types.  I overcame the problem by going back to parse_date.c.orig.
Continueing compile.



[2005-11-15 09:33:22] [EMAIL PROTECTED]

And do NOT use --enable-maintainer-zts !!!



[2005-11-15 09:32:23] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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





[2005-11-15 06:19:10] grover at us dot ibm dot com

Description:

I am running php 5.0.4 and phpMyAdmin 2.6.4-pl3 with MySql 4.1.15 on
and AIX 52 system with IBMIHS webserver (apache!) v 2. 
 
I can login to phpMyAdmin without a probem and do everything EXCEPT
look at a database. when I choose 'databases' I get s sigsegv in the
http server.

My configure line is:

./configure --enable-zend-multibyte \ 
--enable-safe-mode \ 
--enable-sigchild \ 
--enable-debug \ 
--prefix=./usr/local/php \ 
--with-apxs2=/usr/IBMIHS/bin/apxs \ 
--with-config-file-path=/usr/local/php/ \ 
--enable-maintainer-zts \ 
--with-libxml-dir=/opt/freeware/lib/ \ 
--with-zlib-dir=/opt/freeware/lib \ 
--with-mysql=/usr/local/mysql \ 
--enable-mbstring \ 
--enable-ftp \ 
--enable-bcmath \ 
--enable-fastcgi \ 
--with-mysqli=\ 
/usr/local/mysql-4.1.12/bin/mysql_config \ 
--with-pear 
 

# diff php.ini-dist php.ini:

< error_reporting  =  E_ALL & ~E_NOTICE & ~E_STRICT
---
> error_reporting  =  E_ALL
295c353
< display_errors = On
---
> display_errors = O
300c358
< display_startup_errors = Off
---
> display_startup_errors = On
305c363
< log_errors = Off
---
> log_errors = On
374c432
< variables_order = "EGPCS"
---
> variables_order = "GPCS"
385c443
< register_globals = Off
---
> register_globals = On
395c453
< register_argc_argv = On
---
> register_argc_argv = Off
671c729
< mysql.default_host =
---
> mysql.default_host = localhost
802c860
< dbx.colnames_case = "unchanged"
---
> dbx.colnames_case = "lowercase"
912c970
< session.gc_divisor = 100
---
> session.gc_divisor = 1000
932c990
< session.bug_compat_42 = 1
---
> session.bug_compat_42 = 0
979c1037
< session.hash_bits_per_character = 4
---
> session.hash_bits_per_character = 5
986c1044
< url_rewriter.tags =
"a=href,area=href,frame=src,input=src,form=,fieldset="
---
> url_rewriter.tags =
"a=href,area=href,frame=src,input=src,form=fakeentry"


Expected result:

A list of tables spaces is expected.

Actual result:
--
httpd cores with the following stack:
zend_execute.execute(0x30723510, 0x3033cb58), line 1364 in
"zend_execute.c" 
unnamed block $b3644, line 3581 in "zend_execute.c" 
zend_include_or_eval_handler(0x3037bab0, 0x307aeda4, 0x306f0a20,
0x3033cb58), line 3581 in "zend_execute.c" 
zend_execute.execute(0x306f0a20, 0x3033cb58), line 1406 in
"zend_execute.c" 
unnamed block $b3644, line 3581 in "zend_execute.c" 
zend_include_or_eval_handler(0x303859b0, 0x3072b088, 0x306eecf0,
0x3033cb58), line 3581 in "zend_execute.c" 
zend_execute.execute(0x306eecf0, 0x3033cb58), line 1406 in
"zend_execute.c" 
zend_execute_scripts(0x8, 0x3033cb58, 0x0, 0x3, 0x0, 0x30387330, 0x0,
0x5d8a800), line 1069 in "zend.c" 
unnamed block $b2972, line 1632 in "main.c" 
php_execute_scrip

#35264 [Opn]: safe-mode errors with multiple include virtual requests

2005-11-17 Thread maddog2k at maddog2k dot net
 ID:   35264
 User updated by:  maddog2k at maddog2k dot net
 Reported By:  maddog2k at maddog2k dot net
 Status:   Open
 Bug Type: Apache2 related
 Operating System: Linux
 PHP Version:  4.4.1
 New Comment:

(Nevermind the different path shown in the output, it's a 2nd
test-site)


Previous Comments:


[2005-11-17 15:58:22] maddog2k at maddog2k dot net

No segfault (as of yet), but still the safe mode errors show, that
aren't there in <= 4.4.0

This is snapshot php5-200511171330

Warning: Unknown: SAFE MODE Restriction in effect. The script whose uid
is 3185 is not allowed to access
/opt/guide/www.deventerijsclub.nl/HTML/content/langebaan/uitslagen/t1.php
owned by uid 1027 in Unknown on line 0

Warning: Unknown: failed to open stream: No such file or directory in
Unknown on line 0

Warning: Unknown: Failed opening
'/opt/guide/www.deventerijsclub.nl/HTML/content/langebaan/uitslagen/t1.php'
for inclusion (include_path='.:/usr/local/php5/lib/php') in Unknown on
line 0



[2005-11-17 15:27:25] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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





[2005-11-17 15:26:48] maddog2k at maddog2k dot net

Description:

This is somewhat a copy of bug #35029 (segmentation faults with
multiple include virtual requests).

The problem here is that at least with php4-STABLE-200511160748
(combined with at least Apache 2.0.54/.55) either it segfaults or a
safe_mode error pops up.

This has worked in PHP 4.4.0 and below with same Apache-versions...

Here are the conditions:

.shtml page with 1 or more .php includes : OK
.shtml page with 1 or more .html includes : OK
.shtml page with 1 or more .php includes and 1 or more .html includes :
ERROR, but ONLY if the .html appears as first include (thus before the
first .php include).

If the .html is placed after the first .php include, no errors show
(see: Actual result)
However, if I place a .cgi above the first .php, no problem occurs
either for some strange reason.

Also, the UID mentioned by the PHP message occasionaly differs, and is
NEVER the actual UID... looks like some process mixup or so. (UID 978
mentioned changes sometimes, and UID 1027 is the actual UID).

But, as mentioned, you don't get PHP warning but the Apache child
process just exists with Segmentation fault (11).

Tried this on a lot (> 10) of machines.

Reproduce code:
---
test.shtml:









t1.html:
TEST1-HTML


t1.php:
\n";
?>

Expected result:



OUTPUT_OF: /t1.html
OUTPUT_OF: /t1.php



Actual result:
--


OUTPUT OF: /t1.html

Warning: Unknown(): SAFE MODE Restriction in effect. The script whose
uid is 978 is not allowed to access
/opt/guide/www.some-domain.nl/HTML/t1.php owned by uid 1027 in Unknown
on line 0

Warning: Unknown/opt/guide/www.some-domain.nl/HTML/t1.php): failed to
open stream: No such file or directory in Unknown on line 0

Warning: Unknown(): SAFE MODE Restriction in effect. The script whose
uid is 978 is not allowed to access
/opt/guide/www.some-domain.nl/HTML/t1.php owned by uid 1027 in Unknown
on line 0

Warning: Unknown(/opt/guide/www.some-domain.nl/HTML/t1.php): failed to
open stream: No such file or directory in Unknown on line 0

Warning: (null)(): Failed opening
'/opt/guide/www.some-domain.nl/HTML/t1.php' for inclusion
(include_path='.:/usr/local/php4/lib/php') in Unknown on line 0


---
With segfault: [Thu Nov 17 15:22:57 2005] [notice] child pid 20071 exit
signal Segmentation fault (11)





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


#35220 [Fbk->Opn]: Sigsegv in zend_execute.execute

2005-11-17 Thread grover at us dot ibm dot com
 ID:   35220
 User updated by:  grover at us dot ibm dot com
 Reported By:  grover at us dot ibm dot com
-Status:   Feedback
+Status:   Open
 Bug Type: Reproducible crash
 Operating System: AIX 5.2.0.60
 PHP Version:  5.0.5
 New Comment:

After going to the latest php5, the crash is gone, but almost none of
the apps worl correctly. I get constant error about reformatting pages
and many are either displayed with junk at the begining OR not at all.

I have changed my compile options a little and seem to be getting a
core dump that looks very similar to bug 28064. Can I shift to using
the zend engine in the lastest php5 with 5.0.4? Or should I expect that
to also be problematic?

Thanks!


Previous Comments:


[2005-11-15 17:46:55] grover at us dot ibm dot com

Obtained latest php5 and libxml2. 
Removed --enable-maintainer-zts.
Now having problems in compiling parse_date:
YYCTYPE yych;
#define YYCURSOR cursor;
#define YYMAKER s->ptr;

yych = *(YYMARKER = *++YYCURSOR);  << this gernerated too many errors.
Compile complains about mismatch between assignment of char and char*
types.  I overcame the problem by going back to parse_date.c.orig.
Continueing compile.



[2005-11-15 09:33:22] [EMAIL PROTECTED]

And do NOT use --enable-maintainer-zts !!!



[2005-11-15 09:32:23] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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





[2005-11-15 06:19:10] grover at us dot ibm dot com

Description:

I am running php 5.0.4 and phpMyAdmin 2.6.4-pl3 with MySql 4.1.15 on
and AIX 52 system with IBMIHS webserver (apache!) v 2. 
 
I can login to phpMyAdmin without a probem and do everything EXCEPT
look at a database. when I choose 'databases' I get s sigsegv in the
http server.

My configure line is:

./configure --enable-zend-multibyte \ 
--enable-safe-mode \ 
--enable-sigchild \ 
--enable-debug \ 
--prefix=./usr/local/php \ 
--with-apxs2=/usr/IBMIHS/bin/apxs \ 
--with-config-file-path=/usr/local/php/ \ 
--enable-maintainer-zts \ 
--with-libxml-dir=/opt/freeware/lib/ \ 
--with-zlib-dir=/opt/freeware/lib \ 
--with-mysql=/usr/local/mysql \ 
--enable-mbstring \ 
--enable-ftp \ 
--enable-bcmath \ 
--enable-fastcgi \ 
--with-mysqli=\ 
/usr/local/mysql-4.1.12/bin/mysql_config \ 
--with-pear 
 

# diff php.ini-dist php.ini:

< error_reporting  =  E_ALL & ~E_NOTICE & ~E_STRICT
---
> error_reporting  =  E_ALL
295c353
< display_errors = On
---
> display_errors = O
300c358
< display_startup_errors = Off
---
> display_startup_errors = On
305c363
< log_errors = Off
---
> log_errors = On
374c432
< variables_order = "EGPCS"
---
> variables_order = "GPCS"
385c443
< register_globals = Off
---
> register_globals = On
395c453
< register_argc_argv = On
---
> register_argc_argv = Off
671c729
< mysql.default_host =
---
> mysql.default_host = localhost
802c860
< dbx.colnames_case = "unchanged"
---
> dbx.colnames_case = "lowercase"
912c970
< session.gc_divisor = 100
---
> session.gc_divisor = 1000
932c990
< session.bug_compat_42 = 1
---
> session.bug_compat_42 = 0
979c1037
< session.hash_bits_per_character = 4
---
> session.hash_bits_per_character = 5
986c1044
< url_rewriter.tags =
"a=href,area=href,frame=src,input=src,form=,fieldset="
---
> url_rewriter.tags =
"a=href,area=href,frame=src,input=src,form=fakeentry"


Expected result:

A list of tables spaces is expected.

Actual result:
--
httpd cores with the following stack:
zend_execute.execute(0x30723510, 0x3033cb58), line 1364 in
"zend_execute.c" 
unnamed block $b3644, line 3581 in "zend_execute.c" 
zend_include_or_eval_handler(0x3037bab0, 0x307aeda4, 0x306f0a20,
0x3033cb58), line 3581 in "zend_execute.c" 
zend_execute.execute(0x306f0a20, 0x3033cb58), line 1406 in
"zend_execute.c" 
unnamed block $b3644, line 3581 in "zend_execute.c" 
zend_include_or_eval_handler(0x303859b0, 0x3072b088, 0x306eecf0,
0x3033cb58), line 3581 in "zend_execute.c" 
zend_execute.execute(0x306eecf0, 0x3033cb58), line 1406 in
"zend_execute.c" 
zend_execute_scripts(0x8, 0x3033cb58, 0x0, 0x3, 0x0, 0x30387330, 0x0,
0x5d8a800), line 1069 in "zend.c" 
unnamed block $b2972, line 1632 in "main.c" 
php_execute_script(0x30387330, 0x3033cb58), line 1632 in "main.c" 
unnamed block $b3730, line 555 in "sapi_apache2.c" 
php_handler(0x305660e8), line 555 in "sapi_apache2.c" 
ap_run_handler() at 0x10002fb8 
ap_invoke_handler() at 0x10003b7c 
ap_process_request() at 0x10035cf4 
ap_process_http_connection() at 0x10037b98 
ap_run_process_connection() at 0x10025d94 
ap_process_connection() at 0x1002641c 
process_socket() at 0x1002b774 
worker_thread() at 0

#35264 [Fbk->Opn]: safe-mode errors with multiple include virtual requests

2005-11-17 Thread maddog2k at maddog2k dot net
 ID:   35264
 User updated by:  maddog2k at maddog2k dot net
 Reported By:  maddog2k at maddog2k dot net
-Status:   Feedback
+Status:   Open
 Bug Type: Apache2 related
 Operating System: Linux
 PHP Version:  4.4.1
 New Comment:

No segfault (as of yet), but still the safe mode errors show, that
aren't there in <= 4.4.0

This is snapshot php5-200511171330

Warning: Unknown: SAFE MODE Restriction in effect. The script whose uid
is 3185 is not allowed to access
/opt/guide/www.deventerijsclub.nl/HTML/content/langebaan/uitslagen/t1.php
owned by uid 1027 in Unknown on line 0

Warning: Unknown: failed to open stream: No such file or directory in
Unknown on line 0

Warning: Unknown: Failed opening
'/opt/guide/www.deventerijsclub.nl/HTML/content/langebaan/uitslagen/t1.php'
for inclusion (include_path='.:/usr/local/php5/lib/php') in Unknown on
line 0


Previous Comments:


[2005-11-17 15:27:25] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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





[2005-11-17 15:26:48] maddog2k at maddog2k dot net

Description:

This is somewhat a copy of bug #35029 (segmentation faults with
multiple include virtual requests).

The problem here is that at least with php4-STABLE-200511160748
(combined with at least Apache 2.0.54/.55) either it segfaults or a
safe_mode error pops up.

This has worked in PHP 4.4.0 and below with same Apache-versions...

Here are the conditions:

.shtml page with 1 or more .php includes : OK
.shtml page with 1 or more .html includes : OK
.shtml page with 1 or more .php includes and 1 or more .html includes :
ERROR, but ONLY if the .html appears as first include (thus before the
first .php include).

If the .html is placed after the first .php include, no errors show
(see: Actual result)
However, if I place a .cgi above the first .php, no problem occurs
either for some strange reason.

Also, the UID mentioned by the PHP message occasionaly differs, and is
NEVER the actual UID... looks like some process mixup or so. (UID 978
mentioned changes sometimes, and UID 1027 is the actual UID).

But, as mentioned, you don't get PHP warning but the Apache child
process just exists with Segmentation fault (11).

Tried this on a lot (> 10) of machines.

Reproduce code:
---
test.shtml:









t1.html:
TEST1-HTML


t1.php:
\n";
?>

Expected result:



OUTPUT_OF: /t1.html
OUTPUT_OF: /t1.php



Actual result:
--


OUTPUT OF: /t1.html

Warning: Unknown(): SAFE MODE Restriction in effect. The script whose
uid is 978 is not allowed to access
/opt/guide/www.some-domain.nl/HTML/t1.php owned by uid 1027 in Unknown
on line 0

Warning: Unknown/opt/guide/www.some-domain.nl/HTML/t1.php): failed to
open stream: No such file or directory in Unknown on line 0

Warning: Unknown(): SAFE MODE Restriction in effect. The script whose
uid is 978 is not allowed to access
/opt/guide/www.some-domain.nl/HTML/t1.php owned by uid 1027 in Unknown
on line 0

Warning: Unknown(/opt/guide/www.some-domain.nl/HTML/t1.php): failed to
open stream: No such file or directory in Unknown on line 0

Warning: (null)(): Failed opening
'/opt/guide/www.some-domain.nl/HTML/t1.php' for inclusion
(include_path='.:/usr/local/php4/lib/php') in Unknown on line 0


---
With segfault: [Thu Nov 17 15:22:57 2005] [notice] child pid 20071 exit
signal Segmentation fault (11)





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


#35263 [Opn->Bgs]: Crash during IIS Restart

2005-11-17 Thread sniper
 ID:   35263
 Updated by:   [EMAIL PROTECTED]
 Reported By:  bke15 at gmx dot de
-Status:   Open
+Status:   Bogus
-Bug Type: Reproducible crash
+Bug Type: IIS related
 Operating System: Windows2003
 PHP Version:  5.0.5
 New Comment:

Report problems with VisualC++ to Microsoft. Not our problem.
(FYI: It works fine for me..)



Previous Comments:


[2005-11-17 15:32:52] bke15 at gmx dot de

I have quickly tested the lastest Version and it happens too.

Why do i think its not a VC6 Problem ?

Because this error can only be detected when this Tool is onboard.
Otherwise Windows might ignore this error. Only when a valid
development solution is installed the error is displayed. I have no
idea if it is shown too if other development environments are
installed.



[2005-11-17 15:24:02] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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





[2005-11-17 15:23:56] [EMAIL PROTECTED]

>After putting VisualC++6.0 on the server i am getting
>Application Errors during restart.

What makes you think it's PHP problem, not a problem of MSVC?



[2005-11-17 15:18:10] bke15 at gmx dot de

Description:

Hi

I am using PHP5 on a Windows2003 Server with IIS. When i restart the
machine with installed and working php5.0.5 everything is fine. After
putting VisualC++6.0 on the server i am getting Application Errors
during restart. I have nothing changed so far.

What is installed :

- Win2003 Server
- IIS with ISAPI Extension
- PHP 5.0.5 original BIN Distri from php.net ISAPI
- Visual C++ 6.0

The Application Error occurs during iisrestart an says following :

Event Type: Error
Event Source: Application Error
Event Category: (100)
Event ID: 1000
Date: 17.11.2005
Time: 14:56:24
User: N/A
Computer: MYSERVER
Description:
Faulting application w3wp.exe, version 6.0.3790.1830, faulting module
unknown, version 0.0.0.0, fault address 0x01c61628.



Reproduce code:
---
run iisreset after calling a simple php page from the server.

1. Call page with phpinfo()
2. type iisreset on commandprompt 
3. get the error in the log and as popup on screen

repeat steps 1-3 - you will get the error each time.


Expected result:

no error as without VC++

Actual result:
--
Application Error occurs - 





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


#29521 [Asn->Fbk]: compress.bzip2 wrapper

2005-11-17 Thread iliaa
 ID:   29521
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Assigned
+Status:   Feedback
 Bug Type: Bzip2 Related
 Operating System: win32 only
 PHP Version:  5CVS-2005-06-30
 Assigned To:  iliaa
 New Comment:

Please try using this CVS snapshot:

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




Previous Comments:


[2005-07-01 16:08:32] [EMAIL PROTECTED]

Yes, I'm using the binaries from snaps.php.net
BTW, my builds work :) (on cygwin, as I don't have the MSVC)



[2005-07-01 09:41:02] [EMAIL PROTECTED]

Ilia, it doesn't work! help! :)

Nuno: You ARE using the binary snapshot, right? And not trying to build
it yourself from sources..?



[2005-06-30 12:52:53] [EMAIL PROTECTED]

Still doesn't work.



[2005-06-27 23:58:24] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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





[2005-03-01 17:21:57] [EMAIL PROTECTED]

works on linux but not on windows..



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

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


#35248 [Asn->Csd]: sqlite_query() doesnt set error_msg

2005-11-17 Thread iliaa
 ID:   35248
 Updated by:   [EMAIL PROTECTED]
 Reported By:  jwellis at carlalbert dot edu
-Status:   Assigned
+Status:   Closed
 Bug Type: SQLite related
 Operating System: *
 PHP Version:  5.1.0RC5
 Assigned To:  wez
 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:


[2005-11-16 23:46:53] [EMAIL PROTECTED]

As far as I can tell, this is intentional. Perhaps Wez can share a
light on the reasoning behind it though. (so that our brave documenters
can do their work :)



[2005-11-16 23:28:26] jwellis at carlalbert dot edu

Description:

When setting the result of sqlite_query to a result set, if there is an
error, error_msg is not set.  Example:

$result = $db->query("asdfesdfa", SQLITE_NUM, $db_error);

i would like to note, however, that if i dont set the results into a
result set, it works just fine.  Example:

$db->query("asdfesdfa", SQLITE_NUM, $db_error);

Reproduce code:
---
$db = new SQLiteDatabase("sqlite_db1");
$result = $db->query("asdfesdfa", SQLITE_NUM, $db_error);
print">> $db_error\n";
$db->query("asdfesdfa", SQLITE_NUM, $db_error);
print">> $db_error\n";

Expected result:

>> near "asdfesdfa": syntax error
>> near "asdfesdfa": syntax error

Actual result:
--
>>
>> near "asdfesdfa": syntax error





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


#34987 [Opn->Fbk]: crashes during startup with --with-mssql

2005-11-17 Thread sniper
 ID:   34987
 Updated by:   [EMAIL PROTECTED]
 Reported By:  michal_czerniak at o2 dot pl
-Status:   Open
+Status:   Feedback
 Bug Type: Apache related
 Operating System: AIX 5.2L
 PHP Version:  5CVS-2005-11-17 (snap)
 New Comment:

What freetds version? And you don't load any shared extensions in the
php.ini?


Previous Comments:


[2005-11-17 14:59:26] michal_czerniak at o2 dot pl

Still not working:
psaix root /usr/apachessl/bin > gdb httpd
GNU gdb 6.2.1
Copyright 2004 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 "powerpc-ibm-aix5.1.0.0"...
(gdb) run -X
Starting program: /usr/apachessl/bin/httpd -X

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1]
0xd127d4a8 in tds_alloc_context ()
   from /usr/local/freetds/lib/libsybdb.a(libsybdb.so.5)
(gdb) bt
#0  0xd127d4a8 in tds_alloc_context ()
   from /usr/local/freetds/lib/libsybdb.a(libsybdb.so.5)
#1  0xd12794ec in dbinit ()
   from /usr/local/freetds/lib/libsybdb.a(libsybdb.so.5)
#2  0xd41bc1a4 in zm_startup_mssql (type=1, module_number=13)
at /usr/ins/php5-200511171130/ext/mssql/php_mssql.c:297
#3  0xd3f2d5cc in zend_startup_module_ex (module=0x2022a858)
at /usr/ins/php5-200511171130/Zend/zend_API.c:1320
#4  0xd3f1a344 in zend_hash_apply (ht=0x2015ab98,
[EMAIL PROTECTED]: 0xd3f2d47c )
at /usr/ins/php5-200511171130/Zend/zend_hash.c:664
#5  0xd3f2d7bc in zend_startup_modules ()
at /usr/ins/php5-200511171130/Zend/zend_API.c:1367
#6  0xd401f944 in php_module_startup (sf=0x2013bce0,
additional_modules=0x20133d9c, num_additional_modules=1)
at /usr/ins/php5-200511171130/main/main.c:1533
#7  0xd41f2f68 in php_apache_startup (sapi_module=0x7)
at /usr/ins/php5-200511171130/sapi/apache/mod_php5.c:270
#8  0xd41f44b0 in php_init_handler (s=0x7, p=0x202b8b98)
at /usr/ins/php5-200511171130/sapi/apache/mod_php5.c:918
#9  0x1001cf24 in ap_init_modules ()
#10 0x10008428 in main ()
(gdb)



[2005-10-26 09:56:08] michal_czerniak at o2 dot pl

Description:

I'm trying to build php with mssql support. 
I've tried almost all possible combinations of 
arguments, but after successfull compilation apache segfaults. 
My last try was with apache 1.3.34 (I have tried with 1.3.32,33, 
2.0.48) 
./configure --enable-module=so 
make 
make install 
-OK, runs fine 
php5-200510200830 (prievously almost all versions from 4.3 to 5.1RC): 
./configure --prefix=/usr/local/php51 
--with-apxs=/usr/local/apache/bin/apxs --with-mssql=/usr/local/freetds

--disable-all 
make 
make instal 
-OK 
root /usr/local/apache/bin > ./apachectl start 
./apachectl[86]: 311404 Segmentation fault(coredump) 
./apachectl start: httpd could not be started 

When I remove freetds from php configuration, everything works fine. 
Freetds tested manualy from command line also works fine.






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


#35263 [Fbk->Opn]: Crash during IIS Restart

2005-11-17 Thread bke15 at gmx dot de
 ID:   35263
 User updated by:  bke15 at gmx dot de
 Reported By:  bke15 at gmx dot de
-Status:   Feedback
+Status:   Open
 Bug Type: Reproducible crash
 Operating System: Windows2003
 PHP Version:  5.0.5
 New Comment:

I have quickly tested the lastest Version and it happens too.

Why do i think its not a VC6 Problem ?

Because this error can only be detected when this Tool is onboard.
Otherwise Windows might ignore this error. Only when a valid
development solution is installed the error is displayed. I have no
idea if it is shown too if other development environments are
installed.


Previous Comments:


[2005-11-17 15:24:02] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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





[2005-11-17 15:23:56] [EMAIL PROTECTED]

>After putting VisualC++6.0 on the server i am getting
>Application Errors during restart.

What makes you think it's PHP problem, not a problem of MSVC?



[2005-11-17 15:18:10] bke15 at gmx dot de

Description:

Hi

I am using PHP5 on a Windows2003 Server with IIS. When i restart the
machine with installed and working php5.0.5 everything is fine. After
putting VisualC++6.0 on the server i am getting Application Errors
during restart. I have nothing changed so far.

What is installed :

- Win2003 Server
- IIS with ISAPI Extension
- PHP 5.0.5 original BIN Distri from php.net ISAPI
- Visual C++ 6.0

The Application Error occurs during iisrestart an says following :

Event Type: Error
Event Source: Application Error
Event Category: (100)
Event ID: 1000
Date: 17.11.2005
Time: 14:56:24
User: N/A
Computer: MYSERVER
Description:
Faulting application w3wp.exe, version 6.0.3790.1830, faulting module
unknown, version 0.0.0.0, fault address 0x01c61628.



Reproduce code:
---
run iisreset after calling a simple php page from the server.

1. Call page with phpinfo()
2. type iisreset on commandprompt 
3. get the error in the log and as popup on screen

repeat steps 1-3 - you will get the error each time.


Expected result:

no error as without VC++

Actual result:
--
Application Error occurs - 





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


#35264 [Opn->Fbk]: safe-mode errors with multiple include virtual requests

2005-11-17 Thread sniper
 ID:   35264
 Updated by:   [EMAIL PROTECTED]
 Reported By:  maddog2k at maddog2k dot net
-Status:   Open
+Status:   Feedback
 Bug Type: Apache2 related
 Operating System: Linux
 PHP Version:  4.4.1
 New Comment:

Please try using this CVS snapshot:

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




Previous Comments:


[2005-11-17 15:26:48] maddog2k at maddog2k dot net

Description:

This is somewhat a copy of bug #35029 (segmentation faults with
multiple include virtual requests).

The problem here is that at least with php4-STABLE-200511160748
(combined with at least Apache 2.0.54/.55) either it segfaults or a
safe_mode error pops up.

This has worked in PHP 4.4.0 and below with same Apache-versions...

Here are the conditions:

.shtml page with 1 or more .php includes : OK
.shtml page with 1 or more .html includes : OK
.shtml page with 1 or more .php includes and 1 or more .html includes :
ERROR, but ONLY if the .html appears as first include (thus before the
first .php include).

If the .html is placed after the first .php include, no errors show
(see: Actual result)
However, if I place a .cgi above the first .php, no problem occurs
either for some strange reason.

Also, the UID mentioned by the PHP message occasionaly differs, and is
NEVER the actual UID... looks like some process mixup or so. (UID 978
mentioned changes sometimes, and UID 1027 is the actual UID).

But, as mentioned, you don't get PHP warning but the Apache child
process just exists with Segmentation fault (11).

Tried this on a lot (> 10) of machines.

Reproduce code:
---
test.shtml:









t1.html:
TEST1-HTML


t1.php:
\n";
?>

Expected result:



OUTPUT_OF: /t1.html
OUTPUT_OF: /t1.php



Actual result:
--


OUTPUT OF: /t1.html

Warning: Unknown(): SAFE MODE Restriction in effect. The script whose
uid is 978 is not allowed to access
/opt/guide/www.some-domain.nl/HTML/t1.php owned by uid 1027 in Unknown
on line 0

Warning: Unknown/opt/guide/www.some-domain.nl/HTML/t1.php): failed to
open stream: No such file or directory in Unknown on line 0

Warning: Unknown(): SAFE MODE Restriction in effect. The script whose
uid is 978 is not allowed to access
/opt/guide/www.some-domain.nl/HTML/t1.php owned by uid 1027 in Unknown
on line 0

Warning: Unknown(/opt/guide/www.some-domain.nl/HTML/t1.php): failed to
open stream: No such file or directory in Unknown on line 0

Warning: (null)(): Failed opening
'/opt/guide/www.some-domain.nl/HTML/t1.php' for inclusion
(include_path='.:/usr/local/php4/lib/php') in Unknown on line 0


---
With segfault: [Thu Nov 17 15:22:57 2005] [notice] child pid 20071 exit
signal Segmentation fault (11)





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


#35264 [NEW]: safe-mode errors with multiple include virtual requests

2005-11-17 Thread maddog2k at maddog2k dot net
From: maddog2k at maddog2k dot net
Operating system: Linux
PHP version:  4.4.1
PHP Bug Type: Apache2 related
Bug description:  safe-mode errors with multiple include virtual requests

Description:

This is somewhat a copy of bug #35029 (segmentation faults with multiple
include virtual requests).

The problem here is that at least with php4-STABLE-200511160748 (combined
with at least Apache 2.0.54/.55) either it segfaults or a safe_mode error
pops up.

This has worked in PHP 4.4.0 and below with same Apache-versions...

Here are the conditions:

.shtml page with 1 or more .php includes : OK
.shtml page with 1 or more .html includes : OK
.shtml page with 1 or more .php includes and 1 or more .html includes :
ERROR, but ONLY if the .html appears as first include (thus before the
first .php include).

If the .html is placed after the first .php include, no errors show (see:
Actual result)
However, if I place a .cgi above the first .php, no problem occurs either
for some strange reason.

Also, the UID mentioned by the PHP message occasionaly differs, and is
NEVER the actual UID... looks like some process mixup or so. (UID 978
mentioned changes sometimes, and UID 1027 is the actual UID).

But, as mentioned, you don't get PHP warning but the Apache child process
just exists with Segmentation fault (11).

Tried this on a lot (> 10) of machines.

Reproduce code:
---
test.shtml:









t1.html:
TEST1-HTML


t1.php:
\n";
?>

Expected result:



OUTPUT_OF: /t1.html
OUTPUT_OF: /t1.php



Actual result:
--


OUTPUT OF: /t1.html

Warning: Unknown(): SAFE MODE Restriction in effect. The script whose uid
is 978 is not allowed to access /opt/guide/www.some-domain.nl/HTML/t1.php
owned by uid 1027 in Unknown on line 0

Warning: Unknown/opt/guide/www.some-domain.nl/HTML/t1.php): failed to open
stream: No such file or directory in Unknown on line 0

Warning: Unknown(): SAFE MODE Restriction in effect. The script whose uid
is 978 is not allowed to access /opt/guide/www.some-domain.nl/HTML/t1.php
owned by uid 1027 in Unknown on line 0

Warning: Unknown(/opt/guide/www.some-domain.nl/HTML/t1.php): failed to
open stream: No such file or directory in Unknown on line 0

Warning: (null)(): Failed opening
'/opt/guide/www.some-domain.nl/HTML/t1.php' for inclusion
(include_path='.:/usr/local/php4/lib/php') in Unknown on line 0


---
With segfault: [Thu Nov 17 15:22:57 2005] [notice] child pid 20071 exit
signal Segmentation fault (11)

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


#35263 [Opn->Fbk]: Crash during IIS Restart

2005-11-17 Thread tony2001
 ID:   35263
 Updated by:   [EMAIL PROTECTED]
 Reported By:  bke15 at gmx dot de
-Status:   Open
+Status:   Feedback
 Bug Type: Reproducible crash
 Operating System: Windows2003
 PHP Version:  5.0.5
 New Comment:

Please try using this CVS snapshot:

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




Previous Comments:


[2005-11-17 15:23:56] [EMAIL PROTECTED]

>After putting VisualC++6.0 on the server i am getting
>Application Errors during restart.

What makes you think it's PHP problem, not a problem of MSVC?



[2005-11-17 15:18:10] bke15 at gmx dot de

Description:

Hi

I am using PHP5 on a Windows2003 Server with IIS. When i restart the
machine with installed and working php5.0.5 everything is fine. After
putting VisualC++6.0 on the server i am getting Application Errors
during restart. I have nothing changed so far.

What is installed :

- Win2003 Server
- IIS with ISAPI Extension
- PHP 5.0.5 original BIN Distri from php.net ISAPI
- Visual C++ 6.0

The Application Error occurs during iisrestart an says following :

Event Type: Error
Event Source: Application Error
Event Category: (100)
Event ID: 1000
Date: 17.11.2005
Time: 14:56:24
User: N/A
Computer: MYSERVER
Description:
Faulting application w3wp.exe, version 6.0.3790.1830, faulting module
unknown, version 0.0.0.0, fault address 0x01c61628.



Reproduce code:
---
run iisreset after calling a simple php page from the server.

1. Call page with phpinfo()
2. type iisreset on commandprompt 
3. get the error in the log and as popup on screen

repeat steps 1-3 - you will get the error each time.


Expected result:

no error as without VC++

Actual result:
--
Application Error occurs - 





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


#35263 [Opn]: Crash during IIS Restart

2005-11-17 Thread tony2001
 ID:   35263
 Updated by:   [EMAIL PROTECTED]
 Reported By:  bke15 at gmx dot de
 Status:   Open
 Bug Type: Reproducible crash
 Operating System: Windows2003
 PHP Version:  5.0.5
 New Comment:

>After putting VisualC++6.0 on the server i am getting
>Application Errors during restart.

What makes you think it's PHP problem, not a problem of MSVC?


Previous Comments:


[2005-11-17 15:18:10] bke15 at gmx dot de

Description:

Hi

I am using PHP5 on a Windows2003 Server with IIS. When i restart the
machine with installed and working php5.0.5 everything is fine. After
putting VisualC++6.0 on the server i am getting Application Errors
during restart. I have nothing changed so far.

What is installed :

- Win2003 Server
- IIS with ISAPI Extension
- PHP 5.0.5 original BIN Distri from php.net ISAPI
- Visual C++ 6.0

The Application Error occurs during iisrestart an says following :

Event Type: Error
Event Source: Application Error
Event Category: (100)
Event ID: 1000
Date: 17.11.2005
Time: 14:56:24
User: N/A
Computer: MYSERVER
Description:
Faulting application w3wp.exe, version 6.0.3790.1830, faulting module
unknown, version 0.0.0.0, fault address 0x01c61628.



Reproduce code:
---
run iisreset after calling a simple php page from the server.

1. Call page with phpinfo()
2. type iisreset on commandprompt 
3. get the error in the log and as popup on screen

repeat steps 1-3 - you will get the error each time.


Expected result:

no error as without VC++

Actual result:
--
Application Error occurs - 





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


#35079 [Asn->Csd]: stream_set_blocking(true) toggles, not enables blocking

2005-11-17 Thread tony2001
 ID:   35079
 Updated by:   [EMAIL PROTECTED]
 Reported By:  askalski at gmail dot com
-Status:   Assigned
+Status:   Closed
 Bug Type: Filesystem function related
 Operating System: linux
 PHP Version:  5CVS-2005-11-03 (snap)
 Assigned To:  wez
 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:


[2005-11-11 22:32:13] [EMAIL PROTECTED]

Wez, the proposed solution looks good to me.
Please check it out.



[2005-11-03 21:43:31] [EMAIL PROTECTED]

Assigned to the author of streams.



[2005-11-03 18:56:39] askalski at gmail dot com

Still broken. (php-200511031730)



[2005-11-03 05:55:11] askalski at gmail dot com

Description:

main/streams/plain_wrapper.c (5.0.5)
main/streams.c (4.4 and earlier)

In several places, the ^= operator is used to turn off a flag.  This is
incorrect.  For example, stream_set_blocking() on a plain file hits this
code in php_stdiop_set_option():

if (value)
flags ^= O_NONBLOCK;
else
flags |= O_NONBLOCK;

This should be:

if (value)
flags &= ~O_NONBLOCK;
else
flags |= O_NONBLOCK;

The same error is repeated elsewhere in the code.


Reproduce code:
---
$fp = fopen("test", "w");

stream_set_blocking($fp, true);
stream_set_blocking($fp, true);
stream_set_blocking($fp, true);
stream_set_blocking($fp, true);

fclose($fp);


Expected result:

The stream should remain in blocking mode throughout the script
execution.


Actual result:
--
Here is abridged strace output showing the errant behavior.  Notice how
O_NONBLOCK is being turned on and off alternately.

open("/home/askalski/test", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 4
fcntl64(4, F_SETFL, O_WRONLY|O_NONBLOCK) = 0
fcntl64(4, F_SETFL, O_WRONLY)   = 0
fcntl64(4, F_SETFL, O_WRONLY|O_NONBLOCK) = 0
fcntl64(4, F_SETFL, O_WRONLY)   = 0
close(4)= 0






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


#35263 [NEW]: Crash during IIS Restart

2005-11-17 Thread bke15 at gmx dot de
From: bke15 at gmx dot de
Operating system: Windows2003
PHP version:  5.0.5
PHP Bug Type: Reproducible crash
Bug description:  Crash during IIS Restart

Description:

Hi

I am using PHP5 on a Windows2003 Server with IIS. When i restart the
machine with installed and working php5.0.5 everything is fine. After
putting VisualC++6.0 on the server i am getting Application Errors during
restart. I have nothing changed so far.

What is installed :

- Win2003 Server
- IIS with ISAPI Extension
- PHP 5.0.5 original BIN Distri from php.net ISAPI
- Visual C++ 6.0

The Application Error occurs during iisrestart an says following :

Event Type: Error
Event Source: Application Error
Event Category: (100)
Event ID: 1000
Date: 17.11.2005
Time: 14:56:24
User: N/A
Computer: MYSERVER
Description:
Faulting application w3wp.exe, version 6.0.3790.1830, faulting module
unknown, version 0.0.0.0, fault address 0x01c61628.



Reproduce code:
---
run iisreset after calling a simple php page from the server.

1. Call page with phpinfo()
2. type iisreset on commandprompt 
3. get the error in the log and as popup on screen

repeat steps 1-3 - you will get the error each time.


Expected result:

no error as without VC++

Actual result:
--
Application Error occurs - 

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


#34987 [Fbk->Opn]: AIX 5.2, APACHE 1, PHP4-5, FREETDS

2005-11-17 Thread michal_czerniak at o2 dot pl
 ID:   34987
 User updated by:  michal_czerniak at o2 dot pl
 Reported By:  michal_czerniak at o2 dot pl
-Status:   Feedback
+Status:   Open
 Bug Type: Compile Failure
 Operating System: AIX 5.2L
 PHP Version:  5.0.5
 New Comment:

Still not working:
psaix root /usr/apachessl/bin > gdb httpd
GNU gdb 6.2.1
Copyright 2004 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 "powerpc-ibm-aix5.1.0.0"...
(gdb) run -X
Starting program: /usr/apachessl/bin/httpd -X

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1]
0xd127d4a8 in tds_alloc_context ()
   from /usr/local/freetds/lib/libsybdb.a(libsybdb.so.5)
(gdb) bt
#0  0xd127d4a8 in tds_alloc_context ()
   from /usr/local/freetds/lib/libsybdb.a(libsybdb.so.5)
#1  0xd12794ec in dbinit ()
   from /usr/local/freetds/lib/libsybdb.a(libsybdb.so.5)
#2  0xd41bc1a4 in zm_startup_mssql (type=1, module_number=13)
at /usr/ins/php5-200511171130/ext/mssql/php_mssql.c:297
#3  0xd3f2d5cc in zend_startup_module_ex (module=0x2022a858)
at /usr/ins/php5-200511171130/Zend/zend_API.c:1320
#4  0xd3f1a344 in zend_hash_apply (ht=0x2015ab98,
[EMAIL PROTECTED]: 0xd3f2d47c )
at /usr/ins/php5-200511171130/Zend/zend_hash.c:664
#5  0xd3f2d7bc in zend_startup_modules ()
at /usr/ins/php5-200511171130/Zend/zend_API.c:1367
#6  0xd401f944 in php_module_startup (sf=0x2013bce0,
additional_modules=0x20133d9c, num_additional_modules=1)
at /usr/ins/php5-200511171130/main/main.c:1533
#7  0xd41f2f68 in php_apache_startup (sapi_module=0x7)
at /usr/ins/php5-200511171130/sapi/apache/mod_php5.c:270
#8  0xd41f44b0 in php_init_handler (s=0x7, p=0x202b8b98)
at /usr/ins/php5-200511171130/sapi/apache/mod_php5.c:918
#9  0x1001cf24 in ap_init_modules ()
#10 0x10008428 in main ()
(gdb)


Previous Comments:


[2005-11-17 14:02:13] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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





[2005-11-17 13:52:09] michal_czerniak at o2 dot pl

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1]
0xd127d4a8 in tds_alloc_context ()
   from /usr/local/freetds/lib/libsybdb.a(libsybdb.so.5)
(gdb) bt
#0  0xd127d4a8 in tds_alloc_context ()
   from /usr/local/freetds/lib/libsybdb.a(libsybdb.so.5)
#1  0xd12794ec in dbinit ()
   from /usr/local/freetds/lib/libsybdb.a(libsybdb.so.5)
#2  0xd114637c in zm_startup_mssql (type=1, module_number=2)
at /usr/ins/php5-200510200830/ext/mssql/php_mssql.c:297
#3  0xd0f6ba28 in zend_startup_module_ex (module=0x0)
at /usr/ins/php5-200510200830/Zend/zend_API.c:1320
#4  0xd0f4fcfc in zend_hash_apply (ht=0x200f0478,
[EMAIL PROTECTED]: 0xd0f6b8d8 )
at /usr/ins/php5-200510200830/Zend/zend_hash.c:664
#5  0xd0f6bc18 in zend_startup_modules ()
at /usr/ins/php5-200510200830/Zend/zend_API.c:1367
#6  0xd1066d68 in php_module_startup (sf=0x200dff90,
additional_modules=0x200dbab4, num_additional_modules=1)
at /usr/ins/php5-200510200830/main/main.c:1506
#7  0xd116fb30 in php_apache_startup (sapi_module=0x7)
at /usr/ins/php5-200510200830/sapi/apache/mod_php5.c:270
#8  0xd1171078 in php_init_handler (s=0x7, p=0x20140708)
at /usr/ins/php5-200510200830/sapi/apache/mod_php5.c:918
#9  0x1001b95c in ap_init_modules ()
#10 0x10008130 in main ()
(gdb)
OK?



[2005-10-26 09:56:08] michal_czerniak at o2 dot pl

Description:

I'm trying to build php with mssql support. 
I've tried almost all possible combinations of 
arguments, but after successfull compilation apache segfaults. 
My last try was with apache 1.3.34 (I have tried with 1.3.32,33, 
2.0.48) 
./configure --enable-module=so 
make 
make install 
-OK, runs fine 
php5-200510200830 (prievously almost all versions from 4.3 to 5.1RC): 
./configure --prefix=/usr/local/php51 
--with-apxs=/usr/local/apache/bin/apxs --with-mssql=/usr/local/freetds

--disable-all 
make 
make instal 
-OK 
root /usr/local/apache/bin > ./apachectl start 
./apachectl[86]: 311404 Segmentation fault(coredump) 
./apachectl start: httpd could not be started 

When I remove freetds from php configuration, everything works fine. 
Freetds tested manualy from command line also works fine.






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


#35262 [Opn->Bgs]: mail function does not work

2005-11-17 Thread tony2001
 ID:   35262
 Updated by:   [EMAIL PROTECTED]
 Reported By:  mihaela dot mitu at gmail dot com
-Status:   Open
+Status:   Bogus
 Bug Type: Mail related
 Operating System: Linux
 PHP Version:  4.4.1
 New Comment:

No sendmail installed -> no mail() function, as mail() requires some
MTA to transfer e-mails.
For detailed descriptions please use appropriate support forums and
mailing lists.


Previous Comments:


[2005-11-17 14:52:43] mihaela dot mitu at gmail dot com

Description:

Mai function in PHP4 does not work. I got this error:

Fatal error: Call to undefined function: mail() in
/home/www/ofertaparteneri/opendocman/commitchange.php on line 118

What did i du wrong? PLs explaned this to me... step by step.

Reproduce code:
---
  mail($mail_to, $mail_subject, ($mail_greeting.'
.$mail_body.$mail_salute), $mail_headers);


Expected result:

another page from opendocman aplication.

Actual result:
--
Fatal error: Call to undefined function: mail() in
/home/www/ofertaparteneri/opendocman/commitchange.php on line 118





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


#35262 [NEW]: mail function does not work

2005-11-17 Thread mihaela dot mitu at gmail dot com
From: mihaela dot mitu at gmail dot com
Operating system: Linux
PHP version:  4.4.1
PHP Bug Type: Mail related
Bug description:  mail function does not work

Description:

Mai function in PHP4 does not work. I got this error:

Fatal error: Call to undefined function: mail() in
/home/www/ofertaparteneri/opendocman/commitchange.php on line 118

What did i du wrong? PLs explaned this to me... step by step.

Reproduce code:
---
  mail($mail_to, $mail_subject, ($mail_greeting.'
.$mail_body.$mail_salute), $mail_headers);


Expected result:

another page from opendocman aplication.

Actual result:
--
Fatal error: Call to undefined function: mail() in
/home/www/ofertaparteneri/opendocman/commitchange.php on line 118

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


#28708 [Com]: move_uploaded_file to no Permission dir make php crash

2005-11-17 Thread arun_ri2003 at rediffmail dot com
 ID:   28708
 Comment by:   arun_ri2003 at rediffmail dot com
 Reported By:  xuefer at 21cn dot com
 Status:   No Feedback
 Bug Type: Filesystem function related
 Operating System: *
 PHP Version:  5CVS, 4CVS
 Assigned To:  helly
 New Comment:

Hi,
I also get this problem plz help us.If you have any solution then
report us 

Thanks
Arun Goyal


Previous Comments:


[2005-11-17 14:32:33] arun_ri2003 at rediffmail dot com

I can't get the file uploader to work. This is the error I get:
Warning: move_uploaded_file(../img/mainpict.jpg)
[function.move-uploaded-file]: failed to open stream: Permission denied
in
/usr/local/share/doc/vhost/privatebazaar.com/httpdocs/property/editpropimg.php
on line 50

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to
move '/users/privatebazaar.com/tmp/phpI5aoQZ' to '../img/mainpict.jpg'
in
/usr/local/share/doc/vhost/privatebazaar.com/httpdocs/property/editpropimg.php
on line 50



[2004-11-02 01:00:05] php-bugs at lists dot php dot net

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



[2004-10-25 09:39:15] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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





[2004-07-06 16:05:27] [EMAIL PROTECTED]

Marcus, this is once again one of those weird bugs caused by your
docref crap.




[2004-06-10 17:06:35] xuefer at 21cn dot com

done with CFLAGS="-g"

coredump:

#0  0x404879ab in zif_move_uploaded_file (ht=2, return_value=0x84a5954,

this_ptr=0x0, return_value_used=1)
at /home/oursky/src/php4/ext/standard/basic_functions.c:2821
2821php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to 
move '%s'
to '%s'", Z_STRVAL_PP(path), Z_STRVAL_PP(new_path));

Backtrace:
---

#0  0x404879ab in zif_move_uploaded_file (ht=2, return_value=0x84a5954,

this_ptr=0x0, return_value_used=1)
at /home/oursky/src/php4/ext/standard/basic_functions.c:2821
#1  0x4052b828 in execute (op_array=0x85ce660)
at /home/oursky/src/php4/Zend/zend_execute.c:1635
#2  0x4052b594 in execute (op_array=0x86023f4)
at /home/oursky/src/php4/Zend/zend_execute.c:1679
#3  0x40516042 in call_user_function_ex (function_table=0xbfffa0f0, 
object_pp=0x84a56a8, function_name=0x864641c,
retval_ptr_ptr=0xbfff9cec, 
param_count=4, params=0x84a58cc, no_separation=0,
symbol_table=0x0)
at /home/oursky/src/php4/Zend/zend_execute_API.c:567
#4  0x404855f7 in zif_call_user_func_array (ht=2,
return_value=0x84a572c, 
this_ptr=0x0, return_value_used=1)
at /home/oursky/src/php4/ext/standard/basic_functions.c:1946
#5  0x4052b828 in execute (op_array=0x85294cc)
at /home/oursky/src/php4/Zend/zend_execute.c:1635
#6  0x4052b594 in execute (op_array=0x839aa54)
at /home/oursky/src/php4/Zend/zend_execute.c:1679
#7  0x4052b594 in execute (op_array=0x85fbed4)
at /home/oursky/src/php4/Zend/zend_execute.c:1679
#8  0x4052b594 in execute (op_array=0x85fc08c)
at /home/oursky/src/php4/Zend/zend_execute.c:1679
#9  0x4052b594 in execute (op_array=0x8575414)
at /home/oursky/src/php4/Zend/zend_execute.c:1679
#10 0x4052b594 in execute (op_array=0x85ec564)
at /home/oursky/src/php4/Zend/zend_execute.c:1679
#11 0x4052b594 in execute (op_array=0x831638c)
at /home/oursky/src/php4/Zend/zend_execute.c:1679
#12 0x4052b594 in execute (op_array=0x844848c)
at /home/oursky/src/php4/Zend/zend_execute.c:1679
#13 0x4051dbfc in zend_execute_scripts (type=8, retval=0x0,
file_count=3)
at /home/oursky/src/php4/Zend/zend.c:891
#14 0x404f1c2c in php_execute_script (primary_file=0xb680)
at /home/oursky/src/php4/main/main.c:1731
#15 0x4053183b in php_handler (r=0x863f840)
at /home/oursky/src/php4/sapi/apache2handler/sapi_apache2.c:561
#16 0x080af7e0 in ap_invoke_handler ()
#17 0x0809164b in ap_process_request ()
#18 0x0808bd2c in ap_process_http_connection ()
#19 0x080bc385 in ap_process_connection ()
#20 0x080af2da in child_main ()
#21 0x080ae144 in make_child ()
#22 0x080ae489 in perform_idle_server_maintenance ()
#23 0x080adaed in ap_mpm_run ()
#24 0x080b56a1 in main ()
#25 0x402b0657 in __libc_start_main (main=0x80b4cd0 , argc=3, 
ubp_av=0xbae4, init=0x806693c <_init>, fini=0x80d5540 <_fini>,

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

Php dump:
---

"common.function_name: "

#35261 [Opn->Fbk]: php_admin_value does not lock include_path

2005-11-17 Thread tony2001
 ID:   35261
 Updated by:   [EMAIL PROTECTED]
 Reported By:  Bjorn dot Wiberg at its dot uu dot se
-Status:   Open
+Status:   Feedback
 Bug Type: Apache2 related
 Operating System: IBM AIX 5.2.0.0 ML5
 PHP Version:  5.0.5
 New Comment:

Please try using this CVS snapshot:

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




Previous Comments:


[2005-11-17 14:26:42] Bjorn dot Wiberg at its dot uu dot se

Description:

When include_path is set using php_admin_value in httpd.conf, it is
still possible to override it in PHP scripts.

Shouldn't php_admin_value lock the value regardless of where the
attempt to change it is done? (With the exception that PHP
configuration directives for virtual hosts should be able to override
any PHP configurations done in the main server section of httpd.conf.)

The documentation states that include_path is of type PHP_INI_ALL and
can be changed from anywhere
(http://www.php.net/manual/en/ini.php#ini.list), but also states that
values set with php_admin_value directives cannot be overriden e.g. by
virtualhost directives (http://se2.php.net/configuration.changes) --
which isn't true -- overriding php_admin_value include_path of the main
server with another php_admin_value include_path in virtual host
configurations works just fine!

Best regards,
Björn

Reproduce code:
---
httpd.conf configuration of mod_php5:

  php_admin_value include_path ".:/apache/php/lib/php"

Example PHP script:



  

  

  

');
  $result = ini_set('include_path',
'.:/apache/php/lib/php:/apache/htdocs/bwiberg/php');

  if ($result === FALSE) {
echo('ini_set returned FALSE');
  } else if (empty($result)) {
echo('ini_set returned an empty string');
  } else {
echo('ini_set returned ' . $result . ', include path is now: '
. ini_get('include_path') . '');
  }
?>

  



Expected result:

Include path is: .:/apache/php/lib/php
ini_set returned FALSE
Include path is now: .:/apache/php/lib/php

..or possibly, as someone pointed out at
http://www.php.net/manual/en/function.ini-set.php#19874:

Include path is: .:/apache/php/lib/php
ini_set returned an empty string
Include path is now: .:/apache/php/lib/php

Actual result:
--
 Include path is: .:/apache/php/lib/php
ini_set returned .:/apache/php/lib/php
Include path is now: .:/apache/php/lib/php:/apache/htdocs/bwiberg/php






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


#28708 [Com]: move_uploaded_file to no Permission dir make php crash

2005-11-17 Thread arun_ri2003 at rediffmail dot com
 ID:   28708
 Comment by:   arun_ri2003 at rediffmail dot com
 Reported By:  xuefer at 21cn dot com
 Status:   No Feedback
 Bug Type: Filesystem function related
 Operating System: *
 PHP Version:  5CVS, 4CVS
 Assigned To:  helly
 New Comment:

I can't get the file uploader to work. This is the error I get:
Warning: move_uploaded_file(../img/mainpict.jpg)
[function.move-uploaded-file]: failed to open stream: Permission denied
in
/usr/local/share/doc/vhost/privatebazaar.com/httpdocs/property/editpropimg.php
on line 50

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to
move '/users/privatebazaar.com/tmp/phpI5aoQZ' to '../img/mainpict.jpg'
in
/usr/local/share/doc/vhost/privatebazaar.com/httpdocs/property/editpropimg.php
on line 50


Previous Comments:


[2004-11-02 01:00:05] php-bugs at lists dot php dot net

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



[2004-10-25 09:39:15] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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





[2004-07-06 16:05:27] [EMAIL PROTECTED]

Marcus, this is once again one of those weird bugs caused by your
docref crap.




[2004-06-10 17:06:35] xuefer at 21cn dot com

done with CFLAGS="-g"

coredump:

#0  0x404879ab in zif_move_uploaded_file (ht=2, return_value=0x84a5954,

this_ptr=0x0, return_value_used=1)
at /home/oursky/src/php4/ext/standard/basic_functions.c:2821
2821php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to 
move '%s'
to '%s'", Z_STRVAL_PP(path), Z_STRVAL_PP(new_path));

Backtrace:
---

#0  0x404879ab in zif_move_uploaded_file (ht=2, return_value=0x84a5954,

this_ptr=0x0, return_value_used=1)
at /home/oursky/src/php4/ext/standard/basic_functions.c:2821
#1  0x4052b828 in execute (op_array=0x85ce660)
at /home/oursky/src/php4/Zend/zend_execute.c:1635
#2  0x4052b594 in execute (op_array=0x86023f4)
at /home/oursky/src/php4/Zend/zend_execute.c:1679
#3  0x40516042 in call_user_function_ex (function_table=0xbfffa0f0, 
object_pp=0x84a56a8, function_name=0x864641c,
retval_ptr_ptr=0xbfff9cec, 
param_count=4, params=0x84a58cc, no_separation=0,
symbol_table=0x0)
at /home/oursky/src/php4/Zend/zend_execute_API.c:567
#4  0x404855f7 in zif_call_user_func_array (ht=2,
return_value=0x84a572c, 
this_ptr=0x0, return_value_used=1)
at /home/oursky/src/php4/ext/standard/basic_functions.c:1946
#5  0x4052b828 in execute (op_array=0x85294cc)
at /home/oursky/src/php4/Zend/zend_execute.c:1635
#6  0x4052b594 in execute (op_array=0x839aa54)
at /home/oursky/src/php4/Zend/zend_execute.c:1679
#7  0x4052b594 in execute (op_array=0x85fbed4)
at /home/oursky/src/php4/Zend/zend_execute.c:1679
#8  0x4052b594 in execute (op_array=0x85fc08c)
at /home/oursky/src/php4/Zend/zend_execute.c:1679
#9  0x4052b594 in execute (op_array=0x8575414)
at /home/oursky/src/php4/Zend/zend_execute.c:1679
#10 0x4052b594 in execute (op_array=0x85ec564)
at /home/oursky/src/php4/Zend/zend_execute.c:1679
#11 0x4052b594 in execute (op_array=0x831638c)
at /home/oursky/src/php4/Zend/zend_execute.c:1679
#12 0x4052b594 in execute (op_array=0x844848c)
at /home/oursky/src/php4/Zend/zend_execute.c:1679
#13 0x4051dbfc in zend_execute_scripts (type=8, retval=0x0,
file_count=3)
at /home/oursky/src/php4/Zend/zend.c:891
#14 0x404f1c2c in php_execute_script (primary_file=0xb680)
at /home/oursky/src/php4/main/main.c:1731
#15 0x4053183b in php_handler (r=0x863f840)
at /home/oursky/src/php4/sapi/apache2handler/sapi_apache2.c:561
#16 0x080af7e0 in ap_invoke_handler ()
#17 0x0809164b in ap_process_request ()
#18 0x0808bd2c in ap_process_http_connection ()
#19 0x080bc385 in ap_process_connection ()
#20 0x080af2da in child_main ()
#21 0x080ae144 in make_child ()
#22 0x080ae489 in perform_idle_server_maintenance ()
#23 0x080adaed in ap_mpm_run ()
#24 0x080b56a1 in main ()
#25 0x402b0657 in __libc_start_main (main=0x80b4cd0 , argc=3, 
ubp_av=0xbae4, init=0x806693c <_init>, fini=0x80d5540 <_fini>,

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

Php dump:
---

"common.function_name: "$1 = 0x40572a5c "move_uploaded_file"



[2004-06-10 16:01:19] [EMAIL PROTECTED]

Are you using thread-safe PHP? Try compiling php with 
--enable-debug, this sho

#35255 [Fbk->Bgs]: imagettftext, imagettfbbox and imageFTBBox broken on 64 bit

2005-11-17 Thread pajoye
 ID:   35255
 Updated by:   [EMAIL PROTECTED]
 Reported By:  phpbugs at exozet dot com
-Status:   Feedback
+Status:   Bogus
 Bug Type: GD related
 Operating System: OpenSuSE 10.0 x86_64
 PHP Version:  4.4.1
 Assigned To:  pajoye
 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.

I tried 4.4 cvs, 5.1 cvs, it works both on x86, x86_64 and ppc_64.

You are certainly messing libs on your system. But it is not a php
bug.




Previous Comments:


[2005-11-17 13:59:18] [EMAIL PROTECTED]

Are you sure it isn't a problem with the t1lib itself..?




[2005-11-17 13:13:52] phpbugs at exozet dot com

here is the font:
http://www.exozet.com/phpbug-1/arial.ttf

Normally I didn't configure with 'ttf' (freetype1). But I tried it and
nothing changed.

May it helps to disable t1lib and ttf? (on 32bit it es enables and it
works, grrr... :-)



[2005-11-17 13:10:28] phpbugs at exozet dot com

@tony2001
in PHP 4.3.11 I have allway a x coordiante = 0:
http://www.exozet.com/phpbug-1/64bit/php-4.3.11/stdout.txt
in PHP => 4.4.1 the coordiantes are like this high values:
http://www.exozet.com/phpbug-1/64bit/php-4.4.1/stdout.txt

it must be:
http://www.exozet.com/phpbug-1/32bit/php-4.3.11/stdout.txt
http://www.exozet.com/phpbug-1/32bit/php-4.4.1/stdout.txt



[2005-11-17 12:54:19] [EMAIL PROTECTED]

I can see the very same result on x86 host.
Doesn't look like a bug to me (yes, it's perfectly fine to have
negative coordinates).



[2005-11-17 12:29:35] [EMAIL PROTECTED]

Please provide the font you use.

I fail to see the relation between t1lib and the ttf functions.

4.3.x is a dead branche. 4.4.x is the active php4 branche. 



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

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


#35261 [NEW]: php_admin_value does not lock include_path

2005-11-17 Thread Bjorn dot Wiberg at its dot uu dot se
From: Bjorn dot Wiberg at its dot uu dot se
Operating system: IBM AIX 5.2.0.0 ML5
PHP version:  5.0.5
PHP Bug Type: Apache2 related
Bug description:  php_admin_value does not lock include_path

Description:

When include_path is set using php_admin_value in httpd.conf, it is still
possible to override it in PHP scripts.

Shouldn't php_admin_value lock the value regardless of where the attempt
to change it is done? (With the exception that PHP configuration
directives for virtual hosts should be able to override any PHP
configurations done in the main server section of httpd.conf.)

The documentation states that include_path is of type PHP_INI_ALL and can
be changed from anywhere (http://www.php.net/manual/en/ini.php#ini.list),
but also states that values set with php_admin_value directives cannot be
overriden e.g. by virtualhost directives
(http://se2.php.net/configuration.changes) -- which isn't true --
overriding php_admin_value include_path of the main server with another
php_admin_value include_path in virtual host configurations works just
fine!

Best regards,
Björn

Reproduce code:
---
httpd.conf configuration of mod_php5:

  php_admin_value include_path ".:/apache/php/lib/php"

Example PHP script:



  

  

  

');
  $result = ini_set('include_path',
'.:/apache/php/lib/php:/apache/htdocs/bwiberg/php');

  if ($result === FALSE) {
echo('ini_set returned FALSE');
  } else if (empty($result)) {
echo('ini_set returned an empty string');
  } else {
echo('ini_set returned ' . $result . ', include path is now: ' .
ini_get('include_path') . '');
  }
?>

  



Expected result:

Include path is: .:/apache/php/lib/php
ini_set returned FALSE
Include path is now: .:/apache/php/lib/php

..or possibly, as someone pointed out at
http://www.php.net/manual/en/function.ini-set.php#19874:

Include path is: .:/apache/php/lib/php
ini_set returned an empty string
Include path is now: .:/apache/php/lib/php

Actual result:
--
 Include path is: .:/apache/php/lib/php
ini_set returned .:/apache/php/lib/php
Include path is now: .:/apache/php/lib/php:/apache/htdocs/bwiberg/php


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


#35253 [Opn->Fbk]: Length of the encoded character string violates a RFC.

2005-11-17 Thread tony2001
 ID:   35253
 Updated by:   [EMAIL PROTECTED]
 Reported By:  s dot masugata at digicom dot dnp dot co dot jp
-Status:   Open
+Status:   Feedback
 Bug Type: mbstring related
 Operating System: Solaris8
 PHP Version:  5CVS, 4CVS (2005-11-17) (snap)
 New Comment:

Please put the reproduce script somewhere and paste the link here, so
it won't get corrupted by the bug system.


Previous Comments:


[2005-11-17 13:21:43] s dot masugata at digicom dot dnp dot co dot jp

Attempted to try in php5-200511170730 but the status doesn't change.



[2005-11-17 09:21:34] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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





[2005-11-17 06:04:38] s dot masugata at digicom dot dnp dot co dot jp

Description:

Length of the encoded character string violates a RFC.
It violates a RFC when encoding a character string using the
mb_encode_mimeheader function.

As for the e-mail header, the total of the field identifier, the field
value and the line feed character is defined as being less than 76
characters.
It processes mb_encode_mimeheader function only using the field value.
Therefore, the field length at the head violates a RFC.

Reproduce code:
---







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


#35259 [Bgs]: This code is throwing fatal error..I dnt know Y it is happening ? Pls help me.

2005-11-17 Thread smksankar at yahoo dot com
 ID:   35259
 User updated by:  smksankar at yahoo dot com
 Reported By:  smksankar at yahoo dot com
 Status:   Bogus
 Bug Type: Unknown/Other Function
 Operating System: windows
 PHP Version:  5.0.5
 New Comment:

Sorry..I already installed php_printer.dll


Previous Comments:


[2005-11-17 13:58:12] smksankar at yahoo dot com

Hi,,Thanks for ur Reply.
I already installed php_installer.php..what can i do next ?

:)



[2005-11-17 13:28:47] [EMAIL PROTECTED]

Obviously, you need to install php_printer.dll to be able to use it.



[2005-11-17 13:26:46] smksankar at yahoo dot com

Description:

Hi,
This code is throwing fatal error..I dnt know Y it is happening ? Pls
help me..

This is the code...



Its giving the error..
Error :
Fatal error: Call to undefined function printer_open() in
c:\wamp\www\everfinn\sans\school\school_view.php on line 16


Please help me anybody..

I installed php_installer.php in PHP Folder.

Thanks and Regards,
Stephen Raj

Reproduce code:
---
This is the code...



Expected result:

Just I want to print some contents.






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


#35218 [Asn->Csd]: strtotime no longer ignores timezone comments like (EST)

2005-11-17 Thread derick
 ID:   35218
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Assigned
+Status:   Closed
 Bug Type: Date/time related
 Operating System: Debian 3.1/Kernel 2.6.7
 PHP Version:  5.1.0RC4
 Assigned To:  derick
 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:


[2005-11-14 19:57:35] [EMAIL PROTECTED]

Assigned to the author of this part.



[2005-11-14 18:28:03] [EMAIL PROTECTED]

Description:

A number of mail clients or mail generating scripts generate Date:
headers that use the following format:

Sun, 13 Nov 2005 22:56:10 -0800 (PST)

The final part - " (PST)" is not required (and probably technically
invalid) by the date format described in RFC 2822, however, it's also
probably valid as a header comment. Prior to the 5.1 branch, PHP's
strtotime simply ignored comments in this style; however, with 5.1, it
causes strtotime to fail and return false. Valid or invalid I think
it'd be good for PHP to ignore these and just parse the rest of the
date.

Reproduce code:
---
http://bugs.php.net/?id=35218&edit=1


#35260 [Bgs]: Memory Leak

2005-11-17 Thread lacey at lacey dot cc
 ID:   35260
 User updated by:  lacey at lacey dot cc
 Reported By:  lacey at lacey dot cc
 Status:   Bogus
 Bug Type: IIS related
 Operating System: Windows XP
 PHP Version:  5.0.5
 New Comment:

Well that's very simple.  Because in your infinite wisdom, you locked
the first one.


Previous Comments:


[2005-11-17 13:59:58] [EMAIL PROTECTED]

Why the hell are you reporting this separately and not giving the
feedback to that earlier report?!?!!!




[2005-11-17 13:58:37] lacey at lacey dot cc

Description:

Your Memory Leak Bug is still there.  In both php5isapi.dll and
php-cgi.exe

http://bugs.php.net/bug.php?id=32475

Add the second line in this routine in zend.c and it goes away.

static void executor_globals_dtor(zend_executor_globals
*executor_globals TSRMLS_DC)
{
zend_ini_shutdown(TSRMLS_C);
zend_shutdown_constants(TSRMLS_C);
}







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


#34987 [Opn->Fbk]: AIX 5.2, APACHE 1, PHP4-5, FREETDS

2005-11-17 Thread sniper
 ID:   34987
 Updated by:   [EMAIL PROTECTED]
 Reported By:  michal_czerniak at o2 dot pl
-Status:   Open
+Status:   Feedback
 Bug Type: Compile Failure
 Operating System: AIX 5.2L
 PHP Version:  5.0.5
 New Comment:

Please try using this CVS snapshot:

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




Previous Comments:


[2005-11-17 13:52:09] michal_czerniak at o2 dot pl

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1]
0xd127d4a8 in tds_alloc_context ()
   from /usr/local/freetds/lib/libsybdb.a(libsybdb.so.5)
(gdb) bt
#0  0xd127d4a8 in tds_alloc_context ()
   from /usr/local/freetds/lib/libsybdb.a(libsybdb.so.5)
#1  0xd12794ec in dbinit ()
   from /usr/local/freetds/lib/libsybdb.a(libsybdb.so.5)
#2  0xd114637c in zm_startup_mssql (type=1, module_number=2)
at /usr/ins/php5-200510200830/ext/mssql/php_mssql.c:297
#3  0xd0f6ba28 in zend_startup_module_ex (module=0x0)
at /usr/ins/php5-200510200830/Zend/zend_API.c:1320
#4  0xd0f4fcfc in zend_hash_apply (ht=0x200f0478,
[EMAIL PROTECTED]: 0xd0f6b8d8 )
at /usr/ins/php5-200510200830/Zend/zend_hash.c:664
#5  0xd0f6bc18 in zend_startup_modules ()
at /usr/ins/php5-200510200830/Zend/zend_API.c:1367
#6  0xd1066d68 in php_module_startup (sf=0x200dff90,
additional_modules=0x200dbab4, num_additional_modules=1)
at /usr/ins/php5-200510200830/main/main.c:1506
#7  0xd116fb30 in php_apache_startup (sapi_module=0x7)
at /usr/ins/php5-200510200830/sapi/apache/mod_php5.c:270
#8  0xd1171078 in php_init_handler (s=0x7, p=0x20140708)
at /usr/ins/php5-200510200830/sapi/apache/mod_php5.c:918
#9  0x1001b95c in ap_init_modules ()
#10 0x10008130 in main ()
(gdb)
OK?



[2005-10-26 09:56:08] michal_czerniak at o2 dot pl

Description:

I'm trying to build php with mssql support. 
I've tried almost all possible combinations of 
arguments, but after successfull compilation apache segfaults. 
My last try was with apache 1.3.34 (I have tried with 1.3.32,33, 
2.0.48) 
./configure --enable-module=so 
make 
make install 
-OK, runs fine 
php5-200510200830 (prievously almost all versions from 4.3 to 5.1RC): 
./configure --prefix=/usr/local/php51 
--with-apxs=/usr/local/apache/bin/apxs --with-mssql=/usr/local/freetds

--disable-all 
make 
make instal 
-OK 
root /usr/local/apache/bin > ./apachectl start 
./apachectl[86]: 311404 Segmentation fault(coredump) 
./apachectl start: httpd could not be started 

When I remove freetds from php configuration, everything works fine. 
Freetds tested manualy from command line also works fine.






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



#32475 [NoF->Fbk]: Memory Leak: TSRMLS_FETCH() in HTTPExtensionProc

2005-11-17 Thread sniper
 ID:   32475
 Updated by:   [EMAIL PROTECTED]
 Reported By:  lacey at lacey dot cc
-Status:   No Feedback
+Status:   Feedback
 Bug Type: IIS related
 Operating System: Windows XP
 PHP Version:  5CVS-2005-03-29
 New Comment:

Please try using this CVS snapshot:

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




Previous Comments:


[2005-06-28 01:00:04] php-bugs at lists dot php dot net

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



[2005-06-20 13:13:48] [EMAIL PROTECTED]

Well, can you tell us too so we can fix it?




[2005-06-01 00:51:50] lacey at lacey dot cc

No.



[2005-05-27 09:04:00] [EMAIL PROTECTED]

Was it same place as said in bug #33118 ??




[2005-05-03 18:48:52] lacey at lacey dot cc

Found the Memory Leak.  Thanks for all the help.



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

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


#35260 [Opn->Bgs]: Memory Leak

2005-11-17 Thread sniper
 ID:   35260
 Updated by:   [EMAIL PROTECTED]
 Reported By:  lacey at lacey dot cc
-Status:   Open
+Status:   Bogus
 Bug Type: IIS related
 Operating System: Windows XP
 PHP Version:  5.0.5
 New Comment:

Why the hell are you reporting this separately and not giving the
feedback to that earlier report?!?!!!



Previous Comments:


[2005-11-17 13:58:37] lacey at lacey dot cc

Description:

Your Memory Leak Bug is still there.  In both php5isapi.dll and
php-cgi.exe

http://bugs.php.net/bug.php?id=32475

Add the second line in this routine in zend.c and it goes away.

static void executor_globals_dtor(zend_executor_globals
*executor_globals TSRMLS_DC)
{
zend_ini_shutdown(TSRMLS_C);
zend_shutdown_constants(TSRMLS_C);
}







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


#35258 [Fbk->Bgs]: preg_replace() doesn't release memory

2005-11-17 Thread tony2001
 ID:   35258
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Feedback
+Status:   Bogus
 Bug Type: PCRE related
 Operating System: Linux
 PHP Version:  4.4.1
 New Comment:

Memory usage doesn't depend on the length of the data.
Try this code:



Previous Comments:


[2005-11-17 13:55:54] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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





[2005-11-17 12:22:25] [EMAIL PROTECTED]

Description:

preg_replace() doesn't seem to release the memory used to do its
operation.

Simple example using preg_replace():

php -r 'var_dump(memory_get_usage()); $input = str_pad("", 5,
"foo"); var_dump(memory_get_usage()); $input = preg_replace(";foo;",
"", $input); var_dump(memory_get_usage());'

int(15216)
int(65320)
int(115352)


Simple example using ereg_replace():

php -r 'var_dump(memory_get_usage()); $input = str_pad("", 5,
"foo"); var_dump(memory_get_usage()); $input = ereg_replace("foo", "",
$input); var_dump(memory_get_usage());'

int(15208)
int(65312)
int(15312)

Maybe this is just a documentation issue, but than it should be noted.
The documentation says that preg_ is faster, which it is, and the
documentation somewhere mentiones a regex cache, but it doesn't say
that the amount of memory grows by the size of the input sring.

It's an interesting behaviour which should be considered when memory is
an issue.






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


#35255 [Opn->Fbk]: imagettftext, imagettfbbox and imageFTBBox broken on 64 bit

2005-11-17 Thread sniper
 ID:   35255
 Updated by:   [EMAIL PROTECTED]
 Reported By:  phpbugs at exozet dot com
-Status:   Open
+Status:   Feedback
 Bug Type: GD related
 Operating System: OpenSuSE 10.0 x86_64
 PHP Version:  4.4.1
 Assigned To:  pajoye
 New Comment:

Are you sure it isn't a problem with the t1lib itself..?



Previous Comments:


[2005-11-17 13:13:52] phpbugs at exozet dot com

here is the font:
http://www.exozet.com/phpbug-1/arial.ttf

Normally I didn't configure with 'ttf' (freetype1). But I tried it and
nothing changed.

May it helps to disable t1lib and ttf? (on 32bit it es enables and it
works, grrr... :-)



[2005-11-17 13:10:28] phpbugs at exozet dot com

@tony2001
in PHP 4.3.11 I have allway a x coordiante = 0:
http://www.exozet.com/phpbug-1/64bit/php-4.3.11/stdout.txt
in PHP => 4.4.1 the coordiantes are like this high values:
http://www.exozet.com/phpbug-1/64bit/php-4.4.1/stdout.txt

it must be:
http://www.exozet.com/phpbug-1/32bit/php-4.3.11/stdout.txt
http://www.exozet.com/phpbug-1/32bit/php-4.4.1/stdout.txt



[2005-11-17 12:54:19] [EMAIL PROTECTED]

I can see the very same result on x86 host.
Doesn't look like a bug to me (yes, it's perfectly fine to have
negative coordinates).



[2005-11-17 12:29:35] [EMAIL PROTECTED]

Please provide the font you use.

I fail to see the relation between t1lib and the ttf functions.

4.3.x is a dead branche. 4.4.x is the active php4 branche. 



[2005-11-17 11:32:39] phpbugs at exozet dot com

configure and make w/o t1lib successful.
But the result of testpic.php is nearly the same as in 4.4.1!
Get a look:
http://www.exozet.com/phpbug-1/64bit/php5-200511170730/



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

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


#35260 [NEW]: Memory Leak

2005-11-17 Thread lacey at lacey dot cc
From: lacey at lacey dot cc
Operating system: Windows XP
PHP version:  5.0.5
PHP Bug Type: IIS related
Bug description:  Memory Leak

Description:

Your Memory Leak Bug is still there.  In both php5isapi.dll and
php-cgi.exe

http://bugs.php.net/bug.php?id=32475

Add the second line in this routine in zend.c and it goes away.

static void executor_globals_dtor(zend_executor_globals *executor_globals
TSRMLS_DC)
{
zend_ini_shutdown(TSRMLS_C);
zend_shutdown_constants(TSRMLS_C);
}



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


#35259 [Bgs]: This code is throwing fatal error..I dnt know Y it is happening ? Pls help me.

2005-11-17 Thread smksankar at yahoo dot com
 ID:   35259
 User updated by:  smksankar at yahoo dot com
 Reported By:  smksankar at yahoo dot com
 Status:   Bogus
 Bug Type: Unknown/Other Function
 Operating System: windows
 PHP Version:  5.0.5
 New Comment:

Hi,,Thanks for ur Reply.
I already installed php_installer.php..what can i do next ?

:)


Previous Comments:


[2005-11-17 13:28:47] [EMAIL PROTECTED]

Obviously, you need to install php_printer.dll to be able to use it.



[2005-11-17 13:26:46] smksankar at yahoo dot com

Description:

Hi,
This code is throwing fatal error..I dnt know Y it is happening ? Pls
help me..

This is the code...



Its giving the error..
Error :
Fatal error: Call to undefined function printer_open() in
c:\wamp\www\everfinn\sans\school\school_view.php on line 16


Please help me anybody..

I installed php_installer.php in PHP Folder.

Thanks and Regards,
Stephen Raj

Reproduce code:
---
This is the code...



Expected result:

Just I want to print some contents.






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


#35258 [Opn->Fbk]: preg_replace() doesn't release memory

2005-11-17 Thread sniper
 ID:   35258
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Feedback
 Bug Type: PCRE related
 Operating System: Linux
 PHP Version:  4.4.1
 New Comment:

Please try using this CVS snapshot:

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




Previous Comments:


[2005-11-17 12:22:25] [EMAIL PROTECTED]

Description:

preg_replace() doesn't seem to release the memory used to do its
operation.

Simple example using preg_replace():

php -r 'var_dump(memory_get_usage()); $input = str_pad("", 5,
"foo"); var_dump(memory_get_usage()); $input = preg_replace(";foo;",
"", $input); var_dump(memory_get_usage());'

int(15216)
int(65320)
int(115352)


Simple example using ereg_replace():

php -r 'var_dump(memory_get_usage()); $input = str_pad("", 5,
"foo"); var_dump(memory_get_usage()); $input = ereg_replace("foo", "",
$input); var_dump(memory_get_usage());'

int(15208)
int(65312)
int(15312)

Maybe this is just a documentation issue, but than it should be noted.
The documentation says that preg_ is faster, which it is, and the
documentation somewhere mentiones a regex cache, but it doesn't say
that the amount of memory grows by the size of the input sring.

It's an interesting behaviour which should be considered when memory is
an issue.






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


#34987 [Fbk->Opn]: AIX 5.2, APACHE 1, PHP4-5, FREETDS

2005-11-17 Thread michal_czerniak at o2 dot pl
 ID:   34987
 User updated by:  michal_czerniak at o2 dot pl
 Reported By:  michal_czerniak at o2 dot pl
-Status:   Feedback
+Status:   Open
 Bug Type: Compile Failure
 Operating System: AIX 5.2L
 PHP Version:  5.0.5
 New Comment:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1]
0xd127d4a8 in tds_alloc_context ()
   from /usr/local/freetds/lib/libsybdb.a(libsybdb.so.5)
(gdb) bt
#0  0xd127d4a8 in tds_alloc_context ()
   from /usr/local/freetds/lib/libsybdb.a(libsybdb.so.5)
#1  0xd12794ec in dbinit ()
   from /usr/local/freetds/lib/libsybdb.a(libsybdb.so.5)
#2  0xd114637c in zm_startup_mssql (type=1, module_number=2)
at /usr/ins/php5-200510200830/ext/mssql/php_mssql.c:297
#3  0xd0f6ba28 in zend_startup_module_ex (module=0x0)
at /usr/ins/php5-200510200830/Zend/zend_API.c:1320
#4  0xd0f4fcfc in zend_hash_apply (ht=0x200f0478,
[EMAIL PROTECTED]: 0xd0f6b8d8 )
at /usr/ins/php5-200510200830/Zend/zend_hash.c:664
#5  0xd0f6bc18 in zend_startup_modules ()
at /usr/ins/php5-200510200830/Zend/zend_API.c:1367
#6  0xd1066d68 in php_module_startup (sf=0x200dff90,
additional_modules=0x200dbab4, num_additional_modules=1)
at /usr/ins/php5-200510200830/main/main.c:1506
#7  0xd116fb30 in php_apache_startup (sapi_module=0x7)
at /usr/ins/php5-200510200830/sapi/apache/mod_php5.c:270
#8  0xd1171078 in php_init_handler (s=0x7, p=0x20140708)
at /usr/ins/php5-200510200830/sapi/apache/mod_php5.c:918
#9  0x1001b95c in ap_init_modules ()
#10 0x10008130 in main ()
(gdb)
OK?


Previous Comments:


[2005-11-17 13:18:45] [EMAIL PROTECTED]

How about the *backtrace* ?
Typ `bt` when you got the segfault.



[2005-11-17 13:08:37] michal_czerniak at o2 dot pl

GNU gdb 6.2.1
Copyright 2004 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 "powerpc-ibm-aix5.1.0.0"...
(gdb) run -X
Starting program: /usr/local/apache/bin/httpd -X

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1]
0xd127d4a8 in tds_alloc_context ()
   from /usr/local/freetds/lib/libsybdb.a(libsybdb.so.5)
(gdb)



[2005-11-03 01:00:06] php-bugs at lists dot php dot net

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



[2005-10-26 09:58:41] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.





[2005-10-26 09:56:08] michal_czerniak at o2 dot pl

Description:

I'm trying to build php with mssql support. 
I've tried almost all possible combinations of 
arguments, but after successfull compilation apache segfaults. 
My last try was with apache 1.3.34 (I have tried with 1.3.32,33, 
2.0.48) 
./configure --enable-module=so 
make 
make install 
-OK, runs fine 
php5-200510200830 (prievously almost all versions from 4.3 to 5.1RC): 
./configure --prefix=/usr/local/php51 
--with-apxs=/usr/local/apache/bin/apxs --with-mssql=/usr/local/freetds

--disable-all 
make 
make instal 
-OK 
root /usr/local/apache/bin > ./apachectl start 
./apachectl[86]: 311404 Segmentation fault(coredump) 
./apachectl start: httpd could not be started 

When I remove freetds from php configuration, everything works fine. 
Freetds tested manualy from command line also works fine.






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


#35259 [Opn->Bgs]: This code is throwing fatal error..I dnt know Y it is happening ? Pls help me.

2005-11-17 Thread tony2001
 ID:   35259
 Updated by:   [EMAIL PROTECTED]
 Reported By:  smksankar at yahoo dot com
-Status:   Open
+Status:   Bogus
 Bug Type: Unknown/Other Function
 Operating System: windows
 PHP Version:  5.0.5
 New Comment:

Obviously, you need to install php_printer.dll to be able to use it.


Previous Comments:


[2005-11-17 13:26:46] smksankar at yahoo dot com

Description:

Hi,
This code is throwing fatal error..I dnt know Y it is happening ? Pls
help me..

This is the code...



Its giving the error..
Error :
Fatal error: Call to undefined function printer_open() in
c:\wamp\www\everfinn\sans\school\school_view.php on line 16


Please help me anybody..

I installed php_installer.php in PHP Folder.

Thanks and Regards,
Stephen Raj

Reproduce code:
---
This is the code...



Expected result:

Just I want to print some contents.






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


#35219 [Bgs]: error in date() - function

2005-11-17 Thread tony2001
 ID:   35219
 Updated by:   [EMAIL PROTECTED]
 Reported By:  mail at harendt dot de
 Status:   Bogus
 Bug Type: Date/time related
 Operating System: Linux infong 2.4 #1 SMP Thu Jan
 PHP Version:  4.4.1
 Assigned To:  derick
 New Comment:

Ok, this is what ISO says:
"In commercial and industrial applications (delivery times, production
plans, etc.), especially in Europe, it is often required to refer to a
week of a year. Week 01 of a year is per definition the first week that
has the Thursday in this year, which is equivalent to the week that
contains the fourth day of January. In other words, the first week of a
new year is the week that has the majority of its days in the new year.
Week 01 might also contain days from the previous year and the week
before week 01 of a year is the last week (52 or 53) of the previous
year even if it contains days from the new year. A week starts with
Monday (day 1) and ends with Sunday (day 7)."
http://www.cl.cam.ac.uk/~mgk25/iso-time.html


Previous Comments:


[2005-11-17 13:13:15] [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

http://php.net/date, see the \"W\" modifier, which returns the ISO week
of the year. There is nothing wrong here.



[2005-11-14 19:56:25] [EMAIL PROTECTED]

Derick, take a look at it plz.
# date -d "2006-01-01 00:00:00" +"%W"
00




[2005-11-14 19:01:58] mail at harendt dot de

Description:

The function "date" called with the parameter "W" to give the number of
the week is wrong when thr year turns.
For example the function give for sunday, 01.01.2006 the week number
52.

Reproduce code:
---
 week = $WEEK, $DAY,
$nrDAY.$MNTH.$YEAR,   $HR.$MIN ";
}   
}
?>


Expected result:

1135724400 (00, 00) --> week = 52, Wed, 28.12.05, 00.00 
1135753200 (00, 08) --> week = 52, Wed, 28.12.05, 08.00 
1135782000 (00, 16) --> week = 52, Wed, 28.12.05, 16.00 
1135810800 (01, 00) --> week = 52, Thu, 29.12.05, 00.00 
1135839600 (01, 08) --> week = 52, Thu, 29.12.05, 08.00 
1135868400 (01, 16) --> week = 52, Thu, 29.12.05, 16.00 
1135897200 (02, 00) --> week = 52, Fri, 30.12.05, 00.00 
1135926000 (02, 08) --> week = 52, Fri, 30.12.05, 08.00 
1135954800 (02, 16) --> week = 52, Fri, 30.12.05, 16.00 
1135983600 (03, 00) --> week = 52, Sat, 31.12.05, 00.00 
1136012400 (03, 08) --> week = 52, Sat, 31.12.05, 08.00 
1136041200 (03, 16) --> week = 52, Sat, 31.12.05, 16.00 
113607 (04, 00) --> week = 52, Sun, 01.01.06, 00.00 !!
1136098800 (04, 08) --> week = 52, Sun, 01.01.06, 08.00 !!
1136127600 (04, 16) --> week = 52, Sun, 01.01.06, 16.00 !! 
1136156400 (05, 00) --> week = 01, Mon, 02.01.06, 00.00 
1136185200 (05, 08) --> week = 01, Mon, 02.01.06, 08.00 
1136214000 (05, 16) --> week = 01, Mon, 02.01.06, 16.00 








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


#35259 [NEW]: This code is throwing fatal error..I dnt know Y it is happening ? Pls help me.

2005-11-17 Thread smksankar at yahoo dot com
From: smksankar at yahoo dot com
Operating system: windows
PHP version:  5.0.5
PHP Bug Type: Unknown/Other Function
Bug description:  This code is throwing fatal error..I dnt know Y it is 
happening ? Pls help me.

Description:

Hi,
This code is throwing fatal error..I dnt know Y it is happening ? Pls help
me..

This is the code...



Its giving the error..
Error :
Fatal error: Call to undefined function printer_open() in
c:\wamp\www\everfinn\sans\school\school_view.php on line 16


Please help me anybody..

I installed php_installer.php in PHP Folder.

Thanks and Regards,
Stephen Raj

Reproduce code:
---
This is the code...



Expected result:

Just I want to print some contents.


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


#35253 [Fbk->Opn]: Length of the encoded character string violates a RFC.

2005-11-17 Thread s dot masugata at digicom dot dnp dot co dot jp
 ID:   35253
 User updated by:  s dot masugata at digicom dot dnp dot co dot jp
 Reported By:  s dot masugata at digicom dot dnp dot co dot jp
-Status:   Feedback
+Status:   Open
 Bug Type: mbstring related
 Operating System: Solaris8
 PHP Version:  4.4.1
 New Comment:

Attempted to try in php5-200511170730 but the status doesn't change.


Previous Comments:


[2005-11-17 09:21:34] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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





[2005-11-17 06:04:38] s dot masugata at digicom dot dnp dot co dot jp

Description:

Length of the encoded character string violates a RFC.
It violates a RFC when encoding a character string using the
mb_encode_mimeheader function.

As for the e-mail header, the total of the field identifier, the field
value and the line feed character is defined as being less than 76
characters.
It processes mb_encode_mimeheader function only using the field value.
Therefore, the field length at the head violates a RFC.

Reproduce code:
---







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


#34987 [Opn->Fbk]: AIX 5.2, APACHE 1, PHP4-5, FREETDS

2005-11-17 Thread tony2001
 ID:   34987
 Updated by:   [EMAIL PROTECTED]
 Reported By:  michal_czerniak at o2 dot pl
-Status:   Open
+Status:   Feedback
 Bug Type: Compile Failure
 Operating System: AIX 5.2L
 PHP Version:  5.0.5
 New Comment:

How about the *backtrace* ?
Typ `bt` when you got the segfault.


Previous Comments:


[2005-11-17 13:08:37] michal_czerniak at o2 dot pl

GNU gdb 6.2.1
Copyright 2004 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 "powerpc-ibm-aix5.1.0.0"...
(gdb) run -X
Starting program: /usr/local/apache/bin/httpd -X

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1]
0xd127d4a8 in tds_alloc_context ()
   from /usr/local/freetds/lib/libsybdb.a(libsybdb.so.5)
(gdb)



[2005-11-03 01:00:06] php-bugs at lists dot php dot net

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



[2005-10-26 09:58:41] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.





[2005-10-26 09:56:08] michal_czerniak at o2 dot pl

Description:

I'm trying to build php with mssql support. 
I've tried almost all possible combinations of 
arguments, but after successfull compilation apache segfaults. 
My last try was with apache 1.3.34 (I have tried with 1.3.32,33, 
2.0.48) 
./configure --enable-module=so 
make 
make install 
-OK, runs fine 
php5-200510200830 (prievously almost all versions from 4.3 to 5.1RC): 
./configure --prefix=/usr/local/php51 
--with-apxs=/usr/local/apache/bin/apxs --with-mssql=/usr/local/freetds

--disable-all 
make 
make instal 
-OK 
root /usr/local/apache/bin > ./apachectl start 
./apachectl[86]: 311404 Segmentation fault(coredump) 
./apachectl start: httpd could not be started 

When I remove freetds from php configuration, everything works fine. 
Freetds tested manualy from command line also works fine.






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


#35255 [Opn]: imagettftext, imagettfbbox and imageFTBBox broken on 64 bit

2005-11-17 Thread phpbugs at exozet dot com
 ID:   35255
 User updated by:  phpbugs at exozet dot com
 Reported By:  phpbugs at exozet dot com
 Status:   Open
 Bug Type: GD related
 Operating System: OpenSuSE 10.0 x86_64
 PHP Version:  4.4.1
 Assigned To:  pajoye
 New Comment:

here is the font:
http://www.exozet.com/phpbug-1/arial.ttf

Normally I didn't configure with 'ttf' (freetype1). But I tried it and
nothing changed.

May it helps to disable t1lib and ttf? (on 32bit it es enables and it
works, grrr... :-)


Previous Comments:


[2005-11-17 13:10:28] phpbugs at exozet dot com

@tony2001
in PHP 4.3.11 I have allway a x coordiante = 0:
http://www.exozet.com/phpbug-1/64bit/php-4.3.11/stdout.txt
in PHP => 4.4.1 the coordiantes are like this high values:
http://www.exozet.com/phpbug-1/64bit/php-4.4.1/stdout.txt

it must be:
http://www.exozet.com/phpbug-1/32bit/php-4.3.11/stdout.txt
http://www.exozet.com/phpbug-1/32bit/php-4.4.1/stdout.txt



[2005-11-17 12:54:19] [EMAIL PROTECTED]

I can see the very same result on x86 host.
Doesn't look like a bug to me (yes, it's perfectly fine to have
negative coordinates).



[2005-11-17 12:29:35] [EMAIL PROTECTED]

Please provide the font you use.

I fail to see the relation between t1lib and the ttf functions.

4.3.x is a dead branche. 4.4.x is the active php4 branche. 



[2005-11-17 11:32:39] phpbugs at exozet dot com

configure and make w/o t1lib successful.
But the result of testpic.php is nearly the same as in 4.4.1!
Get a look:
http://www.exozet.com/phpbug-1/64bit/php5-200511170730/



[2005-11-17 10:10:47] phpbugs at exozet dot com

Sorry, but PHP 5 didn't helps us.
I compiled PHP in 32bit mode but the same results.
So please give us a hint to fix that problem in our configuration.
In the moment I compile your PHP5-lastest. First the t1lib is outdatet
and I compile my own.
Now, configure is done, and make is in progress...
btw. you find the loggings of the configure's and make's in the
directorys under the URL I provided.
Can't make it! Errors with T1_StrError. I try w/o t1lib. You can find
the make-failed_t1.log here:
http://www.exozet.com/phpbug-1/64bit/php5-200511170730/make-failed_t1.log



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

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


#35219 [Asn->Bgs]: error in date() - function

2005-11-17 Thread derick
 ID:   35219
 Updated by:   [EMAIL PROTECTED]
 Reported By:  mail at harendt dot de
-Status:   Assigned
+Status:   Bogus
 Bug Type: Date/time related
 Operating System: Linux infong 2.4 #1 SMP Thu Jan
 PHP Version:  4.4.1
 Assigned To:  derick
 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

http://php.net/date, see the "W" modifier, which returns the ISO week
of the year. There is nothing wrong here.


Previous Comments:


[2005-11-14 19:56:25] [EMAIL PROTECTED]

Derick, take a look at it plz.
# date -d "2006-01-01 00:00:00" +"%W"
00




[2005-11-14 19:01:58] mail at harendt dot de

Description:

The function "date" called with the parameter "W" to give the number of
the week is wrong when thr year turns.
For example the function give for sunday, 01.01.2006 the week number
52.

Reproduce code:
---
 week = $WEEK, $DAY,
$nrDAY.$MNTH.$YEAR,   $HR.$MIN ";
}   
}
?>


Expected result:

1135724400 (00, 00) --> week = 52, Wed, 28.12.05, 00.00 
1135753200 (00, 08) --> week = 52, Wed, 28.12.05, 08.00 
1135782000 (00, 16) --> week = 52, Wed, 28.12.05, 16.00 
1135810800 (01, 00) --> week = 52, Thu, 29.12.05, 00.00 
1135839600 (01, 08) --> week = 52, Thu, 29.12.05, 08.00 
1135868400 (01, 16) --> week = 52, Thu, 29.12.05, 16.00 
1135897200 (02, 00) --> week = 52, Fri, 30.12.05, 00.00 
1135926000 (02, 08) --> week = 52, Fri, 30.12.05, 08.00 
1135954800 (02, 16) --> week = 52, Fri, 30.12.05, 16.00 
1135983600 (03, 00) --> week = 52, Sat, 31.12.05, 00.00 
1136012400 (03, 08) --> week = 52, Sat, 31.12.05, 08.00 
1136041200 (03, 16) --> week = 52, Sat, 31.12.05, 16.00 
113607 (04, 00) --> week = 52, Sun, 01.01.06, 00.00 !!
1136098800 (04, 08) --> week = 52, Sun, 01.01.06, 08.00 !!
1136127600 (04, 16) --> week = 52, Sun, 01.01.06, 16.00 !! 
1136156400 (05, 00) --> week = 01, Mon, 02.01.06, 00.00 
1136185200 (05, 08) --> week = 01, Mon, 02.01.06, 08.00 
1136214000 (05, 16) --> week = 01, Mon, 02.01.06, 16.00 








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


#35255 [Fbk->Opn]: imagettftext, imagettfbbox and imageFTBBox broken on 64 bit

2005-11-17 Thread phpbugs at exozet dot com
 ID:   35255
 User updated by:  phpbugs at exozet dot com
 Reported By:  phpbugs at exozet dot com
-Status:   Feedback
+Status:   Open
 Bug Type: GD related
 Operating System: OpenSuSE 10.0 x86_64
 PHP Version:  4.4.1
 Assigned To:  pajoye
 New Comment:

@tony2001
in PHP 4.3.11 I have allway a x coordiante = 0:
http://www.exozet.com/phpbug-1/64bit/php-4.3.11/stdout.txt
in PHP => 4.4.1 the coordiantes are like this high values:
http://www.exozet.com/phpbug-1/64bit/php-4.4.1/stdout.txt

it must be:
http://www.exozet.com/phpbug-1/32bit/php-4.3.11/stdout.txt
http://www.exozet.com/phpbug-1/32bit/php-4.4.1/stdout.txt


Previous Comments:


[2005-11-17 12:54:19] [EMAIL PROTECTED]

I can see the very same result on x86 host.
Doesn't look like a bug to me (yes, it's perfectly fine to have
negative coordinates).



[2005-11-17 12:29:35] [EMAIL PROTECTED]

Please provide the font you use.

I fail to see the relation between t1lib and the ttf functions.

4.3.x is a dead branche. 4.4.x is the active php4 branche. 



[2005-11-17 11:32:39] phpbugs at exozet dot com

configure and make w/o t1lib successful.
But the result of testpic.php is nearly the same as in 4.4.1!
Get a look:
http://www.exozet.com/phpbug-1/64bit/php5-200511170730/



[2005-11-17 10:10:47] phpbugs at exozet dot com

Sorry, but PHP 5 didn't helps us.
I compiled PHP in 32bit mode but the same results.
So please give us a hint to fix that problem in our configuration.
In the moment I compile your PHP5-lastest. First the t1lib is outdatet
and I compile my own.
Now, configure is done, and make is in progress...
btw. you find the loggings of the configure's and make's in the
directorys under the URL I provided.
Can't make it! Errors with T1_StrError. I try w/o t1lib. You can find
the make-failed_t1.log here:
http://www.exozet.com/phpbug-1/64bit/php5-200511170730/make-failed_t1.log



[2005-11-17 09:38:34] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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

We only start supporting 64bit support in 5.1 and above.



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

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


#34987 [NoF->Opn]: AIX 5.2, APACHE 1, PHP4-5, FREETDS

2005-11-17 Thread michal_czerniak at o2 dot pl
 ID:   34987
 User updated by:  michal_czerniak at o2 dot pl
 Reported By:  michal_czerniak at o2 dot pl
-Status:   No Feedback
+Status:   Open
 Bug Type: Compile Failure
 Operating System: AIX 5.2L
 PHP Version:  5.0.5
 New Comment:

GNU gdb 6.2.1
Copyright 2004 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 "powerpc-ibm-aix5.1.0.0"...
(gdb) run -X
Starting program: /usr/local/apache/bin/httpd -X

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1]
0xd127d4a8 in tds_alloc_context ()
   from /usr/local/freetds/lib/libsybdb.a(libsybdb.so.5)
(gdb)


Previous Comments:


[2005-11-03 01:00:06] php-bugs at lists dot php dot net

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



[2005-10-26 09:58:41] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.





[2005-10-26 09:56:08] michal_czerniak at o2 dot pl

Description:

I'm trying to build php with mssql support. 
I've tried almost all possible combinations of 
arguments, but after successfull compilation apache segfaults. 
My last try was with apache 1.3.34 (I have tried with 1.3.32,33, 
2.0.48) 
./configure --enable-module=so 
make 
make install 
-OK, runs fine 
php5-200510200830 (prievously almost all versions from 4.3 to 5.1RC): 
./configure --prefix=/usr/local/php51 
--with-apxs=/usr/local/apache/bin/apxs --with-mssql=/usr/local/freetds

--disable-all 
make 
make instal 
-OK 
root /usr/local/apache/bin > ./apachectl start 
./apachectl[86]: 311404 Segmentation fault(coredump) 
./apachectl start: httpd could not be started 

When I remove freetds from php configuration, everything works fine. 
Freetds tested manualy from command line also works fine.






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


#35255 [Fbk]: imagettftext, imagettfbbox and imageFTBBox broken on 64 bit

2005-11-17 Thread tony2001
 ID:   35255
 Updated by:   [EMAIL PROTECTED]
 Reported By:  phpbugs at exozet dot com
 Status:   Feedback
 Bug Type: GD related
 Operating System: OpenSuSE 10.0 x86_64
 PHP Version:  4.4.1
 Assigned To:  pajoye
 New Comment:

I can see the very same result on x86 host.
Doesn't look like a bug to me (yes, it's perfectly fine to have
negative coordinates).


Previous Comments:


[2005-11-17 12:29:35] [EMAIL PROTECTED]

Please provide the font you use.

I fail to see the relation between t1lib and the ttf functions.

4.3.x is a dead branche. 4.4.x is the active php4 branche. 



[2005-11-17 11:32:39] phpbugs at exozet dot com

configure and make w/o t1lib successful.
But the result of testpic.php is nearly the same as in 4.4.1!
Get a look:
http://www.exozet.com/phpbug-1/64bit/php5-200511170730/



[2005-11-17 10:10:47] phpbugs at exozet dot com

Sorry, but PHP 5 didn't helps us.
I compiled PHP in 32bit mode but the same results.
So please give us a hint to fix that problem in our configuration.
In the moment I compile your PHP5-lastest. First the t1lib is outdatet
and I compile my own.
Now, configure is done, and make is in progress...
btw. you find the loggings of the configure's and make's in the
directorys under the URL I provided.
Can't make it! Errors with T1_StrError. I try w/o t1lib. You can find
the make-failed_t1.log here:
http://www.exozet.com/phpbug-1/64bit/php5-200511170730/make-failed_t1.log



[2005-11-17 09:38:34] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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

We only start supporting 64bit support in 5.1 and above.



[2005-11-17 09:34:05] phpbugs at exozet dot com

Description:

imagettftext() ignores x coordiantes in this PHP 4.3.11 (#34951). The
same code works properly in the SAME version but compiled on the same
machine with SuSE/Linux 9.2 x64_64.
On a 32bit Machine with OpenSuSE 10.0 and the same configure and so on
it works.

In addition I tested PHP 4.4.1 and the stable snapshot
php4-STABLE-200511161138. The result are totaly out of range and not
the same as in 4.3.11.

I put the results, the "make test" output, the rpm list and the source
code under http://www.exozet.com/phpbug-1/

So I need a patch / workaround for PHP 4.3.11 and PHP 4.4.1 (yes, yes,
PHP 4.3.11, but many applications didn't work under 4.4.1 so we need
the 4.3.11!)

Thanks a lot...


Reproduce code:
---


Expected result:

imagettftext:
Array
(
[0] => 111
[1] => 27
[2] => 219
[3] => 27
[4] => 219
[5] => 1
[6] => 111
[7] => 1
)
imagettfbbox:
Array
(
[0] => 0
[1] => 5
[2] => 108
[3] => 5
[4] => 108
[5] => -21
[6] => 0
[7] => -21
)
imageFTBBox:
Array
(
[0] => 0
[1] => 5
[2] => 108
[3] => 5
[4] => 108
[5] => -21
[6] => 0
[7] => -21
)


Actual result:
--
imagettftext:
Array
(
[0] => 0
[1] => 27
[2] => 108
[3] => 27
[4] => 108
[5] => 0
[6] => 0
[7] => 0
)
imagettfbbox:
Array
(
[0] => -1
[1] => 5
[2] => 107
[3] => 5
[4] => 107
[5] => -21
[6] => -1
[7] => -21
)
imageFTBBox:
Array
(
[0] => -1
[1] => 5
[2] => 107
[3] => 5
[4] => 107
[5] => -21
[6] => -1
[7] => -21
)






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


#35186 [Opn]: getcwd() returns "/" when using with mod_rewrite

2005-11-17 Thread samm at os2 dot kiev dot ua
 ID:   35186
 User updated by:  samm at os2 dot kiev dot ua
 Reported By:  samm at os2 dot kiev dot ua
 Status:   Open
 Bug Type: Apache2 related
 Operating System: FreeBSD 6
 PHP Version:  5CVS, 4CVS (2005-11-11) (snap)
 New Comment:

Just to make you absolutely sure i repeat this tests with latest php5
cvs snapshot (php5-200511170930). 
Configure string was "./configure --with-apxs2=/usr/local/sbin/apxs".
$ grep php httpd.conf
LoadModule php5_module
/usr/home/samm/src/php/php5-200511170930/libs/libphp5.so
DirectoryIndex index.php index.html index.html.var
AddType application/x-httpd-php .php .phtml

test.php content:


You can see result of this script, which i uploaded to my server:

test.php output when requested as test.html:
http://www.uba.ua/test/phptest/test.html.out.html
test.php output when requested as test.php:
http://www.uba.ua/test/phptest/test.php.out.html

I hope, this help you and you will not ask me again if i use latest php
;-)


Previous Comments:


[2005-11-17 10:59:45] samm at os2 dot kiev dot ua

Yes, i tried with latest PHP too.
See "I check this with php5-200511102130 - the bug is still present.".



[2005-11-17 09:41:59] [EMAIL PROTECTED]

You're using the PHP 4 snapshot. Did you or did you not try the 5.1
snapshot I asked you?!



[2005-11-14 20:51:57] adsh at univ dot kiev dot ua

I have blank reply in 5 attempts with instructions in the 1-st
message.

telnet www.server.kiev.ua 80
Trying 193.xxx.xxx.xxx...
Connected to www.server.kiev.ua.
Escape character is '^]'.
GET http://www.server.kiev.ua/test/test.html HTTP/1.0

HTTP/1.0 200 OK
Date: Mon, 14 Nov 2005 19:42:58 GMT
Server: Apache/2.0.55 (FreeBSD)
X-Powered-By: PHP/4.4.2-dev
Content-Length: 0
Connection: close
Content-Type: text/html; charset=windows-1251

Connection closed by foreign host.

php4-STABLE-200511131945,  FreeBSD 4.11



[2005-11-11 08:04:02] samm at os2 dot kiev dot ua

I played with different version of the  sapi_apache2.c and found that
last working version was 1.1.2.40 and first failed was 1.1.2.40.2.5 . I
was unable to check versions between this, because they failed to work
with mod_rewrite giving no output at all. I hope, this help you.



[2005-11-11 06:27:55] samm at os2 dot kiev dot ua

HAVE_BROKEN_GETCWD is undefined
/* Define if system has broken getcwd */   

/* #undef HAVE_BROKEN_GETCWD */

And i used last LoadModule item for the php4_module in the httpd.conf:

LoadModule php4_module
/usr/home/samm/src/php4-STABLE-200511101949/libs/libphp4.so
   

Also i have

AddType application/x-httpd-php .php .phtml

to enable parsing of php.



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

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


#35257 [Opn->Csd]: Calling ob_flush after creating an ob callback causes "Segmentation fault"

2005-11-17 Thread tony2001
 ID:   35257
 Updated by:   [EMAIL PROTECTED]
 Reported By:  maddog2k at maddog2k dot net
-Status:   Open
+Status:   Closed
 Bug Type: Output Control
 Operating System: Linux
 PHP Version:  4.4.1
 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:


[2005-11-17 12:01:53] maddog2k at maddog2k dot net

Description:

This is a copy of bug #35156, which is closed...

The code there still segfaults with php4-STABLE-200511160748 (combined
with at least Apache 2.0.54/.55).

I disabled Zend Optimizer, no change.

I've put ob_* functions now into 'disabled_functions' and the logs
(Shared Hosting Server) remain free from Segmentation faults.

Reproduce code:
---
(taken from bug #35156)

 

Expected result:

(taken from bug #35156)

Before
After


Actual result:
--
Apache child Segmentation fault

[Thu Nov 17 11:08:59 2005] [notice] child pid 4657 exit signal
Segmentation fault (11)







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


#35255 [Opn->Fbk]: imagettftext, imagettfbbox and imageFTBBox broken on 64 bit

2005-11-17 Thread pajoye
 ID:   35255
 Updated by:   [EMAIL PROTECTED]
 Reported By:  phpbugs at exozet dot com
-Status:   Open
+Status:   Feedback
 Bug Type: GD related
 Operating System: OpenSuSE 10.0 x86_64
 PHP Version:  4.4.1
-Assigned To:  
+Assigned To:  pajoye
 New Comment:

Please provide the font you use.

I fail to see the relation between t1lib and the ttf functions.

4.3.x is a dead branche. 4.4.x is the active php4 branche. 


Previous Comments:


[2005-11-17 11:32:39] phpbugs at exozet dot com

configure and make w/o t1lib successful.
But the result of testpic.php is nearly the same as in 4.4.1!
Get a look:
http://www.exozet.com/phpbug-1/64bit/php5-200511170730/



[2005-11-17 10:10:47] phpbugs at exozet dot com

Sorry, but PHP 5 didn't helps us.
I compiled PHP in 32bit mode but the same results.
So please give us a hint to fix that problem in our configuration.
In the moment I compile your PHP5-lastest. First the t1lib is outdatet
and I compile my own.
Now, configure is done, and make is in progress...
btw. you find the loggings of the configure's and make's in the
directorys under the URL I provided.
Can't make it! Errors with T1_StrError. I try w/o t1lib. You can find
the make-failed_t1.log here:
http://www.exozet.com/phpbug-1/64bit/php5-200511170730/make-failed_t1.log



[2005-11-17 09:38:34] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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

We only start supporting 64bit support in 5.1 and above.



[2005-11-17 09:34:05] phpbugs at exozet dot com

Description:

imagettftext() ignores x coordiantes in this PHP 4.3.11 (#34951). The
same code works properly in the SAME version but compiled on the same
machine with SuSE/Linux 9.2 x64_64.
On a 32bit Machine with OpenSuSE 10.0 and the same configure and so on
it works.

In addition I tested PHP 4.4.1 and the stable snapshot
php4-STABLE-200511161138. The result are totaly out of range and not
the same as in 4.3.11.

I put the results, the "make test" output, the rpm list and the source
code under http://www.exozet.com/phpbug-1/

So I need a patch / workaround for PHP 4.3.11 and PHP 4.4.1 (yes, yes,
PHP 4.3.11, but many applications didn't work under 4.4.1 so we need
the 4.3.11!)

Thanks a lot...


Reproduce code:
---


Expected result:

imagettftext:
Array
(
[0] => 111
[1] => 27
[2] => 219
[3] => 27
[4] => 219
[5] => 1
[6] => 111
[7] => 1
)
imagettfbbox:
Array
(
[0] => 0
[1] => 5
[2] => 108
[3] => 5
[4] => 108
[5] => -21
[6] => 0
[7] => -21
)
imageFTBBox:
Array
(
[0] => 0
[1] => 5
[2] => 108
[3] => 5
[4] => 108
[5] => -21
[6] => 0
[7] => -21
)


Actual result:
--
imagettftext:
Array
(
[0] => 0
[1] => 27
[2] => 108
[3] => 27
[4] => 108
[5] => 0
[6] => 0
[7] => 0
)
imagettfbbox:
Array
(
[0] => -1
[1] => 5
[2] => 107
[3] => 5
[4] => 107
[5] => -21
[6] => -1
[7] => -21
)
imageFTBBox:
Array
(
[0] => -1
[1] => 5
[2] => 107
[3] => 5
[4] => 107
[5] => -21
[6] => -1
[7] => -21
)






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


#35247 [Fbk]: setParameter not set if value contains single quote character ' on Windows

2005-11-17 Thread rrichards
 ID:   35247
 Updated by:   [EMAIL PROTECTED]
 Reported By:  junkmail at eighteyes dot com
 Status:   Feedback
 Bug Type: XSLT related
 Operating System: Windows 2000
 PHP Version:  5.0.5
 New Comment:

Chregu, This shouldn't work on any platform if I am correct. In PHP 5.1
a warning is explicity issued as this case is specifically tested in XSL
extension:
Warning: XSLTProcessor::transformToXml(): Cannot create XPath
expression (string contains both quote and double-quotes)


Previous Comments:


[2005-11-17 06:52:59] [EMAIL PROTECTED]

Can you also check the libxslt and libxml2 version? And if 
possible upgrade to the latest releases.



[2005-11-16 21:08:30] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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





[2005-11-16 21:06:28] junkmail at eighteyes dot com

Description:

This error ocurs when the value of the parameter set with setParameter
contains:
- an xml/html tag with an attribute
- a single quote character in the tag's value

The parameter value will not be set. The function doesn't return FALSE
either, making you think the value was successfully set. This only
happens on my Windows setup, not in Linux.

If the tag doesn't contain an attribute, or the tag's value doesn't
contain a single quote, the error does not occur.

Reproduce code:
---
$xml = new DOMDocument();
$xml->loadXML('');

$xsl=new DOMDocument();
$xsl->loadXML('http://www.w3.org/1999/XSL/Transform";>ERROR');

$list = <setParameter('', 'parameter', $list);
$xslt->importStyleSheet($xsl);
print $xslt->transformToXML($xml);

Expected result:

parameter's value


Actual result:
--
ERROR





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


#35258 [NEW]: preg_replace() doesn't release memory

2005-11-17 Thread [EMAIL PROTECTED]
From: [EMAIL PROTECTED]
Operating system: Linux
PHP version:  4.4.1
PHP Bug Type: Performance problem
Bug description:  preg_replace() doesn't release memory

Description:

preg_replace() doesn't seem to release the memory used to do its
operation.

Simple example using preg_replace():

php -r 'var_dump(memory_get_usage()); $input = str_pad("", 5, "foo");
var_dump(memory_get_usage()); $input = preg_replace(";foo;", "", $input);
var_dump(memory_get_usage());'

int(15216)
int(65320)
int(115352)


Simple example using ereg_replace():

php -r 'var_dump(memory_get_usage()); $input = str_pad("", 5, "foo");
var_dump(memory_get_usage()); $input = ereg_replace("foo", "", $input);
var_dump(memory_get_usage());'

int(15208)
int(65312)
int(15312)

Maybe this is just a documentation issue, but than it should be noted. The
documentation says that preg_ is faster, which it is, and the documentation
somewhere mentiones a regex cache, but it doesn't say that the amount of
memory grows by the size of the input sring.

It's an interesting behaviour which should be considered when memory is an
issue.


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


#35257 [NEW]: Calling ob_flush after creating an ob callback causes "Segmentation fault"

2005-11-17 Thread maddog2k at maddog2k dot net
From: maddog2k at maddog2k dot net
Operating system: Linux
PHP version:  4.4.1
PHP Bug Type: Output Control
Bug description:  Calling ob_flush after creating an ob callback causes 
"Segmentation fault"

Description:

This is a copy of bug #35156, which is closed...

The code there still segfaults with php4-STABLE-200511160748 (combined
with at least Apache 2.0.54/.55).

I disabled Zend Optimizer, no change.

I've put ob_* functions now into 'disabled_functions' and the logs (Shared
Hosting Server) remain free from Segmentation faults.

Reproduce code:
---
(taken from bug #35156)

 

Expected result:

(taken from bug #35156)

Before
After


Actual result:
--
Apache child Segmentation fault

[Thu Nov 17 11:08:59 2005] [notice] child pid 4657 exit signal
Segmentation fault (11)



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


#35255 [Opn]: imagettftext, imagettfbbox and imageFTBBox broken on 64 bit

2005-11-17 Thread phpbugs at exozet dot com
 ID:   35255
 User updated by:  phpbugs at exozet dot com
 Reported By:  phpbugs at exozet dot com
 Status:   Open
 Bug Type: GD related
 Operating System: OpenSuSE 10.0 x86_64
 PHP Version:  4.4.1
 New Comment:

configure and make w/o t1lib successful.
But the result of testpic.php is nearly the same as in 4.4.1!
Get a look:
http://www.exozet.com/phpbug-1/64bit/php5-200511170730/


Previous Comments:


[2005-11-17 10:10:47] phpbugs at exozet dot com

Sorry, but PHP 5 didn't helps us.
I compiled PHP in 32bit mode but the same results.
So please give us a hint to fix that problem in our configuration.
In the moment I compile your PHP5-lastest. First the t1lib is outdatet
and I compile my own.
Now, configure is done, and make is in progress...
btw. you find the loggings of the configure's and make's in the
directorys under the URL I provided.
Can't make it! Errors with T1_StrError. I try w/o t1lib. You can find
the make-failed_t1.log here:
http://www.exozet.com/phpbug-1/64bit/php5-200511170730/make-failed_t1.log



[2005-11-17 09:38:34] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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

We only start supporting 64bit support in 5.1 and above.



[2005-11-17 09:34:05] phpbugs at exozet dot com

Description:

imagettftext() ignores x coordiantes in this PHP 4.3.11 (#34951). The
same code works properly in the SAME version but compiled on the same
machine with SuSE/Linux 9.2 x64_64.
On a 32bit Machine with OpenSuSE 10.0 and the same configure and so on
it works.

In addition I tested PHP 4.4.1 and the stable snapshot
php4-STABLE-200511161138. The result are totaly out of range and not
the same as in 4.3.11.

I put the results, the "make test" output, the rpm list and the source
code under http://www.exozet.com/phpbug-1/

So I need a patch / workaround for PHP 4.3.11 and PHP 4.4.1 (yes, yes,
PHP 4.3.11, but many applications didn't work under 4.4.1 so we need
the 4.3.11!)

Thanks a lot...


Reproduce code:
---


Expected result:

imagettftext:
Array
(
[0] => 111
[1] => 27
[2] => 219
[3] => 27
[4] => 219
[5] => 1
[6] => 111
[7] => 1
)
imagettfbbox:
Array
(
[0] => 0
[1] => 5
[2] => 108
[3] => 5
[4] => 108
[5] => -21
[6] => 0
[7] => -21
)
imageFTBBox:
Array
(
[0] => 0
[1] => 5
[2] => 108
[3] => 5
[4] => 108
[5] => -21
[6] => 0
[7] => -21
)


Actual result:
--
imagettftext:
Array
(
[0] => 0
[1] => 27
[2] => 108
[3] => 27
[4] => 108
[5] => 0
[6] => 0
[7] => 0
)
imagettfbbox:
Array
(
[0] => -1
[1] => 5
[2] => 107
[3] => 5
[4] => 107
[5] => -21
[6] => -1
[7] => -21
)
imageFTBBox:
Array
(
[0] => -1
[1] => 5
[2] => 107
[3] => 5
[4] => 107
[5] => -21
[6] => -1
[7] => -21
)






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


#35242 [Bgs]: Problem with comiling OCI 1.1.1 on PHP 5.1.0RC4

2005-11-17 Thread pawel at gmx dot net
 ID:   35242
 User updated by:  pawel at gmx dot net
 Reported By:  pawel at gmx dot net
 Status:   Bogus
 Bug Type: OCI8 related
 Operating System: Linux Slackware 2.4.28
 PHP Version:  5.1.0RC4
 New Comment:

It works! 
I tried removing configure and compiling with autoconf 2.59 but
downgraded autoconf did the job.

Thanks for help!


Previous Comments:


[2005-11-17 10:45:08] [EMAIL PROTECTED]

Remove ./configure before running ./buildconf --force.



[2005-11-17 10:38:02] pawel at gmx dot net

I used autoconf version 2.59 but now downgraded to 2.13. Buildconf
gives me this oputput:

./buildconf --force
Forcing buildconf
using default Zend directory
buildconf: checking installation...
buildconf: autoconf version 2.13 (ok)

When I use downgraded autoconf I still cannot compile new oci8
extension with PHP 5.1.0RC4 or snaphsot php5-200511161130. It works
fine with PHP 5.0.5 w/ oci8 1.1  and 5.1.0RC4 with oci8 v 1.0.



[2005-11-16 22:40:14] [EMAIL PROTECTED]

What autoconf version are you using?



[2005-11-16 22:39:17] [EMAIL PROTECTED]

You didn't run ./buildconf or it failed.
No bug here.



[2005-11-16 22:35:18] pawel at gmx dot net

1. ls -l ext/oci8 BEFORE make/make install:
total 252
-rw-r--r--  1 rura users   134 Sep  9 15:20 CREDITS
-rw-r--r--  1 rura users  2319 Sep  6 21:31 README
-rw-r--r--  1 rura users 11356 Sep  9 15:20 config.m4
-rw-r--r--  1 rura users   685 Sep  9 15:20 config.w32
-rw-r--r--  1 rura users 57033 Sep 22 14:09 oci8.c
-rw-r--r--  1 rura users  5143 Sep 15 19:25 oci8.dsp
-rw-r--r--  1 rura users 22097 Sep  6 23:42 oci8_collection.c
-rw-r--r--  1 rura users 57313 Sep  7 10:58 oci8_interface.c
-rw-r--r--  1 rura users 21308 Sep  6 23:42 oci8_lob.c
-rw-r--r--  1 rura users 32161 Sep 15 10:28 oci8_statement.c
-rw-r--r--  1 rura users  2520 Sep  9 15:20 php_oci8.h
-rw-r--r--  1 rura users 16903 Sep  6 23:44 php_oci8_int.h
drwxr-xr-x  2 root root   3928 Nov 16 23:06 tests

2. ls -l ext/oci8 AFTER make/make install:
total 396
-rw-r--r--  1 rura users134 Sep  9 15:20 CREDITS
-rw-r--r--  1 rura users   2319 Sep  6 21:31 README
-rw-r--r--  1 rura users  11356 Sep  9 15:20 config.m4
-rw-r--r--  1 rura users685 Sep  9 15:20 config.w32
-rw-r--r--  1 rura users  57033 Sep 22 14:09 oci8.c
-rw-r--r--  1 rura users   5143 Sep 15 19:25 oci8.dsp
-rw-r--r--  1 root root 302 Nov 16 23:30 oci8.lo
-rw-r--r--  1 root root  139760 Nov 16 23:30 oci8.o
-rw-r--r--  1 rura users  22097 Sep  6 23:42 oci8_collection.c
-rw-r--r--  1 rura users  57313 Sep  7 10:58 oci8_interface.c
-rw-r--r--  1 rura users  21308 Sep  6 23:42 oci8_lob.c
-rw-r--r--  1 rura users  32161 Sep 15 10:28 oci8_statement.c
-rw-r--r--  1 rura users   2520 Sep  9 15:20 php_oci8.h
-rw-r--r--  1 rura users  16903 Sep  6 23:44 php_oci8_int.h
drwxr-xr-x  2 root root3928 Nov 16 23:06 tests

3. grep -rnH "oci8" Makefile | grep LIBTOOL
Makefile:430:   $(LIBTOOL) --mode=compile $(CC)  -Iext/oci8/
-I/root/work/web/php-5.1.0/ext/oci8/ $(COMMON_FLAGS) $(CFLAGS_CLEAN)
$(EXTRA_CFLAGS) -c /root/work/web/php-5.1.0/ext/oci8/oci8.c -o
ext/oci8/oci8.lo



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

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


#35186 [Fbk->Opn]: getcwd() returns "/" when using with mod_rewrite

2005-11-17 Thread samm at os2 dot kiev dot ua
 ID:   35186
 User updated by:  samm at os2 dot kiev dot ua
 Reported By:  samm at os2 dot kiev dot ua
-Status:   Feedback
+Status:   Open
 Bug Type: Apache2 related
 Operating System: FreeBSD 6
 PHP Version:  5CVS, 4CVS (2005-11-11) (snap)
 New Comment:

Yes, i tried with latest PHP too.
See "I check this with php5-200511102130 - the bug is still present.".


Previous Comments:


[2005-11-17 09:41:59] [EMAIL PROTECTED]

You're using the PHP 4 snapshot. Did you or did you not try the 5.1
snapshot I asked you?!



[2005-11-14 20:51:57] adsh at univ dot kiev dot ua

I have blank reply in 5 attempts with instructions in the 1-st
message.

telnet www.server.kiev.ua 80
Trying 193.xxx.xxx.xxx...
Connected to www.server.kiev.ua.
Escape character is '^]'.
GET http://www.server.kiev.ua/test/test.html HTTP/1.0

HTTP/1.0 200 OK
Date: Mon, 14 Nov 2005 19:42:58 GMT
Server: Apache/2.0.55 (FreeBSD)
X-Powered-By: PHP/4.4.2-dev
Content-Length: 0
Connection: close
Content-Type: text/html; charset=windows-1251

Connection closed by foreign host.

php4-STABLE-200511131945,  FreeBSD 4.11



[2005-11-11 08:04:02] samm at os2 dot kiev dot ua

I played with different version of the  sapi_apache2.c and found that
last working version was 1.1.2.40 and first failed was 1.1.2.40.2.5 . I
was unable to check versions between this, because they failed to work
with mod_rewrite giving no output at all. I hope, this help you.



[2005-11-11 06:27:55] samm at os2 dot kiev dot ua

HAVE_BROKEN_GETCWD is undefined
/* Define if system has broken getcwd */   

/* #undef HAVE_BROKEN_GETCWD */

And i used last LoadModule item for the php4_module in the httpd.conf:

LoadModule php4_module
/usr/home/samm/src/php4-STABLE-200511101949/libs/libphp4.so
   

Also i have

AddType application/x-httpd-php .php .phtml

to enable parsing of php.



[2005-11-11 00:44:11] [EMAIL PROTECTED]

And what is HAVE_BROKEN_GETCWD set to in the generated
main/php_config.h file?





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

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


#35242 [Opn->Bgs]: Problem with comiling OCI 1.1.1 on PHP 5.1.0RC4

2005-11-17 Thread tony2001
 ID:   35242
 Updated by:   [EMAIL PROTECTED]
 Reported By:  pawel at gmx dot net
-Status:   Open
+Status:   Bogus
 Bug Type: OCI8 related
 Operating System: Linux Slackware 2.4.28
 PHP Version:  5.1.0RC4
 New Comment:

Remove ./configure before running ./buildconf --force.


Previous Comments:


[2005-11-17 10:38:02] pawel at gmx dot net

I used autoconf version 2.59 but now downgraded to 2.13. Buildconf
gives me this oputput:

./buildconf --force
Forcing buildconf
using default Zend directory
buildconf: checking installation...
buildconf: autoconf version 2.13 (ok)

When I use downgraded autoconf I still cannot compile new oci8
extension with PHP 5.1.0RC4 or snaphsot php5-200511161130. It works
fine with PHP 5.0.5 w/ oci8 1.1  and 5.1.0RC4 with oci8 v 1.0.



[2005-11-16 22:40:14] [EMAIL PROTECTED]

What autoconf version are you using?



[2005-11-16 22:39:17] [EMAIL PROTECTED]

You didn't run ./buildconf or it failed.
No bug here.



[2005-11-16 22:35:18] pawel at gmx dot net

1. ls -l ext/oci8 BEFORE make/make install:
total 252
-rw-r--r--  1 rura users   134 Sep  9 15:20 CREDITS
-rw-r--r--  1 rura users  2319 Sep  6 21:31 README
-rw-r--r--  1 rura users 11356 Sep  9 15:20 config.m4
-rw-r--r--  1 rura users   685 Sep  9 15:20 config.w32
-rw-r--r--  1 rura users 57033 Sep 22 14:09 oci8.c
-rw-r--r--  1 rura users  5143 Sep 15 19:25 oci8.dsp
-rw-r--r--  1 rura users 22097 Sep  6 23:42 oci8_collection.c
-rw-r--r--  1 rura users 57313 Sep  7 10:58 oci8_interface.c
-rw-r--r--  1 rura users 21308 Sep  6 23:42 oci8_lob.c
-rw-r--r--  1 rura users 32161 Sep 15 10:28 oci8_statement.c
-rw-r--r--  1 rura users  2520 Sep  9 15:20 php_oci8.h
-rw-r--r--  1 rura users 16903 Sep  6 23:44 php_oci8_int.h
drwxr-xr-x  2 root root   3928 Nov 16 23:06 tests

2. ls -l ext/oci8 AFTER make/make install:
total 396
-rw-r--r--  1 rura users134 Sep  9 15:20 CREDITS
-rw-r--r--  1 rura users   2319 Sep  6 21:31 README
-rw-r--r--  1 rura users  11356 Sep  9 15:20 config.m4
-rw-r--r--  1 rura users685 Sep  9 15:20 config.w32
-rw-r--r--  1 rura users  57033 Sep 22 14:09 oci8.c
-rw-r--r--  1 rura users   5143 Sep 15 19:25 oci8.dsp
-rw-r--r--  1 root root 302 Nov 16 23:30 oci8.lo
-rw-r--r--  1 root root  139760 Nov 16 23:30 oci8.o
-rw-r--r--  1 rura users  22097 Sep  6 23:42 oci8_collection.c
-rw-r--r--  1 rura users  57313 Sep  7 10:58 oci8_interface.c
-rw-r--r--  1 rura users  21308 Sep  6 23:42 oci8_lob.c
-rw-r--r--  1 rura users  32161 Sep 15 10:28 oci8_statement.c
-rw-r--r--  1 rura users   2520 Sep  9 15:20 php_oci8.h
-rw-r--r--  1 rura users  16903 Sep  6 23:44 php_oci8_int.h
drwxr-xr-x  2 root root3928 Nov 16 23:06 tests

3. grep -rnH "oci8" Makefile | grep LIBTOOL
Makefile:430:   $(LIBTOOL) --mode=compile $(CC)  -Iext/oci8/
-I/root/work/web/php-5.1.0/ext/oci8/ $(COMMON_FLAGS) $(CFLAGS_CLEAN)
$(EXTRA_CFLAGS) -c /root/work/web/php-5.1.0/ext/oci8/oci8.c -o
ext/oci8/oci8.lo



[2005-11-16 17:45:09] [EMAIL PROTECTED]

Please run `ls -l ext/oci8` and `grep -rnH "oci8" Makefile | grep
LIBTOOL` and paste the output here.




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

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


#35256 [Opn->Bgs]: base64_decode() error

2005-11-17 Thread derick
 ID:   35256
 Updated by:   [EMAIL PROTECTED]
 Reported By:  clubsky at gmail dot com
-Status:   Open
+Status:   Bogus
 Bug Type: Scripting Engine problem
 Operating System: freebsd 4.10
 PHP Version:  4.4.1
 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 use urlencode()


Previous Comments:


[2005-11-17 10:40:28] clubsky at gmail dot com

Description:

http://domain/test.php?s=c2Nob29sbmFtZT3O0rXEyMvJ+sK3yc+1xLCuus263iZzY2hvb2xpZD0xNzg3ODgmdmFsaWRhdGU9Y2x1YnNreQ==

but $_GET[s] value:

c2Nob29sbmFtZT3O0rXEyMvJ sK3yc
1xLCuus263iZzY2hvb2xpZD0xNzg3ODgmdmFsaWRhdGU9Y2x1YnNreQ==

base64_decode() return value error

Reproduce code:
---
http://domain/test.php?s=c2Nob29sbmFtZT3O0rXEyMvJ+sK3yc+1xLCuus263iZzY2hvb2xpZD0xNzg3ODgmdmFsaWRhdGU9Y2x1YnNreQ==

but $_GET[s] value:

c2Nob29sbmFtZT3O0rXEyMvJ sK3yc
1xLCuus263iZzY2hvb2xpZD0xNzg3ODgmdmFsaWRhdGU9Y2x1YnNreQ==

base64_decode() return value error

Expected result:

base64_decode() 

schoolname=ÎÒµÄÈËÉú·Éϵİ®ºÍºÞ&schoolid=178788

Actual result:
--
chaos code





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


#35256 [NEW]: base64_decode() error

2005-11-17 Thread clubsky at gmail dot com
From: clubsky at gmail dot com
Operating system: freebsd 4.10
PHP version:  4.4.1
PHP Bug Type: Scripting Engine problem
Bug description:  base64_decode() error

Description:

http://domain/test.php?s=c2Nob29sbmFtZT3O0rXEyMvJ+sK3yc+1xLCuus263iZzY2hvb2xpZD0xNzg3ODgmdmFsaWRhdGU9Y2x1YnNreQ==

but $_GET[s] value:

c2Nob29sbmFtZT3O0rXEyMvJ sK3yc
1xLCuus263iZzY2hvb2xpZD0xNzg3ODgmdmFsaWRhdGU9Y2x1YnNreQ==

base64_decode() return value error

Reproduce code:
---
http://domain/test.php?s=c2Nob29sbmFtZT3O0rXEyMvJ+sK3yc+1xLCuus263iZzY2hvb2xpZD0xNzg3ODgmdmFsaWRhdGU9Y2x1YnNreQ==

but $_GET[s] value:

c2Nob29sbmFtZT3O0rXEyMvJ sK3yc
1xLCuus263iZzY2hvb2xpZD0xNzg3ODgmdmFsaWRhdGU9Y2x1YnNreQ==

base64_decode() return value error

Expected result:

base64_decode() 

schoolname=ÎÒµÄÈËÉú·Éϵİ®ºÍºÞ&schoolid=178788

Actual result:
--
chaos code

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


#35242 [Fbk->Opn]: Problem with comiling OCI 1.1.1 on PHP 5.1.0RC4

2005-11-17 Thread pawel at gmx dot net
 ID:   35242
 User updated by:  pawel at gmx dot net
 Reported By:  pawel at gmx dot net
-Status:   Feedback
+Status:   Open
 Bug Type: OCI8 related
 Operating System: Linux Slackware 2.4.28
 PHP Version:  5.1.0RC4
 New Comment:

I used autoconf version 2.59 but now downgraded to 2.13. Buildconf
gives me this oputput:

./buildconf --force
Forcing buildconf
using default Zend directory
buildconf: checking installation...
buildconf: autoconf version 2.13 (ok)

When I use downgraded autoconf I still cannot compile new oci8
extension with PHP 5.1.0RC4 or snaphsot php5-200511161130. It works
fine with PHP 5.0.5 w/ oci8 1.1  and 5.1.0RC4 with oci8 v 1.0.


Previous Comments:


[2005-11-16 22:40:14] [EMAIL PROTECTED]

What autoconf version are you using?



[2005-11-16 22:39:17] [EMAIL PROTECTED]

You didn't run ./buildconf or it failed.
No bug here.



[2005-11-16 22:35:18] pawel at gmx dot net

1. ls -l ext/oci8 BEFORE make/make install:
total 252
-rw-r--r--  1 rura users   134 Sep  9 15:20 CREDITS
-rw-r--r--  1 rura users  2319 Sep  6 21:31 README
-rw-r--r--  1 rura users 11356 Sep  9 15:20 config.m4
-rw-r--r--  1 rura users   685 Sep  9 15:20 config.w32
-rw-r--r--  1 rura users 57033 Sep 22 14:09 oci8.c
-rw-r--r--  1 rura users  5143 Sep 15 19:25 oci8.dsp
-rw-r--r--  1 rura users 22097 Sep  6 23:42 oci8_collection.c
-rw-r--r--  1 rura users 57313 Sep  7 10:58 oci8_interface.c
-rw-r--r--  1 rura users 21308 Sep  6 23:42 oci8_lob.c
-rw-r--r--  1 rura users 32161 Sep 15 10:28 oci8_statement.c
-rw-r--r--  1 rura users  2520 Sep  9 15:20 php_oci8.h
-rw-r--r--  1 rura users 16903 Sep  6 23:44 php_oci8_int.h
drwxr-xr-x  2 root root   3928 Nov 16 23:06 tests

2. ls -l ext/oci8 AFTER make/make install:
total 396
-rw-r--r--  1 rura users134 Sep  9 15:20 CREDITS
-rw-r--r--  1 rura users   2319 Sep  6 21:31 README
-rw-r--r--  1 rura users  11356 Sep  9 15:20 config.m4
-rw-r--r--  1 rura users685 Sep  9 15:20 config.w32
-rw-r--r--  1 rura users  57033 Sep 22 14:09 oci8.c
-rw-r--r--  1 rura users   5143 Sep 15 19:25 oci8.dsp
-rw-r--r--  1 root root 302 Nov 16 23:30 oci8.lo
-rw-r--r--  1 root root  139760 Nov 16 23:30 oci8.o
-rw-r--r--  1 rura users  22097 Sep  6 23:42 oci8_collection.c
-rw-r--r--  1 rura users  57313 Sep  7 10:58 oci8_interface.c
-rw-r--r--  1 rura users  21308 Sep  6 23:42 oci8_lob.c
-rw-r--r--  1 rura users  32161 Sep 15 10:28 oci8_statement.c
-rw-r--r--  1 rura users   2520 Sep  9 15:20 php_oci8.h
-rw-r--r--  1 rura users  16903 Sep  6 23:44 php_oci8_int.h
drwxr-xr-x  2 root root3928 Nov 16 23:06 tests

3. grep -rnH "oci8" Makefile | grep LIBTOOL
Makefile:430:   $(LIBTOOL) --mode=compile $(CC)  -Iext/oci8/
-I/root/work/web/php-5.1.0/ext/oci8/ $(COMMON_FLAGS) $(CFLAGS_CLEAN)
$(EXTRA_CFLAGS) -c /root/work/web/php-5.1.0/ext/oci8/oci8.c -o
ext/oci8/oci8.lo



[2005-11-16 17:45:09] [EMAIL PROTECTED]

Please run `ls -l ext/oci8` and `grep -rnH "oci8" Makefile | grep
LIBTOOL` and paste the output here.




[2005-11-16 17:33:36] pawel at gmx dot net

Reproduce code:
--
1. Download http://downloads.php.net/ilia/php-5.1.0RC4.tar.bz2
2. Unpack and remove ext/oci8 directory
3. Download http://pecl.php.net/get/oci8-1.1.1.tgz
4. Place contents of oci8-1.1.1 direcotry in ext/oci8
5. Execute:

make clean
./buildconf --force
./configure --with-oci8=/usr/local/oracle
make &&
make install


Result:


ext/oci8/oci8.o(.text+0xb44): In function
`php_oci_descriptor_flush_hash_dtor':
/root/work/web/php-5.1.0/ext/oci8/oci8.c:749: undefined reference to
`php_oci_lob_flush'
ext/oci8/oci8.o(.text+0x24d5): In function `php_oci_column_to_zval':
/root/work/web/php-5.1.0/ext/oci8/oci8.c:1479: undefined reference to
`php_oci_lob_read'
ext/oci8/oci8.o(.text+0x25f1): In function `php_oci_fetch_row':
/root/work/web/php-5.1.0/ext/oci8/oci8.c:1560: undefined reference to
`php_oci_statement_fetch'
ext/oci8/oci8.o(.text+0x2750):/root/work/web/php-5.1.0/ext/oci8/oci8.c:1568:
undefined reference to `php_oci_statement_get_column'
ext/oci8/oci8.o(.text+0x9dd): In function
`php_oci_statement_list_dtor':
/root/work/web/php-5.1.0/ext/oci8/oci8.c:668: undefined reference to
`php_oci_statement_free'
ext/oci8/oci8.o(.text+0x9fd): In function
`php_oci_descriptor_list_dtor':
/root/work/web/php-5.1.0/ext/oci8/oci8.c:676: undefined reference to
`php_oci_lob_free'
ext/oci8/oci8.o(.text+0xa1d): In function
`php_oci_collection_list_dtor':
/root/work/web/php-5.1.0/ext/oci8/oci8.c:684: undefined reference to
`php_oci_collection_close'
ext/oci8/oci8.o(.data+0x4): undefined reference to
`zif_oci_define_by_name'
ext/oci8/oci8.o(.dat

#35255 [Fbk->Opn]: imagettftext, imagettfbbox and imageFTBBox broken on 64 bit

2005-11-17 Thread phpbugs at exozet dot com
 ID:   35255
 User updated by:  phpbugs at exozet dot com
 Reported By:  phpbugs at exozet dot com
-Status:   Feedback
+Status:   Open
 Bug Type: GD related
 Operating System: OpenSuSE 10.0 x86_64
 PHP Version:  4.4.1
 New Comment:

Sorry, but PHP 5 didn't helps us.
I compiled PHP in 32bit mode but the same results.
So please give us a hint to fix that problem in our configuration.
In the moment I compile your PHP5-lastest. First the t1lib is outdatet
and I compile my own.
Now, configure is done, and make is in progress...
btw. you find the loggings of the configure's and make's in the
directorys under the URL I provided.
Can't make it! Errors with T1_StrError. I try w/o t1lib. You can find
the make-failed_t1.log here:
http://www.exozet.com/phpbug-1/64bit/php5-200511170730/make-failed_t1.log


Previous Comments:


[2005-11-17 09:38:34] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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

We only start supporting 64bit support in 5.1 and above.



[2005-11-17 09:34:05] phpbugs at exozet dot com

Description:

imagettftext() ignores x coordiantes in this PHP 4.3.11 (#34951). The
same code works properly in the SAME version but compiled on the same
machine with SuSE/Linux 9.2 x64_64.
On a 32bit Machine with OpenSuSE 10.0 and the same configure and so on
it works.

In addition I tested PHP 4.4.1 and the stable snapshot
php4-STABLE-200511161138. The result are totaly out of range and not
the same as in 4.3.11.

I put the results, the "make test" output, the rpm list and the source
code under http://www.exozet.com/phpbug-1/

So I need a patch / workaround for PHP 4.3.11 and PHP 4.4.1 (yes, yes,
PHP 4.3.11, but many applications didn't work under 4.4.1 so we need
the 4.3.11!)

Thanks a lot...


Reproduce code:
---


Expected result:

imagettftext:
Array
(
[0] => 111
[1] => 27
[2] => 219
[3] => 27
[4] => 219
[5] => 1
[6] => 111
[7] => 1
)
imagettfbbox:
Array
(
[0] => 0
[1] => 5
[2] => 108
[3] => 5
[4] => 108
[5] => -21
[6] => 0
[7] => -21
)
imageFTBBox:
Array
(
[0] => 0
[1] => 5
[2] => 108
[3] => 5
[4] => 108
[5] => -21
[6] => 0
[7] => -21
)


Actual result:
--
imagettftext:
Array
(
[0] => 0
[1] => 27
[2] => 108
[3] => 27
[4] => 108
[5] => 0
[6] => 0
[7] => 0
)
imagettfbbox:
Array
(
[0] => -1
[1] => 5
[2] => 107
[3] => 5
[4] => 107
[5] => -21
[6] => -1
[7] => -21
)
imageFTBBox:
Array
(
[0] => -1
[1] => 5
[2] => 107
[3] => 5
[4] => 107
[5] => -21
[6] => -1
[7] => -21
)






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


  1   2   >