#28134 [Opn-Fbk]: after a month of stable 6 servers crash

2004-04-24 Thread wez
 ID:   28134
 Updated by:   [EMAIL PROTECTED]
 Reported By:  sanry at now dot net dot cn
-Status:   Open
+Status:   Feedback
 Bug Type: Unknown/Other Function
 Operating System: redhat9.0
 PHP Version:  4.3.6
 New Comment:

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.


Previous Comments:


[2004-04-24 05:36:11] sanry at now dot net dot cn

Description:

after a month of stable 6 servers crash  in
apach2.0.49 with mpm=worker  and php4.3.6 
just after I upgrade more servers to php4.3.6 and mpm=worker
and after restart the apache , it can run 1 hours or 
more than still crash constantly with 

segment fault 






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


#28131 [Opn-Fbk]: Scripts can't consume more than 64MB on Windows 2000

2004-04-24 Thread derick
 ID:   28131
 Updated by:   [EMAIL PROTECTED]
 Reported By:  webmaster at macway dot com
-Status:   Open
+Status:   Feedback
 Bug Type: Scripting Engine problem
 Operating System: Windows 2000
 PHP Version:  4.3.4
 New Comment:

Upgrade apache from 1.3.9 to 1.3.29 first, then see if the problem
persists.


Previous Comments:


[2004-04-24 02:18:16] webmaster at macway dot com

Apache 1.3.9

Do you use Windows ? (because it works without problems 
on linux/unix)



[2004-04-24 00:29:52] [EMAIL PROTECTED]

I don't see any problems with PHP. Loading a 185 Mb file works fine and
your test script is also doing fine.

What is the server environment you are using (Apache, IIS).



[2004-04-23 23:46:42] webmaster at macway dot com

Description:

Despite proper setting of php.ini memory_limit, and 
despite having 2 GB of available ram, a script on 
windows server 2000 can't work with more than 64MB in 
memory.

There's no problems on a Mac OS X box.

That means you can't process huge volume of data in 
arrays for example if the php server is a window 2k box 
!

Reproduce code:
---
?php



for ($i = 1; $i = 1024; $i++) // I'm just making a 1024 Byte string
{
$chunk .='a';
}


for ($i = 1; $i = 66000; $i++)  // I repeat it more than 65535 time
and it fails
{
$toto .=$chunk;
}


echo $toto;

?

Expected result:

A 65MB string should be returned.

This works perfectly on Mac OS X, but fails on Windows 
2000.

Actual result:
--
Windows 2000 aborts and return a document contains no 
data.





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



#28133 [Opn-Bgs]: cookie won't set after session cookie

2004-04-24 Thread derick
 ID:   28133
 Updated by:   [EMAIL PROTECTED]
 Reported By:  jvelguth at interaccess dot com
-Status:   Open
+Status:   Bogus
 Bug Type: Apache2 related
 Operating System: win 2k
 PHP Version:  4.3.6
 New Comment:

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

Thank you for your interest in PHP.

.


Previous Comments:


[2004-04-24 05:27:44] jvelguth at interaccess dot com

Description:

I am trying to run Apache2 as a local host and I can get it to act as a
server, it even does mysql ok.  I cannot get it to set a cookie.  It
will set the phpsessonid which is a cookie.  I don't know if its a
fault of the product or a configuration issue.  The following line of
code is one cookie that I am trying to set.  When I upload the page to
my website it all works fine but as localhost its a no go.  My website
is on Apache 1.3.29. (note: from the code below $XdomainX is my full
domain name where localy its localhost)(now I wonder if localhost is
incorrect but I do have cookies from javascript localhost)

non-bug info
  I have even tried to use 1.3.29 for localhost and I cannot use
method = post.

  I would like to test php pages from localhost and really don't care
which Apache I use.  Maybe an example of a working httpd.conf is what I
need.  I have 2 websites I need to test with so an example with virtual
host would be nice.

Reproduce code:
---
$XdomainX=localhost;
$setadmin = setcookie(ULadmin,admin,time()+14400,/,$XdomainX,0);

Expected result:

in total there should be 5 cookies set

Actual result:
--
non user cookies set





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


#28136 [NEW]: Problems with connection of a non blocking socket

2004-04-24 Thread daniele-dll at yahoo dot it
From: daniele-dll at yahoo dot it
Operating system: Windows\Linux
PHP version:  5.0.0RC1
PHP Bug Type: Sockets related
Bug description:  Problems with connection of a non blocking socket

Description:

Hi to all

i'm tring to write a little application with PHP using Socket, the
external module, not fsockopen function or similar.

I've noticed that, with this, and previous version of php, that after i
create a socket and set it as non blocking socket, when i try to connect
using

socket_get_option($SOCKET, SOL_SOCKET, SO_ERROR)

i recive EVER 0
Instead i should recive 115
If socket_get_option, with these params, return 0, it mean that connection
is done and i can send datas, but if i send datas i get a warning that say
that socket is in a connection state so i can't send datas.

There is some parts of code:
$this-socket[$sock_id]['resource'] = socket_create(AF_INET, SOCK_STREAM,
SOL_TCP);
if (!is_resource($this-socket[$sock_id]['resource']))
die(Unable to create socket!  . 
socket_strerror(socket_last_error())
. \r\n);
if (!socket_set_option($this-socket[$sock_id]['resource'], SOL_SOCKET,
SO_REUSEADDR, 1)) {
die(Unable to set to as REUSABLE socket!  .
socket_strerror(socket_last_error($this-socket[$sock_id]['resource'])) .
\r\n);

after i set socket as reusable (but php gimme me the same problem without
this line too) and, after, if i need, i bind socket to a specific IP and
PORT

after there is this code:
@socket_connect($this-socket[$sock_id]['resource'],
$this-socket[$sock_id]['remote_host'],
$this-socket[$sock_id]['remote_port']);
while (($ris = @socket_get_option($this-socket[$sock_id]['resource'],
SOL_SOCKET, SO_ERROR)) == 115) {
echo --  . $ris . \r\n;
}
echo \r\n--  . $ris . \r\n;

If you run this code it will exit immedatly printing:

-- 0

Infact, after, if you try to write to socket, you will get a warning

I haven't modified php.ini, and i've tried to run this code, using only
socket extension, on windows and on linux
I use apache 1.3.29 on windows and on linux

bye


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


#27663 [Com]: compile fails with cURL 7.11.1

2004-04-24 Thread bero at arklinux dot org
 ID:   27663
 Comment by:   bero at arklinux dot org
 Reported By:  toni dot viemero at iki dot fi
 Status:   Closed
 Bug Type: Compile Failure
 Operating System: Debian Woody
 PHP Version:  *
 Assigned To:  iliaa
 New Comment:

The fix will break again with curl 7.12.x, when the 
defines of obsolete functions to 0 will be removed. 
 
Please consider changing 
 
#if CURLOPT_PASSWDFUNCTION != 0 
 
to 
 
#if defined(CURLOPT_PASSWDFUNCTION)  
CURLOPT_PASSWDFUNCTION != 0 
 
(and the same for CURLOPT_MUTE of course)


Previous Comments:


[2004-04-14 10:14:20] bchesneau at mac dot com

Thks :)

Here is the patch I've made from diff between 4.3.6RC3 
and 4.3.5 :

http://cvs.opendarwin.org/index.cgi/dports/www/php4/
files/patch-curl?rev=1.1content-type=text/x-cvsweb-
markup

It works well on macosx 10.3/10.2



[2004-04-14 06:57:51] toni dot viemero at iki dot fi

I've submitted patch for FreeBSD PHP port, for which I pulled only
latest PHP_4_3 ext/curl/curl.c from CVS.
http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/65422



[2004-04-14 06:40:20] bchesneau at mac dot com

how did you fix it ? I'm the maintener of the port on 
macosx with darwinports packaging system, and I would 
like to patch current stable version if it's possible.

Thanks for advance :)

Benoit



[2004-03-26 13:59:03] [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.





[2004-03-26 11:05:57] [EMAIL PROTECTED]

This also applies to PHP 5.



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

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


#28137 [NEW]: about half the extensions don't load

2004-04-24 Thread bwacker at adelphia dot net
From: bwacker at adelphia dot net
Operating system: WXP-Windows NT OFFICE 5.1 build 
PHP version:  4.3.6
PHP Bug Type: Dynamic loading
Bug description:  about half the extensions don't load

Description:

extension_dir = C:\php\extensions
All of the following with ; give Unknown(): Unable to load dynamic
library 'c:\php\extensions\php_*.dll' - The specified module cound not be
found.

NOTE: all of the non ; DO load, and good and bad are all in the
extensions directory, so it is not php.ini.

phpinfo() can be found at
http://users.adelphia.net/~bwacker/phpExtensionInfo.htm.

mhash is what I really need.

extension=php_bz2.dll
extension=php_cpdf.dll
extension=php_crack.dll
;extension=php_curl.dll
extension=php_db.dll
extension=php_dba.dll
extension=php_dbase.dll
extension=php_dbx.dll
;extension=php_domxml.dll
extension=php_exif.dll
;extension=php_fdf.dll
extension=php_filepro.dll
extension=php_gd2.dll
;extension=php_gettext.dll
extension=php_hyperwave.dll
;extension=php_iconv.dll
;extension=php_ifx.dll
;extension=php_iisfunc.dll
extension=php_imap.dll
;extension=php_interbase.dll
extension=php_java.dll
;extension=php_ldap.dll
extension=php_mbstring.dll
;extension=php_mcrypt.dll
;extension=php_mhash.dll
extension=php_mime_magic.dll
extension=php_ming.dll
;extension=php_mssql.dll
;extension=php_msql.dll
;extension=php_oci8.dll
;extension=php_openssl.dll
;extension=php_oracle.dll
;extension=php_pdf.dll
extension=php_pgsql.dll
;extension=php_printer.dll
extension=php_shmop.dll
extension=php_snmp.dll
extension=php_sockets.dll
;extension=php_sybase_ct.dll
extension=php_w32api.dll
;extension=php_xmlrpc.dll
;extension=php_xslt.dll
;extension=php_yaz.dll
extension=php_zip.dll


Reproduce code:
---
I've read one bug report where you said the problem is external libraries
that have to be in the path. Do ALL of these fit that answer?

How can one determine which external libraries are missing so the path can
be updated?

Note: All I really need now is mhash. The others are just there to prove
that about half work and about half don't.


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


#28137 [Opn-Bgs]: about half the extensions don't load

2004-04-24 Thread derick
 ID:   28137
 Updated by:   [EMAIL PROTECTED]
 Reported By:  bwacker at adelphia dot net
-Status:   Open
+Status:   Bogus
 Bug Type: Dynamic loading
 Operating System: WXP-Windows NT OFFICE 5.1 build
 PHP Version:  4.3.6
 New Comment:

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

Thank you for your interest in PHP.

.


Previous Comments:


[2004-04-24 19:51:08] bwacker at adelphia dot net

Description:

extension_dir = C:\php\extensions
All of the following with ; give Unknown(): Unable to load dynamic
library 'c:\php\extensions\php_*.dll' - The specified module cound not
be found.

NOTE: all of the non ; DO load, and good and bad are all in the
extensions directory, so it is not php.ini.

phpinfo() can be found at
http://users.adelphia.net/~bwacker/phpExtensionInfo.htm.

mhash is what I really need.

extension=php_bz2.dll
extension=php_cpdf.dll
extension=php_crack.dll
;extension=php_curl.dll
extension=php_db.dll
extension=php_dba.dll
extension=php_dbase.dll
extension=php_dbx.dll
;extension=php_domxml.dll
extension=php_exif.dll
;extension=php_fdf.dll
extension=php_filepro.dll
extension=php_gd2.dll
;extension=php_gettext.dll
extension=php_hyperwave.dll
;extension=php_iconv.dll
;extension=php_ifx.dll
;extension=php_iisfunc.dll
extension=php_imap.dll
;extension=php_interbase.dll
extension=php_java.dll
;extension=php_ldap.dll
extension=php_mbstring.dll
;extension=php_mcrypt.dll
;extension=php_mhash.dll
extension=php_mime_magic.dll
extension=php_ming.dll
;extension=php_mssql.dll
;extension=php_msql.dll
;extension=php_oci8.dll
;extension=php_openssl.dll
;extension=php_oracle.dll
;extension=php_pdf.dll
extension=php_pgsql.dll
;extension=php_printer.dll
extension=php_shmop.dll
extension=php_snmp.dll
extension=php_sockets.dll
;extension=php_sybase_ct.dll
extension=php_w32api.dll
;extension=php_xmlrpc.dll
;extension=php_xslt.dll
;extension=php_yaz.dll
extension=php_zip.dll


Reproduce code:
---
I've read one bug report where you said the problem is external
libraries that have to be in the path. Do ALL of these fit that
answer?

How can one determine which external libraries are missing so the path
can be updated?

Note: All I really need now is mhash. The others are just there to
prove that about half work and about half don't.






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


#28138 [NEW]: Error in Backslashing

2004-04-24 Thread info at giggygsk dot de
From: info at giggygsk dot de
Operating system: Win32
PHP version:  4.3.4
PHP Bug Type: *Regular Expressions
Bug description:  Error in Backslashing

Description:

Hi.
If you build a Regular Ex. like this: /([^\\]\|\*\|)/ there will be come
an error, because 'PHP' think I mean with [^\\] I want backslashing the
']' so it will be do a error, because he want an ']' because it
backslashed ']'. But I want the char '\', because thats a Specialchar ;-).


Reproduce code:
---
?php

// Result in Perl : Test1 - Test2\|*|Test3
$string = Test1|*|Test2\|*|Test3;

$split = preg_split(/([^\\]\|\*\|)/, $string);

?


Expected result:

Warning: Compilation failed: missing terminating ] for character class at
offset 17 in D:\Apache2\htdocs\GG_Shoutbox\msg.class.php on line 17


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


#16542 [Com]: safe_mode_exec_dir and exec()

2004-04-24 Thread andy_jcs at yahoo dot ca
 ID:   16542
 Comment by:   andy_jcs at yahoo dot ca
 Reported By:  n dot dose at leo-media dot de
 Status:   No Feedback
 Bug Type: IIS related
 Operating System: windows XP
 PHP Version:  4.1.2
 New Comment:

Same problem, tested on Win2K and Win XP.


Previous Comments:


[2002-11-26 19:59:25] [EMAIL PROTECTED]

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





[2002-11-15 22:16:11] justinNOSPAMclarke at xcelco dot on dot ca

My host is running safe mode, and so I need to figure out how to tell
them to give my directory access to exec()

I would rather not run safe_mode at all.



[2002-11-15 22:07:32] [EMAIL PROTECTED]

Just curious, are you guys really running a shared server on Windows? 
Because safe_mode makes very little sense in a non-shared environment.



[2002-11-15 22:03:02] justinNOSPAMclarke at xcelco dot on dot ca

By the way, this is being used as a module for Apache.



[2002-11-15 22:02:29] justinNOSPAMclarke at xcelco dot on dot ca

I am running Win2K with PHP 4.2.1 and I am experiencing this same type
of problem. Hopefully I can provide a little more feedback.

safe_mode = On
safe_mode_exec_dir = D:\web\test\

Here's what I've got. I've tried with frontslashes no trailing slash,
you name it, I've tried it. No exec() or system(), etc. statement will
work from this directory (or any other directory for that matter while
safe_mode is on).

If I take off safe_mode, everything is fine (obviously).

I can provide more info if necessary. Please feel free to e-mail.



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

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


#28138 [Opn-Bgs]: Error in Backslashing

2004-04-24 Thread derick
 ID:   28138
 Updated by:   [EMAIL PROTECTED]
 Reported By:  info at giggygsk dot de
-Status:   Open
+Status:   Bogus
 Bug Type: *Regular Expressions
 Operating System: Win32
 PHP Version:  4.3.4
 New Comment:

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

Thank you for your interest in PHP.

You need to double escape it, or use single quotes.


Previous Comments:


[2004-04-24 22:18:58] info at giggygsk dot de

Description:

Hi.
If you build a Regular Ex. like this: /([^\\]\|\*\|)/ there will be
come an error, because 'PHP' think I mean with [^\\] I want
backslashing the ']' so it will be do a error, because he want an ']'
because it backslashed ']'. But I want the char '\', because thats a
Specialchar ;-). 

Reproduce code:
---
?php

// Result in Perl : Test1 - Test2\|*|Test3
$string = Test1|*|Test2\|*|Test3;

$split = preg_split(/([^\\]\|\*\|)/, $string);

?


Expected result:

Warning: Compilation failed: missing terminating ] for character class
at offset 17 in D:\Apache2\htdocs\GG_Shoutbox\msg.class.php on line 17






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


#28139 [NEW]: Recursive function call?

2004-04-24 Thread a-dead-trousers at aon dot at
From: a-dead-trousers at aon dot at
Operating system: winxp
PHP version:  Irrelevant
PHP Bug Type: Feature/Change Request
Bug description:  Recursive function call?

Description:

I'm wondering about PHP not supporting recursive function calls. (I read
bug report #2004 -- PHP does not support recursive function calls at
all)


I don't know if this feature can be implemented easily (seems to go down
to zend engine) but it would be fantastic if it could be implemented.

Reproduce code:
---
function countdown($var) {
  $var--;
  countdown($var);
  echo $var;
}

countdown(10);

//tested with PHP 4.3.2 (Zend Studio)
//and PHP 5.0.0 RC1 (Apache)
//on Win XP (Probably a win only problem)

Expected result:

9 8 7 6 5 4 3 2 1

Actual result:
--
Nothing!
PHP dose not crash!!!
The browser reports Document contains no data
Neither the log file of the webserver nor the php logfile reports
anything.

If this feature can't be implemented it would be fantastic if PHP could
show an errormessage or something similar e.g. logfileentry (even if it
crashes would be better than doing nothing ;) )

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


#28139 [Opn-Bgs]: Recursive function call?

2004-04-24 Thread derick
 ID:   28139
 Updated by:   [EMAIL PROTECTED]
 Reported By:  a-dead-trousers at aon dot at
-Status:   Open
+Status:   Bogus
 Bug Type: Feature/Change Request
 Operating System: winxp
 PHP Version:  Irrelevant
 New Comment:

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

.


Previous Comments:


[2004-04-24 22:56:25] a-dead-trousers at aon dot at

Description:

I'm wondering about PHP not supporting recursive function calls. (I
read bug report #2004 -- PHP does not support recursive function calls
at all)


I don't know if this feature can be implemented easily (seems to go
down to zend engine) but it would be fantastic if it could be
implemented.

Reproduce code:
---
function countdown($var) {
  $var--;
  countdown($var);
  echo $var;
}

countdown(10);

//tested with PHP 4.3.2 (Zend Studio)
//and PHP 5.0.0 RC1 (Apache)
//on Win XP (Probably a win only problem)

Expected result:

9 8 7 6 5 4 3 2 1

Actual result:
--
Nothing!
PHP dose not crash!!!
The browser reports Document contains no data
Neither the log file of the webserver nor the php logfile reports
anything.

If this feature can't be implemented it would be fantastic if PHP could
show an errormessage or something similar e.g. logfileentry (even if it
crashes would be better than doing nothing ;) )





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


#28139 [Bgs]: Recursive function call?

2004-04-24 Thread a-dead-trousers at aon dot at
 ID:   28139
 User updated by:  a-dead-trousers at aon dot at
 Reported By:  a-dead-trousers at aon dot at
 Status:   Bogus
 Bug Type: Feature/Change Request
 Operating System: winxp
 PHP Version:  Irrelevant
 New Comment:

Shit...
Now i found out what i have done wrong...
Sorry, for having posted such an stupid bug.

--
echo '1000 times sorry:'

function countdown($var) {
  $var--;
  if ($var  0) countdown($var);
  echo ' sorry,';
}

countdown(1000);
--


Previous Comments:


[2004-04-24 22:58:03] [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

.



[2004-04-24 22:56:25] a-dead-trousers at aon dot at

Description:

I'm wondering about PHP not supporting recursive function calls. (I
read bug report #2004 -- PHP does not support recursive function calls
at all)


I don't know if this feature can be implemented easily (seems to go
down to zend engine) but it would be fantastic if it could be
implemented.

Reproduce code:
---
function countdown($var) {
  $var--;
  countdown($var);
  echo $var;
}

countdown(10);

//tested with PHP 4.3.2 (Zend Studio)
//and PHP 5.0.0 RC1 (Apache)
//on Win XP (Probably a win only problem)

Expected result:

9 8 7 6 5 4 3 2 1

Actual result:
--
Nothing!
PHP dose not crash!!!
The browser reports Document contains no data
Neither the log file of the webserver nor the php logfile reports
anything.

If this feature can't be implemented it would be fantastic if PHP could
show an errormessage or something similar e.g. logfileentry (even if it
crashes would be better than doing nothing ;) )





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


#28139 [Bgs]: Recursive function call?

2004-04-24 Thread derick
 ID:   28139
 Updated by:   [EMAIL PROTECTED]
 Reported By:  a-dead-trousers at aon dot at
 Status:   Bogus
-Bug Type: Feature/Change Request
+Bug Type: Reproducible crash
 Operating System: winxp
 PHP Version:  Irrelevant
 New Comment:

Yup, recursion works fine, infinite recursion doesnt.


Previous Comments:


[2004-04-24 23:20:11] a-dead-trousers at aon dot at

Shit...
Now i found out what i have done wrong...
Sorry, for having posted such an stupid bug.

--
echo '1000 times sorry:'

function countdown($var) {
  $var--;
  if ($var  0) countdown($var);
  echo ' sorry,';
}

countdown(1000);
--



[2004-04-24 22:58:03] [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

.



[2004-04-24 22:56:25] a-dead-trousers at aon dot at

Description:

I'm wondering about PHP not supporting recursive function calls. (I
read bug report #2004 -- PHP does not support recursive function calls
at all)


I don't know if this feature can be implemented easily (seems to go
down to zend engine) but it would be fantastic if it could be
implemented.

Reproduce code:
---
function countdown($var) {
  $var--;
  countdown($var);
  echo $var;
}

countdown(10);

//tested with PHP 4.3.2 (Zend Studio)
//and PHP 5.0.0 RC1 (Apache)
//on Win XP (Probably a win only problem)

Expected result:

9 8 7 6 5 4 3 2 1

Actual result:
--
Nothing!
PHP dose not crash!!!
The browser reports Document contains no data
Neither the log file of the webserver nor the php logfile reports
anything.

If this feature can't be implemented it would be fantastic if PHP could
show an errormessage or something similar e.g. logfileentry (even if it
crashes would be better than doing nothing ;) )





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


#28137 [Bgs]: about half the extensions don't load

2004-04-24 Thread bwacker at adelphia dot net
 ID:   28137
 User updated by:  bwacker at adelphia dot net
 Reported By:  bwacker at adelphia dot net
 Status:   Bogus
 Bug Type: Dynamic loading
 Operating System: WXP-Windows NT OFFICE 5.1 build
 PHP Version:  4.3.6
 New Comment:

I could see punting to support if PHP couldn't load any extensions.
Please explain why inconsistenies in being able to load some and not
others doesn't constitute a bug in php dynamic extension loading. I've
searched all the support information I can find, including general web
searches and found a number of similar problems, none of which have a
resolution. You also have some bug reports where the problem was
accepted, but the responder concentrated on oracle, etc. extensions
which may well require external libraries. What about all the others
failing extensions? It apparently works on unix, but not on Windows. It
walks like a bug and quacks like a bug, so please explain why you think
it's a duck. Do you have any XP SP1 systems where the other half load
with Apache 2.0 sapi php?


Previous Comments:


[2004-04-24 20:10:12] [EMAIL PROTECTED]

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

Thank you for your interest in PHP.

.



[2004-04-24 19:51:08] bwacker at adelphia dot net

Description:

extension_dir = C:\php\extensions
All of the following with ; give Unknown(): Unable to load dynamic
library 'c:\php\extensions\php_*.dll' - The specified module cound not
be found.

NOTE: all of the non ; DO load, and good and bad are all in the
extensions directory, so it is not php.ini.

phpinfo() can be found at
http://users.adelphia.net/~bwacker/phpExtensionInfo.htm.

mhash is what I really need.

extension=php_bz2.dll
extension=php_cpdf.dll
extension=php_crack.dll
;extension=php_curl.dll
extension=php_db.dll
extension=php_dba.dll
extension=php_dbase.dll
extension=php_dbx.dll
;extension=php_domxml.dll
extension=php_exif.dll
;extension=php_fdf.dll
extension=php_filepro.dll
extension=php_gd2.dll
;extension=php_gettext.dll
extension=php_hyperwave.dll
;extension=php_iconv.dll
;extension=php_ifx.dll
;extension=php_iisfunc.dll
extension=php_imap.dll
;extension=php_interbase.dll
extension=php_java.dll
;extension=php_ldap.dll
extension=php_mbstring.dll
;extension=php_mcrypt.dll
;extension=php_mhash.dll
extension=php_mime_magic.dll
extension=php_ming.dll
;extension=php_mssql.dll
;extension=php_msql.dll
;extension=php_oci8.dll
;extension=php_openssl.dll
;extension=php_oracle.dll
;extension=php_pdf.dll
extension=php_pgsql.dll
;extension=php_printer.dll
extension=php_shmop.dll
extension=php_snmp.dll
extension=php_sockets.dll
;extension=php_sybase_ct.dll
extension=php_w32api.dll
;extension=php_xmlrpc.dll
;extension=php_xslt.dll
;extension=php_yaz.dll
extension=php_zip.dll


Reproduce code:
---
I've read one bug report where you said the problem is external
libraries that have to be in the path. Do ALL of these fit that
answer?

How can one determine which external libraries are missing so the path
can be updated?

Note: All I really need now is mhash. The others are just there to
prove that about half work and about half don't.






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


#28137 [Bgs]: about half the extensions don't load

2004-04-24 Thread wez
 ID:   28137
 Updated by:   [EMAIL PROTECTED]
 Reported By:  bwacker at adelphia dot net
 Status:   Bogus
 Bug Type: Dynamic loading
 Operating System: WXP-Windows NT OFFICE 5.1 build
 PHP Version:  4.3.6
 New Comment:

If you read the other similar sounding reports, you
will find that 99.999% of them are due to you having
a broken installation (old .dll's hanging around).
Since this is a bug database, and not a support forum,
you were encouraged to ask elsewhere, on pain of being
ignored.


Previous Comments:


[2004-04-25 00:13:19] bwacker at adelphia dot net

I could see punting to support if PHP couldn't load any extensions.
Please explain why inconsistenies in being able to load some and not
others doesn't constitute a bug in php dynamic extension loading. I've
searched all the support information I can find, including general web
searches and found a number of similar problems, none of which have a
resolution. You also have some bug reports where the problem was
accepted, but the responder concentrated on oracle, etc. extensions
which may well require external libraries. What about all the others
failing extensions? It apparently works on unix, but not on Windows. It
walks like a bug and quacks like a bug, so please explain why you think
it's a duck. Do you have any XP SP1 systems where the other half load
with Apache 2.0 sapi php?



[2004-04-24 20:10:12] [EMAIL PROTECTED]

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

Thank you for your interest in PHP.

.



[2004-04-24 19:51:08] bwacker at adelphia dot net

Description:

extension_dir = C:\php\extensions
All of the following with ; give Unknown(): Unable to load dynamic
library 'c:\php\extensions\php_*.dll' - The specified module cound not
be found.

NOTE: all of the non ; DO load, and good and bad are all in the
extensions directory, so it is not php.ini.

phpinfo() can be found at
http://users.adelphia.net/~bwacker/phpExtensionInfo.htm.

mhash is what I really need.

extension=php_bz2.dll
extension=php_cpdf.dll
extension=php_crack.dll
;extension=php_curl.dll
extension=php_db.dll
extension=php_dba.dll
extension=php_dbase.dll
extension=php_dbx.dll
;extension=php_domxml.dll
extension=php_exif.dll
;extension=php_fdf.dll
extension=php_filepro.dll
extension=php_gd2.dll
;extension=php_gettext.dll
extension=php_hyperwave.dll
;extension=php_iconv.dll
;extension=php_ifx.dll
;extension=php_iisfunc.dll
extension=php_imap.dll
;extension=php_interbase.dll
extension=php_java.dll
;extension=php_ldap.dll
extension=php_mbstring.dll
;extension=php_mcrypt.dll
;extension=php_mhash.dll
extension=php_mime_magic.dll
extension=php_ming.dll
;extension=php_mssql.dll
;extension=php_msql.dll
;extension=php_oci8.dll
;extension=php_openssl.dll
;extension=php_oracle.dll
;extension=php_pdf.dll
extension=php_pgsql.dll
;extension=php_printer.dll
extension=php_shmop.dll
extension=php_snmp.dll
extension=php_sockets.dll
;extension=php_sybase_ct.dll
extension=php_w32api.dll
;extension=php_xmlrpc.dll
;extension=php_xslt.dll
;extension=php_yaz.dll
extension=php_zip.dll


Reproduce code:
---
I've read one bug report where you said the problem is external
libraries that have to be in the path. Do ALL of these fit that
answer?

How can one determine which external libraries are missing so the path
can be updated?

Note: All I really need now is mhash. The others are just there to
prove that about half work and about half don't.






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


#28137 [Bgs]: about half the extensions don't load

2004-04-24 Thread wez
 ID:   28137
 Updated by:   [EMAIL PROTECTED]
 Reported By:  bwacker at adelphia dot net
 Status:   Bogus
 Bug Type: Dynamic loading
 Operating System: WXP-Windows NT OFFICE 5.1 build
 PHP Version:  4.3.6
 New Comment:

or in this case, a broken PATH.
(best bet is to put all the PHP stuff together and put that dir in the
path)


Previous Comments:


[2004-04-25 02:46:44] [EMAIL PROTECTED]

If you read the other similar sounding reports, you
will find that 99.999% of them are due to you having
a broken installation (old .dll's hanging around).
Since this is a bug database, and not a support forum,
you were encouraged to ask elsewhere, on pain of being
ignored.



[2004-04-25 00:13:19] bwacker at adelphia dot net

I could see punting to support if PHP couldn't load any extensions.
Please explain why inconsistenies in being able to load some and not
others doesn't constitute a bug in php dynamic extension loading. I've
searched all the support information I can find, including general web
searches and found a number of similar problems, none of which have a
resolution. You also have some bug reports where the problem was
accepted, but the responder concentrated on oracle, etc. extensions
which may well require external libraries. What about all the others
failing extensions? It apparently works on unix, but not on Windows. It
walks like a bug and quacks like a bug, so please explain why you think
it's a duck. Do you have any XP SP1 systems where the other half load
with Apache 2.0 sapi php?



[2004-04-24 20:10:12] [EMAIL PROTECTED]

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

Thank you for your interest in PHP.

.



[2004-04-24 19:51:08] bwacker at adelphia dot net

Description:

extension_dir = C:\php\extensions
All of the following with ; give Unknown(): Unable to load dynamic
library 'c:\php\extensions\php_*.dll' - The specified module cound not
be found.

NOTE: all of the non ; DO load, and good and bad are all in the
extensions directory, so it is not php.ini.

phpinfo() can be found at
http://users.adelphia.net/~bwacker/phpExtensionInfo.htm.

mhash is what I really need.

extension=php_bz2.dll
extension=php_cpdf.dll
extension=php_crack.dll
;extension=php_curl.dll
extension=php_db.dll
extension=php_dba.dll
extension=php_dbase.dll
extension=php_dbx.dll
;extension=php_domxml.dll
extension=php_exif.dll
;extension=php_fdf.dll
extension=php_filepro.dll
extension=php_gd2.dll
;extension=php_gettext.dll
extension=php_hyperwave.dll
;extension=php_iconv.dll
;extension=php_ifx.dll
;extension=php_iisfunc.dll
extension=php_imap.dll
;extension=php_interbase.dll
extension=php_java.dll
;extension=php_ldap.dll
extension=php_mbstring.dll
;extension=php_mcrypt.dll
;extension=php_mhash.dll
extension=php_mime_magic.dll
extension=php_ming.dll
;extension=php_mssql.dll
;extension=php_msql.dll
;extension=php_oci8.dll
;extension=php_openssl.dll
;extension=php_oracle.dll
;extension=php_pdf.dll
extension=php_pgsql.dll
;extension=php_printer.dll
extension=php_shmop.dll
extension=php_snmp.dll
extension=php_sockets.dll
;extension=php_sybase_ct.dll
extension=php_w32api.dll
;extension=php_xmlrpc.dll
;extension=php_xslt.dll
;extension=php_yaz.dll
extension=php_zip.dll


Reproduce code:
---
I've read one bug report where you said the problem is external
libraries that have to be in the path. Do ALL of these fit that
answer?

How can one determine which external libraries are missing so the path
can be updated?

Note: All I really need now is mhash. The others are just there to
prove that about half work and about half don't.






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


#28140 [NEW]: html_errors is *on* for CLI

2004-04-24 Thread php at richardneill dot org
From: php at richardneill dot org
Operating system: Linux
PHP version:  5.0.0RC1
PHP Bug Type: CGI related
Bug description:  html_errors is *on* for CLI

Description:

Using php from the command line, the error messages include html tags. The
html_errors directive is supposed to be overridden for PHP-CLI:
http://uk.php.net/manual/en/features.commandline.php



Reproduce code:
---
#!/usr/local/bin/php -q
? 
echo no semicolon
?



run this from the command line.

Expected result:

Parse error: parse error, expecting `','' or `';'' in /home/rjn/test.php
on line 4

(this is what I see using PHP 4.3.3)

Actual result:
--
br /
bParse error/b:  parse error, unexpected T_VARIABLE, expecting ',' or
';' in b/home/rjn/test/php/b on line b4/bbr /

(this is what I see in PHP 5.0.0RC1)

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


#28137 [Bgs-Opn]: about half the extensions don't load

2004-04-24 Thread bwacker at adelphia dot net
 ID:   28137
 User updated by:  bwacker at adelphia dot net
 Reported By:  bwacker at adelphia dot net
-Status:   Bogus
+Status:   Open
 Bug Type: Dynamic loading
 Operating System: WXP-Windows NT OFFICE 5.1 build
 PHP Version:  4.3.6
 New Comment:

OK, some of them work when all /extensions and all /dlls are put into
the same directory and it is pathed. So the bugs are 1) Not saying so
in the pip.ini template where it talks about Windows, and 2) The error
not saying couldn't find at xxx OR PATH.

The other bugs are that the following still don't work, with the
probable causes, but the only error given is not found instead of not
found or missing dependent .dll

Of course, if support people write the error messages in the code and
the scripts, then they aren't really bugs and nobody is responsible for
fixing them and saving the next poor soul a day a thrashing around an
bugging you guys.

The extensions that still don't work and possible causes:
;extension=php_ifx.dll  needs ISQLT09A.DLL
;extension=php_iisfunc.dll  not in /extensions
;extension=php_mcrypt.dll   needs LIBMCRYPT.DLL
;extension=php_oci8.dll needs OCI.DLL
;extension=php_oracle.dll   needs OCIW32.DLL
;extension=php_printer.dll  not in /extensions
;extension=php_sybase_ct.dll needs LIBCT.DLL and LIBCS.DLL


Previous Comments:


[2004-04-25 02:48:17] [EMAIL PROTECTED]

or in this case, a broken PATH.
(best bet is to put all the PHP stuff together and put that dir in the
path)



[2004-04-25 02:46:44] [EMAIL PROTECTED]

If you read the other similar sounding reports, you
will find that 99.999% of them are due to you having
a broken installation (old .dll's hanging around).
Since this is a bug database, and not a support forum,
you were encouraged to ask elsewhere, on pain of being
ignored.



[2004-04-25 00:13:19] bwacker at adelphia dot net

I could see punting to support if PHP couldn't load any extensions.
Please explain why inconsistenies in being able to load some and not
others doesn't constitute a bug in php dynamic extension loading. I've
searched all the support information I can find, including general web
searches and found a number of similar problems, none of which have a
resolution. You also have some bug reports where the problem was
accepted, but the responder concentrated on oracle, etc. extensions
which may well require external libraries. What about all the others
failing extensions? It apparently works on unix, but not on Windows. It
walks like a bug and quacks like a bug, so please explain why you think
it's a duck. Do you have any XP SP1 systems where the other half load
with Apache 2.0 sapi php?



[2004-04-24 20:10:12] [EMAIL PROTECTED]

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

Thank you for your interest in PHP.

.



[2004-04-24 19:51:08] bwacker at adelphia dot net

Description:

extension_dir = C:\php\extensions
All of the following with ; give Unknown(): Unable to load dynamic
library 'c:\php\extensions\php_*.dll' - The specified module cound not
be found.

NOTE: all of the non ; DO load, and good and bad are all in the
extensions directory, so it is not php.ini.

phpinfo() can be found at
http://users.adelphia.net/~bwacker/phpExtensionInfo.htm.

mhash is what I really need.

extension=php_bz2.dll
extension=php_cpdf.dll
extension=php_crack.dll
;extension=php_curl.dll
extension=php_db.dll
extension=php_dba.dll
extension=php_dbase.dll
extension=php_dbx.dll
;extension=php_domxml.dll
extension=php_exif.dll
;extension=php_fdf.dll
extension=php_filepro.dll
extension=php_gd2.dll
;extension=php_gettext.dll
extension=php_hyperwave.dll
;extension=php_iconv.dll
;extension=php_ifx.dll
;extension=php_iisfunc.dll
extension=php_imap.dll
;extension=php_interbase.dll
extension=php_java.dll
;extension=php_ldap.dll
extension=php_mbstring.dll
;extension=php_mcrypt.dll
;extension=php_mhash.dll
extension=php_mime_magic.dll
extension=php_ming.dll
;extension=php_mssql.dll
;extension=php_msql.dll
;extension=php_oci8.dll
;extension=php_openssl.dll
;extension=php_oracle.dll
;extension=php_pdf.dll
extension=php_pgsql.dll
;extension=php_printer.dll
extension=php_shmop.dll
extension=php_snmp.dll
extension=php_sockets.dll
;extension=php_sybase_ct.dll
extension=php_w32api.dll
;extension=php_xmlrpc.dll
;extension=php_xslt.dll
;extension=php_yaz.dll
extension=php_zip.dll


Reproduce code:
---

#28140 [Opn-Fbk]: html_errors is *on* for CLI

2004-04-24 Thread pollita
 ID:   28140
 Updated by:   [EMAIL PROTECTED]
 Reported By:  php at richardneill dot org
-Status:   Open
+Status:   Feedback
 Bug Type: CGI related
 Operating System: Linux
 PHP Version:  5.0.0RC1
 New Comment:

Not reproducable here, double check that you are indeed using the CLI
version of PHP:

/usr/local/bin/php -v


Previous Comments:


[2004-04-25 04:06:54] php at richardneill dot org

Description:

Using php from the command line, the error messages include html tags.
The html_errors directive is supposed to be overridden for PHP-CLI:
http://uk.php.net/manual/en/features.commandline.php



Reproduce code:
---
#!/usr/local/bin/php -q
? 
echo no semicolon
?



run this from the command line.

Expected result:

Parse error: parse error, expecting `','' or `';'' in
/home/rjn/test.php on line 4

(this is what I see using PHP 4.3.3)

Actual result:
--
br /
bParse error/b:  parse error, unexpected T_VARIABLE, expecting ','
or ';' in b/home/rjn/test/php/b on line b4/bbr /

(this is what I see in PHP 5.0.0RC1)





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


#28140 [Fbk-Opn]: html_errors is *on* for CLI

2004-04-24 Thread php at richardneill dot org
 ID:   28140
 User updated by:  php at richardneill dot org
 Reported By:  php at richardneill dot org
-Status:   Feedback
+Status:   Open
 Bug Type: CGI related
 Operating System: Linux
 PHP Version:  5.0.0RC1
 New Comment:

Quite right - I do apologise. I had simply assumed that
a script which began with
#!/usr/local/bin/php
would be the CLI version. 
(That's how it used to work, with the Mandrake rpms, but 
I had to compile it myself to have --enable-sockets), and the default
wasn't what I expected.

Sorry for wasting your time.

Richard


Previous Comments:


[2004-04-25 05:30:22] [EMAIL PROTECTED]

Not reproducable here, double check that you are indeed using the CLI
version of PHP:

/usr/local/bin/php -v



[2004-04-25 04:06:54] php at richardneill dot org

Description:

Using php from the command line, the error messages include html tags.
The html_errors directive is supposed to be overridden for PHP-CLI:
http://uk.php.net/manual/en/features.commandline.php



Reproduce code:
---
#!/usr/local/bin/php -q
? 
echo no semicolon
?



run this from the command line.

Expected result:

Parse error: parse error, expecting `','' or `';'' in
/home/rjn/test.php on line 4

(this is what I see using PHP 4.3.3)

Actual result:
--
br /
bParse error/b:  parse error, unexpected T_VARIABLE, expecting ','
or ';' in b/home/rjn/test/php/b on line b4/bbr /

(this is what I see in PHP 5.0.0RC1)





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


#28141 [NEW]: sokcet_read return type: false vs

2004-04-24 Thread php at richardneill dot org
From: php at richardneill dot org
Operating system: Linux
PHP version:  5.0.0RC1
PHP Bug Type: Sockets related
Bug description:  sokcet_read return type: false vs 

Description:

According to the documentation, socket_read() can return:

1)A string - normal data
2)An empty string  - the other end closed the connection
3)false - something went wrong.

But it seems to be returning false on connection close.

Reproduce code:
---
$buffer=socket_read($socket,2048,PHP_NORMAL_READ);  

if ($buffer===false){
 echo Error: socket_read() failed: reason:
.socket_strerror(socket_last_error()). \n;
 exit (1);
}elseif ($buffer==''){
echo Socket $socket returned an empty string. Closing connection\n;
socket_close($socket);
}else{
echo Received data.trim($buffer).\n;
}

Expected result:

I'm using netcat as a client, and then killing the netcat process with
Ctrl-C to simulate remote host disconnecting.

I expect to see the socket close.

Actual result:
--
Actually, the php script exits, because socket_read returns 
false instead of .

This may be a bug in the documentation for socket_read, rather than in its
behaviour. 

Thanks for your help - Richard

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


#28140 [Opn-Bgs]: html_errors is *on* for CLI

2004-04-24 Thread pollita
 ID:   28140
 Updated by:   [EMAIL PROTECTED]
 Reported By:  php at richardneill dot org
-Status:   Open
+Status:   Bogus
 Bug Type: CGI related
 Operating System: Linux
 PHP Version:  5.0.0RC1
 New Comment:

For reference the installation behavior for $EPREFIX/php is documented
here:

http://www.php.net/manual/en/features.commandline.php


Previous Comments:


[2004-04-25 06:10:08] php at richardneill dot org

Quite right - I do apologise. I had simply assumed that
a script which began with
#!/usr/local/bin/php
would be the CLI version. 
(That's how it used to work, with the Mandrake rpms, but 
I had to compile it myself to have --enable-sockets), and the default
wasn't what I expected.

Sorry for wasting your time.

Richard



[2004-04-25 05:30:22] [EMAIL PROTECTED]

Not reproducable here, double check that you are indeed using the CLI
version of PHP:

/usr/local/bin/php -v



[2004-04-25 04:06:54] php at richardneill dot org

Description:

Using php from the command line, the error messages include html tags.
The html_errors directive is supposed to be overridden for PHP-CLI:
http://uk.php.net/manual/en/features.commandline.php



Reproduce code:
---
#!/usr/local/bin/php -q
? 
echo no semicolon
?



run this from the command line.

Expected result:

Parse error: parse error, expecting `','' or `';'' in
/home/rjn/test.php on line 4

(this is what I see using PHP 4.3.3)

Actual result:
--
br /
bParse error/b:  parse error, unexpected T_VARIABLE, expecting ','
or ';' in b/home/rjn/test/php/b on line b4/bbr /

(this is what I see in PHP 5.0.0RC1)





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