| #26256 [NEW]: apache fails to load |
|
 |
Index ‹ php-dev
|
- Previous
- 3
- #30853 [NEW]: Need new functionFrom: sonny at gmx dot de
Operating system: *nix
PHP version: Irrelevant
PHP Bug Type: Feature/Change Request
Bug description: Need new function
Description:
------------
Hello,
I'd like to send here an Feature Request in case of this will of course
helpfull for a lot of people who're working with PHP.
I missing a function - say it "timerun()".
The idea behind this is to have an control mechanism which kill the
request of the function when an result or Error is not return in between
10 sed (for exp.).
Often I run in a Situation where such a kind of function would be great.
Example:
- connect to an Database ( Oracle ) with PEAR or manual
- connection established
- send a query()
- this does not return due propebly an too high load in a
given time
- here comes the timerun() in play - which will stop the query execution
by given time.
Cheers
-Peter
Reproduce code:
---------------
not yet available ...
Expected result:
----------------
In the next release a function which cover this functionality.
Actual result:
--------------
does not exist
--
Edit bug report at http://bugs.php.net/?id=30853&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30853&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30853&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30853&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=30853&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=30853&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=30853&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=30853&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=30853&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=30853&r=support
Expected behavior: http://bugs.php.net/fix.php?id=30853&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=30853&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=30853&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=30853&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30853&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=30853&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=30853&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=30853&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=30853&r=float
MySQL Configuration Error: http://bugs.php.net/fix.php?id=30853&r=mysqlcfg
- 5
- #29955 [Opn->Ana]: mb_strtoupper() / lower() broken with some locale ID: 29955
Updated by: email***@***.com
-Summary: mb_strtoupper() / lower() broken with iso-8859-9
Reported By: jan at horde dot org
-Status: Open
+Status: Analyzed
Bug Type: mbstring related
Operating System: Linux
PHP Version: 4CVS-2004-09-02 (stable)
New Comment:
It turned out this is because mbstring doesn't take the
locale into consideration.
Previous Comments:
------------------------------------------------------------------------
[2005-02-21 20:51:07] jan at horde dot org
No, this didn't change anything.
------------------------------------------------------------------------
[2005-02-21 11:02:02] email***@***.com
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
------------------------------------------------------------------------
[2004-09-02 17:15:42] jan at horde dot org
Description:
------------
In ISO-8859-9 (Turkish) the uppercase letter of "i" is a dotted
uppercase "I", the lowercase letter of "I" is a dotless "i". But
mb_strtolower() und mb_strtoupper() simply return the ASCII uppercase
or lowercase counterparts.
You get the correct result with:
setlocale(LC_ALL, 'tr_TR');
echo strtoupper('i');
echo strtolower('I');
But the wrong results with:
echo mb_strtoupper('i', 'iso-8859-9');
echo mb_strtolower('I', 'iso-8859-9');
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=29955&edit=1
- 5
- #39747 [Opn->Bgs]: Windows Install package fails on IIS6/Server2k3 ID: 39747
Updated by: email***@***.com
Reported By: rnerovich at milsoft dot com
-Status: Open
+Status: Bogus
Bug Type: IIS related
Operating System: Windows Server 2003
PHP Version: 5.2.0
New Comment:
The installer in CVS was fixed (will be used in the next
release), the downloadable file is not going to be changed.
Previous Comments:
------------------------------------------------------------------------
[2006-12-05 19:49:27] rnerovich at milsoft dot com
Description:
------------
Installing php-5.2.0-win32-installer.msi on IIS 6.0 / Windows Server
2003, the install fails when selecting option for IIS 4.0+ CGI. This
bug was reported and closed in Bug #39410: Installation on CGI mode
fails, but the available installer is still: PHP 5.2.0 installer
[18,879Kb] - 02 Nov 2006
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39747&edit=1
- 5
- #38545 [NEW]: sapi/cli/php: symbol xmlTextReaderGetAttribute: referenced symbol not foundFrom: wzaccone at telcordia dot com
Operating system: Solaris 9
PHP version: 5.1.5
PHP Bug Type: *Configuration Issues
Bug description: sapi/cli/php: symbol xmlTextReaderGetAttribute: referenced symbol not found
Description:
------------
Installing PHP 5.1.5 on Solaris 9 using apache 2.0.55. Php plugin for
apache works, but the make install gave this error at the end. I
researched and saw a previous bug marked bogus indicated to use gnu
version of ld. I tried that and it still got the same error. see below.
using the gnu version of ld gets same error on php 5.1.5.
Actual result:
--------------
Installing man pages: /usr/local/apache/lib/man/man1/
page: phpize.1
page: php-config.1
Installing PEAR environment: /usr/local/apache/lib/php/
ld.so.1: php: fatal: relocation error: file /php-5.1.5/sapi/cli/php:
symbol xmlTextReaderGetAttribute: referenced symbol not found
Killed
make[1]: *** [install-pear-installer] Error 137
make: *** [install-pear] Error 2
# which ld
/usr/local/bin/ld
# ld --version
GNU ld version 2.14 20030612
Copyright 2002 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License. This program has absolutely no warranty.
#
--
Edit bug report at http://bugs.php.net/?id=38545&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38545&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38545&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38545&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=38545&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=38545&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=38545&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=38545&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=38545&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=38545&r=support
Expected behavior: http://bugs.php.net/fix.php?id=38545&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=38545&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=38545&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=38545&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38545&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=38545&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=38545&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=38545&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=38545&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=38545&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=38545&r=mysqlcfg
- 6
- #31779 [Opn->Asn]: XML_CDATA_SECTION_NODE is returned as XML_TEXT_NODE ID: 31779
Updated by: email***@***.com
Reported By: galg at sphera dot com
-Status: Open
+Status: Assigned
Bug Type: DOM XML related
Operating System: Linux
PHP Version: 4.3.10
-Assigned To:
+Assigned To: rrichards
New Comment:
Rob, can you please check this out?
Previous Comments:
------------------------------------------------------------------------
[2005-02-06 00:18:54] galg at sphera dot com
It's seems to be a problem with the integration of PHP 4.3.x and
libxml2 ver 2.6.x.
I've tested the following php5 script on PHP 5.0.2 compiled with
libxml2-2.6.11 and it worked as expected:
<?php
$sXML = <<<XML
<?xml version="1.0" encoding="UTF-8"?>
<XML_DOC>
<![CDATA[ something inside the CDATA. ]]>
</XML_DOC>
XML;
$objXML = new DOMDocument;
$objXML->loadXML($sXML);
foreach ($objXML->documentElement->childNodes as $child)
{
echo "Type: " . $child->nodeType . "\t | \t";
echo "Name: " . $child->nodeName;
echo "\n";
}
?>
The php5 script returns good result: the CDATA section with type 4.
Could it be that the problem is an API change in the libxml2 version
2.6.x which wasn't updated in version 4.3.x of php ?
The result of the script on my environment is:
Type: 3 | Name: #text
Type: 4 | Name: #cdata-section
Type: 3 | Name: #text
Regards,
Gal
------------------------------------------------------------------------
[2005-02-05 16:03:04] galg at sphera dot com
Made 2 more tests:
I've compiled php 4.3.10 with the latest libxml2 ver 2.6.17 and still
has the same problem
I tried also to compile it agains version libxml2-2.5.11 and it worked
as expected.
The problem seems to be only with version 2.6.x of libxml2.
------------------------------------------------------------------------
[2005-02-05 14:56:23] galg at sphera dot com
I've compiled now the php myself:
- I compiled php 4.3.10 with libxml2-2.4.30 the result was ok as i
expected to be.
- I compiled php 4.3.10 with libxml2 20611 the result was the same i
wrote in the bug description.
Latest version of libxml2 is :2.6.17.
The sources files of the libxml2 are under directory called "old" all
new Linux distributions are using libxml2 version 2.6.x.
------------------------------------------------------------------------
[2005-01-31 16:06:24] galg at sphera dot com
Description:
------------
When I've used the following code on php 4.3.8:
The <![CDATA[ ]> section was returned as XML_CDATA_SECTION_NODE (value
4).
When i am running the same code on 4.3.10 its returned as XML_TEXT_NODE
(value 3).
Reproduce code:
---------------
<?php
$sXML = <<<XML
<?xml version="1.0" encoding="UTF-8"?>
<XML_DOC>
<![CDATA[ something inside the CDATA. ]]>
</XML_DOC>
XML;
print_r(domxml_xmltree($sXML));
?>
Expected result:
----------------
php 4.3.8 response:
=======================
domdocument Object
(
[name] => #document
[url] =>
[version] => 1.0
[encoding] => UTF-8
[standalone] => -1
[type] => 9
[compression] => -1
[charset] => 1
[0] => 4
[1] => 138008952
[children] => Array
(
[0] => domelement Object
(
[type] => 1
[tagname] => XML_DOC
[0] => 5
[1] => 138009088
[children] => Array
(
[0] => domtext Object
(
[type] => 3
[name] => #text
[content] =>
[0] => 6
[1] => 138009160
)
[1] => domcdata Object
(
[type] => 4
[content] => something inside the
CDATA.
[0] => 7
[1] => 138009320
)
[2] => domtext Object
(
[type] => 3
[name] => #text
[content] =>
[0] => 8
[1] => 138009416
)
)
)
)
)
Actual result:
--------------
php 4.3.10 response:
===========================
domdocument Object
(
[name] => #document
[url] =>
[version] => 1.0
[encoding] => UTF-8
[standalone] => -1
[type] => 9
[compression] => -1
[charset] => 1
[0] => 4
[1] => 138267176
[children] => Array
(
[0] => domelement Object
(
[type] => 1
[tagname] => XML_DOC
[0] => 5
[1] => 138267304
[children] => Array
(
[0] => domtext Object
(
[type] => 3
[name] => #text
[content] =>
something inside the CDATA.
[0] => 6
[1] => 138258296
)
)
)
)
)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31779&edit=1
- 10
- 12
- Search Engine Friendly URL's - Apache ErrorDocument 404 - "File Not Found" in error log...Hi
I am using an Apache2 ErrorDocument directive to send all 404's to a
PHP script that handles path translation to allow for my website to
have Search Engine Friendly URL's.
Everything works really, really well except that every page request
results in a "File Not Found" message in the Apache error_log. Is
there any way to suppress this log message from within the PHP script ?
Does anybody have any familiarity with Apache configuration to
suppress just the 404 log message entirely?
thanks in advance...
Hal
- 12
- #36292 [NEW]: A BIG PROBLEM IN mktime FUNCTION !!!!!From: hello at cmail dot cz
Operating system: Windows XP SP2
PHP version: 4.4.2
PHP Bug Type: Date/time related
Bug description: A BIG PROBLEM IN mktime FUNCTION !!!!!
Description:
------------
Hi! I found a big problem in function mktime. A different days returns
same value. Especially FEBRUARY 8th and 9th 2006. It's a very important,
because it's a very soon. There is a fatal problem. See the code below.
Greetings from Czech republic. Beda
Reproduce code:
---------------
$A1 = mktime(00,00,00,01,31,2006);
$A2 = mktime(00,00,00,02,07,2006);
// $A1=1138662000 $A2=1139266800
$A1 = mktime(00,00,00,01,31,2006);
$A2 = mktime(00,00,00,02,08,2006);
// both ($A1 and $A2) returns 1138662000
$A1 = mktime(00,00,00,01,31,2006);
$A2 = mktime(00,00,00,02,09,2006);
// both ($A1 and $A2) returns 1138662000
Expected result:
----------------
please see the above
Actual result:
--------------
please see the above
--
Edit bug report at http://bugs.php.net/?id=36292&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36292&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36292&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36292&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=36292&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=36292&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=36292&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=36292&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=36292&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=36292&r=support
Expected behavior: http://bugs.php.net/fix.php?id=36292&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=36292&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=36292&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=36292&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36292&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=36292&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=36292&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=36292&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=36292&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=36292&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=36292&r=mysqlcfg
- 12
- #25927 [Opn->Bgs]: get_html_translation_table calls the ' ' instead of ' ID: 25927
Updated by: email***@***.com
Reported By: acm at tweakers dot net
-Status: Open
+Status: Bogus
Bug Type: Unknown/Other Function
Operating System: Linux
PHP Version: 4.3.3
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php
Both ' and ' are valid.
Previous Comments:
------------------------------------------------------------------------
[2003-10-20 18:35:41] kees at tweakers dot net
We've fixed it be commenting line 421 of ext/standard/html.c:
420- { '\'', "'", 6, ENT_HTML_QUOTE_SINGLE },
421:/* { '\'', "'", 5, ENT_HTML_QUOTE_SINGLE }, */
------------------------------------------------------------------------
[2003-10-20 17:53:29] acm at tweakers dot net
Description:
------------
When you call get_html_translation_table, with the ENT_QUOTES
parameter, it'll return ' for '
The code for ' should, of course, be '
This was not broken in 4.3.1, so is newly introduced in either 4.3.2 or
4.3.3
One wonders how this could occur, since both
htmlspecialchars/htmlentities and html_entity_decode work correctly.
Reproduce code:
---------------
<?
print_r(get_html_translation_table(HTML_SPECIALCHARS,ENT_QUOTES));
?>
Expected result:
----------------
Array
(
[&] => &
["] => "
['] => '
[<] => <
[>] => >
)
Actual result:
--------------
Array
(
[&] => &
["] => "
['] => '
[<] => <
[>] => >
)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=25927&edit=1
- 12
- #29727 [Csd]: CUROPT_PROXYAUTH constant is not registered ID: 29727
User updated by: bip at pennec dot org
Reported By: bip at pennec dot org
Status: Closed
Bug Type: cURL related
Operating System: All
PHP Version: 4.3.9RC1
New Comment:
It's OK ! thankx ! It works fine on PHP5 :-) on windows and linux
too.
Interface.c exists on PHP5 but not on 4.3 series (there is only
curl.c), is possible to update this series too ?
Previous Comments:
------------------------------------------------------------------------
[2004-08-18 23:31:51] email***@***.com
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-08-18 19:08:08] bip at pennec dot org
This patch seems to works with libcurl 7.12.
The patch is applied against curl.c version of php 4.3.4
43,47d39
> /* As of curl 7.11.1 this is no longer defined inside curl.h */
> #ifndef HttpPost
> #define HttpPost curl_httppost
> #endif
>
197a198,210
> #if LIBCURL_VERSION_NUM >= 0x070a07 /* CURLOPT_HTTPAUTH is available
since curl 7.10.6 */
> REGISTER_CURL_CONSTANT(CURLOPT_PROXYAUTH);
> REGISTER_CURL_CONSTANT(CURLOPT_HTTPAUTH);
> /* http authentication options */
> REGISTER_CURL_CONSTANT(CURLAUTH_BASIC);
> REGISTER_CURL_CONSTANT(CURLAUTH_DIGEST);
> REGISTER_CURL_CONSTANT(CURLAUTH_GSSNEGOTIATE);
> REGISTER_CURL_CONSTANT(CURLAUTH_NTLM);
> REGISTER_CURL_CONSTANT(CURLAUTH_ANY);
> REGISTER_CURL_CONSTANT(CURLAUTH_ANYSAFE);
>
> #endif
>
715a729,732
> #if LIBCURL_VERSION_NUM >= 0x070a07
> case CURLOPT_PROXYAUTH:
> case CURLOPT_HTTPAUTH:
> #endif
------------------------------------------------------------------------
[2004-08-18 11:05:04] bip at pennec dot org
Description:
------------
CURLOPT_PROXYAUTH constant appears in libcurl 7.10.7 but is not
register in recents releases of the php_curl module.
This constant is needed to pass thru proxy with ntlm authentication
Reproduce code:
---------------
$ch = curl_init();
curl_setopt ($ch, CURLOPT_PROXYAUTH, CURLAUTH_NTLM);
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=29727&edit=1
- 12
- #36369 [Fbk->Bgs]: built in templates pass parameters through in conflict to rfc ID: 36369
Updated by: email***@***.com
Reported By: bugs at forestfactory dot de
-Status: Feedback
+Status: Bogus
Bug Type: XSLT related
Operating System: Windows XP
PHP Version: 5.1.2
New Comment:
libxslt (resp. xsltproc) behaves the same, therefore it's not a PHP
issue. Please file a bug report on the libxslt site, if you still
think, this is an issue.
Previous Comments:
------------------------------------------------------------------------
[2006-02-12 09:20:42] email***@***.com
Provide the test as downloadable zip somewhere.
------------------------------------------------------------------------
[2006-02-12 00:34:54] bugs at forestfactory dot de
I'm sorry, but the line breaks broke the testcase. Please remove them.
------------------------------------------------------------------------
[2006-02-12 00:29:52] bugs at forestfactory dot de
<?php
// Testcase
header('Content-type: text/xml');
$xsltProcessor = new XSLTProcessor();
$xsltProcessor->importStylesheet(DOMDocument::loadXML('<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:template
match="/"><output><xsl:apply-templates/></output></xsl:template><xsl:template
match="first"><xsl:apply-templates select="second"><xsl:with-param
name="foo"
select="\'bar\'"/></xsl:apply-templates></xsl:template><xsl:template
match="third"><xsl:param name="foo"/><param><xsl:value-of
select="$foo"/></param></xsl:template></xsl:stylesheet>'));
echo
$xsltProcessor->transformToXML(DOMDocument::loadXML('<root><first><second><third/></second></first></root>'));
?>
------------------------------------------------------------------------
[2006-02-12 00:00:48] email***@***.com
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 possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.
------------------------------------------------------------------------
[2006-02-11 23:47:46] bugs at forestfactory dot de
Description:
------------
As of http://www.w3.org/TR/xslt#built-in-rule, the built in templates
should just call any subordinated templates, but in PHP it passes
parameters through.
Reproduce code:
---------------
(to be short, this are just XML fragments)
XML:
<first>
<second>
<third/>
</second>
</first>
XSLT:
<template match="first">
<apply-template select="second">
<with-param name="foo" select="'bar'"/>
</apply-template>
</template>
<template match="third">
<param name="foo"/>
<value-of select="$foo"/>
</template>
Expected result:
----------------
No output as $foo should not be set.
Actual result:
--------------
Outputs "bar"
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36369&edit=1
- 13
- #40062 [Opn->Fbk]: ftp_nlist() and ftp_rawlist() returns false in PHP 5.2.0 ID: 40062
Updated by: email***@***.com
Reported By: dzoukr at dzoukr dot cz
-Status: Open
+Status: Feedback
Bug Type: FTP related
Operating System: Windows XP
PHP Version: 5.2.0
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.2-win32-latest.zip
it works here. Please try the snapshot. if it doesn't work, you need to
give us the hostname you are connecting to (as it might be some server
specific issue).
Previous Comments:
------------------------------------------------------------------------
[2007-01-08 12:34:14] dzoukr at dzoukr dot cz
Description:
------------
It seems, that ftp functions ftp_nlist() and ftp_rawlist() does not
work correctly in PHP version 5.2.0. They returns false all the time,
althought working directory is correct and directory is not empty.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40062&edit=1
- 13
- [PHP-DEV] PATCH for typo in zend_compile.c (was 5.1.0RC2)--------------090009080201010407000402
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
On 14.09.2005 15:20, Zeev Suraski wrote:
> Any last minute additions to 5.1.0RC2 or can we roll it?
It seems that #27145 has crept back into 5.1 with a copy/paste typo.
Here is the patch for it too.
--
Wbr,
Antony Dovgal
--------------090009080201010407000402
Content-Type: text/plain;
name="patch.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="patch.diff"
Index: Zend/zend_compile.c
===================================================================
RCS file: /repository/ZendEngine2/zend_compile.c,v
retrieving revision 1.647.2.4
diff -u -p -d -r1.647.2.4 zend_compile.c
--- Zend/zend_compile.c 9 Sep 2005 06:48:47 -0000 1.647.2.4
+++ Zend/zend_compile.c 15 Sep 2005 14:53:39 -0000
@@ -2062,7 +2062,7 @@ static zend_bool do_inherit_property_acc
}
if (zend_hash_find(ht, prot_name, prot_name_length+1, (void**)&prop) == SUCCESS) {
zval **new_prop;
- if (zend_hash_find(ht, child_info->name, child_info->name_length+1, (void**)&new_prop) == SUCCESS) {
+ if (zend_hash_find(ce->static_members, child_info->name, child_info->name_length+1, (void**)&new_prop) == SUCCESS) {
if (Z_TYPE_PP(new_prop) != IS_NULL && Z_TYPE_PP(prop) != IS_NULL) {
char *prop_name, *tmp;
zend_unmangle_property_name(child_info->name, &tmp, &prop_name);
--------------090009080201010407000402
Content-Type: text/plain; charset=us-ascii
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
--------------090009080201010407000402--
- 16
- #43694 [Opn]: PHPInfo() Completes up to "Variables" then fails ("Cannot Display Page") ID: 43694
User updated by: rhmclean at tx dot rr dot com
Reported By: rhmclean at tx dot rr dot com
Status: Open
Bug Type: Reproducible crash
Operating System: Windows XP Home
PHP Version: 5.2.5
New Comment:
Same code works fine on
http://www.richardmclean.info/testering2/MyPHPcontents.php
Previous Comments:
------------------------------------------------------------------------
[2007-12-28 00:02:31] rhmclean at tx dot rr dot com
Description:
------------
I have just installed Apache 2.2.6, MySQL 5.0.45 and
php-5.2.5-win32-installer.msi and rebooted. When attempting to verify
the PHP installation with phpinfo(), the tables are generated quickly
until it get to the "Variables" table and then times out.
Reproduce code:
---------------
<html>
<head>
<title>PHP Settings</title>
</head>
<body>
<H4>PHP Info</H4><p>
<?PHP
echo "This is a PHP Line";
phpinfo();
?>
</body>
</html>
Expected result:
----------------
Get full PHP Info display
Actual result:
--------------
The title "Variables" is printed (FireFox gets the first 3 variables
also), but after about 2 seconds the page converts to "Cannot Display
Page" or "Problem Loading Page" depending upon IE or Firefox,
respectively.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43694&edit=1
- 16
- #41285 [NEW]: better fix for CVE-2007-1887-1888/MOPB-41From: seanius at debian dot org
Operating system: source code
PHP version: 5.2.2
PHP Bug Type: SQLite related
Bug description: better fix for CVE-2007-1887-1888/MOPB-41
Description:
------------
from what i understand, your fix for the above mentioned vulnerabilities
was to patch the bundled sqlite libraries to handle certain parameters that
might be null pointers. however, for distributions where php is built
against external sqlite packages, this has no effect and the resulting
packages are still vulnerable unless the sqlite packages are independantly
patched.
in the debian php packages, we've patched the php_sqlite module to check
for the null pointers outside of the call to the sqlite functions, thus not
requiring a patch or change in the behaviour of the sqlite libraries.
anyway, if you want to continue keeping a patched bundled version of
sqlite, that's fine, but i thought i'd share this.
--
Edit bug report at http://bugs.php.net/?id=41285&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41285&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41285&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41285&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=41285&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=41285&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=41285&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=41285&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=41285&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=41285&r=support
Expected behavior: http://bugs.php.net/fix.php?id=41285&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=41285&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=41285&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=41285&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41285&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=41285&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=41285&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=41285&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=41285&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=41285&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=41285&r=mysqlcfg
|
| Author |
Message |
php-bugs

|
Posted: 2003-11-15 7:24:09 |
Top |
php-dev, #26256 [NEW]: apache fails to load
From: dev5 at es11 dot com
Operating system: FreeBSD 4.8
PHP version: 4.3.4
PHP Bug Type: Apache2 related
Bug description: apache fails to load
Description:
------------
I ran into this problem earlier but could not seem to pin-point the exact
problem. I think I found it.
the problem is:
Cannot load /usr/local/apache/modules/libphp4.so into server:
/usr/local/apache/modules/libphp4.so: Undefined symbol
"OpenSSL_add_all_algorithms"
this appeared to have been an issue in earlier versions as well, but
started with the introduction of OpenSSL 0.9.7.
This error, however is produced ONLY when I link PHP against PDFLib.
I don't know where to start investigating from here, but perhaps someone
has an idea how the two libraries (OpenSSL (0.9.7(a,b) and PDFLib (4 and
5)) fail to link into libphp.so correctly.
Here's what's on the system:
FreeBSD 4.8 (intel)
OpenSSL 0.9.7b
Apache 2.0.47
PHP 4.3.4 (this behavior applies to earlier versions too)
PDFLib-Lite 5.0.2 (compiled from source into a shared lib)
configure line
'./configure' '--with-mysql=/usr/local/mysql'
'--with-apxs2=/usr/local/apache/bin/apxs' '--with-openssl=/usr/bin'
'--enable-cli' '--enable-ftp' '--with-gd' '--with-jpeg-dir=/usr/lib'
'--with-png-dir=/usr/lib' '--with-ttf' '--with-zlib' '--with-pspell'
'--with-mcrypt' '--with-xpm-dir=/usr/lib' '--with-zip=/usr/local/lib'
'--with-ming=/usr/local/lib' --with-pdflib
--
Edit bug report at http://bugs.php.net/?id=26256&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26256&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26256&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=26256&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=26256&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=26256&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=26256&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=26256&r=support
Expected behavior: http://bugs.php.net/fix.php?id=26256&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=26256&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=26256&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=26256&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26256&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=26256&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=26256&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=26256&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26256&r=float
|
| |
|
| |
 |
| |
 |
Index ‹ php-dev |
- Next
- 1
- [PHP-DEV] Re: [PHP-CVS] cvs: php-src(PHP_5_2) / Makefile.globalYou're right, let's keep it simple. Your suggestion of making a modified
copy of php.ini sounds pretty good idea to me. It solves the issue of extensions
not build also..any other solution would mean changing the ini code.. :)
I'll try to fix this today.
--Jani
Dmitry Stogov kirjoitti:
> I don't like modify PHP code to support duplicate "extension" directives,
> especialy because this won't solve problem with extension in php.ini that
> weren't build.
>
> I see a simple workaround, but I afraid that it may bring other trubles.
>
> We can make copy of php.ini without "extension" directives and then use it
> instead of original one.
>
> $ grep -v '^extension=' php.ini tmp-php.ini
>
> Thanks. Dmitry.
>
>> -----Original Message-----
>> From: Jani Taskinen [mailto:email***@***.com]
>> Sent: Thursday, June 07, 2007 3:35 PM
>> To: Dmitry Stogov
>> Subject: RE: [PHP-CVS] cvs: php-src(PHP_5_2) / Makefile.global
>>
>>
>> After some digging I think I found the perfect solution.
>> Since it's about testing what you just build, how about just
>> not adding duplicate entries in main/php_ini.c:183 ? Or do
>> some cleanup before the
>> extension_lists.functions llist is used? (remove duplicate entries?)..
>>
>> After all, it only matters if the extension is build. You
>> have more troubles if it isn't anyway..and it won't find the
>> extensions anyway if you haven't build them since we change
>> extension_dir to point to $(top_builddir)/modules/
>>
>> --Jani
>>
>>
>> On Thu, 2007-06-07 at 11:27 +0400, Dmitry Stogov wrote:
>>> Hi Jani,
>>>
>>> After this patch all my tests failed, because PHP tries to load
>>> extensions twice. First from php.ini and then from command line (-d
>>> extension=...).
>>>
>>> I like your idea, as it's going to allow testing of ALL compileed
>>> extensions before installation, but it doesn't work yet.
>>>
>>> Thanks. Dmitry.
>>>
>>>> -----Original Message-----
>>>> From: Jani Taskinen [mailto:email***@***.com]
>>>> Sent: Wednesday, June 06, 2007 10:28 PM
>>>> To: email***@***.com
>>>> Subject: [PHP-CVS] cvs: php-src(PHP_5_2) / Makefile.global
>>>>
>>>>
>>>> sniper Wed Jun 6 18:28:14 2007 UTC
>>>>
>>>> Modified files: (Branch: PHP_5_2)
>>>> /php-src Makefile.global
>>>> Log:
>>>> MFH:- Fix passing of shared extensions to run-tests.php
>>>>
>>>> http://cvs.php.net/viewvc.cgi/php-src/Makefile.global?r1=1.57.
>>>> 2.5.2.2&r2=1.57.2.5.2.3&diff_format=u
>>>> Index: php-src/Makefile.global
>>>> diff -u php-src/Makefile.global:1.57.2.5.2.2
>>>> php-src/Makefile.global:1.57.2.5.2.3
>>>> --- php-src/Makefile.global:1.57.2.5.2.2 Wed Apr 11 16:03:06 2007
>>>> +++ php-src/Makefile.global Wed Jun 6 18:28:13 2007
>>>> @@ -69,22 +69,26 @@
>>>>
>>>> install-su: install-pear
>>>>
>>>> +PHP_TEST_SHARED_EXTENSIONS=`(for i in $(PHP_MODULES); do .
>>>> $$i ; echo
>>>> +-n "-d extension=$$dlname "; done)` PHP_TEST_SETTINGS=-d
>>>> +'open_basedir=' -d 'safe_mode=0' -d 'output_buffering=0' -d
>>>> +'memory_limit=-1'
>>>> +
>>>> test: all
>>>> -@if test ! -z "$(PHP_EXECUTABLE)" && test -x
>>>> "$(PHP_EXECUTABLE)"; then \
>>>> TEST_PHP_EXECUTABLE=$(PHP_EXECUTABLE) \
>>>> TEST_PHP_SRCDIR=$(top_srcdir) \
>>>> CC="$(CC)" \
>>>> - $(PHP_EXECUTABLE) -d 'open_basedir=' -d
>>>> 'safe_mode=0' -d 'output_buffering=0' -d 'memory_limit=-1'
>>>> $(top_srcdir)/run-tests.php -d 'extension_dir=modules/' -d `(
>>>> . $(PHP_MODULES) ; echo extension=$$dlname)` tests/; \
>>>> + $(PHP_EXECUTABLE) $(PHP_TEST_SETTINGS)
>>>> $(top_srcdir)/run-tests.php
>>>> +-d extension_dir=modules/ $(PHP_TEST_SHARED_EXTENSIONS) tests/; \
>>>> elif test ! -z "$(SAPI_CLI_PATH)" && test -x
>>>> "$(SAPI_CLI_PATH)"; then \
>>>> TEST_PHP_EXECUTABLE=$(top_builddir)/$(SAPI_CLI_PATH) \
>>>> TEST_PHP_SRCDIR=$(top_srcdir) \
>>>> CC="$(CC)" \
>>>> - $(top_builddir)/$(SAPI_CLI_PATH) -d
>>>> 'open_basedir=' -d 'safe_mode=0' -d 'output_buffering=0' -d
>>>> 'memory_limit=-1' $(top_srcdir)/run-tests.php $(TESTS); \
>>>> + $(top_builddir)/$(SAPI_CLI_PATH)
>>>> $(PHP_TEST_SETTINGS)
>>>> +$(top_srcdir)/run-tests.php -d
>>>> extension_dir=$(top_builddir)/modules/
>>>> $(PHP_TEST_SHARED_EXTENSIONS) $(TESTS); \
>>>> else \
>>>> echo "ERROR: Cannot run tests without CLI sapi."; \
>>>> fi
>>>>
>>>> clean:
>>>> + find . -name \*.gcno -o -name \*.gcda | xargs rm -f
>>>> find . -name \*.lo -o -name \*.o | xargs rm -f
>>>> find . -name \*.la -o -name \*.a | xargs rm -f
>>>> find . -name \*.so | xargs rm -f
>>>>
>>>> --
>>>> PHP CVS Mailing List (http://www.php.net/)
>>>> To unsubscribe, visit: http://www.php.net/unsub.php
>>>>
>
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
- 2
- #31626 [Opn->Fbk]: calling ereg_replace before pspell_new crashes pspell ID: 31626
Updated by: email***@***.com
Reported By: bram dot dejong at gmail dot com
-Status: Open
+Status: Feedback
Bug Type: Pspell related
Operating System: Windows XP
PHP Version: 5.0.3
New Comment:
Pay attention to double "$" here:
print_r(pspell_suggest($$pspell_link, $string1));
And try again.
Previous Comments:
------------------------------------------------------------------------
[2005-01-20 17:25:47] bram dot dejong at gmail dot com
Description:
------------
Calling ereg_replace before pspell_new crashes pspell.
pspell_new *only* fails when calling ereg_replace before it (i.e. I
haven't witnessed any other crashes yet...)
Pspell is installed following this guide (and all is working):
http://www.oblius.com/?.blogs.184
Changes in php.ini file:
extension=php_pspell.dll
Reproduce code:
---------------
<?
$string1 = "heeelp";
$string2 = ereg_replace("squeek","squaak",$string1);
$pspell_link = pspell_new("en", "", "", "", PSPELL_FAST);
print_r(pspell_suggest($$pspell_link, $string1)
?>
Expected result:
----------------
when I comment this line:
// $string2 = ereg_replace("squeek","squaak",$string1);
the result is:
Array
(
[0] => help
[1] => Heep
[2] => heel
[3] => heeler
[4] => heeled
[5] => heels
[6] => whelp
[7] => helps
[8] => helper
[9] => harelip
[10] => hep
[11] => Helen
[12] => hello
[13] => heel's
)
Actual result:
--------------
Warning: pspell_new() [function.pspell-new]: PSPELL couldn't open the
dictionary. reason: No word lists can be found for the language "en".
in c:\Apache\htdocs\Work\bug.php on line 5
Warning: pspell_suggest() [function.pspell-suggest]: 0 is not a PSPELL
result index in c:\Apache\htdocs\Work\bug.php on line 6
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31626&edit=1
- 3
- #41581 [NEW]: compiling failure in Solaris 9From: lj979 at hotmaill dot com
Operating system: Solaris 9
PHP version: 5.2.3
PHP Bug Type: *Compile Issues
Bug description: compiling failure in Solaris 9
Description:
------------
I tried the latest version and 5.2.3. Here is the error message.
HOSTTYPE=sparc
OSTYPE=solaris2.9
gcc version 3.4.6
GNU Make 3.81
Apache 2.0.59
# ./configure \
--with-apxs=/usr/local/apache/bin/apxs \
--with-apxs2=/usr/local/apache2/bin/apxs \
--disable-debug \
--with-mysql=/usr/local/mysql \
--with-mysqli=/usr/local/mysql/bin/mysql_config \
--with-gd=/usr/local \
--with-jpeg-dir=/usr/local \
--with-xpm-dir=/usr/local \
--with-ttf=/usr/local/freetype \
--with-zlib=/usr/local \
--with-tiff-dir=/usr/local \
--with-png-dir=/usr/local \
--enable-mbstring \
--enable-soap \
--enable-track-vars
# make
cket -lnsl -o libphp5.la
libtool: link: warning: `/usr/local/lib/libjpeg.la' seems to be moved
libtool: link: warning: `/usr/local/lib/libexpat.la' seems to be moved
ld: fatal: symbol `php5_module' is multiply-defined:
(file sapi/apache/.libs/mod_php5.o type=OBJT; file
sapi/apache2handler/.libs/mod_php5.o type=OBJT);
ld: fatal: symbol `zm_info_apache' is multiply-defined:
(file sapi/apache/.libs/php_apache.o type=FUNC; file
sapi/apache2handler/.libs/php_functions.o type=FUNC);
ld: fatal: symbol `zif_apache_get_modules' is multiply-defined:
(file sapi/apache/.libs/php_apache.o type=FUNC; file
sapi/apache2handler/.libs/php_functions.o type=FUNC);
ld: fatal: symbol `zif_apache_get_version' is multiply-defined:
(file sapi/apache/.libs/php_apache.o type=FUNC; file
sapi/apache2handler/.libs/php_functions.o type=FUNC);
ld: fatal: symbol `zif_virtual' is multiply-defined:
(file sapi/apache/.libs/php_apache.o type=FUNC; file
sapi/apache2handler/.libs/php_functions.o type=FUNC);
ld: fatal: symbol `zif_apache_lookup_uri' is multiply-defined:
(file sapi/apache/.libs/php_apache.o type=FUNC; file
sapi/apache2handler/.libs/php_functions.o type=FUNC);
ld: fatal: symbol `zif_apache_request_headers' is multiply-defined:
(file sapi/apache/.libs/php_apache.o type=FUNC; file
sapi/apache2handler/.libs/php_functions.o type=FUNC);
ld: fatal: symbol `zif_apache_setenv' is multiply-defined:
(file sapi/apache/.libs/php_apache.o type=FUNC; file
sapi/apache2handler/.libs/php_functions.o type=FUNC);
ld: fatal: symbol `zif_apache_response_headers' is multiply-defined:
(file sapi/apache/.libs/php_apache.o type=FUNC; file
sapi/apache2handler/.libs/php_functions.o type=FUNC);
ld: fatal: symbol `zif_apache_note' is multiply-defined:
(file sapi/apache/.libs/php_apache.o type=FUNC; file
sapi/apache2handler/.libs/php_functions.o type=FUNC);
ld: fatal: File processing errors. No output written to .libs/libphp5.so
collect2: ld returned 1 exit status
make: *** [libphp5.la] Error 1
Reproduce code:
---------------
Expected result:
----------------
Actual result:
--------------
--
Edit bug report at http://bugs.php.net/?id=41581&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41581&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41581&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41581&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=41581&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=41581&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=41581&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=41581&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=41581&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=41581&r=support
Expected behavior: http://bugs.php.net/fix.php?id=41581&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=41581&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=41581&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=41581&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41581&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=41581&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=41581&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=41581&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=41581&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=41581&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=41581&r=mysqlcfg
- 4
- #21139 [Com]: zlib.output_compression + windows failure ID: 21139
Comment by: selfman at netax dot sk
Reported By: email***@***.com
Status: Closed
Bug Type: Output Control
Operating System: Windows
PHP Version: 4.3.0RC4
New Comment:
I can confirm the output_compression=on bug.
The strange stuff is hat it reappeared in PHP 4.3.3 an 4.3.4RC2. I had
the same problem by using IIS5 and Apache 1.3.29 on Windows 2000
Server.
Behaviour:
- page request sent
- answer from server arrived
- browser discarded old content
- blank page and nothing more
after reload, the content appeared.
I've tried that several times on the site. Same results.
Headers sent, zipped content is there but nothing is displayed. Must be
a problem with headers.
By turning of the output_compression=off everything works.
Regards SelfMan
Previous Comments:
------------------------------------------------------------------------
[2002-12-26 07:42:05] email***@***.com
This bug has been fixed in CVS.
In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.
ZLIB extension is now built in on Windows which solves this problem.
------------------------------------------------------------------------
[2002-12-23 07:48:12] alexws at hotmail dot ru
I confirm the presence of this bug since PHP 4.3.0RC2. PHP 4.3.0RC1
works!
It is appearing either when zlib compression is toggled in php.ini or
.htaccess. Looks like header problem, 'cause returned file can really
be decoded.
OS tested: Windows 98, Windows 2000, Windows XP
PHP tested: PHP 4.3.0 RC2, RC3, RC4
Server software tested: IIS 4.0, IIS 5.0, Apache 1.3, Apache 2.0
All of the tests confirm buggy behavior. Please investigate.
------------------------------------------------------------------------
[2002-12-22 18:41:58] email***@***.com
During investigation, I found another odd behaviour when
zlib.output_compression is toggled up by .htaccess.
HTTP response headers which are automatically appended by Apache, such
as ETag, Accept-Ranges, and Content-Length are supposed to be removed
on sapi activation, and they are actually removed in the very first
request to the server, but from the second request they persistently
appear again.
------------------------------------------------------------------------
[2002-12-22 12:14:53] email***@***.com
Verified on Windows, with Apache or Apache2.
-- HTTP response dump of the following script --
<?php echo "abcde"; ?>
-- Apache_1.3.27 --
HTTP/1.1 200 OK
Date: Sun, 22 Dec 2002 18:06:53 GMT
Server: Apache/1.3.27 (Win32) PHP/4.4.0-dev
X-Powered-By: PHP/4.4.0-dev
Connection: close
Content-Type: text/html
(correctly gzip-encoded content)
-- Apache_2.0.43 --
HTTP/1.1 200 OK
Date: Sun, 22 Dec 2002 18:06:15 GMT
Server: Apache/2.0.43 (Win32) PHP/4.4.0-dev
Last-Modified: Sun, 22 Dec 2002 17:59:26 GMT
ETag: "45a2-1b-e744bab1"
Accept-Ranges: bytes
Content-Length: 27
Connection: close
Content-Type: application/x-httpd-php
<br />
<b>Warning</b>: (null)() [<a
href='http://www.php.net/ref.outcontrol'>ref.outcontrol</a>]: Cannot
change zlib.output_compression - headers already sent in <b>Unknown</b>
on line <b>0</b><br />
abcde
------------------------------------------------------------------------
[2002-12-21 19:27:53] email***@***.com
I can confirm this bug on Windows + Apache + zlib.output_compression in
.htaccess.
If zlib.output_compression is set to on from php.ini it works. It only
doesn't work if set from .htaccess.
------------------------------------------------------------------------
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/21139
--
Edit this bug report at http://bugs.php.net/?id=21139&edit=1
- 5
- #29734 [NEW]: Function GetDate interprets 2 different timestamps as same dateFrom: jlamas at gmail dot com
Operating system: Linux
PHP version: 4.3.8
PHP Bug Type: Date/time related
Bug description: Function GetDate interprets 2 different timestamps as same date
Description:
------------
The function GetDate interprets the both timestamps as October 17th, 2004.
The timestamps are: 1097895600 and 1097978400
Reproduce code:
---------------
$tbDataInicial = '2004-10-01';
$tbDataFinal_temp = '2004-10-31';
while ($sDataLoop != $tbDataFinal_temp)
{
if ($sDataLoop == "")
{$sDataLoop=$tbDataInicial;}
//Add one more day
$nTimeStamp=strtotime($sDataLoop);
$sDataLoop = getdate($nTimeStamp);
$sDataLoop=date("Y-m-d",mktime(0,0,0,$sDataLoop['mon'],$sDataLoop['mday']+1,$sDataLoop['year']));
}
Expected result:
----------------
The while should go through the parameters $tbDataInicial and $tbDataFinal
that represents the begin and end dates respectively.
Actual result:
--------------
This generates and infinite loop since $sDataLoop get stucked on the day
October 17th, 2004.
--
Edit bug report at http://bugs.php.net/?id=29734&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29734&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29734&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=29734&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=29734&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=29734&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=29734&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=29734&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=29734&r=support
Expected behavior: http://bugs.php.net/fix.php?id=29734&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=29734&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=29734&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=29734&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29734&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=29734&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=29734&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=29734&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29734&r=float
- 6
- #36426 [Opn->Fbk]: PHP Script Interpreter has encountered a problem and needs to close ID: 36426
Updated by: email***@***.com
Reported By: bunty1_kk at yahoo dot com
-Status: Open
+Status: Feedback
Bug Type: Apache2 related
Operating System: Windows XP
PHP Version: 4.4.2
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 possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.
Previous Comments:
------------------------------------------------------------------------
[2006-02-17 15:13:16] bunty1_kk at yahoo dot com
Description:
------------
Hi,
I'm using Win-XP/Apache 2.0.5/MySQL 4.1/PHP 4.4.2/Zend Optimizer 2.6.2
PHP is running fine but today when I'm trying to login to using php
script I'm getting the error [PHP Script Interpreter has encountered a
problem and needs to close. We are sorry for the inconvenience].
Interestingly when I'm giving wrong userid/password my script is
working fine with giving me the correct pre difnined error page
deisgned for but when I'm providing correct userid/password it's giving
me the above error.
Please Advice me asap, as I'm new to PHP.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36426&edit=1
- 7
- #31596 [Opn->Bgs]: Unable to connect to an mssql server using mssql_connect ID: 31596
Updated by: email***@***.com
Reported By: php at thesheath dot com
-Status: Open
+Status: Bogus
Bug Type: MSSQL related
Operating System: win2003
PHP Version: 4.3.9
New Comment:
Please test the connection with mssql client tools first.
Connecting to mssql servers requires that the ports uses is open in the
firewall, that the correct user id and password is used (if the SQL
server allows SQL server authentication) or that the user account used
to execute the PHP script is authneticated on the web server. If
Integrated NT authentication is used you must specify
mssql.secure_connection = On in your php.ini file.
Previous Comments:
------------------------------------------------------------------------
[2005-01-18 12:33:00] php at thesheath dot com
Summary description changed
------------------------------------------------------------------------
[2005-01-18 12:17:10] php at thesheath dot com
Description:
------------
Webserver A is in an active directory VHOSTS, webserver B is in Active
directory VHOSTS2. MSSQL Server A is in VHOSTS and MSSQL Server B is
in VHOSTS2. If an attempt is made to connect to MSSQL Server A from
Webserver B using mssql_connect the connection fails. However, if an
attempt is made to connect to MSSQL Server B from Webserver B using
mssql_connect, the connection will succeed. This also applies if you
change the test around so webserver A connecting to MSSQL Server B.
This is purely an internal connection with the only difference in the
webservers and ms sql servers is being they're in different domains.
Reproduce code:
---------------
<?php
db_connect();
?>
<?php
function db_connect ()
{
$db = mssql_connect ("sql2k230", "*****", "******");
if (!$db) {
echo "\nError connecting to SQL Server, User = '" . "" . "', p/w =
'" . "" . "' \n\n";
die('Could not connect to server: ' . mssql_get_last_message());
}
$result = mssql_select_db ('master', $db);
if (!$result) {
die('Could not select database: ' . mssql_get_last_message());
}
}
?>
Expected result:
----------------
The script above should have html included, in which case whatever html
is included should be produced in the browser after the db connect has
taken place. Or a blank page if using the code only.
Actual result:
--------------
Warning: mssql_connect(): Unable to connect to server: sql2k227 in
e:\******** on line 28
Error connecting to SQL Server, User = '*****', p/w = '****' Could not
connect to server:
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31596&edit=1
- 8
- [PHP-DEV] Zend and flex problemHello Everyone,
I'm having a problem with flex and zend on my new system:
flex -Pzend -S/usr/local/src/php5/Zend/flex.skl
-oZend/zend_language_scanner.c -i
/usr/local/src/php5/Zend/zend_language_scanner.l
flex: fatal internal error, bad line in skeleton file
make: *** [Zend/zend_language_scanner.c] Error 1
Any ideas to what's wrong ?
I'm using PHP5 CVS-HEAD and flex 2.5.31.
- Frank
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
- 9
- #43231 [Asn->Opn]: array-based callback syntax is overly E_STRICT ID: 43231
Updated by: email***@***.com
Reported By: chuck at horde dot org
-Status: Assigned
+Status: Open
Bug Type: Scripting Engine problem
Operating System: MacOS 10.4
PHP Version: 5.3CVS-2007-11-10 (CVS)
Assigned To: johannes
Previous Comments:
------------------------------------------------------------------------
[2008-01-17 06:11:28] email***@***.com
Ping?
------------------------------------------------------------------------
[2007-11-25 20:08:47] email***@***.com
Just a reminder on this, since you said you already had the patch?
------------------------------------------------------------------------
[2007-11-14 08:03:15] email***@***.com
And this is HEAD issue too, that's where I simply MFH'd the stuff that
broke this. :)
------------------------------------------------------------------------
[2007-11-10 10:32:31] email***@***.com
I already have a patch for that, will commit that once I'll boot the
other system
------------------------------------------------------------------------
[2007-11-10 03:20:27] chuck at horde dot org
Description:
------------
The callback syntax of array('classname', 'methodname') for making
static method calls is now enforcing E_STRICT even if E_STRICT is not
on. So methods that are not explicitly declared static can't be used
this way even with E_STRICT off. Putting static in front of the function
makes it work, but of course results in a parse error when the code is
run under PHP 4.
Reproduce code:
---------------
<?php
class Test {
function hello() {
echo "hello\n";
}
}
call_user_func(array('Test', 'hello'));
Expected result:
----------------
hello
Actual result:
--------------
Warning: call_user_func() expects parameter 1 to be valid callback,
array given in /Users/chuck/callback.php on line 11
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43231&edit=1
- 10
- #35315 [Opn]: Apache2 childs segfaulting ID: 35315
User updated by: maddog2k at maddog2k dot net
Reported By: maddog2k at maddog2k dot net
Status: Open
Bug Type: Apache2 related
Operating System: Linux
PHP Version: 4CVS-2005-11-21 (snap)
New Comment:
Correction, PHP 5.1.0 latest (PHP 5.1.0RC7-dev) also suffers from
segfaulting...
:>/usr/local/gdb/bin/gdb /usr/local/apache2/bin/httpd /tmp/core
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
details.
This GDB was configured as "i686-pc-linux-gnu"...Using host
libthread_db library "/lib/libthread_db.so.1".
Core was generated by `/usr/local/apache2/bin/httpd -DSSL'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/local/ssl/lib/libssl.so.0.9.7...done.
Loaded symbols for /usr/local/ssl/lib/libssl.so.0.9.7
Reading symbols from /usr/local/ssl/lib/libcrypto.so.0.9.7...done.
Loaded symbols for /usr/local/ssl/lib/libcrypto.so.0.9.7
Reading symbols from /usr/local/apache2/lib/libaprutil-0.so.0...done.
Loaded symbols for /usr/local/apache2/lib/libaprutil-0.so.0
Reading symbols from /usr/lib/libgdbm.so.2...done.
Loaded symbols for
/usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../libgdbm.so.2
Reading symbols from /usr/lib/libdb-4.1.so...done.
Loaded symbols for
/usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../libdb-4.1.so
Reading symbols from /usr/local/lib/libexpat.so.0...done.
Loaded symbols for /usr/local/lib/libexpat.so.0
Reading symbols from /usr/lib/libiconv.so.2...done.
Loaded symbols for
/usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../libiconv.so.2
Reading symbols from /usr/local/apache2/lib/libapr-0.so.0...done.
Loaded symbols for /usr/local/apache2/lib/libapr-0.so.0
Reading symbols from /usr/lib/libstdc++.so.5...done.
Loaded symbols for
/usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../libstdc++.so.5
Reading symbols from /lib/librt.so.1...done.
Loaded symbols for /lib/librt.so.1
Reading symbols from /lib/libcrypt.so.1...done.
Loaded symbols for /lib/libcrypt.so.1
Reading symbols from /lib/libnsl.so.1...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /lib/libpthread.so.0...done.
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/libm.so.6...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /lib/libgcc_s.so.1...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /lib/libnss_files.so.2...done.
Loaded symbols for /lib/libnss_files.so.2
Reading symbols from /usr/local/apache2/modules/libphp5.so...done.
Loaded symbols for /usr/local/apache2/modules/libphp5.so
Reading symbols from /usr/local/pgsql/lib/libpq.so.4...done.
Loaded symbols for /usr/local/pgsql/lib/libpq.so.4
Reading symbols from /usr/local/lib/libmhash.so.2...done.
Loaded symbols for /usr/local/lib/libmhash.so.2
Reading symbols from /usr/local/lib/libmcrypt.so.4...done.
Loaded symbols for /usr/local/lib/libmcrypt.so.4
Reading symbols from /usr/lib/libltdl.so.3...done.
Loaded symbols for
/usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../libltdl.so.3
Reading symbols from /usr/lib/libldap-2.3.so.0...done.
Loaded symbols for
/usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../libldap-2.3.so.0
Reading symbols from /usr/lib/liblber-2.3.so.0...done.
Loaded symbols for
/usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../liblber-2.3.so.0
Reading symbols from /lib/libpam.so.0...done.
Loaded symbols for /lib/libpam.so.0
Reading symbols from /usr/lib/libfreetype.so.6...done.
Loaded symbols for
/usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../libfreetype.so.6
Reading symbols from /usr/lib/libpng.so.3...done.
Loaded symbols for
/usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../libpng.so.3
Reading symbols from /usr/lib/libz.so.1...done.
Loaded symbols for
/usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../libz.so.1
Reading symbols from /usr/lib/libjpeg.so.62...done.
Loaded symbols for
/usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../libjpeg.so.62
Reading symbols from /lib/libresolv.so.2...done.
Loaded symbols for /lib/libresolv.so.2
Reading symbols from /usr/local/lib/libcurl.so.3...done.
Loaded symbols for /usr/local/lib/libcurl.so.3
Reading symbols from /opt/mysql/lib/mysql/libmysqlclient.so.14...done.
Loaded symbols for /usr/local/mysql/lib/mysql/libmysqlclient.so.14
Reading symbols from /usr/local/lib/libxml2.so.2...done.
Loaded symbols for /usr/local/lib/libxml2.so.2
Reading symbols from /lib/libnss_dns.so.2...done.
Loaded symbols for /lib/libnss_dns.so.2
#0 0x409545a6 in _efree (ptr=0x8561f94) at
/opt/install/apache-2.0.54_apache-1.3.34_php-4.4.2-RC2-dev-WideXS-02_php-5.1.0/php-5.1.0/Zend/zend_alloc.c:303
303 REMOVE_POINTER_FROM_LIST(p);
(gdb) bt
#0 0x409545a6 in _efree (ptr=0x8561f94) at
/opt/install/apache-2.0.54_apache-1.3.34_php-4.4.2-RC2-dev-WideXS-02_php-5.1.0/php-5.1.0/Zend/zend_alloc.c:303
#1 0x4095cced in _zval_ptr_dtor (zval_ptr=0x84c9a20) at
zend_variables.h:35
#2 0x409843b8 in zend_do_fcall_common_helper_SPEC
(execute_data=0xbfff7cb0) at zend_execute.h:146
#3 0x40984069 in execute (op_array=0x854995c) at zend_vm_execute.h:88
#4 0x409844f7 in zend_do_fcall_common_helper_SPEC
(execute_data=0xbfff9600) at zend_vm_execute.h:222
#5 0x40984069 in execute (op_array=0x84ecbe0) at zend_vm_execute.h:88
#6 0x409844f7 in zend_do_fcall_common_helper_SPEC
(execute_data=0xbfffa060) at zend_vm_execute.h:222
#7 0x40984069 in execute (op_array=0x84b5d50) at zend_vm_execute.h:88
#8 0x409844f7 in zend_do_fcall_common_helper_SPEC
(execute_data=0xbfffb3f0) at zend_vm_execute.h:222
#9 0x40984069 in execute (op_array=0x84c232c) at zend_vm_execute.h:88
#10 0x40966646 in zend_execute_scripts (type=8, retval=0x0,
file_count=3)
at
/opt/install/apache-2.0.54_apache-1.3.34_php-4.4.2-RC2-dev-WideXS-02_php-5.1.0/php-5.1.0/Zend/zend.c:1090
#11 0x40935920 in php_execute_script (primary_file=0xbfffd730)
at
/opt/install/apache-2.0.54_apache-1.3.34_php-4.4.2-RC2-dev-WideXS-02_php-5.1.0/php-5.1.0/main/main.c:1704
#12 0x409c6a75 in php_handler (r=0x84b2818)
at
/opt/install/apache-2.0.54_apache-1.3.34_php-4.4.2-RC2-dev-WideXS-02_php-5.1.0/php-5.1.0/sapi/apache2handler/sapi_apache2.c:584
#13 0x080af51e in ap_run_handler (r=0x84b2818) at config.c:152
#14 0x080afc8d in ap_invoke_handler (r=0x84b2818) at config.c:364
#15 0x08090155 in ap_process_request (r=0x84b2818) at
http_request.c:249
#16 0x0808a7eb in ap_process_http_connection (c=0x8455b48) at
http_core.c:251
#17 0x080bbf5a in ap_run_process_connection (c=0x8455b48) at
connection.c:43
#18 0x080bc348 in ap_process_connection (c=0x8455b48, csd=0x8455a70) at
connection.c:176
#19 0x080addbb in child_main (child_num_arg=95) at prefork.c:610
#20 0x080adf45 in make_child (s=0x8108b90, slot=95) at prefork.c:704
#21 0x080ae1a4 in perform_idle_server_maintenance (p=0x8102e58) at
prefork.c:839
#22 0x080ae5f9 in ap_mpm_run (_pconf=0x8102e58, plog=0x813ef48,
s=0x8108b90) at prefork.c:1040
#23 0x080b4ff1 in main (argc=2, argv=0xbfffdbc4) at main.c:618
(gdb)
Previous Comments:
------------------------------------------------------------------------
[2005-11-21 17:24:22] maddog2k at maddog2k dot net
Description:
------------
Despite the fixes of bug #35264 and #35278, I now still see a few
Apache2 child processes segfaulting in error_log, with PHP4CVS (+snap
2005-11-21)
PHP5-latest seems not affected...
I finally was able to make a backtrace this time, but the problem is
that I wasn't able to find the PHP-code that is causing these crashes.
Also, this is with Apache 2.0.54.
When upgrading machines to 2.0.55 that don't show problems with 2.0.54
now, I get segfaulting child processes on them too.
The backtrace points to php_fopen_wrapper.c:81
which is also modified 3 days ago in CVS...
And always shows a MySQL header. (either 4.1.7 or 5.0.15)
[Also, I haven't been able to get a segfault with running 'httpd -X', I
only see 'Program received signal SIGPIPE, Broken pipe.' then (despite
.gdbinit: handle SIGPIPE nostop)]
However, here the backtrace for PHP4CVS (-RC2-dev/200511211410) :
~:/tmp>/usr/local/gdb/bin/gdb /usr/local/apache2/bin/httpd /tmp/core
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
details.
This GDB was configured as "i686-pc-linux-gnu"...Using host
libthread_db library "/lib/libthread_db.so.1".
Core was generated by `/usr/local/apache2/bin/httpd -DSSL'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/local/ssl/lib/libssl.so.0.9.7...done.
Loaded symbols for /usr/local/ssl/lib/libssl.so.0.9.7
Reading symbols from /usr/local/ssl/lib/libcrypto.so.0.9.7...done.
Loaded symbols for /usr/local/ssl/lib/libcrypto.so.0.9.7
Reading symbols from /usr/local/apache2/lib/libaprutil-0.so.0...done.
Loaded symbols for /usr/local/apache2/lib/libaprutil-0.so.0
Reading symbols from /usr/lib/libgdbm.so.2...done.
Loaded symbols for
/usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../libgdbm.so.2
Reading symbols from /usr/lib/libdb-4.1.so...done.
Loaded symbols for
/usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../libdb-4.1.so
Reading symbols from /usr/local/lib/libexpat.so.0...done.
Loaded symbols for /usr/local/lib/libexpat.so.0
Reading symbols from /usr/lib/libiconv.so.2...done.
Loaded symbols for
/usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../libiconv.so.2
Reading symbols from /usr/local/apache2/lib/libapr-0.so.0...done.
Loaded symbols for /usr/local/apache2/lib/libapr-0.so.0
Reading symbols from /usr/lib/libstdc++.so.5...done.
Loaded symbols for
/usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../libstdc++.so.5
Reading symbols from /lib/librt.so.1...done.
Loaded symbols for /lib/librt.so.1
Reading symbols from /lib/libcrypt.so.1...done.
Loaded symbols for /lib/libcrypt.so.1
Reading symbols from /lib/libnsl.so.1...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /lib/libpthread.so.0...done.
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/libm.so.6...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /lib/libgcc_s.so.1...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /lib/libnss_files.so.2...done.
Loaded symbols for /lib/libnss_files.so.2
Reading symbols from /usr/local/apache2/modules/libphp4.so...done.
Loaded symbols for /usr/local/apache2/modules/libphp4.so
Reading symbols from /usr/lib/libzzip-0.so.13...done.
Loaded symbols for
/usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../libzzip-0.so.13
Reading symbols from /usr/local/lib/libsablot.so.0...done.
Loaded symbols for /usr/local/lib/libsablot.so.0
Reading symbols from /usr/local/pgsql/lib/libpq.so.4...done.
Loaded symbols for /usr/local/pgsql/lib/libpq.so.4
Reading symbols from /usr/local/lib/libpdf.so.2...done.
Loaded symbols for /usr/local/lib/libpdf.so.2
Reading symbols from /usr/lib/libz.so.1...done.
Loaded symbols for
/usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../libz.so.1
Reading symbols from /usr/lib/libpng.so.3...done.
Loaded symbols for
/usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../libpng.so.3
Reading symbols from /opt/mysql/lib/mysql/libmysqlclient.so.14...done.
Loaded symbols for /usr/local/mysql/lib/mysql/libmysqlclient.so.14
Reading symbols from /usr/local/lib/libmhash.so.2...done.
Loaded symbols for /usr/local/lib/libmhash.so.2
Reading symbols from /usr/local/lib/libmcrypt.so.4...done.
Loaded symbols for /usr/local/lib/libmcrypt.so.4
Reading symbols from /usr/lib/libltdl.so.3...done.
Loaded symbols for
/usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../libltdl.so.3
Reading symbols from /usr/lib/libldap-2.3.so.0...done.
Loaded symbols for
/usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../libldap-2.3.so.0
Reading symbols from /usr/lib/liblber-2.3.so.0...done.
Loaded symbols for
/usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../liblber-2.3.so.0
Reading symbols from /lib/libpam.so.0...done.
Loaded symbols for /lib/libpam.so.0
Reading symbols from /usr/lib/libfreetype.so.6...done.
Loaded symbols for
/usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../libfreetype.so.6
Reading symbols from /usr/lib/libjpeg.so.62...done.
Loaded symbols for
/usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../libjpeg.so.62
Reading symbols from /usr/local/lib/libexslt.so.0...done.
Loaded symbols for /usr/local/lib/libexslt.so.0
Reading symbols from /usr/local/lib/libxsltbreakpoint.so.1...done.
Loaded symbols for /usr/local/lib/libxsltbreakpoint.so.1
Reading symbols from /usr/local/lib/libxslt.so.1...done.
Loaded symbols for /usr/local/lib/libxslt.so.1
Reading symbols from /lib/libresolv.so.2...done.
Loaded symbols for /lib/libresolv.so.2
Reading symbols from /usr/local/lib/libcurl.so.3...done.
Loaded symbols for /usr/local/lib/libcurl.so.3
Reading symbols from /usr/local/lib/libxml2.so.2...done.
Loaded symbols for /usr/local/lib/libxml2.so.2
Reading symbols from /lib/libnss_dns.so.2...done.
Loaded symbols for /lib/libnss_dns.so.2
#0 0x4082aa3d in php_stream_input_read (stream=0x84642cc,
buf=0x846a58c "?>\n\n<charsets max-id=\"94\">\n\n<copyright>\n
Copyright (C) 2003 MySQL AB\n\n This program is free software; you can
redistribute it and/or modify\n it under the terms of the GNU General
Public License as p"..., count=8192)
at
/opt/install/apache-2.0.54_apache-1.3.34_php-4.4.2-RC2-dev-WideXS-02_php-5.0.5/php-4.4.2/ext/standard/php_fopen_wrapper.c:81
81 read_bytes =
SG(request_info).raw_post_data_length - *position;
(gdb) bt
#0 0x4082aa3d in php_stream_input_read (stream=0x84642cc,
buf=0x846a58c "?>\n\n<charsets max-id=\"94\">\n\n<copyright>\n
Copyright (C) 2003 MySQL AB\n\n This program is free software; you can
redistribute it and/or modify\n it under the terms of the GNU General
Public License as p"..., count=8192)
at
/opt/install/apache-2.0.54_apache-1.3.34_php-4.4.2-RC2-dev-WideXS-02_php-5.0.5/php-4.4.2/ext/standard/php_fopen_wrapper.c:81
#1 0x4085f225 in php_stream_fill_read_buffer (stream=0x84642cc,
size=100)
at
/opt/install/apache-2.0.54_apache-1.3.34_php-4.4.2-RC2-dev-WideXS-02_php-5.0.5/php-4.4.2/main/streams.c:584
#2 0x4085f355 in _php_stream_read (stream=0x84642cc, buf=0x84643ec "",
size=100)
at
/opt/install/apache-2.0.54_apache-1.3.34_php-4.4.2-RC2-dev-WideXS-02_php-5.0.5/php-4.4.2/main/streams.c:632
#3 0x407f1e9e in zif_fread (ht=2, return_value=0x846420c,
this_ptr=0x0, return_value_used=1)
at
/opt/install/apache-2.0.54_apache-1.3.34_php-4.4.2-RC2-dev-WideXS-02_php-5.0.5/php-4.4.2/ext/standard/file.c:2243
#4 0x408982ac in execute (op_array=0x8465048)
at
/opt/install/apache-2.0.54_apache-1.3.34_php-4.4.2-RC2-dev-WideXS-02_php-5.0.5/php-4.4.2/Zend/zend_execute.c:1675
#5 0x40898495 in execute (op_array=0x840d924)
at
/opt/install/apache-2.0.54_apache-1.3.34_php-4.4.2-RC2-dev-WideXS-02_php-5.0.5/php-4.4.2/Zend/zend_execute.c:1719
#6 0x40886345 in zend_execute_scripts (type=8, retval=0x0,
file_count=3)
at
/opt/install/apache-2.0.54_apache-1.3.34_php-4.4.2-RC2-dev-WideXS-02_php-5.0.5/php-4.4.2/Zend/zend.c:934
#7 0x408538fc in php_execute_script (primary_file=0xbfffdad0)
at
/opt/install/apache-2.0.54_apache-1.3.34_php-4.4.2-RC2-dev-WideXS-02_php-5.0.5/php-4.4.2/main/main.c:1743
#8 0x4089dfc9 in php_handler (r=0x8404eb0)
at
/opt/install/apache-2.0.54_apache-1.3.34_php-4.4.2-RC2-dev-WideXS-02_php-5.0.5/php-4.4.2/sapi/apache2handler/sapi_apache2.c:581
#9 0x080af51e in ap_run_handler (r=0x8404eb0) at config.c:152
#10 0x080afc8d in ap_invoke_handler (r=0x8404eb0) at config.c:364
#11 0x08090155 in ap_process_request (r=0x8404eb0) at
http_request.c:249
#12 0x0808a7eb in ap_process_http_connection (c=0x83f1c88) at
http_core.c:251
#13 0x080bbf5a in ap_run_process_connection (c=0x83f1c88) at
connection.c:43
#14 0x080bc348 in ap_process_connection (c=0x83f1c88, csd=0x83f1bb0) at
connection.c:176
#15 0x080addbb in child_main (child_num_arg=133) at prefork.c:610
#16 0x080adf45 in make_child (s=0x8108b90, slot=133) at prefork.c:704
#17 0x080ae1a4 in perform_idle_server_maintenance (p=0x8102e58) at
prefork.c:839
#18 0x080ae5f9 in ap_mpm_run (_pconf=0x8102e58, plog=0x813ef48,
s=0x8108b90) at prefork.c:1040
#19 0x080b4ff1 in main (argc=2, argv=0xbfffdf84) at main.c:618
(gdb)
Reproduce code:
---------------
Unfortunately none.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35315&edit=1
- 11
- #40931 [Fbk->Opn]: open_basedir bypass via symlink and move_uploaded_file() ID: 40931
User updated by: vladimir at petrov dot ks dot ua
Reported By: vladimir at petrov dot ks dot ua
-Status: Feedback
+Status: Open
Bug Type: Safe Mode/open_basedir
Operating System: Linix
PHP Version: 5.2.1
New Comment:
open_basedir actually used.
If I try to write directly to target directory by
move_uploaded_file($_FILES["userfile"]["tmp_name"],"/home/user2/public_html/file.ext")
I got proper error message in browser and in the apache error log.
Previous Comments:
------------------------------------------------------------------------
[2007-03-27 18:40:17] email***@***.com
Make sure the open_basedir option is actually used and not overriden in
another way.
------------------------------------------------------------------------
[2007-03-27 18:30:13] vladimir at petrov dot ks dot ua
Description:
------------
User can bypass open_basedir restriction by move_uploaded_file() if
target file path is symlink to any directory.
Reproduce code:
---------------
user1 will upload file to user2's /home/user2/public_html folder.
We have in /etc/passwd:
user1:x:32001:32001::/home/user1:/bin/bash
user2:x:32002:32002::/home/user2:/bin/bash
Target folder allows to write for anybody:
# ls -lA /home/user2
drwxrwxrwx 2 user2 user2 4096 Mar 27 17:31 public_html/
Apache have mod_php intalled. Apache config for user1:
<VirtualHost xxx.xxx.xxx.xxx>
ServerName user1.xxxxxxx.com
DocumentRoot /home/user1/public_html
User user1
php_admin_value open_basedir "/home/user1"
</VirtualHost>
User user1 can do something like:
$ cd /home/user1/public_html/
$ ln -s /home/user2/public_html user2_public_html
$ echo '<html><body>
<?
if ( isset($_FILES["userfile"]) ) {
echo "Upload ";
if (move_uploaded_file
($_FILES["userfile"]["tmp_name"],"/home/user1/public_html/user2_public_html/file.ext"))
echo "ok";
else echo "failed";
}
?>
<form name="uplform" method="post" action="<?=$PHP_SELF?>"
enctype="multipart/form-data">
<input type="file" name="userfile">
<input type="submit">
</body></html>' > upload.php
Expected result:
----------------
If we access http://user1.xxxxxxx.com/upload.php after file upload
expected message
"Upload failed"
and no file
/home/user2/public_html/file.ext
in target folder.
Actual result:
--------------
If we access http://user1.xxxxxxx.com/upload.php after file upload we
got message
"Upload ok"
and file
/home/user2/public_html/file.ext
well exist in target folder.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40931&edit=1
- 12
- #41826 [Opn->Fbk]: function chunk_split doesen't work ID: 41826
Updated by: email***@***.com
Reported By: mueller at spot-media dot de
-Status: Open
+Status: Feedback
Bug Type: Reproducible crash
Operating System: Debian etch
PHP Version: 4.4.7
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2007-06-27 15:08:56] mueller at spot-media dot de
Description:
------------
The function chunk_split doesn't work in 4.4.7. I know it works in
4.4.4. It just returns false.
Reproduce code:
---------------
$body = "ABCDEFGHIJK";
$chunken = 2;
$end = ";";
var_dump( chunk_split($body,$chunken,$end));
Expected result:
----------------
return (string) AB;CD;EF;GH;IJ;K;
Actual result:
--------------
(bool) false
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41826&edit=1
- 13
- #24753 [Opn->Bgs]: missing character in POST data ID: 24753
Updated by: email***@***.com
Reported By: robin at newloop dot com
-Status: Open
+Status: Bogus
Bug Type: HTTP related
Operating System: Win XP Pro 2002 SP1
PHP Version: 4.3.2
New Comment:
Bogus then :)
Previous Comments:
------------------------------------------------------------------------
[2003-07-22 12:10:01] robin at newloop dot com
again, big thanks!
register globals is Off
Worked out the space thing. Doh!
had a line specifically adding it:
$fileData = " ";
------------------------------------------------------------------------
[2003-07-22 11:50:16] email***@***.com
<?php
var_dump(ini_get("register_globabls"));
?>
Will tell you if you have register_globals enabled.
As for the space, make sure you have no spaces before the <?php (or <?)
in your script.
------------------------------------------------------------------------
[2003-07-22 11:47:05] robin at newloop dot com
thanks for your help on this;
1) I am using it as CGI already.
2) The first charater is present and correct. I am
getting an un-asked-for " " at the beginning of my
file, though.
3) Not sure about this. I haven't been using PHP for
very long. how can I check for it?
------------------------------------------------------------------------
[2003-07-22 11:14:24] email***@***.com
1) Are you using as isapi module or CGI, if you are using the isapi
module try CGI and see if the problem persists.
2) Is the 1st character of the last variable missing when you use
$_POST?
3) Do you have register_globals enabled or disabled?
------------------------------------------------------------------------
[2003-07-22 10:26:03] robin at newloop dot com
have just tried this but seems to make no difference.
Any ideas? It's IIS 5.1 if that helps.
------------------------------------------------------------------------
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/24753
--
Edit this bug report at http://bugs.php.net/?id=24753&edit=1
- 14
- #32928 [Fbk->Opn]: php dies trying to ->bind_result(...) ID: 32928
User updated by: dan at yes dot lt
Reported By: dan at yes dot lt
-Status: Feedback
+Status: Open
Bug Type: MySQLi related
Operating System: winxp
-PHP Version: 5.0.4
+PHP Version: 5.0.4, 5.0.5-dev
Assigned To: georg
New Comment:
php also dies with latest snapshot
Previous Comments:
------------------------------------------------------------------------
[2005-05-06 03:14:55] email***@***.com
Please try using this CVS snapshot:
http://snaps.php.net/php5-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.0-win32-latest.zip
------------------------------------------------------------------------
[2005-05-05 15:47:53] dan at yes dot lt
this is not NULL or unbuffered resultset only...
try this:
Reproduce code:
---------------
$st = $db->prepare("SELECT 1.23 AS test");
$st->bind_result($x);
$st->fetch();
var_dump($x);
Expected result:
----------------
float(1.23)
Actual result:
--------------
...FATAL ERROR WITH NO OUTPUT...
or maybe floats are also unsupported ?..
------------------------------------------------------------------------
[2005-05-05 15:41:35] email***@***.com
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
Prepared statements return unbuffered resultsets by default,
therefore you have to retrieve all data or close the resultset before
any command to the server.
The last statement doesn't work, cause MYSQL_TYPE_NULL is unsupported
(filed as bug #32956).
------------------------------------------------------------------------
[2005-05-04 09:58:00] email***@***.com
Looks like repreparing a statement without closing it
makes some problems -> assigned (tested against
5.0.5-beta)
The script itself works as expected - fetching a row
without executing statement before returns an error.
------------------------------------------------------------------------
[2005-05-03 16:19:30] dan at yes dot lt
Description:
------------
php dies trying to mysqli_stmt->bind_result(...) with listed queries:
SELECT 1.23 AS test
SELECT NULL AS test
php version 5.0.4, mysql version 5.0.4 beta
Reproduce code:
---------------
$st = $db->prepare("SELECT 1 AS test");
$st->bind_result($x);
$st->fetch();
var_dump($x);
$st = $db->prepare("SELECT 1.23 AS test");
$st->bind_result($x);
$st->fetch();
var_dump($x);
$st = $db->prepare("SELECT NULL AS test");
$st->bind_result($x);
$st->fetch();
echo $st;
var_dump($x);
Expected result:
----------------
int(1)
float(1.23)
NULL
Actual result:
--------------
int(1)
...FATAL ERROR WITH NO OUTPUT...
...FATAL ERROR WITH NO OUTPUT...
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=32928&edit=1
- 15
- #35849 [Fbk->Opn]: stream_copy_to_stream() do strange behavior ID: 35849
Updated by: email***@***.com
Reported By: sqchen at citiz dot net
-Status: Feedback
+Status: Open
Bug Type: Unknown/Other Function
Operating System: redhat 7.3
PHP Version: 5.1.1
New Comment:
I can see two bugs in this report:
* mmap()'ed fds aren't seeked() to update the position
* the length is a size_t, where it should be a ssize_t, because
PHP_STREAM_COPY_ALL is defined to -1
my patch: http://mega.ist.utl.pt/~ncpl/php_stream_mmap.txt
it makes all negative values to read all the file (to be consistent
with non-mmap'ed fds).
I can also see some long/size_t/ssize_t mixes, which can be problematic
in some platforms.
Previous Comments:
------------------------------------------------------------------------
[2005-12-30 10:25:03] email***@***.com
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.
------------------------------------------------------------------------
[2005-12-30 08:25:20] sqchen at citiz dot net
SORRY, I have make a mistake on the code above, Below is the right
code
Description:
------------
stream_copy_to_stream() do strange behavior when the maxlength
parameter
is negative, see the following codes:
Reproduce code:
---------------
<?php
$src = fopen("1.txt", "r"); //"hell, world" in "1.txt"
$dest1 = fopen("des1.txt", "w");
$dest2 = fopen("des2.txt", "w");
/*----seg1------*/
stream_copy_to_stream($src, $des1, -2);
readfile("des1.txt"); //hello, world
stream_copy_to_stream($src, $des2);
readfile("des2.txt"); //nothing? why?
/* please compare it with seg2*/
/*----seg2-------*/
stream_copy_to_stream($src, $des1, 2);
readfile("des1.txt"); //he
stream_copy_to_stream($src, $des2);
readfile("des2.txt"); //hello, world
?>
------------------------------------------------------------------------
[2005-12-30 07:43:17] sqchen at citiz dot net
Description:
------------
stream_copy_to_stream() do strange behavior when the maxlength
parameter is negative, see the following codes:
Reproduce code:
---------------
<?php
$src = fopen("1.txt", "r"); //"hell, world" in "1.txt"
$dest1 = fopen("des1.txt", "w");
$dest2 = fopen("des2.txt", "w");
/*----seg1------*/
stream_copy_to_stream($src, $des1, -2);
readfile("des1.txt"); //hello, world
stream_copy_to_stream($src, $des1);
readfile("des2.txt"); //nothing? why?
/* please compare it with seg2*/
/*----seg2-------*/
stream_copy_to_stream($src, $des1, 2);
readfile("des1.txt"); //he
stream_copy_to_stream($src, $des1);
readfile("des2.txt"); //hello, world
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35849&edit=1
|
|
|