#44267 [Com]: soap server not persistence

2008-05-18 Thread glenn at webmind dot be
 ID:   44267
 Comment by:   glenn at webmind dot be
 Reported By:  falk dot herrmann at bike24 dot net
 Status:   Open
 Bug Type: SOAP related
 Operating System: Linux 2.6.23
 PHP Version:  5.2.5
 New Comment:

Having the same problem here.


Previous Comments:


[2008-04-20 16:17:34] davy dot defaud at free dot fr

I experienced the same problem on the same version 5.2.5, for a 2.6.24
kernel both on a i586 and a x86_64 systems (but I don't think it's
system related).
I already had this problem with an old 5.0.4 PHP but my code was
working on a 5.2.1 including Suhosin so I was confident that it would
work on my brand new mandriva 2008.1 server with the latest PHP, but it
doesn't :-(
This is a really critical bug for those using PHP as a SOAP server.
We really need a quick fix.



[2008-02-27 14:25:18] falk dot herrmann at bike24 dot net

Description:

A soap server with SOAP_PERSISTENCE_SESSION is not persistence if the
class Bar extends class Foo and the class Foo was included via include()
or required().
If the class Foo is directly in the server code file (server.php), soap
server works correct.

Reproduce code:
---
server.php
==
?php

  session_name('PSESSION');

  if ( $_COOKIE['PSESSION'] ) {
session_id($_COOKIE['PSESSION']);
  }
  $res = session_start();

  require('Foo.php');

  class Bar extends Foo {
public $var = 0;

public function login() {
  return session_id();
}

public function incVar() {
  $this-var++;
  return $this-var;
}
  }

  $server = new SoapServer(NULL, array('uri' = 'http://localhost/'));
  $server-setClass('Bar');
  $server-setPersistence(SOAP_PERSISTENCE_SESSION);
  $server-handle();

?

client.php
==
?php

  # Soap client
  $client = new SoapClient(NULL,
array(
location = http://localhost/server.php;,
uri = urn:xmethodsTest,
'trace' = 1
  ));

  # SOAP requests
  try {

$session = $client-login();

$client-__setCookie('PSESSION', $session);

print $client-incVar(); print \n;
print $client-incVar(); print \n;
print $client-incVar(); print \n;
print $client-incVar(); print \n;
print $client-incVar(); print \n;

  } catch (SoapFault $sf) {
# ...
  }

?

Foo.php
===
?php
  class Foo {

  }
?

Expected result:

1
2
3
4
5


Actual result:
--
1
1
1
1
1






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



#44954 [Fbk-Opn]: file_get_contents crashes Apache

2008-05-18 Thread abakker at gmx dot net
 ID:   44954
 User updated by:  abakker at gmx dot net
 Reported By:  abakker at gmx dot net
-Status:   Feedback
+Status:   Open
 Bug Type: Reproducible crash
 Operating System: Win XP
 PHP Version:  5.2.6
 New Comment:

I added a sleep(1) and set max_execution_time to 999. After 172
iterations the Apache server hangs (does not respond to page requests
anymore). The script continues very slowly at this point, it times out
on every file_get_contents request (in the error log you see the error
message mentioned at the top of this bug report for every iteration).

The total number of threads in Windows Task Manager does not increase
when running the script. My system is also not running out of resources,
I have 3 Gb memory of which 2.6 Gb is available.

When you replace file_get_contents with http_get or curl_exec the
problem does not occur. Seems to me that this indicates that there is
something wrong with file_get_contents.

In any case a PHP script should not cause the Apache server to
hang/crash (Apache does not respond to page requests for any user
anymore) and bring a production system down.


Previous Comments:


[2008-05-18 00:20:28] [EMAIL PROTECTED]

I really doubt this is any bug in PHP anyway. You propably just run out
of Apache threads/childs with that script that doesn't really give
Apache any chance. Try adding some 'sleep(1);' line inside the for()
loop.



[2008-05-11 11:15:41] abakker at gmx dot net

In the Apache error log it just says the connected party failed to
respond (the complete message is in the beginning of this bug report).

I tried the backtrace tools, but did not manage to get a backtrace. I
looked at the processes. I have two httpd.exe processes when I start
Apache. When I reproduce the problem, the two processes remain. I guess
technically this means the Apache server does not crash, but hangs and
this is the reason why I do not get a backtrace?

Anyway, the two httpd.exe processes keep on running, but any web page
request fails (internet explorer displays the standard page that it
could not access the requested web page). Apache no longer seems to
respond to requests. The two httpd.exe processes use no cpu when the
problem occurs.

A restart of Apache does not give any error message, but does not solve
the issue. A stop and start is needed. Not sure whether this tells you
something.

Anyway, were you able to reproduce the problem yourself? That would be
helpful, if so, you could do any backtracing or other diagnosis
yourself. I am not familiar with the diagnostic tools, it would be much
better if you could do it.



[2008-05-10 23:02:22] [EMAIL PROTECTED]

Nevermind the Apache log question..of course you checked that. :) But
there's no indication that anything crashed anywhere..



[2008-05-10 23:01:09] [EMAIL PROTECTED]

Are you sure it's a crash? If so, it's might be PHP that is crashs so
where's the backtrace? And did you check the Apache logs for any
possible information about this issue..?

Instructions how to get a backtrace under Windows:
http://bugs.php.net/bugs-generating-backtrace-win32.php 




[2008-05-09 11:22:01] abakker at gmx dot net

Description:

Apache crashes if a lot of file_get_contents are done. The Apache
error.log only contains this (I guess this just confirms that the Apache
server has crashed and no longer responds): [Fri May 09 12:15:04 2008]
[error] [client 192.168.0.1] PHP Warning: 
file_get_contents(http://localhost/test.htm) [a
href='function.file-get-contents'function.file-get-contents/a]:
failed to open stream: A connection attempt failed because the connected
party did not properly respond after a period of time, or established
connection failed because connected host has failed to respond.\r\n in
C:\\Andre\\Apache\\test.php on line 6


Reproduce code:
---
The following PHP script reproduces the problem:

?php
echo 'pre';
for ($i=1;;$i++)
{ echo $i.\n;
  flush();ob_flush();
  $contents = file_get_contents('http://localhost/test.htm');
}
?

After 203 iterations the Apache server crashes. The result is the same
whether localhost or IP address is used.

The problem depends on the contents of the test.htm file. If it only
contains

html
body
/body
/html

the script runs until it reaches the max execution time.

The test.htm that reproduces the problem contains:

html
head
link rel=stylesheet href=/systeem/style/style.css
titleV.V. De Meern/title
meta name=description content=V.V. De Meern
meta name=robots content=index,follow
script src=/beheer/include/header.js/script
/head
body
script src=menu.js/script
a href=menu.html/a

#44977 [Asn-Bgs]: php_xsl.dll isn't loaded

2008-05-18 Thread pajoye
 ID:   44977
 Updated by:   [EMAIL PROTECTED]
 Reported By:  deniso at deniso dot info
-Status:   Assigned
+Status:   Bogus
 Bug Type: XSLT related
 Operating System: windows xp sp2 rus
 PHP Version:  5.2.6
 Assigned To:  pajoye
 New Comment:

Duplicate report and fixed already. The mirrors should be updated. Try
for example the DE one:
http://de.php.net/get/php-5.2.6-Win32.zip/from/this/mirror


Previous Comments:


[2008-05-13 10:14:45] deniso at deniso dot info

I've downloaded zip (from Russian Federation mirror) just now and
copied php_xsl.dll to exts dir and got the same problem.



[2008-05-13 08:47:12] [EMAIL PROTECTED]

Please fetch the release zip, the problem has been fixed.



[2008-05-13 08:10:07] deniso at deniso dot info

Description:

When I'm trying to use php_xsl.dll, i get a message in apache logs:
PHP Warning:  PHP Startup: Unable to load dynamic library
'C:\\denis\\apache\\php5\\ext\\php_xsl.dll' - The specified procedure
could not be found. in Unknown on line 0

I've copied php_xsl.dll from php 5.2.4 and everything began to work
fine.






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



#45030 [Opn-Fbk]: Destination image alpah channle noise when using imagecopyresampled

2008-05-18 Thread pajoye
 ID:   45030
 Updated by:   [EMAIL PROTECTED]
 Reported By:  lieyang at yahoo dot com
-Status:   Open
+Status:   Feedback
 Bug Type: GD related
 Operating System: x86_64 GNU/Linux Kernel 2.6.9-4
 PHP Version:  5.2.6
 Assigned To:  pajoye
 New Comment:

The 56x56 image looks perfectly fine to me. I also checked the alpha
values for the translucent areas and they look fine too (full
translucent when they are not near the star anti aliased pixels, as
expected).

To see how is the alpha channel in the result image, please look at
this zoomed version of the alpha channel only:

http://pierre.libgd.org/bugs/45030_alpha_only.png

100% black means opaque and the gray squares are only to show a
background (what would be behind the image). As you can see, there is no
noise in the transparent areas.

Are you sure that there is not a bug in the Motorola display system?
Maybe it does not support semi transparent pixels.


Previous Comments:


[2008-05-18 03:51:39] lieyang at yahoo dot com

Here are my test source image (png 90x90): http://tinyurl.com/65tdtm
Resized to 56x56 with noise in alpha channel: http://tinyurl.com/6yold7



[2008-05-18 03:41:50] lieyang at yahoo dot com

Please try the following with different image sizes and you will see
that the alpha channel has noise.

(I have two original before and after images but can not find the link
to upload them as attachments)

$imageSrc = imagecreatetruecolor(90, 90);
imagealphablending($imageSrc, false);
imagesavealpha($imageSrc, true);
$color = imagecolorallocatealpha($imageSrc, 0, 0, 0, 127);
imagefill($imageSrc, 0, 0, $color);

$imageDst = imagecreatetruecolor(56, 56);
imagealphablending($imageDst, false);
imagesavealpha($imageDst, true);

imagecopyresampled($imageDst,$imageSrc, 0, 0, 0, 0, 56, 56, 90, 90);

header('Content-type: image/png');
imagepng($imageDst);



[2008-05-17 23:11:41] [EMAIL PROTECTED]

We need a better reproducible example here, including the source image.
 When the source image has a perfect alpha channel, I see no noise.  Try
this:

$imageSrc = imagecreatetruecolor(500, 500);
imagealphablending($imageSrc, false);
imagesavealpha($imageSrc, true);
$color = imagecolorallocatealpha($imageSrc, 0, 0, 0, 127);
imagefill($imageSrc, 0, 0, $color);
$imageDst = imagecreatetruecolor(50, 50);
imagealphablending($imageDst, false);
imagesavealpha($imageDst, true);
imagecopyresampled($imageDst,$imageSrc, 0, 0, 0, 0, 50, 50, 500, 500);

header('Content-type: image/png');
imagepng($imageDst);




[2008-05-17 22:52:00] [EMAIL PROTECTED]

In fact yes, I need the source image (what you have in $imageData).
Sorry for the double posts.



[2008-05-17 22:48:55] [EMAIL PROTECTED]

no need for src images :-)



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

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



#45032 [NEW]: Argument passed as reference to fopen() freezes execution

2008-05-18 Thread partner55470745 at aravensoft dot com
From: partner55470745 at aravensoft dot com
Operating system: Debian Linux 4.0
PHP version:  5.2.6
PHP Bug Type: Unknown/Other Function
Bug description:  Argument passed as reference to fopen() freezes execution

Description:

If an input function argument is passed as a reference (as opposed to as a
value) and it is used as an argument to fopen(), parsing and/or execution
of the script freezes without ANY warning or error whatsoever.

Reproduce code:
---
// This does NOT work (although it shoud)

function log_an_event ($logfile, $event)
{
   $f=fopen($logfile, 'a');

   // ...
}

// This is a workaround for the above (first arg not passed as reference)

function log_an_event ($logfile, $event)
{
   $f=fopen($logfile, 'a');

   // ...
}

Expected result:

Non-freezing execution.

Actual result:
--
Execution of the script freezes/exits without ANY warning or error
whatsoever.

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



#45032 [Opn-Fbk]: Argument passed as reference to fopen() freezes execution

2008-05-18 Thread felipe
 ID:   45032
 Updated by:   [EMAIL PROTECTED]
 Reported By:  partner55470745 at aravensoft dot com
-Status:   Open
+Status:   Feedback
 Bug Type: Unknown/Other Function
 Operating System: Debian Linux 4.0
 PHP Version:  5.2.6
 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 ?php and ends with ?,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.

I can't reproduce.


Previous Comments:


[2008-05-18 11:16:20] partner55470745 at aravensoft dot com

Description:

If an input function argument is passed as a reference (as opposed to
as a value) and it is used as an argument to fopen(), parsing and/or
execution of the script freezes without ANY warning or error whatsoever.

Reproduce code:
---
// This does NOT work (although it shoud)

function log_an_event ($logfile, $event)
{
   $f=fopen($logfile, 'a');

   // ...
}

// This is a workaround for the above (first arg not passed as
reference)

function log_an_event ($logfile, $event)
{
   $f=fopen($logfile, 'a');

   // ...
}

Expected result:

Non-freezing execution.

Actual result:
--
Execution of the script freezes/exits without ANY warning or error
whatsoever.





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



#45032 [Fbk-Opn]: Argument passed as reference to fopen() freezes execution

2008-05-18 Thread partner55470745 at aravensoft dot com
 ID:   45032
 User updated by:  partner55470745 at aravensoft dot com
 Reported By:  partner55470745 at aravensoft dot com
-Status:   Feedback
+Status:   Open
 Bug Type: Unknown/Other Function
 Operating System: Debian Linux 4.0
 PHP Version:  5.2.6
 New Comment:

Well the script itself is included in another script using require().
All files are pure .php scripts (no HTML) executed via browser (not
CLI).

MySQL is used in other parts of the scripts, but is not involved here.

PHP Version 5.2.0-8+etch11

This is a shortened but functional version of my reproduce code:

?php

function logevent ($logfile, $logevent)
{
$f=fopen($logfile, 'a');

if($f)  
{
fputs($f, $logevent);   
fclose($f); 

return true;
}

return false;
}

logevent ('/var/logs/somelog.log','somelogevent');

?


Previous Comments:


[2008-05-18 11:50:47] [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 ?php and ends with ?,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.

I can't reproduce.



[2008-05-18 11:16:20] partner55470745 at aravensoft dot com

Description:

If an input function argument is passed as a reference (as opposed to
as a value) and it is used as an argument to fopen(), parsing and/or
execution of the script freezes without ANY warning or error whatsoever.

Reproduce code:
---
// This does NOT work (although it shoud)

function log_an_event ($logfile, $event)
{
   $f=fopen($logfile, 'a');

   // ...
}

// This is a workaround for the above (first arg not passed as
reference)

function log_an_event ($logfile, $event)
{
   $f=fopen($logfile, 'a');

   // ...
}

Expected result:

Non-freezing execution.

Actual result:
--
Execution of the script freezes/exits without ANY warning or error
whatsoever.





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



#45032 [Opn-Fbk]: Argument passed as reference to fopen() freezes execution

2008-05-18 Thread felipe
 ID:   45032
 Updated by:   [EMAIL PROTECTED]
 Reported By:  partner55470745 at aravensoft dot com
-Status:   Open
+Status:   Feedback
 Bug Type: Unknown/Other Function
 Operating System: Debian Linux 4.0
 PHP Version:  5.2.6
 New Comment:

Please try using this CVS snapshot:

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

For Windows (installer):

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

This last script yields:
Fatal error: Only variables can be passed by reference


Previous Comments:


[2008-05-18 12:57:33] partner55470745 at aravensoft dot com

Well the script itself is included in another script using require().
All files are pure .php scripts (no HTML) executed via browser (not
CLI).

MySQL is used in other parts of the scripts, but is not involved here.

PHP Version 5.2.0-8+etch11

This is a shortened but functional version of my reproduce code:

?php

function logevent ($logfile, $logevent)
{
$f=fopen($logfile, 'a');

if($f)  
{
fputs($f, $logevent);   
fclose($f); 

return true;
}

return false;
}

logevent ('/var/logs/somelog.log','somelogevent');

?



[2008-05-18 11:50:47] [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 ?php and ends with ?,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.

I can't reproduce.



[2008-05-18 11:16:20] partner55470745 at aravensoft dot com

Description:

If an input function argument is passed as a reference (as opposed to
as a value) and it is used as an argument to fopen(), parsing and/or
execution of the script freezes without ANY warning or error whatsoever.

Reproduce code:
---
// This does NOT work (although it shoud)

function log_an_event ($logfile, $event)
{
   $f=fopen($logfile, 'a');

   // ...
}

// This is a workaround for the above (first arg not passed as
reference)

function log_an_event ($logfile, $event)
{
   $f=fopen($logfile, 'a');

   // ...
}

Expected result:

Non-freezing execution.

Actual result:
--
Execution of the script freezes/exits without ANY warning or error
whatsoever.





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



#45032 [Fbk-Opn]: Argument passed as reference to fopen() freezes execution

2008-05-18 Thread partner55470745 at aravensoft dot com
 ID:   45032
 User updated by:  partner55470745 at aravensoft dot com
 Reported By:  partner55470745 at aravensoft dot com
-Status:   Feedback
+Status:   Open
 Bug Type: Unknown/Other Function
 Operating System: Debian Linux 4.0
 PHP Version:  5.2.6
 New Comment:

Hello,

I cannot use the latest snapshot because I only have a production
server running the stable Debian. I have no test server, sorry.

However, I didn't know that PHP did not accept a constant string as a
parameter passed by reference. That is probably the cause. The only bug
I see is any lack of warning/error during the execution. And I used
error reporting level (E_ALL).


Previous Comments:


[2008-05-18 13:05:50] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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

For Windows (installer):

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

This last script yields:
Fatal error: Only variables can be passed by reference



[2008-05-18 12:57:33] partner55470745 at aravensoft dot com

Well the script itself is included in another script using require().
All files are pure .php scripts (no HTML) executed via browser (not
CLI).

MySQL is used in other parts of the scripts, but is not involved here.

PHP Version 5.2.0-8+etch11

This is a shortened but functional version of my reproduce code:

?php

function logevent ($logfile, $logevent)
{
$f=fopen($logfile, 'a');

if($f)  
{
fputs($f, $logevent);   
fclose($f); 

return true;
}

return false;
}

logevent ('/var/logs/somelog.log','somelogevent');

?



[2008-05-18 11:50:47] [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 ?php and ends with ?,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.

I can't reproduce.



[2008-05-18 11:16:20] partner55470745 at aravensoft dot com

Description:

If an input function argument is passed as a reference (as opposed to
as a value) and it is used as an argument to fopen(), parsing and/or
execution of the script freezes without ANY warning or error whatsoever.

Reproduce code:
---
// This does NOT work (although it shoud)

function log_an_event ($logfile, $event)
{
   $f=fopen($logfile, 'a');

   // ...
}

// This is a workaround for the above (first arg not passed as
reference)

function log_an_event ($logfile, $event)
{
   $f=fopen($logfile, 'a');

   // ...
}

Expected result:

Non-freezing execution.

Actual result:
--
Execution of the script freezes/exits without ANY warning or error
whatsoever.





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



#45031 [Opn-Csd]: tests/basic/021.phpt is missing the file_upload=1 test condition

2008-05-18 Thread iliaa
 ID:   45031
 Updated by:   [EMAIL PROTECTED]
 Reported By:  gm dot outside+php at gmail dot com
-Status:   Open
+Status:   Closed
 Bug Type: *General Issues
 Operating System: Linux
 PHP Version:  5.2.6
 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:


[2008-05-17 23:06:21] gm dot outside+php at gmail dot com

Description:

tests/basic/021.phpt depends on 'file_upload=1', the following
subsection should be added to this test:

--INI--
file_upload=1

Once this is added the test will work even if system-wide php.ini
disables file uploads.






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



#45033 [NEW]: I cannot run php on puppylinux

2008-05-18 Thread k_suntti at hotmail dot com
From: k_suntti at hotmail dot com
Operating system: Puppylinux
PHP version:  5.2.6
PHP Bug Type: Unknown/Other Function
Bug description:  I cannot run php on puppylinux

Description:

I cannot run php on puppylinux


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



#45030 [Fbk-Opn]: Destination image alpah channle noise when using imagecopyresampled

2008-05-18 Thread lieyang at yahoo dot com
 ID:   45030
 User updated by:  lieyang at yahoo dot com
 Reported By:  lieyang at yahoo dot com
-Status:   Feedback
+Status:   Open
 Bug Type: GD related
 Operating System: x86_64 GNU/Linux Kernel 2.6.9-4
 PHP Version:  5.2.6
 Assigned To:  pajoye
 New Comment:

You can see the noise on both my 56x56 image and image generated from
Rasmus's reproducing code sample with resizing from 90x90 to 50x50 (I am
not talking about the anti-aliasing areas :)

GIMP: Tools  Selection Tools  By Color select, click a few spots in
the empty region of the image and you will see the noise being
selected.

Paint.net: use the color select tool and click a few times on the empty
region of the image, some pixels will display the transparency as 2.

(thank you so much for your quick response!)


Previous Comments:


[2008-05-18 10:29:14] [EMAIL PROTECTED]

The 56x56 image looks perfectly fine to me. I also checked the alpha
values for the translucent areas and they look fine too (full
translucent when they are not near the star anti aliased pixels, as
expected).

To see how is the alpha channel in the result image, please look at
this zoomed version of the alpha channel only:

http://pierre.libgd.org/bugs/45030_alpha_only.png

100% black means opaque and the gray squares are only to show a
background (what would be behind the image). As you can see, there is no
noise in the transparent areas.

Are you sure that there is not a bug in the Motorola display system?
Maybe it does not support semi transparent pixels.



[2008-05-18 03:51:39] lieyang at yahoo dot com

Here are my test source image (png 90x90): http://tinyurl.com/65tdtm
Resized to 56x56 with noise in alpha channel: http://tinyurl.com/6yold7



[2008-05-18 03:41:50] lieyang at yahoo dot com

Please try the following with different image sizes and you will see
that the alpha channel has noise.

(I have two original before and after images but can not find the link
to upload them as attachments)

$imageSrc = imagecreatetruecolor(90, 90);
imagealphablending($imageSrc, false);
imagesavealpha($imageSrc, true);
$color = imagecolorallocatealpha($imageSrc, 0, 0, 0, 127);
imagefill($imageSrc, 0, 0, $color);

$imageDst = imagecreatetruecolor(56, 56);
imagealphablending($imageDst, false);
imagesavealpha($imageDst, true);

imagecopyresampled($imageDst,$imageSrc, 0, 0, 0, 0, 56, 56, 90, 90);

header('Content-type: image/png');
imagepng($imageDst);



[2008-05-17 23:11:41] [EMAIL PROTECTED]

We need a better reproducible example here, including the source image.
 When the source image has a perfect alpha channel, I see no noise.  Try
this:

$imageSrc = imagecreatetruecolor(500, 500);
imagealphablending($imageSrc, false);
imagesavealpha($imageSrc, true);
$color = imagecolorallocatealpha($imageSrc, 0, 0, 0, 127);
imagefill($imageSrc, 0, 0, $color);
$imageDst = imagecreatetruecolor(50, 50);
imagealphablending($imageDst, false);
imagesavealpha($imageDst, true);
imagecopyresampled($imageDst,$imageSrc, 0, 0, 0, 0, 50, 50, 500, 500);

header('Content-type: image/png');
imagepng($imageDst);




[2008-05-17 22:52:00] [EMAIL PROTECTED]

In fact yes, I need the source image (what you have in $imageData).
Sorry for the double posts.



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

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



#45030 [Opn-Fbk]: Destination image alpah channle noise when using imagecopyresampled

2008-05-18 Thread pajoye
 ID:   45030
 Updated by:   [EMAIL PROTECTED]
 Reported By:  lieyang at yahoo dot com
-Status:   Open
+Status:   Feedback
 Bug Type: GD related
 Operating System: x86_64 GNU/Linux Kernel 2.6.9-4
 PHP Version:  5.2.6
 Assigned To:  pajoye
 New Comment:

Right, there is a alpha values between 0 and 2. This is a little
rounding issue in the interpolation function.

As it is not relevant when you use the full range of the 8bit (7bit in
gd 2.0.x internals), it could cause some troubles when you introduce
more errors while using only 4bits. 

The worst case will end with an error twice bigger than the original
one. That's certainly why you see the little black pixels.

Here is an attempt to minimize the error in the edge of the alpha
values:

http://pierre.libgd.org/patches/bug45030.txt

It should fix non obvious errors like the one you had.




Previous Comments:


[2008-05-18 16:14:25] lieyang at yahoo dot com

You can see the noise on both my 56x56 image and image generated from
Rasmus's reproducing code sample with resizing from 90x90 to 50x50 (I am
not talking about the anti-aliasing areas :)

GIMP: Tools  Selection Tools  By Color select, click a few spots in
the empty region of the image and you will see the noise being
selected.

Paint.net: use the color select tool and click a few times on the empty
region of the image, some pixels will display the transparency as 2.

(thank you so much for your quick response!)



[2008-05-18 10:29:14] [EMAIL PROTECTED]

The 56x56 image looks perfectly fine to me. I also checked the alpha
values for the translucent areas and they look fine too (full
translucent when they are not near the star anti aliased pixels, as
expected).

To see how is the alpha channel in the result image, please look at
this zoomed version of the alpha channel only:

http://pierre.libgd.org/bugs/45030_alpha_only.png

100% black means opaque and the gray squares are only to show a
background (what would be behind the image). As you can see, there is no
noise in the transparent areas.

Are you sure that there is not a bug in the Motorola display system?
Maybe it does not support semi transparent pixels.



[2008-05-18 03:51:39] lieyang at yahoo dot com

Here are my test source image (png 90x90): http://tinyurl.com/65tdtm
Resized to 56x56 with noise in alpha channel: http://tinyurl.com/6yold7



[2008-05-18 03:41:50] lieyang at yahoo dot com

Please try the following with different image sizes and you will see
that the alpha channel has noise.

(I have two original before and after images but can not find the link
to upload them as attachments)

$imageSrc = imagecreatetruecolor(90, 90);
imagealphablending($imageSrc, false);
imagesavealpha($imageSrc, true);
$color = imagecolorallocatealpha($imageSrc, 0, 0, 0, 127);
imagefill($imageSrc, 0, 0, $color);

$imageDst = imagecreatetruecolor(56, 56);
imagealphablending($imageDst, false);
imagesavealpha($imageDst, true);

imagecopyresampled($imageDst,$imageSrc, 0, 0, 0, 0, 56, 56, 90, 90);

header('Content-type: image/png');
imagepng($imageDst);



[2008-05-17 23:11:41] [EMAIL PROTECTED]

We need a better reproducible example here, including the source image.
 When the source image has a perfect alpha channel, I see no noise.  Try
this:

$imageSrc = imagecreatetruecolor(500, 500);
imagealphablending($imageSrc, false);
imagesavealpha($imageSrc, true);
$color = imagecolorallocatealpha($imageSrc, 0, 0, 0, 127);
imagefill($imageSrc, 0, 0, $color);
$imageDst = imagecreatetruecolor(50, 50);
imagealphablending($imageDst, false);
imagesavealpha($imageDst, true);
imagecopyresampled($imageDst,$imageSrc, 0, 0, 0, 0, 50, 50, 500, 500);

header('Content-type: image/png');
imagepng($imageDst);




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

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



#45017 [Bgs]: iconv removes tidles when converting from utf to shift_jis

2008-05-18 Thread nospam at nihonbunka dot com
 ID:   45017
 User updated by:  nospam at nihonbunka dot com
 Reported By:  nospam at nihonbunka dot com
 Status:   Bogus
 Bug Type: *Unicode Issues
 Operating System: BSD
 PHP Version:  5.2.6
 New Comment:

In the Microsoft version of the Shift-Jis there is a tilde. 

http://www.microsoft.com/globaldev/reference/dbcs/932.mspx


Previous Comments:


[2008-05-16 07:59:57] nospam at nihonbunka dot com

Given that there is no single byte tilde in shift_jis then shouldn't
//TRANSLIT give the ascii code all the same? 

//TRANSLIT seems to break at the tilde and not display either the ascii
code or the rest of the string. 

For some unknown reason shift-jis encoded pages seem to display the
char(126) 7E character as a tilde and not an overbar, so the fact that
the tilde does not exist would not be a problem if it were TRANSLITted.
http://md2.cc.yamaguchi-u.ac.jp/~eigo/temp/tilde.php



[2008-05-16 07:16:52] nospam at nihonbunka dot com

Hmm tilde is often displayed and used in Japan. How can this be? 
I have web pages such as that below, which I can type into and display
on a shift_jis encoded page

http://md2.cc.yamaguchi-u.ac.jp/~eigo/temp/tilde.php

The contents of this file is
?PHP 
$string = 'https://md2.cc.yamaguchi-u.ac.jp/~eigo/temp/tilde.php'; //
This is what we start off with
echo ('this is what we start with = '.$string.'BR /'); //print string
at start
$conv_str = iconv('utf-8','shift-jis'.'//TRANSLIT',$string); 
echo ('this is not working = '.$conv_str.'BR /'); //Just to show that
this is not working.

$rstring = preg_replace ('/~/','1bytetilde',$string);   //modify before
conversion
echo ('this is modified string here = '.$rstring.'BR /'); //This is
the modified string

$conv_str2 = iconv('utf-8','shift-jis'.'//TRANSLIT',$rstring);
//convert
$rereplace=chr(126); //$rereplace is a one byte tilde in shift_jis
$rerstring = preg_replace ('/1bytetilde/',$rereplace,$conv_str2);
//rereplace with tildes
echo ('this is the correct result = '.$rerstring.'BR /'); //the
correct result
?



[2008-05-16 06:12:33] [EMAIL PROTECTED]

That's because shift-jis doesn't support the (ASCII) tilde. (Unicode
char 0x7D):
http://demo.icu-project.org/icu-bin/convexp?conv=ibm-943_P130-1999ShowSets=ALL#ShowSet



[2008-05-16 02:11:51] nospam at nihonbunka dot com

Description:

inconv does not seem to convert single space tildes from utf8 to
shift_jis

Please bear in mind that shift_jis tildes are not where one would
expect them to be. 
http://en.wikipedia.org/wiki/Shift-JIS
The single-byte characters 0x00 to 0x7F match the ASCII encoding,
except for a yen sign at 0x5C and an overline at 0x7E in place of the
ASCII character set's backslash and tilde respectively.

If I use //IGNORE then the tildes just disappear. If I use //TRANSLIT
the bug is even worse - all of the string after and including the first
the ~ disappears.

There was also a double byte tilde problem in the past, but this is
different. 



Reproduce code:
---
?PHP 
$conv_str = iconv('utf-8','shift-jis'.'//IGNORE','where are the (~) (~)
tildes?'); 
echo ($conv_str);
?



Expected result:

where are the (~) (~) tildes?

the above in shift_jist using //IGNORE



Actual result:
--
where are the () () tildes?

using //IGNORE and

where are the (

using //TRANSLIT





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



#45035 [NEW]: Reg exp. '/\w/u' not include #337;, #369;, #336; and #368; utf characters

2008-05-18 Thread kamarton at gmail dot com
From: kamarton at gmail dot com
Operating system: Win XP
PHP version:  5.2.6
PHP Bug Type: Unicode Engine related
Bug description:  Reg exp. '/\w/u' not include #337;, #369;, #336; and 
#368; utf characters 

Description:

The regular expression engine with 'u' modifiers '\w' class not include
few hungarian characters.
Not include: #337;, #369;, #336; and #368;.
PHP source file coding in utf8 with BOM.

Sorry my english.
Regards,
Marton

System:
WinXP, SP2
PHP 5.2.5 (xampp version)
(source editor: Notepad++ v4.9.2.)

Reproduce code:
---
echo preg_replace('/\w/u','_','öüó#337;úéá#369;íÖÜÓ#336;ÚÉÁ#368;Í');

Expected result:

echo - '__'

Actual result:
--
echo - '___#337;___#369;#336;___#368;_'

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



#45035 [Opn]: Reg exp. '/\w/u' not include #337;, #369;, #336;; and #368;; utf characters

2008-05-18 Thread kamarton at gmail dot com
 ID:   45035
 User updated by:  kamarton at gmail dot com
-Summary:  Reg exp. '/\w/u' not include #337;, #369;, #336;
   and #368; utf characters
 Reported By:  kamarton at gmail dot com
 Status:   Open
 Bug Type: Unicode Engine related
 Operating System: Win XP
 PHP Version:  5.2.6
 New Comment:

Reproduce code:
---
echo
preg_replace('/\w/u','_','öüó#337;úéá#369;íÖÜÓ#336;ÚÉÁ#368;Í');

Expected result:

echo - '__'

Actual result:
--
echo - '___#337;___#369;#336;___#368;_'


Previous Comments:


[2008-05-18 18:52:42] kamarton at gmail dot com

Description:

The regular expression engine with 'u' modifiers '\w' class not include
few hungarian characters.
Not include: #337;, #369;, #336; and #368;.
PHP source file coding in utf8 with BOM.

Sorry my english.
Regards,
Marton

System:
WinXP, SP2
PHP 5.2.5 (xampp version)
(source editor: Notepad++ v4.9.2.)

Reproduce code:
---
echo
preg_replace('/\w/u','_','öüó#337;úéá#369;íÖÜÓ#336;ÚÉÁ#368;Í');

Expected result:

echo - '__'

Actual result:
--
echo - '___#337;___#369;#336;___#368;_'





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



#44267 [Opn]: soap server not persistence

2008-05-18 Thread falk dot herrmann at bike24 dot net
 ID:   44267
 User updated by:  falk dot herrmann at bike24 dot net
 Reported By:  falk dot herrmann at bike24 dot net
 Status:   Open
 Bug Type: SOAP related
 Operating System: Linux 2.6.23
 PHP Version:  5.2.5
 New Comment:

It seems that the code work with PHP 5.2.6


Previous Comments:


[2008-05-18 08:15:19] glenn at webmind dot be

Having the same problem here.



[2008-04-20 16:17:34] davy dot defaud at free dot fr

I experienced the same problem on the same version 5.2.5, for a 2.6.24
kernel both on a i586 and a x86_64 systems (but I don't think it's
system related).
I already had this problem with an old 5.0.4 PHP but my code was
working on a 5.2.1 including Suhosin so I was confident that it would
work on my brand new mandriva 2008.1 server with the latest PHP, but it
doesn't :-(
This is a really critical bug for those using PHP as a SOAP server.
We really need a quick fix.



[2008-02-27 14:25:18] falk dot herrmann at bike24 dot net

Description:

A soap server with SOAP_PERSISTENCE_SESSION is not persistence if the
class Bar extends class Foo and the class Foo was included via include()
or required().
If the class Foo is directly in the server code file (server.php), soap
server works correct.

Reproduce code:
---
server.php
==
?php

  session_name('PSESSION');

  if ( $_COOKIE['PSESSION'] ) {
session_id($_COOKIE['PSESSION']);
  }
  $res = session_start();

  require('Foo.php');

  class Bar extends Foo {
public $var = 0;

public function login() {
  return session_id();
}

public function incVar() {
  $this-var++;
  return $this-var;
}
  }

  $server = new SoapServer(NULL, array('uri' = 'http://localhost/'));
  $server-setClass('Bar');
  $server-setPersistence(SOAP_PERSISTENCE_SESSION);
  $server-handle();

?

client.php
==
?php

  # Soap client
  $client = new SoapClient(NULL,
array(
location = http://localhost/server.php;,
uri = urn:xmethodsTest,
'trace' = 1
  ));

  # SOAP requests
  try {

$session = $client-login();

$client-__setCookie('PSESSION', $session);

print $client-incVar(); print \n;
print $client-incVar(); print \n;
print $client-incVar(); print \n;
print $client-incVar(); print \n;
print $client-incVar(); print \n;

  } catch (SoapFault $sf) {
# ...
  }

?

Foo.php
===
?php
  class Foo {

  }
?

Expected result:

1
2
3
4
5


Actual result:
--
1
1
1
1
1






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



#45036 [NEW]: Need a way to get last run query after results from mysqli::multi_query

2008-05-18 Thread s_p_a_mcatcher at hotmail dot com
From: s_p_a_mcatcher at hotmail dot com
Operating system: All
PHP version:  5.2.6
PHP Bug Type: Feature/Change Request
Bug description:  Need a way to get last run query after results from 
mysqli::multi_query

Description:

When running mysqli's multi_query, please make it possible to return the
query that last returned a result set.


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



#44645 [NoF-Fbk]: php5ts.dll Crash (x86_64 base machines)

2008-05-18 Thread pajoye
 ID:   44645
 Updated by:   [EMAIL PROTECTED]
 Reported By:  gary dot wilson at coull dot biz
-Status:   No Feedback
+Status:   Feedback
 Bug Type: Reproducible crash
 Operating System: Windows Server 2003
 PHP Version:  5.2.5
 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 for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

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:


[2008-05-17 23:21:24] ramons at gmx dot net

I get the same error on XP 64 bit, which is the same as Server 2003 64
bit in regards to 99% of the OS.
Also, same issue, but get it after opening just one connection to MySQL
on a different system.
Using latest stable PHP version, which at this point is 5.2.6. Used
older version 5.2.3 and get the same error.
Since this crash always happens every time I connect to MySQL it makes
PHP unusable at the moment on x64 Windows systems.



[2008-05-04 21:28:05] miland at vol dot cz

Hello,

I have exactly same problem.

The Apache crashes on x64 Vista Ultimate when the application tries to
connect to the mysql database.

Faulting application httpd.exe, version 2.2.8.0, time stamp 0x47a48331,
faulting module php5ts.dll, version 5.2.5.5, time stamp 0x473896cb,
exception code 0xc005, fault offset 0xf7c2, process id
0xe1c, application start time 0x01c8ae2c9449782b.

Apache 2.2.8 x64 - the same problem with x32 version on x64 host
system.
PHP 5.2.5 x64
Mysql 5.1.24 x64

Other scripts are running well, but when I need to connect to the
database, the apache crashes.



[2008-04-22 07:39:01] whydream at 163 dot com

just connect to mysql, this error will occurs. code like this:
?php
$link = mysql_connect('localhost', 'root', 'q790318q')
or die('cannot connectF' . mysql_error());
echo 'connected';

?



[2008-04-16 01:00:00] 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.



[2008-04-08 11:00:01] [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 ?php and ends with ?,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.





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

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



#45032 [Opn-Bgs]: Argument passed as reference to fopen() freezes execution

2008-05-18 Thread felipe
 ID:   45032
 Updated by:   [EMAIL PROTECTED]
 Reported By:  partner55470745 at aravensoft dot com
-Status:   Open
+Status:   Bogus
 Bug Type: Unknown/Other Function
 Operating System: Debian Linux 4.0
 PHP Version:  5.2.6
 New Comment:

.


Previous Comments:


[2008-05-18 13:19:41] partner55470745 at aravensoft dot com

Hello,

I cannot use the latest snapshot because I only have a production
server running the stable Debian. I have no test server, sorry.

However, I didn't know that PHP did not accept a constant string as a
parameter passed by reference. That is probably the cause. The only bug
I see is any lack of warning/error during the execution. And I used
error reporting level (E_ALL).



[2008-05-18 13:05:50] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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

For Windows (installer):

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

This last script yields:
Fatal error: Only variables can be passed by reference



[2008-05-18 12:57:33] partner55470745 at aravensoft dot com

Well the script itself is included in another script using require().
All files are pure .php scripts (no HTML) executed via browser (not
CLI).

MySQL is used in other parts of the scripts, but is not involved here.

PHP Version 5.2.0-8+etch11

This is a shortened but functional version of my reproduce code:

?php

function logevent ($logfile, $logevent)
{
$f=fopen($logfile, 'a');

if($f)  
{
fputs($f, $logevent);   
fclose($f); 

return true;
}

return false;
}

logevent ('/var/logs/somelog.log','somelogevent');

?



[2008-05-18 11:50:47] [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 ?php and ends with ?,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.

I can't reproduce.



[2008-05-18 11:16:20] partner55470745 at aravensoft dot com

Description:

If an input function argument is passed as a reference (as opposed to
as a value) and it is used as an argument to fopen(), parsing and/or
execution of the script freezes without ANY warning or error whatsoever.

Reproduce code:
---
// This does NOT work (although it shoud)

function log_an_event ($logfile, $event)
{
   $f=fopen($logfile, 'a');

   // ...
}

// This is a workaround for the above (first arg not passed as
reference)

function log_an_event ($logfile, $event)
{
   $f=fopen($logfile, 'a');

   // ...
}

Expected result:

Non-freezing execution.

Actual result:
--
Execution of the script freezes/exits without ANY warning or error
whatsoever.





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



#45033 [Opn-Fbk]: I cannot run php on puppylinux

2008-05-18 Thread felipe
 ID:   45033
 Updated by:   [EMAIL PROTECTED]
 Reported By:  k_suntti at hotmail dot com
-Status:   Open
+Status:   Feedback
 Bug Type: Unknown/Other Function
 Operating System: Puppylinux
 PHP Version:  5.2.6
 New Comment:

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

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

Thank you for your interest in PHP.





Previous Comments:


[2008-05-18 15:26:38] k_suntti at hotmail dot com

Description:

I cannot run php on puppylinux






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