| #28106 [Fbk->NoF]: New object model fails where old style works fine |
|
 |
Index ‹ php-dev
|
- Previous
- 2
- #32918 [Opn->Bgs]: highlight_string (and highlight_file?) indent incorrectly. ID: 32918
Updated by: email***@***.com
Reported By: mpb dot mail at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: Strings related
Operating System: Gentoo Linux
PHP Version: 5.0.3
New Comment:
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same.
Thank you for your interest in PHP.
see #29338
Previous Comments:
------------------------------------------------------------------------
[2005-05-02 23:59:51] mpb dot mail at gmail dot com
Description:
------------
The highlight_string function fails to properly indent lines that begin
with a single space.
I suspect highlight_file has the same problem, but have not tested it.
In the reproduce code (below), the line ' *' actually renders as:
<br /> *<br />
Instead of the expected:
<br /> *<br />
So, I guess if a line begins with a single space, that space needs to
be converted into ' ' even though it is a singleton.
Reproduce code:
---------------
<?php
$comment = array ('/*', '*', ' *', ' *', "\t*/");
$comment = join ("\n", $comment);
highlight_string ($comment);
?>
Expected result:
----------------
<code><span style="color: #000000">
/*<br />*<br /> *<br /> *<br
/> */</span>
</code>
Actual result:
--------------
<code><span style="color: #000000">
/*<br />*<br /> *<br /> *<br
/> */</span>
</code>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=32918&edit=1
- 6
- #7237 [Com]: PHP Isapi Filter fails after some consecutive uses ID: 7237
Comment by: pollyr at optonline dot net
Reported By: fjortiz at comunet dot es
Status: Closed
Bug Type: IIS related
Operating System: Windows NT Server 4.0
PHP Version: 4.0.3pl1
New Comment:
Filter fails to put email in mailbox. All email goes to in box.
Previous Comments:
------------------------------------------------------------------------
[2002-03-17 13:04:36] dberladyn at shaw dot ca
This bug is extremely annoying. I have found php to crash with this bug
running Apache, PWS and I have yet to try xitami running on Windows 98.
I don't understand how anyone can run php on a windows machine if its
found to be this unstable.
------------------------------------------------------------------------
[2002-03-14 12:32:38] aponso at uol dot com dot br
Yes, does occur with version 4.1.2.
------------------------------------------------------------------------
[2002-01-03 17:57:16] email***@***.com
No feedback. Closed.
------------------------------------------------------------------------
[2001-12-13 14:39:36] email***@***.com
Does this problem still exist with the PHP 4.1.0?
------------------------------------------------------------------------
[2001-05-03 12:00:10] fjortiz at comunet dot es
unfortunately, it's even worse now: 4.0.4 was unstable, but now PHP
4.0.5 in ISAPI mode brings my inetinfo.exe (W3SVC service) down, even
with a simple phpinfo()
Back to CGI mode everything goes fine. I'll try with other machines
just in case, but this is what happens in my WinNT4 machine...
------------------------------------------------------------------------
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/7237
--
Edit this bug report at http://bugs.php.net/?id=7237&edit=1
- 8
- #40565 [Fbk->Csd]: segmentation fault ID: 40565
User updated by: ThomasxHolder at compuserve dot de
Reported By: ThomasxHolder at compuserve dot de
-Status: Feedback
+Status: Closed
Bug Type: Reproducible crash
Operating System: Solaris 9
PHP Version: 5.2.1
New Comment:
wow, it's fixed, thanks!
Previous Comments:
------------------------------------------------------------------------
[2007-02-20 19:12:57] email***@***.com
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
------------------------------------------------------------------------
[2007-02-20 19:03:57] ThomasxHolder at compuserve dot de
Description:
------------
We are running php-5.1.6 on solaris 5.9 (sparc64). Since php-5.2.0 all
attemts to update failed. A simple echo test works, but almost
everything else causes segmentation fault. "make test" stops in the
very beginning with "make: [test] Error 139 (ignored)".
Reproduce code:
---------------
$ cat test.php
<?php
echo str_replace("foo", "bar", "foofoo\n");
?>
$ gdb ../sapi/cli/php
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 "sparc-sun-solaris2.8"...
(gdb) set args test.php
(gdb) run
Starting program: /tmp/holder/php-5.2.1/sapi/cli/php test.php
*zval_ptr is null...
Program received signal SIGSEGV, Segmentation fault.
_zval_ptr_dtor (zval_ptr=0xffbfe634) at
/tmp/holder/php-5.2.1/Zend/zend_execute_API.c:416
416 (*zval_ptr)->refcount--;
(gdb) backtrace
#0 _zval_ptr_dtor (zval_ptr=0xffbfe634) at
/tmp/holder/php-5.2.1/Zend/zend_execute_API.c:416
#1 0x00189b3c in zend_do_fcall_common_helper_SPEC
(execute_data=0xffbfe6c8) at zend_execute.h:155
#2 0x00187c40 in execute (op_array=0x2d7da8) at zend_vm_execute.h:92
#3 0x0016c390 in zend_execute_scripts (type=8, retval=Variable
"retval" is not available.
) at /tmp/holder/php-5.2.1/Zend/zend.c:1135
#4 0x0012d330 in php_execute_script (primary_file=0xffbfedf0) at
/tmp/holder/php-5.2.1/main/main.c:1784
#5 0x001ff870 in main (argc=2, argv=0xffbfee9c) at
/tmp/holder/php-5.2.1/sapi/cli/php_cli.c:1114
(gdb) quit
I inserted
if ((*zval_ptr) == NULL) {
printf("*zval_ptr is null...\n");
}
into Zend/zend_execute_API.c, for that the error occurs in line 416 and
not in line 412
Actual result:
--------------
Segmentation fault
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40565&edit=1
- 8
- #38210 [NEW]: oci8.ping_interval interpreted incorrectlyFrom: Paul dot Merchant at dartmouth dot edu
Operating system: Any
PHP version: 5.1.4
PHP Bug Type: OCI8 related
Bug description: oci8.ping_interval interpreted incorrectly
Description:
------------
A ping interval of 0 should cause a persistent connection to
be polled each time php_oci_do_connect is called. It does
this by adding ping_interval seconds to the timestamp of the
last operation to compute a next ping time; however,
php_oci_do_connect only performs a ping when the current
timestamp is greater than the next ping time, guaranteeing
that at least 1 second must pass before the next ping occurs.
Effectively, php_oci_connection_ping is called every
ping_interval+1 seconds. The comparison on php_oci_do_connect
should read
if ( (connection->next_ping > 0) && (timestamp >= connection-
>next_ping) &&....
--
Edit bug report at http://bugs.php.net/?id=38210&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38210&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38210&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38210&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=38210&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=38210&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=38210&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=38210&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=38210&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=38210&r=support
Expected behavior: http://bugs.php.net/fix.php?id=38210&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=38210&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=38210&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=38210&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38210&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=38210&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=38210&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=38210&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=38210&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=38210&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=38210&r=mysqlcfg
- 8
- #35194 [Opn->Fbk]: child pid exit signal illegal instruction ID: 35194
Updated by: email***@***.com
Reported By: mginsburg at collaborativefusion dot com
-Status: Open
+Status: Feedback
Bug Type: Apache2 related
Operating System: FreeBSD 5.3
PHP Version: 5.0.5
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2005-11-11 16:38:21] mginsburg at collaborativefusion dot com
Description:
------------
I recently upgraded php from 5.0.3 to 5.0.5 and a piece of proprietary
php software that I was running, now will not run. The error in the
http-error.log is
[notice] child pid 10398 exit signal Illegal instruction (4)
Due to the software functioning on 5.0.3 I do not think that it could
be a code error.
Reproduce code:
---------------
http://www.imnotgonnalie.com/ginny/SugarBean.php.txt
The error is caused somewhere in the constructor (line 88)
Actual result:
--------------
PHP exits on error
[notice] child pid 10398 exit signal Illegal instruction (4)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35194&edit=1
- 9
- #41953 [Opn->Bgs]: ldap_add incorrectly handles the comma, even with two backslashes (\\,) ID: 41953
Updated by: email***@***.com
Reported By: ahoyt at kpcommunications dot com
-Status: Open
+Status: Bogus
Bug Type: LDAP related
Operating System: Mac OS X, Windows 2003 Server
PHP Version: 5.2.3
New Comment:
Whatever is passed as DN is passed directly to the underlying LDAP
library's function. In other words: It's not PHP bug.
Previous Comments:
------------------------------------------------------------------------
[2007-07-10 19:27:30] ahoyt at kpcommunications dot com
Description:
------------
ldap_add fails when creating a new user in Active Directory with the
following circumstances:
1. The DN contains a comma such as: "CN=Last,
First,CN=Users,DC=example,DC=com"
2. This bug is reproducible on Mac OS X and Windows 2003 Server (Have
not tried other OS's).
3. unknown whether the problem is with php_ldap module or with zend
engine.
Sourcecode for AD user creation from http://adldap.sourceforge.net.
Class modified to make entry as straightforward as possible. See
example.php user_create() and change the dn in adLDAP.php to a preset
string.
Reproduce code:
---------------
//ldap connect -> $_conn (returns a valid link resource)
ldap_set_option($_conn, LDAP_OPT_PROTOCOL_VERSION, 3);
ldap_set_option($_conn, LDAP_OPT_REFERRALS, 0);
//ldaps bind (ldap binds with ssl)
$dn = "CN=Last\\, First,CN=Users,DC=example,DC=com"; //escape twice for
a single backslash in ldap
echo $dn;
echo "<br>";
$attributes["samaccountname"][0] = "flast";
$attributes["anyattribute"][0] = "anything";
ldap_add($_conn,$dn,$attributes);
//Error
Expected result:
----------------
ldap_add returns true, new user created at CN=Last\,
First,CN=Users,DC=example,DC=com
Note: This happens with Active Directory on Windows 2003 Server, as
well
as many open directory implementations. The comma character is not
defined in RFC 2255, PHP or SSL does not deal with it correctly.
php class located at:
http://adldap.sourceforge.net
Actual result:
--------------
Program returns the following:
----------------------------------------------------------------------
CN=Last\, First,CN=Users,DC=example,DC=com
Warning: ldap_add() [function.ldap-add]: Add: Invalid DN syntax in /
PHP/classes/class.adLDAP.php on line 689
----------------------------------------------------------------------
Notes:
The dn syntax is completely valid, no reason why this should not work.
line 689 is not the actual location of ldap_add in the original adldap
class:
(http://adldap.sourceforge.net),
but it is near that line. In the class, it is preceeded by an @. I
removed the @ to see the error messages.
Notes: the phpLDAPadmin project has a similar problem but when
exporting to LDIF format, the DN comes out like this:
CN=Last\2C First,CN=Users,DC=example,DC=com
under and Open Directory Server.
Other notes:
This bug also seems to appear in the PEAR package for LDAP. I have
tried DN entries with commas ",", backslash commas, "\,", etc. and
none of it works.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41953&edit=1
- 9
- #27326 [Fbk->Opn]: upload_max_filesize seems to be ignored ID: 27326
User updated by: charlesb at ekit-inc dot com
Reported By: charlesb at ekit-inc dot com
-Status: Feedback
+Status: Open
Bug Type: PHP options/info functions
Operating System: Sparc/Solaris8
PHP Version: 4.3.4
New Comment:
Thanks. This afternoon, we replicated the problem on the php
distribution with the fedora core. So, on Monday we'll try to set this
up on a publically viewable server somewhere so you can view the sample
script in action.
Previous Comments:
------------------------------------------------------------------------
[2004-02-20 00:38:48] 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
I can not reproduce this..
------------------------------------------------------------------------
[2004-02-19 23:48:52] charlesb at ekit-inc dot com
Description:
------------
I set the upload_max_filesize in the php.ini and it appears in the
output of phpinfo() as expected. However:
- if I set it to 0.1M or 100000, I can still upload much larger files
(around 750K in size) files
- if I set it to 2M, 2000000 or anything like that I still cannot
upload files larger than 1M. (I get the usual "The page cannot be
displayed error" in IE that always appears when the limit is exceeded)
post_max_size is set to 8M...
please let me know if I can provide further info.
Thanks,
Charles
Actual result:
--------------
Do not see any error logs or errors produced.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=27326&edit=1
- 10
- #27891 [Opn]: Bad behavior of require() function ID: 27891
User updated by: faraco dot phpbugs at mailnull dot com
Reported By: faraco dot phpbugs at mailnull dot com
Status: Open
Bug Type: *Directory/Filesystem functions
Operating System: Windows NT4 SP6
PHP Version: 5.0.0RC1
New Comment:
Sorry. I mistyped the Actual Result. The correct message is:
PHP Fatal error: Cannot redeclare anyfunction() (previously declared
in
E:\docroot\lib\functions.php:4) in E:\docroot\lib\functions.php on
line 7
Previous Comments:
------------------------------------------------------------------------
[2004-04-06 14:54:18] faraco dot phpbugs at mailnull dot com
Description:
------------
I have the following file structure (folders in uppercase for better
understanding):
DOCROOT
|
+- LIB
| |
| +- functions.php
|
+- SUBROOT
|
+- index.php
|
+- LIB
|
+- functions.php
The 'index.php' file uses the require() function to include both
'functions.php' files (that have different contents). When running
'index.php', a "Cannot redeclare function" error occurs.
Pay attention at the error message: the compiler says that the same
function is redeclared in the same file on different lines!
Reproduce code:
---------------
DOC_ROOT/LIB/functions.php
--------------------------
<?
echo "Here is DOCROOT\\LIB\\functions.php<br>";
function anyfunction($param)
{
return $param;
}
?>
DOCROOT/SUBROOT/LIB/functions.php
---------------------------------
<?
echo "Here is DOCROOT\\SUBROOT\\LIB\\functions.php<br>";
?>
DOC_ROOT/SUBROOT/LIB/index.php
------------------------------
<?
require("../lib/functions.php");
require("lib/functions.php");
echo anyfunction("Hello World!");
?>
Expected result:
----------------
Here is DOCROOT\LIB\functions.php
Here is DOCROOT\SUBROOT\LIB\functions.php
Hello World!
Actual result:
--------------
Here is DOCROOT\LIB\functions.php
PHP Fatal error: Cannot redeclare anyfunction() (previously declared in
C:\doc_root\lib\functions.php:4) in E:\doc_root\lib\functions.php on
line 7
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=27891&edit=1
- 12
- #30441 [Fbk->NoF]: file_get_contents and fread don't read the wholle file ID: 30441
Updated by: email***@***.com
Reported By: christian at koch dot net
-Status: Feedback
+Status: No Feedback
Bug Type: Filesystem function related
Operating System: Windows XP SP2
PHP Version: 5.0.2
New Comment:
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".
Previous Comments:
------------------------------------------------------------------------
[2004-10-22 13:54:53] email***@***.com
I can't reproduce it with PHP 5.1.0-dev, 5.0.3-dev and 4.3.10-dev.
Please, provide a downloadable example.
------------------------------------------------------------------------
[2004-10-22 13:46:37] christian at koch dot net
bug is still in 5.01 and 5.00
------------------------------------------------------------------------
[2004-10-22 13:41:45] christian at koch dot net
read a file into a string, the string has a different content as the
file. try this
<?php
var_dump(file_get_contents("testfile.txt"));
?>
where textfile.txt contains:
begin
<blafasel begin="<%testtag name="abc"%>" soso stop>
bla="fasel" begin="<%testtag name="abc"%>" soso stop
blafasel begin="<%testtag name="abc"%>" soso stop
blafasel begin="<%testtag name="abc"%>" soso stop
blafasel begin="<%testtag name="abc"%>" soso stop
blafasel begin="<%testtag name="abc"%>" soso stop
<meta name="ef-type" content="template">
<meta name="lower-file" content="<%ATTRIBUTE name="lower-file"%>">
<meta name="keywords" content="<%ATTRIBUTE
name="keywords"%>,<%COMPONENT
file="/templates/hallo.html"%>">
<meta name="edate" content="<%ATTRIBUTE name="edate"%>">
blafasel begin="<%testtag name="abc"%>" soso stop
blafasel begin="<%testtag name="abc"%>" soso stop
end
the differences occurs at line 2(chr 37) and line 10(chr 62). both are
" (doublequotes) the error occurs too if I use the fread() function.
Hope this is enough info
I've made an upgrade to 5.02. the still occurs
Christian
------------------------------------------------------------------------
[2004-10-21 23:22:01] 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.
------------------------------------------------------------------------
[2004-10-15 08:35:15] christian at koch dot net
Description:
------------
<part of the file where problem occurs>
<meta name="ef-type" content="template">
<meta name="lower-file" content="<%ATTRIBUTE name="lower-file"%>">
<meta name="keywords" content="<%ATTRIBUTE
name="keywords"%>,<%COMPONENT file="/templates/hallo.html"%>">
<meta name="edate" content="<%ATTRIBUTE name="edate"%>">
</part>
<result after file_get_contents()>
<meta name="ef-type" content="template">
<meta name="lower-file" content="<%ATTRIBUTE name="lower-file%>">
<meta name="keywords" content="<%ATTRIBUTE name="keywords%>,<%COMPONENT
file="/templates/hallo.html"%>">
<meta name="edate" content="<%ATTRIBUTE name="edate%>">
</result>
I'm missings some (") if there are outer (") then the second inner (")
is missing.
Christian
Reproduce code:
---------------
var_dump ( file_get_contents("<anyfilename>") );
Expected result:
----------------
if i read a file i think the file shoud be read completely :-)
Actual result:
--------------
s.o.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30441&edit=1
- 14
- #31651 [NEW]: ReflectionClass::getDefaultProperties segfaults with arrays.From: email***@***.com
Operating system: linux
PHP version: 4CVS-2005-01-22 (stable)
PHP Bug Type: Zend Engine 2 problem
Bug description: ReflectionClass::getDefaultProperties segfaults with arrays.
Description:
------------
example / title pretty much covers it :)
Reproduce code:
---------------
php -r 'class a { var $a=array('a'=>1); } $c = new ReflectionClass("a");
print_r($c->getdefaultProperties());'
Expected result:
----------------
Array
(
[a] => Array
(
[a] => 1
)
)
Actual result:
--------------
Array
(
[a] => Segmentation fault
--
Edit bug report at http://bugs.php.net/?id=31651&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31651&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31651&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31651&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=31651&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=31651&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=31651&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=31651&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=31651&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=31651&r=support
Expected behavior: http://bugs.php.net/fix.php?id=31651&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=31651&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=31651&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=31651&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31651&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=31651&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=31651&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=31651&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=31651&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=31651&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=31651&r=mysqlcfg
- 14
- #35163 [Asn]: Array elements can lose references. ID: 35163
Updated by: email***@***.com
Reported By: averagomez at hotmail dot com
Status: Assigned
Bug Type: Arrays related
Operating System: *
PHP Version: 5CVS-2005-11-09 (cvs)
Assigned To: dmitry
New Comment:
5.1 is effected too.
<?php
$a = array(array('A'));
//$b = &$a[0];
$a[0][] =& $a[0];
$a[0][] =& $a[0];
$a[0][0] = 'b';
var_dump($a);
$a = null;
$b = null;
?>
The problem is in "$a[0][] =& $a[0];" operator, that creates copy of
$a[0] during fetching lvalue because $a[0] is not a reference and after
fetching rvalue it has refcount > 1.
Previous Comments:
------------------------------------------------------------------------
[2005-11-09 15:32:49] email***@***.com
This is what I get:
B/usr/src/php_5_1/Zend/zend_variables.h(45) : Freeing 0x09E76844 (2
bytes), script=/www/igglo/t.php
/usr/src/php_5_1/Zend/zend_variables.c(120) : Actual location (location
was relayed)
/usr/src/php_5_1/Zend/zend_execute.c(1009) : Freeing 0x09E665D4 (35
bytes), script=/www/igglo/t.php
/usr/src/php_5_1/Zend/zend_hash.c(383) : Actual location (location was
relayed)
Last leak repeated 1 time
/usr/src/php_5_1/Zend/zend_vm_execute.h(3361) : Freeing 0x09E664CC (35
bytes), script=/www/igglo/t.php
/usr/src/php_5_1/Zend/zend_hash.c(383) : Actual location (location was
relayed)
/usr/src/php_5_1/Zend/zend_vm_execute.h(3311) : Freeing 0x09E77754 (32
bytes), script=/www/igglo/t.php
/usr/src/php_5_1/Zend/zend_hash.c(169) : Actual location (location was
relayed)
Last leak repeated 1 time
/usr/src/php_5_1/Zend/zend_vm_execute.h(3330) : Freeing 0x09E7196C (16
bytes), script=/www/igglo/t.php
/usr/src/php_5_1/Zend/zend_execute.c(842) : Freeing 0x09E7192C (16
bytes), script=/www/igglo/t.php
=== Total 8 memory leaks detected ===
Dmitry, can you check if you can fix the leaks?
------------------------------------------------------------------------
[2005-11-09 14:43:54] averagomez at hotmail dot com
Work OK in PHP 5.1.0RC5-dev
------------------------------------------------------------------------
[2005-11-09 08:52:22] email***@***.com
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
------------------------------------------------------------------------
[2005-11-09 05:45:44] averagomez at hotmail dot com
Description:
------------
Sorry I have a very bad english but I think the 'Reproduce code' is
self-describing.
Reproduce code:
---------------
// ---------- This work OK:
$a = array('A', & $a, & $a);
$a[1][0] = 'B';
echo $a[0]; // OK : Show 'B'
// ---------- But this don't work:
$a = array('A');
$a[1] = & $a;
$a[2] = & $a;
$a[1][0] = 'B';
echo $a[0]; // Wrong: Show 'A'
Expected result:
----------------
BB
Actual result:
--------------
BA
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35163&edit=1
- 14
- #43326 [NEW]: compilation of mysqli breaks due to bad #ifdefFrom: gk at gknw dot de
Operating system: NetWare
PHP version: 5.2.5
PHP Bug Type: Compile Failure
Bug description: compilation of mysqli breaks due to bad #ifdef
Description:
------------
Compilation of mysqli extension for NetWare platform breaks with PHP 5.2.5
due to bad #ifdef expression; seems that not all compilers like an #ifdef
combined with an #if; here's a patch which solves the issue:
--- mysqli.c.orig Mon Oct 22 12:35:34 2007
+++ mysqli.c Mon Nov 19 00:24:16 2007
@@ -693,7 +693,7 @@
*/
PHP_RINIT_FUNCTION(mysqli)
{
-#ifdef ZTS && MYSQL_VERSION_ID >= 40000
+#if defined(ZTS) && MYSQL_VERSION_ID >= 40000
if (mysql_thread_init()) {
return FAILURE;
}
@@ -709,7 +709,7 @@
*/
PHP_RSHUTDOWN_FUNCTION(mysqli)
{
-#ifdef ZTS && MYSQL_VERSION_ID >= 40000
+#if defined(ZTS) && MYSQL_VERSION_ID >= 40000
mysql_thread_end();
#endif
if (MyG(error_msg)) {
Reproduce code:
---------------
compilation breaks using Metrowerks CodeWarrior compiler for NetWare.
Expected result:
----------------
compilation succeeds.
Actual result:
--------------
compilation breaks.
--
Edit bug report at http://bugs.php.net/?id=43326&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=43326&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=43326&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=43326&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=43326&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=43326&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=43326&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=43326&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=43326&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=43326&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=43326&r=support
Expected behavior: http://bugs.php.net/fix.php?id=43326&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=43326&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=43326&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=43326&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=43326&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=43326&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=43326&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=43326&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=43326&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=43326&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=43326&r=mysqlcfg
- 14
- #25038 [NEW]: call_user_func issues warning if function throws exceptionFrom: tater at potatoe dot com
Operating system: OS X 10.2
PHP version: 5CVS-2003-08-11 (dev)
PHP Bug Type: Zend Engine 2 problem
Bug description: call_user_func issues warning if function throws exception
Description:
------------
Throwing an exception from a function called by call_user_func() causes a
warning to be issued,
saying it was unable to call the function.
An odd side note: if I set up my own error handler,
it does not receive this warning. Kind of an
inadvertant workaround for now...
Reproduce code:
---------------
function bar($x='no argument')
{
throw new Exception("This is an exception from bar({$x}).");
}
try { bar('first try'); }
catch (Exception $e) { print "{$e->message}\n"; }
try { call_user_func('bar','second try'); }
catch (Exception $e) { print "{$e->message}\n"; }
Expected result:
----------------
This is an exception from bar(first try).
This is an exception from bar(second try).
Actual result:
--------------
This is an exception from bar(first try).
Warning: call_user_func(bar): Unable to call bar(second try) in
/my/pathname/test.php on line 8
This is an exception from bar(second try).
--
Edit bug report at http://bugs.php.net/?id=25038&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25038&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25038&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=25038&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=25038&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=25038&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=25038&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=25038&r=support
Expected behavior: http://bugs.php.net/fix.php?id=25038&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=25038&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=25038&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=25038&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25038&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=25038&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=25038&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=25038&r=gnused
- 14
- #26996 [Fbk->Opn]: If a field is empty it returns one blank space character. ID: 26996
User updated by: arion_ at msn dot com
Reported By: arion_ at msn dot com
-Status: Feedback
+Status: Open
Bug Type: MSSQL related
Operating System: Windows XP SP1
PHP Version: 4.3.4
New Comment:
I've just done and I'm sorry :( but 4.3.5RC2-dev doesn't work yet. If
you need I test something more, just tell me.
Thanks.
Running on Apache 2.0.48
Previous Comments:
------------------------------------------------------------------------
[2004-01-21 14:22:47] 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-01-21 12:57:20] arion_ at msn dot com
Description:
------------
If a field is empty it returns one blank space character.
Reproduce code:
---------------
<?php
$host="XXX";
$usuario="User";
$password="Password";
$bbdd="BBDD";
$conexion=mssql_connect("$host","$usuario","$password");
$qry="SELECT Field
FROM dbo.Table";
$handle=mssql_query($qry);
$registro=mssql_fetch_row($handle);
$Nothing=$registro[0];
echo "Just" .$Nothing. "DoIt";
?>
Expected result:
----------------
JustDoIt
Actual result:
--------------
Just DoIt
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=26996&edit=1
- 15
- #37627 [NEW]: session_save_directory checks wrong directory in safe modeFrom: bla at cs dot huji dot ac dot il
Operating system: freebsd 6.1
PHP version: 5.1.4
PHP Bug Type: Session related
Bug description: session_save_directory checks wrong directory in safe mode
Description:
------------
When I run this command:
session_save_path("/var/spool/sessions");
I get:
session_save_path() [function.session-save-path]: SAFE MODE Restriction in
effect. The script whose uid is 24713 is not allowed to access /var/spool
The information in the message is correct but I suppose the function
should check /var/spool/sessions, not /var/spool. (note that
/var/spool/session exists and has the right permissions so there's no need
to modify /var/spool).
Probably the OnUpdateSaveDir() function in session.c should give a
different flag to php_checkuid().
--
Edit bug report at http://bugs.php.net/?id=37627&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37627&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=37627&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37627&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=37627&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=37627&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=37627&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=37627&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=37627&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=37627&r=support
Expected behavior: http://bugs.php.net/fix.php?id=37627&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=37627&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=37627&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=37627&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37627&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=37627&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=37627&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=37627&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=37627&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=37627&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=37627&r=mysqlcfg
|
| Author |
Message |
php-bugs

|
Posted: 2005-1-18 8:12:18 |
Top |
php-dev, #28106 [Fbk->NoF]: New object model fails where old style works fine
ID: 28106
Updated by: email***@***.com
Reported By: kupka at learninglab dot de
-Status: Feedback
+Status: No Feedback
Bug Type: Zend Engine 2 problem
Operating System: Mac OS X
PHP Version: 5.0.0RC3
New Comment:
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".
Previous Comments:
------------------------------------------------------------------------
[2005-01-10 15:20:02] email***@***.com
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
------------------------------------------------------------------------
[2004-07-12 20:00:38] antonr at game dot permonline dot ru
to kupka at learninglab dot de:
please check your script with last php5 snapshots... i suppose this bug
was corrected
------------------------------------------------------------------------
[2004-06-10 12:23:31] kupka at learninglab dot de
In PHP 5 Release Candidate 3 the problem still exists.
------------------------------------------------------------------------
[2004-05-08 10:32:19] antonr at game dot permonline dot ru
So, there is a problem with serialization and deserialization of
objects with references to others objects.
------------------------------------------------------------------------
[2004-05-08 10:27:17] antonr at game dot permonline dot ru
5.0.0 RC2, Win32
----------------------------------
<?php
class MyClass
{ public $number;
function EchoNum()
{ echo $this->number;
echo "<br>";
}
}
$a = new MyClass;
$a->number = 1;
$b = $a;
$b->number = 2;
$a->EchoNum();
$b->EchoNum();
?>
outputs:
2
2
----------------------------------
but...
<?php
class MyClass1
{ public $myclass2;
}
class MyClass2
{ public $myclass1;
}
$a = new MyClass1;
$a->myclass2 = new MyClass2;
$a->myclass2->myclass1 = $a;
$a->number = 1;
echo $a->myclass2->myclass1->number;
echo "<br>";
$c = serialize($a);
echo $c;
echo "<br><br>";
$b = unserialize($c);
$b->number = 2;
echo $b->number;
echo "<br>";
echo $b->myclass2->myclass1->number;
echo "<br>";
echo "<br>";
?>
outputs:
1
O:8:"MyClass1":2:{s:8:"myclass2";O:8:"MyClass2":1:{s:8:"myclass1";O:8:"MyClass1":2:{s:8:"myclass2";r:2;s:6:"number";i:1;}}s:6:"number";i:1;}
2
1
----------------------------------
while:
<?php
class MyClass1
{ public $myclass2;
}
class MyClass2
{ public $myclass1;
}
$a = new MyClass1;
$a->myclass2 = new MyClass2;
$a->myclass2->myclass1 = &$a; <--- ampersand symbol added
$a->number = 1;
echo $a->myclass2->myclass1->number;
echo "<br>";
$c = serialize($a);
echo $c;
echo "<br><br>";
$b = unserialize($c);
$b->number = 2;
echo $b->number;
echo "<br>";
echo $b->myclass2->myclass1->number;
echo "<br>";
echo "<br>";
?>
works fine and outputs:
1
O:8:"MyClass1":2:{s:8:"myclass2";O:8:"MyClass2":1:{s:8:"myclass1";r:1;}s:6:"number";i:1;}
2
2
------------------------------------------------------------------------
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/28106
--
Edit this bug report at http://bugs.php.net/?id=28106&edit=1
|
| |
|
| |
 |
| |
 |
Index ‹ php-dev |
- Next
- 1
- #31995 [Fbk->Opn]: Oracle select ID: 31995
User updated by: wojciech dot superson at bph dot pl
Reported By: wojciech dot superson at bph dot pl
-Status: Feedback
+Status: Open
Bug Type: OCI8 related
Operating System: Windows 2003 Server
PHP Version: 5.0.3
New Comment:
I made some tests yesterday and I am able to reproduce the problem on
wish. The problem accurs there are more than one call of the procedure
(any procedures which return a ref cursor) in the same time. I made as
follows
1. I have a page which is called every 1 second
2. The execution time of Oracle procedure is about 300-400 ms
3. If the is only one request everything is all right
4. If there is more than one call (for example 3, so they are called in
the same time) one of them return the following warning (and return only
one row)
PHP Warning: oci_fetch_all() [<a
href='function.oci-fetch-all'>function.oci-fetch-all</a>]:
OCIFetchStatement: ORA-01001: invalid cursor\n in d:\\program
files\\apache group\\Apache\\htdocs\\moa\\php\\oracle.php on line 188.
5. On the other hand there is nothing like this in Oracle alert log
file but there is many entries in apache error log file.
Awaiting your soon reply
Best regards,
Wojtek
Previous Comments:
------------------------------------------------------------------------
[2005-02-28 20:21:36] email***@***.com
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
------------------------------------------------------------------------
[2005-02-18 14:21:16] wojciech dot superson at bph dot pl
I just call this function passing the name of the storage procedure.
Here is the procedure:
PROCEDURE GetEventsByState
(
P_UGP_ID IN NUMBER,
P_HST_ID IN NUMBER,
P_HST_GRP_ID IN NUMBER,
P_DAYS IN NUMBER,
P_STATE IN NUMBER,
P_CURSOR OUT c_event,
P_ERR_CODE OUT NUMBER,
P_ERR_DESC OUT VARCHAR2
)
IS
BEGIN
IF P_HST_ID = 0 AND P_HST_GRP_ID = 0 THEN
OPEN P_CURSOR FOR
SELECT EVT_ID, EVT_ETD_ID, EVT_HST_ID, HST_NAME, SYS_ID, SYS_NAME,
EVT_TYPE, EVT_SMS,
EVT_CLASS, EVT_BEEPS, EVT_LEVEL, to_char(EVT_DATE,'YYYY.MM.DD
HH24:MI:SS') EVT_DATE, EVT_STATE, EVT_MESSAGE
FROM MOA_EVENTS, MOA_HOST, MOA_SYSTEM, MOA_EVENT_USERS
WHERE EVT_HST_ID = HST_ID
AND HST_SYS_ID = SYS_ID
AND EVT_ETD_ID = EUS_ETD_ID
AND EUS_UGP_ID = P_UGP_ID
AND EVT_STATE = P_STATE
AND EVT_DATE > sysdate - P_DAYS
AND HST_VISIBLE = 1
AND SYS_ACTIVE = 1
AND SYS_VISIBLE = 1
--Moze byc duzo zarejestrowanych zdarzen, dlatego nie mozna brac 100
ostatnich
--AND EVT_ID >= (select max( EVT_ID ) from MOA_EVENTS) - 100
ORDER BY EVT_ID DESC;
RETURN ;
END IF;
IF P_HST_ID = 0 AND P_HST_GRP_ID > 0 THEN
OPEN P_CURSOR FOR
SELECT EVT_ID, EVT_ETD_ID, EVT_HST_ID, HST_NAME, SYS_ID, SYS_NAME,
EVT_TYPE, EVT_SMS,
EVT_CLASS, EVT_BEEPS, EVT_LEVEL, to_char(EVT_DATE,'YYYY.MM.DD
HH24:MI:SS') EVT_DATE, EVT_STATE, EVT_MESSAGE
FROM MOA_EVENTS, MOA_HOST, MOA_SYSTEM, MOA_EVENT_USERS
WHERE EVT_HST_ID = HST_ID
AND HST_SYS_ID = SYS_ID
AND EVT_ETD_ID = EUS_ETD_ID
AND EUS_UGP_ID = P_UGP_ID
AND EVT_STATE = P_STATE
AND HST_GROUP = P_HST_GRP_ID
AND EVT_DATE > sysdate - P_DAYS
AND HST_VISIBLE = 1
AND SYS_ACTIVE = 1
AND SYS_VISIBLE = 1
--AND EVT_ID >= (select max( EVT_ID ) from MOA_EVENTS) - 100
ORDER BY EVT_ID DESC;
RETURN ;
END IF;
IF P_HST_ID > 0 AND P_HST_GRP_ID = 0 THEN
OPEN P_CURSOR FOR
SELECT EVT_ID, EVT_ETD_ID, EVT_HST_ID, HST_NAME, SYS_ID, SYS_NAME,
EVT_TYPE, EVT_SMS,
EVT_CLASS, EVT_BEEPS, EVT_LEVEL, to_char(EVT_DATE,'YYYY.MM.DD
HH24:MI:SS') EVT_DATE, EVT_STATE, EVT_MESSAGE
FROM MOA_EVENTS, MOA_HOST, MOA_SYSTEM, MOA_EVENT_USERS
WHERE EVT_HST_ID = HST_ID
AND HST_SYS_ID = SYS_ID
AND EVT_ETD_ID = EUS_ETD_ID
AND EUS_UGP_ID = P_UGP_ID
AND EVT_STATE = P_STATE
AND HST_ID = P_HST_ID
AND EVT_DATE > sysdate - P_DAYS
AND HST_VISIBLE = 1
AND SYS_ACTIVE = 1
AND SYS_VISIBLE = 1
--AND EVT_ID >= (select max( EVT_ID ) from MOA_EVENTS) - 100
ORDER BY EVT_ID DESC;
RETURN ;
END IF;
IF P_HST_ID > 0 AND P_HST_GRP_ID > 0 THEN
OPEN P_CURSOR FOR
SELECT EVT_ID, EVT_ETD_ID, EVT_HST_ID, HST_NAME, SYS_ID, SYS_NAME,
EVT_TYPE, EVT_SMS,
EVT_CLASS, EVT_BEEPS, EVT_LEVEL, to_char(EVT_DATE,'YYYY.MM.DD
HH24:MI:SS') EVT_DATE, EVT_STATE, EVT_MESSAGE
FROM MOA_EVENTS, MOA_HOST, MOA_SYSTEM, MOA_EVENT_USERS
WHERE EVT_HST_ID = HST_ID
AND HST_SYS_ID = SYS_ID
AND EVT_ETD_ID = EUS_ETD_ID
AND EUS_UGP_ID = P_UGP_ID
AND EVT_STATE = P_STATE
AND HST_GROUP = P_HST_GRP_ID
AND EVT_HST_ID = P_HST_ID
AND EVT_DATE > sysdate - P_DAYS
AND HST_VISIBLE = 1
AND SYS_ACTIVE = 1
AND SYS_VISIBLE = 1
--AND EVT_ID >= (select max( EVT_ID ) from MOA_EVENTS) - 100
ORDER BY EVT_ID DESC;
RETURN ;
END IF;
P_ERR_CODE := 0;
P_ERR_DESC := 'OK';
EXCEPTION
WHEN NO_DATA_FOUND THEN
P_ERR_CODE := 10000;
P_ERR_DESC := 'Nie znaleziono danych';
MOA_LOG_PKG.SaveFatal( 'MOA_EVENT_PKG','GetEventsByState', SQLCODE,
P_ERR_CODE, P_ERR_DESC );
WHEN OTHERS THEN
P_ERR_CODE := 10001;
P_ERR_DESC := 'Blad: ' || SQLCODE || ' ' || SQLERRM;
MOA_LOG_PKG.SaveFatal( 'MOA_EVENT_PKG','GetEventsByState', SQLCODE,
P_ERR_CODE, SQLERRM );
END;
where c_cursor is:
TYPE c_event IS REF CURSOR RETURN r_event;
TYPE r_event IS RECORD
(
EVT_ID MOA_EVENTS.EVT_ID%TYPE
,EVT_ETD_ID MOA_EVENTS.EVT_ETD_ID%TYPE
,EVT_HST_ID MOA_EVENTS.EVT_HST_ID%TYPE
,EVT_HST_NAME MOA_HOST.HST_NAME%TYPE
,EVT_SYS_ID MOA_SYSTEM.SYS_ID%TYPE
,EVT_HST_SYSTEM MOA_SYSTEM.SYS_NAME%TYPE
,EVT_TYPE MOA_EVENTS.EVT_TYPE%TYPE
,EVT_SMS MOA_EVENTS.EVT_SMS%TYPE
,EVT_CLASS MOA_EVENTS.EVT_CLASS%TYPE
,EVT_BEEPS MOA_EVENTS.EVT_BEEPS%TYPE
,EVT_LEVEL MOA_EVENTS.EVT_LEVEL%TYPE
,EVT_DATE MOA_EVENTS.EVT_DATE%TYPE
,EVT_STATE MOA_EVENTS.EVT_STATE%TYPE
,EVT_MESSAGE MOA_EVENTS.EVT_MESSAGE%TYPE
);
------------------------------------------------------------------------
[2005-02-18 13:56:36] email***@***.com
How could we reproduce it?
------------------------------------------------------------------------
[2005-02-18 12:13:32] wojciech dot superson at bph dot pl
I have one more problem, I think it is connected to the original one.
Very often, there is message in apache error.log file "PHP Warning:
oci_fetch_all() [<a
href='function.oci-fetch-all'>function.oci-fetch-all</a>]:
OCIFetchStatement: ORA-01001: invalid cursor\n in d:\\program
files\\apache group\\Apache\\htdocs\\moa\\php\\oracle.php on line 188.
The line 188 is within the OracleExecProcSelect function which I have
sent you before.
------------------------------------------------------------------------
[2005-02-16 10:49:55] wojciech dot superson at bph dot pl
Description:
------------
I use PHP 5.0.3 with Oracle 9.2.0.5.0 on HP-UX 11.11 and Apache 1.3.31.
Aplication works fine and calls the same queries (as Oracle stored
procedures) many times. The problem is that sometimes (more less once
every 30/40 times) query returns only one/two record(s) neverless there
are many records in database for this query. I am not able to reproduce
the problem on wish. I attach the source code of the function I use to
call the Oracle stored procedure for every query in the application.
The name of procedure is passed in $statement variable.
Reproduce code:
---------------
function OracleExecProcSelect( $conn,$statement,& $results, &
$errorcode=-1, & $errordesc="" )
{
$curs = oci_new_cursor( $conn );
$stmt = oci_parse( $conn,"begin ".$statement." end;");
if ( ! oci_bind_by_name( $stmt,"data",$curs,-1,OCI_B_CURSOR ) ) return
;
if ( ! oci_bind_by_name( $stmt,":error_code",$errorcode,32 ) ) return
;
if ( ! oci_bind_by_name( $stmt,":error_desc",$errordesc,255 ) ) return
;
oci_execute( $stmt,OCI_DEFAULT );
oci_execute( $curs,OCI_DEFAULT );
$nrows = oci_fetch_all( $curs,$results );
oci_free_statement($stmt);
oci_free_statement($curs);
return $nrows;
}
Expected result:
----------------
I should get the array ($results) with rows returned by the Oracle
stored procedure (its name is passed by $statement variable). It works
fine but sometimes it returns only one/two rows. Then I call this
procedure from sqlplus I get all requested records.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31995&edit=1
- 2
- [PHP-DEV] Fixing this date messWe need to fix this date thing along with the Digest Auth mixup and get
a 5.1.1 out the door soon. I see Ilia committed a fix for the Digest
Auth thing, so assuming that this fix works, we just need to figure out
what to do with this date class. We can either roll back:
http://cvs.php.net/diff.php/php-src/ext/date/php_date.c?r1=1.43.2.20&r2=1.43.2.21&ty=u
or perhaps a better option is to rename that internal class for now
until we have a better idea of what this class is going to look like and
how we transition pear/Date users. Naming it date_ex (for experimental)
or something like that for now lets us keep the class constants as they
are and hopefully Derick and Pierre can come to some sort of truce on
the actual implementation. I don't think having this mostly empty date
class placeholder helps anybody right now.
This rename would also give us a migration path where you could have a
simple: class date extends date_ex { ... } wrapper which could then be
removed when we have the final internal date class implementation.
-Rasmus
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
- 3
- #31464 [Bgs]: session_start() function blocking the script ID: 31464
User updated by: wildmaple at yahoo dot com
Reported By: wildmaple at yahoo dot com
Status: Bogus
Bug Type: Session related
Operating System: Linux
PHP Version: 5.0.3
New Comment:
Thanx alot email***@***.com!
you show me the bright way out, it is the session file's lock blocked
the script, and session_write_close() solves it appropriately.
but, may i point out another phenomenon, which puzzled me a great.
before we received your message about this bogus bug, we made another
test, a monitor program(something that transports and inspects data
flowing between processes in network environment, running on a third
machine) interfered scriptA.php (SoapClient::__call()) and scriptB.php
(SoapServer::handle()), and without commenting out session_start() or
adding session_write_close(), scriptA.php and scriptB.php both worked
out exactly as we expected.
can you give some explain about this? i am alittle confused, why php
blocks scripts using the same session files as the previous, but does
not block them when they ware executed by through monitor by the same
previous script.
Previous Comments:
------------------------------------------------------------------------
[2005-01-10 08:13:35] email***@***.com
This is indeed not a bug at all, the session extension needs to lock
the session file so that concurrent updates can not corrupt the file.
This means that all scripts using the same session file needs to be
serialized. To improve performance you can use
http://php.net/session_write_close as soon as you are done
reading/setting session variables, which will remove the lock of the
file.
------------------------------------------------------------------------
[2005-01-10 04:39:31] wildmaple at yahoo dot com
Description:
------------
i don't be sure if this is a bug, anyway i don't think it is logically
acceptable.
* A short script that reproduces the problem.
we developed a service structure, using webservice tech(php5.soap).
most things went well as we'd expected till we decided to make one
service script access another one. we have 3 seperate sites under
construction in the same linux box, and maybe more sites coming. some
services on one site will contact another on a second site, and we
think this schema is easy to understand and develope.
scriptA.php makes an SoapClient->__call() to scriptB.php , which serves
well using SoapServer class when called from an binary client programmed
with c++. then scriptB.php blocked when it got to the line where
session_start() resides.
when we commented out session_start(), scriptB.php worked out as fast
as possible, but we lost support of session tech here, that is not
acceptable as we designed.
btw, we tried other ways to solve this problem, but all failed at
function session_start(). some of the methods are xml-rpc and
fsocket(writing and recieving soap envelope handly or xml-rpc
structures),pear-xml-rpc(pear's xml-rpc lib).
* The list of modules you compiled PHP with (your configure line).
'./configure' '--prefix=/usr/local/php'
'--with-config-file-path=/usr/local/php' '--enable-sockets'
'--with-apxs2=/usr/local/apache/bin/apxs'
'--with-mysql=/usr/local/mysql' '--enable-track-vars' '--enable-static'
'--enable-roxen-zts' '--with-gd' '--with-zlib' '--with-xml'
'--with-gettext' '--with-ttf' '--enable-gd-native-ttf'
'--enable-gd-imgstrttf' '--with-freetype-dir=/usr/local/freetype'
'--with-iconv=/usr/local/iconv' '--enable-force-cgi-redirect'
'--enable-pic' '--disable-rpath' '--enable-inline-optimization'
'--with-dom' '--with-ncurses' '--enable-bcmath' '--enable-exif'
'--enable-ftp' '--enable-magic-quotes' '--enable-safe-mode'
'--enable-sysvsem' '--enable-sysvshm' '--enable-discard-path'
'--enable-trans-sid' '--enable-yp' '--enable-wddx' '--without-oci8'
'--enable-memory-limit' '--enable-bcmath' '--enable-shmop'
'--enable-versioning' '--enable-calendar' '--enable-dbx' '--enable-dio'
'--enable-mcal' '--with-soap=shhared' '--enable-soap' '--with-xmlrpc'
* Any other information unique or specific to your setup.
nothing special.
* Any changes made in your php.ini compared to php.ini-dist (not your
whole php.ini!)
nothing
* A gdb backtrace.
none
Reproduce code:
---------------
session_name("siteBsessionhash");
session_start();
$ServObj = new
SoapServer("http://somesite.com/somewsdl",array('encoding'=>'GB2312'));
$ServObj->setClass("SomeServiceClass");
$ServObj->setPersistence(SOAP_PERSISTENCE_SESSION);
$ServObj->handle();
Expected result:
----------------
script workout to put some message when called by another script on the
same machine using soap method.
Actual result:
--------------
blocked at the line where session_start() locates.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31464&edit=1
- 4
- #26277 [Com]: ./configure not seeing libxml2 installation ID: 26277
Comment by: wim at asgc dot be
Reported By: andy at nortrupdevelopment dot net
Status: Bogus
Bug Type: Compile Failure
Operating System: Mandrake Linux 9.2
PHP Version: 5.0.0b2 (beta2)
New Comment:
Installation
RedHat 9.0 i386
Apache 2.0.48
PHP5.0.0b3-dev (200312161230)
Same issue : when buiding configuration I got
'libxml2 version 2.5.10 or greater required'
Solved it the quick way : --disable-libxml
Everything runs on second install
Previous Comments:
------------------------------------------------------------------------
[2003-11-16 22:21:06] email***@***.com
You need the -dev package installed too.
------------------------------------------------------------------------
[2003-11-16 17:52:02] andy at nortrupdevelopment dot net
Description:
------------
When I run ./configure to install PHP I recive the following error:
configure: error: xml2-config not found. Please check your libxml2
installation.
I have the libxml2 rpm installed, but it is not being recognized. I
have unistalled and reinstalled libxml2 without effect.
Attempting to install with the following hardware/software
configuratration:
Mandrake 9.1
Apache 2.0.48
on a AMD Athalon system.
Many Thanks,
Andy
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=26277&edit=1
- 5
- #37334 [Opn->Bgs]: php_pdflib.dll can't be loaded ID: 37334
Updated by: email***@***.com
Reported By: hadadi dot peter at workpress dot hu
-Status: Open
+Status: Bogus
Bug Type: PDF related
Operating System: Windows XP SP2
PHP Version: 5.1.4
New Comment:
Please report PECL problems to PECL bug system.
Thank you.
Previous Comments:
------------------------------------------------------------------------
[2006-05-05 21:08:15] hadadi dot peter at workpress dot hu
Description:
------------
I got this message while I wanted to load php_pdflib.dll:
PHP Warning: PHP Startup: Invalid library (maybe not a PHP library)
'php_pdflib.dll' in Unknown on line 0
I saw on the pecl4win.php.net site that the latest version of the dll
is 5.1.2. Should I step back to this php version or You suggest to
wait?
Thanks,
Peter
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=37334&edit=1
- 6
- #26875 [Opn->Bgs]: class, static keyword ID: 26875
Updated by: email***@***.com
Reported By: jonas at datatal dot se
-Status: Open
+Status: Bogus
Bug Type: Class/Object related
Operating System: win2k
PHP Version: 5.0.0b3 (beta3)
New Comment:
Wrong. It worked like that in PHP 4, of course it will work like this
in PHP 5. (BC)
Previous Comments:
------------------------------------------------------------------------
[2004-01-12 03:15:15] jonas at datatal dot se
Description:
------------
It is possible to call a class function directly dispite that it doesnt
have the static keyword.
Reproduce code:
---------------
<?php
class Test
{
function MyFunction()
{
echo 'Hello';
}
}
Test::MyFunction();
?>
Expected result:
----------------
Should only be possible if the function have been defined with the
static keyword.
<?php
class Test
{
static function MyFunction()
{
echo 'Hello';
}
}
Test::MyFunction();
?>
Actual result:
--------------
The code works (it shouldnt).
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=26875&edit=1
- 7
- #36473 [Fbk->Opn]: Foreign Images w/getimagesize() crash Apache2 ID: 36473
User updated by: punkpuke at terraimpetus dot com
Reported By: punkpuke at terraimpetus dot com
-Status: Feedback
+Status: Open
Bug Type: Apache2 related
Operating System: Windows XP Pro
PHP Version: 4.4.2
New Comment:
I would love to help, however those instructions aren't detailed enough
for me to do anything. I need to know the exact files I need and where
to put them. I'm sorry, I'm not that smart. :(
Previous Comments:
------------------------------------------------------------------------
[2006-02-21 13:52:32] email***@***.com
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.
Works fine here.
------------------------------------------------------------------------
[2006-02-21 10:50:07] punkpuke at terraimpetus dot com
Description:
------------
When accessing foreign URLs with getimagesize(), apache server crashes
with:
szAppName : Apache.exe szAppVer : 2.0.55.0 szModName :
php4ts.dll
szModVer : 4.4.2.2 offset : 000c5fca
---------------------
The only changes made to the PHP.ini file were the enabling/removing
the comment in front of the GD2 and the ZIP, DLL extensions.
Server is running as a test environment on localhost.
Reproduce code:
---------------
<?php
getimagesize('images/example.gif'); //Works Fine (Local)
getimagesize('example.jpg'); //Works Fine
//The following crash the Entire Apache server, no matter where they're
used
getimagesize('http://example.com/example/example.jpg');//Crashes
getimagesize('http://example.com/example.jpg'); //Crashes
getimagesize('http://example.com/example.gif'); //Crashes
@getimagesize('http://example.com/example.gif'); //Crashes
?>
Expected result:
----------------
Apache 2 Servers lags for a slight moment, then crashes 100% of the
time that a page using a foreign URL call to getimagesize() is run.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36473&edit=1
- 8
- #40733 [Fbk->Opn]: Undefined symbol: spl_ce_RuntimeException ID: 40733
User updated by: alan dot mcfarlane at gmail dot com
Reported By: alan dot mcfarlane at gmail dot com
-Status: Feedback
+Status: Open
Bug Type: MySQLi related
Operating System: FreeBSD 6.0
PHP Version: 5.2.1
Assigned To: helly
New Comment:
Configure:
----------
'./configure' '--enable-versioning' '--with-layout=GNU'
'--with-config-file-scan-dir=/usr/local/etc/php' '--disable-a
ll' '--enable-libxml' '--with-libxml-dir=/usr/local'
'--enable-reflection' '--program-prefix=' '--enable-fastcgi'
'--with-apxs2=/usr/local/sbin/apxs' '--with-regex=php'
'--with-zend-vm=CALL' '--prefix=/usr/local'
Both PHP and all the extensions were built using the standard FreeBSD
ports structure.
Note the problem does NOT manifest itself on any of my 64-bit boxes.
Previous Comments:
------------------------------------------------------------------------
[2007-03-05 21:23:46] email***@***.com
We need your configure line and whether you compile the extension
shared or not.
------------------------------------------------------------------------
[2007-03-05 21:23: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.
------------------------------------------------------------------------
[2007-03-05 20:01:47] email***@***.com
Please report this to the PHP ports maintainers.
Not a PHP problem => bogus
------------------------------------------------------------------------
[2007-03-05 19:51:50] alan dot mcfarlane at gmail dot com
Description:
------------
There appears to be a problem with one of the extensions - possibly un
undefined symbol:
The following extensions are active (in order):
session mysqli zip pdf json hash gmp filter fileinfo curl posix sockets
openssl ldap simplexml bz2 snmp gettext iconv dom tokenizer xmlreader
readline imap xml exif mhash mcrypt mysql mbstring xmlwriter zlib pcre
spl sqlite ctype ftp gd xsl
Reproduce code:
---------------
echo phpversion();
Expected result:
----------------
5.2.1
Actual result:
--------------
PHP Warning: PHP Startup: Unable to load dynamic library
'/usr/local/lib/php/20060613/mysqli.so' -
/usr/local/lib/php/20060613/mysqli.so: Undefined symbol
"spl_ce_RuntimeException" in Unknown on line 0
5.2.1
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40733&edit=1
- 9
- #33266 [NEW]: Response header sent as 302 dispite being set to 301From: nkulbiski at ogdenpubs dot com
Operating system: windows 2000
PHP version: 5.0.3
PHP Bug Type: IIS related
Bug description: Response header sent as 302 dispite being set to 301
Description:
------------
This should return a response header of 301, but sends a response header
of 302.
Reproduce code:
---------------
header("HTTP/1.1 301 Moved Permanently");
header("Location:
http://{$_SERVER['HTTP_HOST']}/library/{$redirect[0]['full_safe_name']}");
header("Connection: close");
Expected result:
----------------
I expected a response header of 301 and the page to be redirected to the
new url.
Actual result:
--------------
It did redirect to the new url but send a responce header of 302.
--
Edit bug report at http://bugs.php.net/?id=33266&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33266&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33266&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33266&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=33266&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=33266&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=33266&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=33266&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=33266&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=33266&r=support
Expected behavior: http://bugs.php.net/fix.php?id=33266&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=33266&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=33266&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=33266&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33266&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=33266&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=33266&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=33266&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=33266&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=33266&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=33266&r=mysqlcfg
- 10
- #11059 [Com]: PHP does not register GET variables $HTTP_GET_VARS is empty. POST works OK. ID: 11059
Comment by: kiryaka at mail dot ru
Reported By: bub at seznam dot cz
Status: Closed
Bug Type: Variables related
Operating System: RedHat 5.1
PHP Version: 4.0.5
New Comment:
just turn on the register_globals directive in php.ini and restart
apache.
Previous Comments:
------------------------------------------------------------------------
[2003-06-05 11:17:27] php at netcrusher dot org
Hello,
I have the same problem. Im running SuSE Linux 8.1 with Apache 1.3.26
and PHP4. I just installed ist from the source-cds. Everything looks
fine, but PHP doesnt get the Variables from links.
I'll try to download the newer versions of Apache an PHP.
Thanks for help!
------------------------------------------------------------------------
[2001-05-28 07:41:09] bub at seznam dot cz
I've recompiled php and apache and it works.
Thanks anyway
------------------------------------------------------------------------
[2001-05-24 13:22:12] bub at seznam dot cz
It doesn't work either and $PHP_SELF is empty as well. I did not know
that, because I didn't use it my scripts.
------------------------------------------------------------------------
[2001-05-24 13:14:30] bub at seznam dot cz
It doesn't work either and $PHP_SELF is empty as well. I did not know
that, because I didn't use it my scripts.
------------------------------------------------------------------------
[2001-05-24 12:48:57] email***@***.com
The system speed wouldn't impact behavior, no.
Your script refers to $data['n_id'] though, not $data['id']. Let's
remove any confusion and work with a very basic script:
<a href="<? echo $PHP_SELF ?>"?getvariable=working>Click here</a>
Getvariable is: <? echo $HTTP_GET_VARS['getvariable'] ?>
Try that one out.
------------------------------------------------------------------------
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/11059
--
Edit this bug report at http://bugs.php.net/?id=11059&edit=1
- 11
- #42746 [Opn->Asn]: '\u' char in single quotes gets interepreted. ID: 42746
Updated by: email***@***.com
Reported By: mahesh dot vemula at in dot ibm dot com
-Status: Open
+Status: Assigned
Bug Type: *Unicode Issues
Operating System: Linux, Windows XP
PHP Version: 6CVS-2007-09-24 (SNAP)
-Assigned To:
+Assigned To: tony2001
Previous Comments:
------------------------------------------------------------------------
[2007-09-25 09:46:20] mahesh dot vemula at in dot ibm dot com
Updating the correct "Version".
------------------------------------------------------------------------
[2007-09-24 10:34:10] mahesh dot vemula at in dot ibm dot com
Description:
------------
'\u' escape sequence char in single quotes('') is being interpreted by
PHP6.
Reproduce code:
---------------
<?php
var_dump("\u1234");
var_dump('\u1234');
?>
Expected result:
----------------
unicode(1) "ሴ"
unicode(6) "\u1234"
Actual result:
--------------
unicode(1) "ሴ"
unicode(1) "ሴ"
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=42746&edit=1
- 12
- #41988 [NEW]: Oracle compile noticeFrom: bolk at lixil dot ru
Operating system: Linux Fedora Core
PHP version: 5CVS-2007-07-13 (snap)
PHP Bug Type: Compile Warning
Bug description: Oracle compile notice
Description:
------------
I get OCI8 config key notice after configure.
BTW:
[root@office php5.2-200707130830]# ./configure --help|grep oci8
--with-oci8[=DIR] Include Oracle (OCI8) support. DIR defaults to
$ORACLE_HOME.
Use --with-oci8=instantclient,/path/to/oic/lib
Reproduce code:
---------------
[root@office php5.2-200707130830]# ./configure --disable-all
--with-oci8=instantclient,/usr/src/instantclient_10_2
Expected result:
----------------
No notices
Actual result:
--------------
Thank you for using PHP.
Notice: Following unknown configure options were used:
--with-oci8=instantclient,/usr/src/instantclient_10_2
Check './configure --help' for available options
--
Edit bug report at http://bugs.php.net/?id=41988&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41988&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41988&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41988&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=41988&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=41988&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=41988&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=41988&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=41988&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=41988&r=support
Expected behavior: http://bugs.php.net/fix.php?id=41988&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=41988&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=41988&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=41988&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41988&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=41988&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=41988&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=41988&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=41988&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=41988&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=41988&r=mysqlcfg
- 13
- #35905 [Opn->Asn]: References don't work in some cases starting from PHP 5.1.1 ID: 35905
Updated by: email***@***.com
Reported By: benadin at ukr dot net
-Status: Open
+Status: Assigned
Bug Type: Scripting Engine problem
Operating System: FreeBSD 5.4
PHP Version: 5.1.1
-Assigned To:
+Assigned To: dmitry
New Comment:
I get the same (i.e. "actual") result with: 5.0.4, 5.0.3 and 4.4.x, so
this problem wasn't introduced in 5.1.1.
Also I should note that changing StructAddNodePointer definition to
"function &StructAddNodePointer()" fixes it.
Dmitry, please take a look at it.
Previous Comments:
------------------------------------------------------------------------
[2006-01-05 14:31:10] benadin at ukr dot net
Description:
------------
In the code below method StructAddNodePointer gets a part (branch) of
the array (in the example $bar->dxml_struct_arr) and fills it. It works
in PHP 5.0.5 but doesn't work in PHP 5.1.1. It seems in PHP 5.1.1
passing &$dxml_struct_arr by reference doesn't work. Or may be it
doesn't work here: $pointer_tree_doc_value =
&$bar->StructAddNodePointer('doc', $bar->dxml_struct_arr);
Reproduce code:
---------------
class foo {
function StructAddNode($tag, &$dxml_struct_arr, $attribs = array()) {
$dxml_struct_arr[] = array(
'tag' => $tag,
'value' => null #array()
);
$index= (sizeof($dxml_struct_arr)-1);
return $index;
}
function StructAddNodePointer($tag, &$dxml_struct_arr, $attribs =
array()) {
$index = $this->StructAddNode($tag, $dxml_struct_arr, $attribs);
return $dxml_struct_arr[$index]['value'];
}
}
$bar = new foo();
$bar->dxml_struct_arr = array();
$pointer_tree_doc_value = &$bar->StructAddNodePointer('doc',
$bar->dxml_struct_arr);
$pointer_tree_head_value = &$bar->StructAddNodePointer('HEAD',
$pointer_tree_doc_value);
print_r($bar->dxml_struct_arr);
Expected result:
----------------
Array
(
[0] => Array
(
[tag] => doc
[value] => Array
(
[0] => Array
(
[tag] => HEAD
[value] =>
)
)
)
)
Actual result:
--------------
Array
(
[0] => Array
(
[tag] => doc
[value] =>
)
)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35905&edit=1
- 14
- #28437 [Opn->Fbk]: foreach on container object segfaults ID: 28437
Updated by: email***@***.com
Reported By: fred at argus dot pt
-Status: Open
+Status: Feedback
Bug Type: Reproducible crash
Operating System: Linux SuSE 9.0
PHP Version: 5.0.0RC2
New Comment:
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php
Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2004-05-18 21:01:57] fred at argus dot pt
Description:
------------
If I create an object with a container(array) instance variable, and
then use foreach to iterate over the container, then a segfault occurs.
If I copy the container to a temporary variable, and foreach over the
temp, the code works fine.
Similar code worked fine in PHP4, and I think 5.0.0RC1.
Reproduce code:
---------------
<?php
class user {
public $msgs = array();
}
class message {
public $text;
}
$user = new user;
$msg = new message;
$msg->text = "Hello";
$user->msgs[] = $msg;
foreach($user->msgs as $msg) {
echo "<br>Text is $msg->text";
}
echo "<br>Tests completed";
?>
Expected result:
----------------
Text is Hello
Tests completed
Actual result:
--------------
Blank Screen
Segfault message in main server error log.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28437&edit=1
- 15
- #42108 [Opn]: utf8_mime2text() has new signature, but U8T_CANONICAL is missing ID: 42108
User updated by: sahengala at yahoo dot com
Reported By: sahengala at yahoo dot com
Status: Open
Bug Type: IMAP related
Operating System: Red Hat Enterprise Linux ES rele
PHP Version: 5.2.3
New Comment:
I have been able to fix this. I re-did all the steps with a fresh
compile. Sorry for bugging :) - Keep up the good work.
I had issue in between with compiling imap, had to install the
pam-devel.
Used command: $ up2date pam-devel or $ yum list available | grep -i
openssl. and $ yum install openssl.i386 to install it.
Well hope u all have an easy time fixing issues.
Previous Comments:
------------------------------------------------------------------------
[2007-07-26 02:31:50] sahengala at yahoo dot com
Description:
------------
As required I have downloaded imap and installed in:
/usr/local/imap-2006j
(completed all the steps mentioned in: http://www.php.net/imap -
07-Jul-2007 06:41 except deleting the files from the folder)
I tried to install php with the following configure options:
./configure --prefix=/usr/local/php-5.2.3
--with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/lib/mysql
--with-libxml-dir=/usr/local/libxml2 --with-imap=/usr/local/imap-2006j
--with-imap-ssl=/usr/include/openssl --enable-static=no
The following error is displayed:
configure: error: utf8_mime2text() has old signature, but U8T_CANONICAL
is present. This should not happen. Check config.log for additional
information.
Expected result:
----------------
should configure without any errors.
Actual result:
--------------
In config.log the last 5 lines are:
configure:45747: checking if your cpp allows macro usage in include
lines
configure:45759: gcc -c -I/usr/include -g -O2 conftest.c 1>&5
configure:46103: checking for IMAP support
configure:46149: checking for IMAP Kerberos support
configure:46174: checking for IMAP SSL support
configure:46590: checking for utf8_mime2text signature
configure:46608: gcc -c -I/usr/local/imap-2006j/include conftest.c
1>&5
configure:46637: checking for U8T_CANONICAL
configure:46653: gcc -c -I/usr/local/imap-2006j/include conftest.c
1>&5
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=42108&edit=1
|
|
|