| #31571 [NEW]: < in parameter to a function does not work |
|
 |
Index ‹ php-dev
|
- Previous
- 3
- #33222 [Opn->Fbk]: segmentation fault when trying to run curl_close from the handler function ID: 33222
Updated by: email***@***.com
Reported By: public at grik dot net
-Status: Open
+Status: Feedback
Bug Type: cURL related
Operating System: Linux RH9
PHP Version: 5.0.4
New Comment:
What is the version of cURL used?
What if you try to upgrade it to the latest available from
http://curl.haxx.se/download.html ?
Previous Comments:
------------------------------------------------------------------------
[2005-06-02 17:20:47] public at grik dot net
Program received signal SIGSEGV, Segmentation fault.
0x403a9d84 in Curl_readwrite (conn=0x81f584c, done=0xbfffc39f "")
at transfer.c:890
890 }
------------------------------------------------------------------------
[2005-06-02 17:17:18] public at grik dot net
backtrace:
(gdb) bt
#0 0x403a9d84 in Curl_readwrite (conn=0x81f584c, done=0xbfffc39f "")
at transfer.c:890
#1 0x403aaf56 in Transfer (conn=0x81f584c) at transfer.c:1480
#2 0x403ab94a in Curl_perform (data=0x81f7b7c) at transfer.c:1985
#3 0x403ac175 in curl_easy_perform (curl=0x81f7b7c) at easy.c:378
#4 0x4002c3d2 in zif_curl_exec (ht=1, return_value=0x81f55dc,
this_ptr=0x0,
return_value_used=0)
at /usr/src/web/php5-STABLE-200505161036/ext/curl/interface.c:1261
#5 0x0814a267 in zend_do_fcall_common_helper
(execute_data=0xbfffc610,
opline=0x81f5068, op_array=0x81f09a4)
at /usr/src/web/php5-STABLE-200505161036/Zend/zend_execute.c:2747
#6 0x0814a8c8 in zend_do_fcall_handler (execute_data=0xbfffc610,
opline=0x81f5068, op_array=0x81f09a4)
at /usr/src/web/php5-STABLE-200505161036/Zend/zend_execute.c:2881
#7 0x08147188 in execute (op_array=0x81f09a4)
at /usr/src/web/php5-STABLE-200505161036/Zend/zend_execute.c:1417
#8 0x081239fe in zend_execute_scripts (type=8, retval=0x0,
file_count=3)
at /usr/src/web/php5-STABLE-200505161036/Zend/zend.c:1080
#9 0x080e5323 in php_execute_script (primary_file=0xbfffe9e0)
at /usr/src/web/php5-STABLE-200505161036/main/main.c:1646
#10 0x08153187 in main (argc=4, argv=0xbfffea84)
at /usr/src/web/php5-STABLE-200505161036/sapi/cgi/cgi_main.c:1582
#11 0x42015574 in __libc_start_main () from /lib/tls/libc.so.6
------------------------------------------------------------------------
[2005-06-02 16:55:14] public at grik dot net
Description:
------------
When I try to close CURL connection from the function, registered as a
handler for the output (header or body), PHP crashes.
Reproduce code:
---------------
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://www.yahoo.com/");
curl_setopt($ch, CURLOPT_HEADERFUNCTION, 'header_callback');
curl_exec($ch);
curl_close($ch);
function header_callback($ch, $string){
echo $string;
curl_close($ch);
return strlen($string);
}
?>
Expected result:
----------------
HTTP/1.1 200 OK
Actual result:
--------------
HTTP/1.1 200 OK
Segmentation fault
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33222&edit=1
- 3
- #41058 [Opn->Bgs]: Difference in syntax for mysql_fetch_array ID: 41058
Updated by: email***@***.com
Reported By: mattsoghoian at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: Arrays related
Operating System: Windows 2003 / FreeBSD
PHP Version: 5.2.1
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
Previous Comments:
------------------------------------------------------------------------
[2007-04-11 22:05:09] mattsoghoian at gmail dot com
One other thing... The whole problem is that when unquoted, windows
sees the column name within the [] as a constant variable, where the
unix version does not.
------------------------------------------------------------------------
[2007-04-11 21:53:13] mattsoghoian at gmail dot com
Description:
------------
This is dealing with implementation of the return value of
mysql_fetch_array on the following two systems:
1:
FreeBSD 6.1-RELEASE
Apache 2.2.3
PHP 5.2.0
MySQL 5.0.27-standard
2:
Windows Server 2003 SP2 with IIS
PHP 5.2.1
MySQL 5.0.37-community
Basically, there seems to be two different ways of calling the array
returned by mysql_fetch_array which i listed below.
the first one is from my unix box, the second is from my windows box.
Notice that the second one has quotes around 'columnName', which makes
sense for an array, but i've never written code on windows until now,
and have always used the first piece of code when writing on *nix.
Reproduce code:
---------------
$line = mysql_fetch_array($result, MYSQL_ASSOC);
echo $line[columnName];
/**** OR ****/
$line = mysql_fetch_array($result, MYSQL_ASSOC);
echo $line['columnName'];
Expected result:
----------------
expected to echo the cell value of columnName that was pulled from the
query.
Actual result:
--------------
When you run the unquoted code on windows, you get this:
PHP Notice: Use of undefined constant id - assumed 'id' in
C:\Inetpub\wwwroot\orders\test.php on line 13
where as the quoted OR unquoted version works on unix.
here's the buggy part to me: if i do this...
echo "$line[columnName]";
where the whole echo is quoted, then it works fine on windows, where
sometimes it doesn't like that on unix (i think especially with
$_SESSION vars.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41058&edit=1
- 4
- #25879 [Bgs->Opn]: SORT_ASC when passed into a function can NOT be passed as a string ID: 25879
User updated by: it at oh-barcelona dot com
Reported By: it at oh-barcelona dot com
-Status: Bogus
+Status: Open
Bug Type: Variables related
Operating System: Windows
PHP Version: 4.3.2
New Comment:
Hello,
I realize that it is a constant but I was clear enough in my
description. The sort flag that I am using comes from a
$_GET[sortFlag]. The bug that I would like you look at is that there
is no way to create a constant from a string. So if the needed
constant is passed from one page to another it must be as string and
therefore can not be used in a function call.
Previous Comments:
------------------------------------------------------------------------
[2003-10-15 11:22:47] 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
SORT_ASC, SORT_DESC, etc. are constants, not strings, so just treat
them as if they were numeric values:
$sortFlag = SORT_ASC;
$new_array = array_column_sort($someArray,'column',$sortFlag)
------------------------------------------------------------------------
[2003-10-15 08:25:18] it at oh-barcelona dot com
Description:
------------
Hello,
I've found a perplexing bug with sorting flags. When you create a
function to create (for example) an dynamic array_multisort() and one
of the arguements which is passed is a SORT_ASC (or any other flag)
which is used to create the array_multisort() it MUST be passed without
quotes and not as a string.
In the example below you will see that if you gettype() of the $arg the
SORT_DESC returns an integer not a string when passed without quotes
and a string with.
If the SORT flag is passed as a string the array_multisort acts as if
it were null.
This stops me from setting the SORT flag via if statement.
I have written a work around but this problem should be addressed
because if you settype() a string it becomes "0".
The function call is:
$ new_array = array_column_sort($someArray,'column',SORT_DESC)
The function does not work if you use:
$sortFlag = "SORT_ASC";
$ new_array = array_column_sort($someArray,'column',$sortFlag )
Reproduce code:
---------------
function array_column_sort(){
$args = func_get_args();
$array = array_shift($args);
// make a temporary copy of array for which will fix the
// keys to be strings, so that array_multisort() doesn't
// destroy them
$array_mod = array();
foreach ($array as $key => $value)
$array_mod['_' . $key] = $value;
$i = 0;
$multi_sort_line = "return array_multisort( ";
foreach ($args as $arg) {
$i++;
if ( is_string($arg) ){
foreach ($array_mod as $row_key => $row){
$sort_array[$i][] = $row[$arg];
}
}else{
$sort_array[$i] = $arg;
}
$multi_sort_line .= "\$sort_array[" . $i . "], ";
}
$multi_sort_line .= "\$array_mod );";
eval($multi_sort_line);
// now copy $array_mod back into $array, stripping off the "_"
// that we added earlier.
$array = array();
foreach ($array_mod as $key => $value)
$array[ substr($key, 1) ] = $value;
return $array;
}
Expected result:
----------------
The array should be sorted by column and SORT flag.
Actual result:
--------------
The array_multisort only excepts the SORT flag without quotes and not
as a string.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=25879&edit=1
- 5
- #35189 [NEW]: Date Function BugFrom: php at splitstreamdesign dot com
Operating system: Windows 2000/XP
PHP version: 5.0.5
PHP Bug Type: Date/time related
Bug description: Date Function Bug
Description:
------------
The documentation for the date() function states that the 'T' parameter
for the format string prints the timezone abbreviation: "Examples: EST,
MDT ...". Both PHP 5.0.4 and 5.0.5 replace 'T' with the full string
"Eastern Standard Time" on both Windows 2000 & Windows XP servers.
Reproduce code:
---------------
<? echo date("D, d M Y H:i:s T"); ?>
Expected result:
----------------
Fri, 11 Nov 2005 01:37:23 EST
Actual result:
--------------
Fri, 11 Nov 2005 01:37:23 Eastern Standard Time
--
Edit bug report at http://bugs.php.net/?id=35189&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=35189&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=35189&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=35189&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=35189&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=35189&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=35189&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=35189&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=35189&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=35189&r=support
Expected behavior: http://bugs.php.net/fix.php?id=35189&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=35189&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=35189&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=35189&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35189&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=35189&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=35189&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=35189&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=35189&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=35189&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=35189&r=mysqlcfg
- 5
- #30934 [Opn->Asn]: Special keyword 'self' inherited in child classes ID: 30934
Updated by: email***@***.com
Reported By: jbs at fromru dot com
-Status: Open
+Status: Assigned
Bug Type: Class/Object related
Operating System: Windows XP Pro SP1
PHP Version: 5.0.2
-Assigned To:
+Assigned To: andi
New Comment:
What's the verdict?
Previous Comments:
------------------------------------------------------------------------
[2005-01-17 13:47:32] Jason at amp-design dot net
What is also most annoying is this doesn't just affect constants, it
affects anything that can be static, that is constants, class members,
and methods. This looks like a rather design descision that PHP people
did (I guess initially it seemed good from a speed POV).
------------------------------------------------------------------------
[2005-01-17 13:33:40] Jason at amp-design dot net
I agree, this is damn annoying.
However, I'm sure the PHP team will come back saying "Sorry this is not
a bug, it's an undocumented feature". I think this because I remember
reading somewhere the ZE2 deals with constants on compile time, and
therefore any references to self inside a class will point to the the
class name that the reference to self points to. Ideally, if a class is
extended, methods should be checked to see if the parent references
self, and this should then check if the item inside self is referenced
in the current class, or the parent class and adapt accordingly.
It would be so nice if this can be fixed, but I have a nasty felling
people have to live with this :(
------------------------------------------------------------------------
[2004-11-29 22:02:49] jbs at fromru dot com
Description:
------------
Special keyword 'self' represents the parent class instead of the child
class when it is used in an inherited method of the parent class.
Reproduce code:
---------------
class Foo {
const NAME = 'Foo';
static public function display() {
echo self::NAME;
}
static public function getInstance() {
$instance = new self;
return $instance;
}
}
class Child extends Foo {
const NAME = 'Child';
}
echo('Class constant: ');
Child::display();
echo('<BR>Object class: ');
echo(get_class(Child::getInstance()));
Expected result:
----------------
Class constant: Child
Object class: Child
Actual result:
--------------
Class constant: Foo
Object class: Foo
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30934&edit=1
- 5
- #42680 [NEW]: Help to find extension for Mysqli 5.0.41 and help with getting Mysql server.From: ahmedt at student dot cbhs dot school dot nz
Operating system: Windows XP SP2
PHP version: 5.2.4
PHP Bug Type: Unknown/Other Function
Bug description: Help to find extension for Mysqli 5.0.41 and help with getting Mysql server.
Description:
------------
I can't find mysqli extension for MYSQL server 5.0.41 to download.
In phpMyadmin it " says that Mysql and mysqli client library vrsion is
5.0.37 differs from actual MYSQL server version 5.0.41 which may cause
unpredicatble behaviour." Thats same in phptest foe MYsql and Mysqli client
version. The estension that I am using is the same one that came with the
php 5.2.3 package. I9 also tried looing in the url
http://www.de.mysql.com/downloads/connector/php but they don't have one for
mysql server 5.0.41 , it's only have up to Mysql server 5.0.27.
I can't get the data to be displayed in IE6 although I can connect to
Mysql Sever because everytime I open the IE browser MYSQL server
'connection ID' increases when I check in Mysql Command line.
Reproduce code:
---------------
That's a sample script that I tried to do :
<?php
$conn = new mysqli('ocalhost', 'user', 'password','database')
or die ('Cannot no connect or open databse')
return $conn ;
$sql = 'SELECT * FROM images';
// submit the query and capture the result
$result = $conn->query($sql) or die(mysqli_error($conn));
// find out how many records were retrieved
$numRows = $result->num_rows;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
/>
<title>Connecting with MySQLI extension</title>
</head>
<body>
<p>A total of <?php echo $numRows; ?> records were found.</p>
<table>
<tr>
<th>image_id</th>
<th>filename</th>
<th>caption</th>
</tr>
<?php
while ($row = $result->fetch_assoc()) {
?>
<tr>
<td><?php echo $row['image_id']; ?></td>
<td><?php echo $row['filename']; ?></td>
<td><?php echo $row['caption']; ?></td>
</tr>
<?php } ?>
</table>
</body>
</html>
Expected result:
----------------
To connect to the databse and dispaly the rtesult in table and tell how
many records are there.
Actual result:
--------------
A blank screen in IE6 , no errior recorded in Apache2 log or php error
log.
URL in browser looks like someting "http://127.0.0.1/record.php" insraed
of display the page title which is "Records" that I have put in into HTML
code.
--
Edit bug report at http://bugs.php.net/?id=42680&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42680&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42680&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42680&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=42680&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=42680&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=42680&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=42680&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=42680&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=42680&r=support
Expected behavior: http://bugs.php.net/fix.php?id=42680&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=42680&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=42680&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=42680&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42680&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=42680&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=42680&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=42680&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=42680&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=42680&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=42680&r=mysqlcfg
- 5
- #38166 [Opn->Bgs]: Calling PDO::prepare or PDO::query then calling non-existent method crashes PHP ID: 38166
Updated by: email***@***.com
Reported By: jerome at macsaresexy dot com
-Status: Open
+Status: Bogus
Bug Type: PDO related
Operating System: Ubuntu Linux
PHP Version: 5.1.4
New Comment:
Duplicate of bug #37445.
Previous Comments:
------------------------------------------------------------------------
[2006-07-24 15:39:42] jerome at macsaresexy dot com
This is from within my application, seems I actually
couldn't crash it with the simplified case I posted, but
will if I use that simple class test from within my
application (which loads many things in a common file
including the PDO connection)
This is the backtrace when it happens:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1215007040 (LWP 19351)]
0xb73e60c6 in mysql_more_results ()
from /usr/local/lib/mysql/libmysqlclient.so.15
(gdb) bt
#0 0xb73e60c6 in mysql_more_results ()
from /usr/local/lib/mysql/libmysqlclient.so.15
#1 0xb759fd23 in pdo_mysql_stmt_dtor (stmt=0x83d499c)
at /home/jerome/Source/php-5.1.4/ext/pdo_mysql/
mysql_statement.c:71
#2 0xb76f4b63 in free_statement (stmt=0x83d499c)
at /home/jerome/Source/php-5.1.4/ext/pdo/pdo_stmt.c:2200
#3 0xb781041b in zend_objects_store_free_object_storage
(objects=0xb794688c)
at /home/jerome/Source/php-5.1.4/Zend/
zend_objects_API.c:86
#4 0xb77e7411 in shutdown_executor ()
at /home/jerome/Source/php-5.1.4/Zend/
zend_execute_API.c:281
#5 0xb77f4205 in zend_deactivate ()
at /home/jerome/Source/php-5.1.4/Zend/zend.c:854
#6 0xb77b1de9 in php_request_shutdown (dummy=0x0)
at /home/jerome/Source/php-5.1.4/main/main.c:1287
#7 0xb7892d77 in php_handler (r=0x824cf50)
at /home/jerome/Source/php-5.1.4/sapi/apache2handler/
sapi_apache2.c:445
#8 0x08077e38 in ap_run_handler ()
#9 0x080781bc in ap_invoke_handler ()
#10 0x08069c7f in ap_process_request ()
#11 0x08064c52 in _start ()
------------------------------------------------------------------------
[2006-07-23 07:21:11] 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.
Can't reproduce.
------------------------------------------------------------------------
[2006-07-20 17:41:39] jerome at macsaresexy dot com
Description:
------------
PHP crashes with a seg fault if you try to call a method that
doesn't exist, on any particular object, after a call from
PDO::prepare() or PDO::query().
Reproduce code:
---------------
class TestClass {
static $db;
function test() {
$stmt = self::$db->prepare('SELECT * FROM users');
$this->omg();
}
}
TestClass::$db = new
PDO('mysql:host=localhost;dbname=mydb','root','');
$test = new TestClass();
$test->test();
Expected result:
----------------
Should produce a call to undefined method TestClass::omg()
fatal error message.
Actual result:
--------------
What I get instead is a segmentation fault of the child apache
process seen in the error_log file. This only happens when
$db->prepare() is assigned to a variable too, if $stmt = isn't
there, it won't crash.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=38166&edit=1
- 8
- #43653 [Opn->Bgs]: imagecreatefromjpeg error ID: 43653
Updated by: email***@***.com
Reported By: xfreelancer at yahoo dot com
-Status: Open
+Status: Bogus
Bug Type: GD related
Operating System: CentOS
PHP Version: 5.2.5
-Assigned To:
+Assigned To: pajoye
New Comment:
"Fatal error: Allowed memory size of 33554432 bytes exhausted (tried
to
allocate 26320 bytes) in /home/test.php on line 4"
Increase your memory limit (memory_limit ini settings) if you like to
read large images.
Previous Comments:
------------------------------------------------------------------------
[2007-12-21 13:46:29] xfreelancer at yahoo dot com
Description:
------------
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to
allocate 26320 bytes) in /home/test.php on line 4
Reproduce code:
---------------
$ims=imagecreatefromjpeg("90-9bb2.jpg");
Expected result:
----------------
$ims is not created and a fault error is generated.
Actual result:
--------------
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to
allocate 26320 bytes) in /home/test.php on line 4
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43653&edit=1
- 8
- [PHP-DEV] HTTPS/multi-curl timeoutsHi
I am experiencing problems when using multi-threaded cURL (libcurl) on PHP.
When I have more than about 5 threads, all subsequent threads fail to
connect. I presume this is because PHP hasn't implemented the
CRYPTO_callback functions to prevent OpenSSL locking.
Following on from this thread about an implementation of libcurl...
http://curl.haxx.se/mail/lib-2004-06/0086.html
Does anyone know how I could implement the CRYPO_callbacks in PHP?
Thanks
Emile
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
- 8
- #32858 [Bgs->Fbk]: Bug #25649 has crept back into PHP - Improper feof() handling under FreeBSD ID: 32858
Updated by: email***@***.com
Reported By: lew at mailduct dot com
-Status: Bogus
+Status: Feedback
Bug Type: Filesystem function related
Operating System: FreeBSD 4.11-REL
PHP Version: 4.3.10
Previous Comments:
------------------------------------------------------------------------
[2005-04-28 08:26:42] email***@***.com
It wouldn't be the first time when something is magically fixed by
updating..and the changes might seem totally unrelated.
------------------------------------------------------------------------
[2005-04-28 07:17:35] lew at mailduct dot com
I don't see any changes to the PHP feof library implementation between
4.3.10 and 4.3.11... shall I try it anyway and see if it magically
heals itself? I say this sarcastically because, if you look at
PR#25649 you'll see that I had to pull teeth just to get someone to
take this seriously. The default assumption is OE (Operator Error).
------------------------------------------------------------------------
[2005-04-28 00:04:38] email***@***.com
Have you tried PHP 4.3.11, the LATEST release..?
------------------------------------------------------------------------
[2005-04-27 21:36:47] lew at mailduct dot com
Description:
------------
In my prior bug report #25649 from September 2003, I pointed out a
serious bug in how PHP handles FEOF under FreeBSD. It was fixed by
email***@***.com and committed.
This same problem (improper handling of feof() by PHP under FreeBSD)
has now crept into current 4.3.X versions of PHP...
Problem: Once set, the FEOF indicator is not properly cleared when
more data is appended to a file that is opened for read by a PHP
application.
Example: Suppose I want to "tail" a file using PHP. Once I hit the
EOF, I will no longer be able to read data from that file even when
another application appends to it. This is not the correct behaviour
for feof(), as illustrated by the prior fix done by email***@***.com.
Reproduce code:
---------------
--- program:
$fp = fopen( '/var/log/maillog','r' );
while( TRUE ) {
$r = array( $fp );
$n = stream_select( $r,$w=NULL,$e=NULL,30 );
if( $n ) {
echo fgets( $fp );
}
}
--- feeder:
echo "This is a test..." >> /var/log/maillog
Expected result:
----------------
For as long as PROGRAM is running, each time I run
FEEDER I expect to see PROGRAM output "This is a test..."
but it does not, because once EOF is reached, it is not
properly reset upon more data being appended to the file.
See pr #25649 for historical info...
Actual result:
--------------
PROGRAM will read the contents of /var/log/maillog until it
reaches EOF, and will not output anything else, even if new
data is appeneded to the file.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=32858&edit=1
- 8
- [PHP-DEV] Constants in namesapcesYou can have "const" outside namespaces but they are not real =
compile-time
constants.
They are set during execution in the same way as define() does.
<?php
const DIR =3D dirname(__FILE__);
echo DIR;
?>
Thanks. Dmitry.
> -----Original Message-----
> From: Johannes Schl=D8ter [mailto:email***@***.com]=20
> Sent: Wednesday, August 22, 2007 4:48 PM
> To: Dmitry Stogov
> Cc: 'PHP Internals List'
> Subject: Re: [PHP-DEV] Constans in namesapces
>=20
>=20
> Hi Dmitry,
>=20
> On Wed, 2007-08-22 at 13:02 +0400, Dmitry Stogov wrote:
> > Hi,
> >=20
> > The proposed patch implements namespace support for constants. It=20
> > allows to declare constants in namespaces in the same way as in=20
> > classes. And these constants may be used in the same may as=20
> > namespaces' functions.
>=20
> I like the idea. Am I right with the assumption, from=20
> scrolling over the patch, that "const" outside any namespace=20
> would work, too, meaning we could get compile-time constants=20
> even outside a namespace?
>=20
> johannes
>=20
> --=20
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>=20
>=20
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
- 8
- #39018 [Opn->Bgs]: Error control operator '@' fails to suppress "Uninitialized string offset" ID: 39018
Updated by: email***@***.com
Reported By: mpb dot mail at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: Scripting Engine problem
Operating System: Gentoo Linux
PHP Version: 5.1.6
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
Operator precedence is working against you in this instance.
The operation involving offset operation is before before the
error blocking operator is considered.
Previous Comments:
------------------------------------------------------------------------
[2006-10-02 19:28:34] mpb dot mail at gmail dot com
Description:
------------
The error control operator '@' fails to suppress (some) "Uninitialized
string offset" notices.
See example for details.
The problem also occurs on with PHP 4.4.x.
Reproduce code:
---------------
<?php
error_reporting (E_ALL | E_NOTICE);
$x = 'test';
$x[4]; // No notice at all - compiler optimization??
@$y = $x[4]; // Notice supressed.
@'a' == $x[4]; // Notice NOT supressed - but it should be.
@$x[4] == 'a'; // Notice NOT supressed - but it should be.
(@$x[4]) == 'a'; // Notice NOT supressed - but it should be.
(@($x[4])) == 'a'; // Notice NOT supressed - but it should be.
@($x[4]) == 'a'; // Notice NOT supressed - but it should be.
@($x[4] == 'a'); // Notice supressed.
print "Done!\n";
?>
Expected result:
----------------
Done!
Actual result:
--------------
Notice: Uninitialized string offset: 4 in /home/build/test.php on line
7
Notice: Uninitialized string offset: 4 in /home/build/test.php on line
8
Notice: Uninitialized string offset: 4 in /home/build/test.php on line
9
Notice: Uninitialized string offset: 4 in /home/build/test.php on line
10
Notice: Uninitialized string offset: 4 in /home/build/test.php on line
11
Done!
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39018&edit=1
- 14
- [PHP-DEV] Re: Global Parties for World Government.
I am simply shocked by what I am compelled to read:
At 19.45 Tuesday 26/06/2007, Sabzali Khan wrote:
>suicide attacks which you un-justly presume "Terrorism".
Suicide attacks ARE THE WORST FORM OF TERRORISM. They are crimes
committed by coward and depraved people who have no sense of
religion, morality and justice. Whoever tries to forge justifications
for suicide attacks or to deny their nature of terrorism is also
involved in such a religious, moral and civil bankrupt!
Shaykh Prof. Abdul Hadi Palazzi
Director
-----------------------------------------------------------------------
Cultural Institute of the Italian Islamic Community
http://www.amislam.com
mailto:email***@***.com
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
- 16
- #40221 [Opn]: Readline should re-read the window size ID: 40221
User updated by: david at acz dot org
Reported By: david at acz dot org
Status: Open
Bug Type: Readline related
Operating System: SuSE Linux 9.3
PHP Version: 5.2.0
New Comment:
I found a workaround:
<?
function xreadline($prompt)
{
global $xreadline, $xreadline_line;
$code = '$GLOBALS["xreadline"] = false;' .
'$GLOBALS["xreadline_line"] = $line;' .
'readline_callback_handler_remove();';
$cb = create_function('$line', $code);
readline_callback_handler_install($prompt, $cb);
$signal = defined("SIGWINCH") ? SIGWINCH : 28;
posix_kill(posix_getpid(), $signal);
$xreadline = true;
while ($xreadline)
readline_callback_read_char();
return is_null($xreadline_line) ? false : $xreadline_line;
}
?>
Previous Comments:
------------------------------------------------------------------------
[2007-01-24 16:41:27] david at acz dot org
Description:
------------
The readline() function should re-read the window size every time it is
called. The edit line and history get messed up if it doesn't get
SIGWINCH (for example, if the window was resized in a child process).
1) Start the test program with a typical 80x40 window.
2) At the first prompt, press up to see that the history displays
correctly.
3) Press enter to exit readline() and run less.
4) In less, maximize the terminal window, then quit less.
5) At the second prompt, press up and notice that the history is messed
up.
Reproduce code:
---------------
<?
$s = "";
for ($i = 65; $i <= 90; $i++)
$s .= str_repeat(chr($i), 3) . " ";
readline_add_history($s);
readline("first> ");
$p = popen("less", "w");
fwrite($p, "maximize window");
pclose($p);
readline("second> ");
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40221&edit=1
- 16
- #32745 [NEW]: Incorrect reassignemeent of $this errorFrom: jason at amp-design dot net
Operating system: CentOS 3 / RHEL 3
PHP version: 5CVS-2005-04-18 (dev)
PHP Bug Type: Zend Engine 2 problem
Bug description: Incorrect reassignemeent of $this error
Description:
------------
An incorrect message about the reassignment of $this occurs in the 5.1.x
branches of PHP.
The code below doesn't product any errors...
<?php
class A {}
$a = new A;
$b = &$a;
?>
but the "Reproduce code" produces an error when you are inside class
scope, trying to use the & operator to create a reference to $this.
Obviously the code $b = $this; does the exact same thing in PHP5, however
this is a problem as existing code (especially stuff written for PHP4 and
PHP5) will break. This is certainly the case here as this bug arises in
functions/imap_mailbox.php on line 25 of squirrel mail.
Please note this was tested using the php5-200504121430 build which is a
couple of days old now. I'm pretty sure it will remain in the latest
snapshot.
I have no idea why this comes up with the "reassigment of $this" error. I
would have thought this error would happen if the expression was reversed
to say $this = &$b.
Reproduce code:
---------------
<?php
class A {
public function test() {
$b = &$this;
}
}
$a = new A;
$a->test();
?>
Expected result:
----------------
No output. $a is created and $b === $a during the scope of A::test() for
the given code above.
Actual result:
--------------
Fatal error: Cannot re-assign $this in /var/www/html/test.php on line 4
--
Edit bug report at http://bugs.php.net/?id=32745&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32745&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32745&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32745&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=32745&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=32745&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=32745&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=32745&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=32745&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32745&r=support
Expected behavior: http://bugs.php.net/fix.php?id=32745&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=32745&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=32745&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=32745&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32745&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=32745&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=32745&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32745&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=32745&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=32745&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=32745&r=mysqlcfg
|
| Author |
Message |
php-bugs

|
Posted: 2005-1-16 22:33:17 |
Top |
php-dev, #31571 [NEW]: < in parameter to a function does not work
From: srabol at mail dot tele dot dk
Operating system: Windows 2000
PHP version: 4.3.9
PHP Bug Type: Unknown/Other Function
Bug description: < in parameter to a function does not work
Description:
------------
If you have < as a charater in string and use that string as parameter to
a function call, then the parameter is empty
Reproduce code:
---------------
<?php
function foo($p_parm)
{
echo "Parameter : $p_parm<br>";
}
foo("<noreply>");
foo('<noreply>');
foo("<noreply");
foo('<noreply');
?>
Expected result:
----------------
Parameter : <noreply>
Parameter : <noreply>
Parameter : <noreply
Parameter : <noreply
Actual result:
--------------
Parameter :
Parameter :
Parameter : Parameter :
--
Edit bug report at http://bugs.php.net/?id=31571&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31571&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31571&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31571&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=31571&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=31571&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=31571&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=31571&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=31571&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=31571&r=support
Expected behavior: http://bugs.php.net/fix.php?id=31571&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=31571&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=31571&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=31571&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31571&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=31571&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=31571&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=31571&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=31571&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=31571&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=31571&r=mysqlcfg
|
| |
|
| |
 |
| |
 |
Index ‹ php-dev |
- Next
- 1
- #42703 [NEW]: Exception raised in an iterator::current() causes segfault in FilterIteratorFrom: daan at react dot nl
Operating system:
PHP version: 5.2.4
PHP Bug Type: SPL related
Bug description: Exception raised in an iterator::current() causes segfault in FilterIterator
Description:
------------
When raising an exception in the current() method of an iterator while
that iterator is being processed by either an IteratorIterator or
FilterIterator causes PHP to crash.
Reproduce code:
---------------
<?php
class BlaIterator implements Iterator
{
public function rewind()
{
}
public function next()
{
}
public function valid()
{
return true;
}
public function current()
{
throw new Exception('boo');
}
public function key()
{
}
}
$it = new BlaIterator();
$itit = new IteratorIterator($it);
foreach ($itit as $key => $value)
echo $value;
Expected result:
----------------
Exception thrown
Actual result:
--------------
#0 zim_spl_dual_it_rewind (ht=0, return_value=0xb7827e04,
return_value_ptr=0x0, this_ptr=0xb7826d80, return_value_used=1)
at /usr/src/php-5.2.4/ext/spl/spl_iterators.c:1128
#1 0x08327528 in zend_call_function (fci=0xbfa93970,
fci_cache=0xbfa93950) at /usr/src/php-5.2.4/Zend/zend_execute_API.c:1004
#2 0x083447e0 in zend_call_method (object_pp=0xbfa939f0,
obj_ce=0x86c73d0, fn_proxy=0x86c7500, function_name=0x85c5425 "rewind",
function_name_len=6,
retval_ptr_ptr=0x0, param_count=0, arg1=0x0, arg2=0x0) at
/usr/src/php-5.2.4/Zend/zend_interfaces.c:88
#3 0x08344ded in zend_user_it_rewind (_iter=0xb7829124) at
/usr/src/php-5.2.4/Zend/zend_interfaces.c:252
#4 0x0839af62 in ZEND_FE_RESET_SPEC_CV_HANDLER (execute_data=0xbfa93bb0)
at /usr/src/php-5.2.4/Zend/zend_vm_execute.h:19980
#5 0x0834f5b9 in execute (op_array=0xb782726c) at
/usr/src/php-5.2.4/Zend/zend_vm_execute.h:92
#6 0xb77cc44e in xdebug_execute (op_array=0xb782726c) at
/tmp/pear/cache/xdebug-2.0.0RC3/xdebug.c:1487
#7 0x083341c4 in zend_execute_scripts (type=8, retval=0x0, file_count=3)
at /usr/src/php-5.2.4/Zend/zend.c:1134
#8 0x082f822a in php_execute_script (primary_file=0xbfa96030) at
/usr/src/php-5.2.4/main/main.c:1982
#9 0x083b802f in main (argc=2, argv=0xbfa96104) at
/usr/src/php-5.2.4/sapi/cli/php_cli.c:1140
--
Edit bug report at http://bugs.php.net/?id=42703&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42703&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42703&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42703&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=42703&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=42703&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=42703&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=42703&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=42703&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=42703&r=support
Expected behavior: http://bugs.php.net/fix.php?id=42703&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=42703&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=42703&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=42703&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42703&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=42703&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=42703&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=42703&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=42703&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=42703&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=42703&r=mysqlcfg
- 2
- #20854 [Com]: Unable to load dynamic library ID: 20854
Comment by: giunta dot gaetano at sea-aeroportimilano dot it
Reported By: pardy at freemail dot hu
Status: Bogus
Bug Type: Oracle related
Operating System: Windows 2000 Server
PHP Version: 4.2.3
New Comment:
I had exactly the same headache with Oracle9 client.
The funniest thing is Apache was running fine in exactly the same PC.
It actually is a pbl related to IIS confioguration.
The solution is: in IIS uncheck the "let IIS validate anon user
password" in anoun user auth panel.
Rationale: check out reports 216828 e 218756 on MSDN.
Previous Comments:
------------------------------------------------------------------------
[2002-12-07 02:35:34] pardy at freemail dot hu
Ok, I have posted the problem description to email***@***.com.
Please answer me there.
By the way I still don't know why this isn't a bug in php.
Maybe I don't understand what "php itself" means.
Thanks.
------------------------------------------------------------------------
[2002-12-06 18:35:45] email***@***.com
This is not a support forum.
------------------------------------------------------------------------
[2002-12-06 06:55:40] pardy at freemail dot hu
How can you be so sure that this is not a bug in php? I mean everything
else seems ok.
Then you must know where the problem is. What about telling me?
Thanks
------------------------------------------------------------------------
[2002-12-06 06:25:33] email***@***.com
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
------------------------------------------------------------------------
[2002-12-06 03:24:51] pardy at freemail dot hu
PHP 4.2.3 is running with IIS 5 on W2k server.
Oracle client v6 is installed and working properly.
The error message is the following:
PHP Warning: Unable to load dynamic library
'c:\php\extensions\php_oci8.dll' - The specified module could not be
found. in Unknown on line 0
Also tried with php_oracle.dll but the result is the same.
I'm sure the dlls are there. gds32.dll is in system32.
Dependency walker stops at apphelp.dll - as it is not an XP.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20854&edit=1
- 3
- #42065 [NEW]: SPL ArrayObject does not use "copy-on-write"From: a dot yamanoi at gmail dot com
Operating system:
PHP version: 5.2.3
PHP Bug Type: SPL related
Bug description: SPL ArrayObject does not use "copy-on-write"
Description:
------------
When ArrayObject::offsetSet() method stores a new value into an array,
I expect ArrayObject to change only the array which is given as a
constructor parameter.
However, if the array is copied from another array and unchanged,
ArrayObject will also change the another array.
I thought it was a "copy-on-write" problem.
thank you for any help
Please excuse my English, it isn't very good.
Reproduce code:
---------------
$base = array('key' => 'old value');
$copy = $base;
$ao = new ArrayObject($copy);
$ao['key'] = 'new value';
echo '$base["key"] = ', $base['key'], "\n";
echo '$copy["key"] = ', $copy['key'], "\n";
echo '$ao["key"] = ', $ao['key'], "\n";
Expected result:
----------------
$base["key"] = old value
$copy["key"] = new value
$ao["key"] = new value
Actual result:
--------------
$base["key"] = new value
$copy["key"] = new value
$ao["key"] = new value
--
Edit bug report at http://bugs.php.net/?id=42065&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42065&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42065&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42065&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=42065&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=42065&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=42065&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=42065&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=42065&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=42065&r=support
Expected behavior: http://bugs.php.net/fix.php?id=42065&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=42065&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=42065&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=42065&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42065&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=42065&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=42065&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=42065&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=42065&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=42065&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=42065&r=mysqlcfg
- 4
- #26398 [NEW]: DB::sqlite request for adding error control operator for function callsFrom: dimitri at vinogradov dot de
Operating system: irrelevant
PHP version: Irrelevant
PHP Bug Type: Feature/Change Request
Bug description: DB::sqlite request for adding error control operator for function calls
Description:
------------
File: DB/sqlite.php
Method: sqlite::connect
Linno: 157, 160
the failed calls of `touch` and `chmod` print warnings to browser instead
of raisung an PEAR error.
Suggest:
change (lineno 157)
touch($file);
to
if (!@touch($file)) {
return $this->raiseError($php_errormsg);
}
and (lineno 160)
chmod($file, $mode);
to
if (!@chmod($file, $mode)) {
return $this->raiseError($php_errormsg);
}
--
Edit bug report at http://bugs.php.net/?id=26398&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26398&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26398&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=26398&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=26398&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=26398&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=26398&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=26398&r=support
Expected behavior: http://bugs.php.net/fix.php?id=26398&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=26398&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=26398&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=26398&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26398&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=26398&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=26398&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=26398&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26398&r=float
- 5
- #31431 [NEW]: Segfault in imap_8bit() with UTF-8 dataFrom: jan at horde dot org
Operating system: Linux
PHP version: 4CVS-2005-01-06 (stable)
PHP Bug Type: IMAP related
Bug description: Segfault in imap_8bit() with UTF-8 data
Description:
------------
Find a single PHP call script and some UTF-8 example data at:
http://www.horde.org/~jan/imap_8bit.tgz that causes imap_8bit() to
segfault.
--
Edit bug report at http://bugs.php.net/?id=31431&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31431&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31431&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31431&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=31431&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=31431&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=31431&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=31431&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=31431&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=31431&r=support
Expected behavior: http://bugs.php.net/fix.php?id=31431&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=31431&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=31431&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=31431&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31431&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=31431&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=31431&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=31431&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=31431&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=31431&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=31431&r=mysqlcfg
- 6
- #36433 [Opn->Bgs]: HTTP_REFERER spelled incorrectly ID: 36433
Updated by: email***@***.com
Reported By: jcantara at comcast dot net
-Status: Open
+Status: Bogus
Bug Type: *Languages/Translation
Operating System: All
PHP Version: 4.4.2
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php
Previous Comments:
------------------------------------------------------------------------
[2006-02-17 21:46:18] jcantara at comcast dot net
Description:
------------
Global Server Variable ($_SERVER) HTTP_REFERER spelled incorrectly,
should be "referrer".
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36433&edit=1
- 7
- #43851 [Asn->Csd]: Memory corrution on reuse of assigned value ID: 43851
Updated by: email***@***.com
Reported By: dmitry at zend dot com
-Status: Assigned
+Status: Closed
Bug Type: Scripting Engine problem
Operating System: *
PHP Version: 5.3CVS-2008-01-15 (CVS)
Assigned To: dmitry
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2008-01-15 08:25:04] dmitry at zend dot com
Description:
------------
Run the following script with valgrind and USE_ZEND_ALLOC=0.
$ USE_ZEND_ALLOC=0 valgrind sapi/cli/php foo.php
Reproduce code:
---------------
<?php
foo();
function foo() {
global $LAST;
($LAST = $LAST + 0) * 1;
echo "ok\n";
}
?>
Expected result:
----------------
ok
Actual result:
--------------
==24239== Conditional jump or move depends on uninitialised value(s)
==24239== at 0x83ED944: zend_pzval_unlock_func (zend_execute.c:69)
==24239== by 0x83EFE9A: _get_zval_ptr_var (zend_execute.c:187)
==24239== by 0x8405823: ZEND_MUL_SPEC_VAR_CONST_HANDLER
(zend_vm_execute.h:8581)
==24239== by 0x83EC05B: execute (zend_vm_execute.h:87)
==24239== by 0x83EC6B4: zend_do_fcall_common_helper_SPEC
(zend_vm_execute.h:221)
==24239== by 0x83ED270: ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER
(zend_vm_execute.h:309)
==24239== by 0x83EC05B: execute (zend_vm_execute.h:87)
==24239== by 0x83C493D: zend_execute_scripts (zend.c:1139)
==24239== by 0x836B15D: php_execute_script (main.c:2010)
==24239== by 0x844BEBB: main (php_cli.c:1140)
==24239==
==24239== Conditional jump or move depends on uninitialised value(s)
==24239== at 0x83ED994: zend_pzval_unlock_func (zend_execute.c:76)
==24239== by 0x83EFE9A: _get_zval_ptr_var (zend_execute.c:187)
==24239== by 0x8405823: ZEND_MUL_SPEC_VAR_CONST_HANDLER
(zend_vm_execute.h:8581)
==24239== by 0x83EC05B: execute (zend_vm_execute.h:87)
==24239== by 0x83EC6B4: zend_do_fcall_common_helper_SPEC
(zend_vm_execute.h:221)
==24239== by 0x83ED270: ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER
(zend_vm_execute.h:309)
==24239== by 0x83EC05B: execute (zend_vm_execute.h:87)
==24239== by 0x83C493D: zend_execute_scripts (zend.c:1139)
==24239== by 0x836B15D: php_execute_script (main.c:2010)
==24239== by 0x844BEBB: main (php_cli.c:1140)
==24239==
==24239== Conditional jump or move depends on uninitialised value(s)
==24239== at 0x83ED9A5: zend_pzval_unlock_func (zend_execute.c:76)
==24239== by 0x83EFE9A: _get_zval_ptr_var (zend_execute.c:187)
==24239== by 0x8405823: ZEND_MUL_SPEC_VAR_CONST_HANDLER
(zend_vm_execute.h:8581)
==24239== by 0x83EC05B: execute (zend_vm_execute.h:87)
==24239== by 0x83EC6B4: zend_do_fcall_common_helper_SPEC
(zend_vm_execute.h:221)
==24239== by 0x83ED270: ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER
(zend_vm_execute.h:309)
==24239== by 0x83EC05B: execute (zend_vm_execute.h:87)
==24239== by 0x83C493D: zend_execute_scripts (zend.c:1139)
==24239== by 0x836B15D: php_execute_script (main.c:2010)
==24239== by 0x844BEBB: main (php_cli.c:1140)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43851&edit=1
- 8
- #37177 [Opn->Fbk]: with-libxml option in ./configure ignored ID: 37177
Updated by: email***@***.com
Reported By: mhalligan at bitpusher dot com
-Status: Open
+Status: Feedback
Bug Type: Compile Failure
Operating System: SuSE Linux Enterprise 9 SP3
PHP Version: 5.1.2
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5.1-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.1-win32-latest.zip
What am I doing wrong?
# ./configure --disable-all --enable-xml --with-libxml-dir=/tmp/libxml
--enable-libxml | grep xml
checking libxml2 install dir... /tmp/libxml
checking for xml2-config path... /tmp/libxml/bin/xml2-config
checking whether libxml build works... yes
checking for xml2-config path... (cached) /tmp/libxml/bin/xml2-config
checking whether libxml build works... (cached) yes
Previous Comments:
------------------------------------------------------------------------
[2006-04-24 09:51:29] mhalligan at bitpusher dot com
Ignore the "../php-build.sh: line 3: --with-openssl: command not
found"
section, that was me cutting and pasting from an older session. It has
absolutely nothing to do with the fact that php's ./configure script
is
rather broken.
------------------------------------------------------------------------
[2006-04-24 09:48:25] mhalligan at bitpusher dot com
No, I am not executing two commands. Like I said "that was a typo". I
made a typographical error.
The actual script that I am running is :
./configure \
--with-openssl \
--with-apxs=/bitpusher/services/apache/sbin/apxs \
--with-pear=/bitpusher/services/apache \
--enable-mbstring \
--with-pdo-mysql=/bitpusher/services/mysql \
--with-zlib \
--with-gd \
--with-curl \
--with-libxml-dir=/bitpusher
------------------------------------------------------------------------
[2006-04-24 09:36:18] email***@***.com
No, it's not a typo on the posting.
This:
../php-build.sh: line 3: --with-openssl: command not found
happens because of the reason I told before.
------------------------------------------------------------------------
[2006-04-24 09:33:20] mhalligan at bitpusher dot com
That was a typo in my posting. However, the real problem lies
in the fact that ./configure looks for libxml2-config first in
$PATH, then in the variable set with --with-libxml-dir .. This
is incorrect behavior.
------------------------------------------------------------------------
[2006-04-24 09:18:07] email***@***.com
It won't be ignored if you actually pass it to the configure.
Currently because of missing "\" you are executing two commands:
1) ./configure
2) --with-openssl etc...
No bug here.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/37177
--
Edit this bug report at http://bugs.php.net/?id=37177&edit=1
- 9
- #32886 [Opn->Bgs]: Session dont store the correct values ID: 32886
Updated by: email***@***.com
Reported By: luis at infomed dot sld dot cu
-Status: Open
+Status: Bogus
Bug Type: Session related
Operating System: Linux & Windows
PHP Version: 5.0.4
New Comment:
Not a bug. If you overwrite the $_SESSION array by assigning a new
array to it, you remove it's magic properties of being the array with
session variables. This is expected - so don't do it.
Previous Comments:
------------------------------------------------------------------------
[2005-04-29 08:45:16] luis at infomed dot sld dot cu
Description:
------------
php5.0.4 dont store the correct values after modified the $_SESSION
variable, the idea is to clear the session and do persist only a few
values. I use Apache 1.3.33. With php5.0.2 everything is fine the
problem appear with php5.0.4, I am not try with php5.0.3
Reproduce code:
---------------
page1.php-----------------------------------------
<?php
session_start();
$_SESSION['varA'] = 'aaa';
$_SESSION['varB'] = 'bbb';
?>
page2.php-----------------------------------------
<?php
session_start();
$buffer['varA'] = $_SESSION['varA'];
$_SESSION = array();
$_SESSION = $buffer;
print_r($_SESSION);
?>
page2b.php-----------------------------------------
<?php
session_start();
$_SESSION = array();
$_SESSION['varA'] = 'aaa';
print_r($_SESSION);
?>
page3.php-----------------------------------------
<?php
session_start();
print_r($_SESSION);
?>
Expected result:
----------------
I would expect the same behavior with:
page1.php->page2.php->page3.php
and with:
page1.php->page2b.php->page3.php
but is not.
Actual result:
--------------
When I do page1.php->page2.php on the screen I obtain the correct
values:
Array ( [varA] => aaa )
but on the session file in disc is wrong, because the session file
have:
varA|s:3:"aaa";varB|s:3:"bbb";
and in page3.php on the screen I have:
Array ( [varA] => aaa [varB] => bbb ), is wrong.
But, if I do page1.php->page2b.php->page3.php everything is fine.
Thank you for your work in PHP.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=32886&edit=1
- 10
- #43508 [Opn->Asn]: Here is a small script and URLs to png files. ID: 43508
Updated by: email***@***.com
Reported By: vbhunt at silverfox dot com
-Status: Open
+Status: Assigned
Bug Type: GD related
Operating System: Windows XP Professional Ver 2SP2
PHP Version: 5.2.5
Assigned To: pajoye
Previous Comments:
------------------------------------------------------------------------
[2007-12-06 06:50:35] vbhunt at silverfox dot com
function tinyTranspng( $filename )
{
$rsc = imagecreatefrompng( $filename );
if ( $rsc )
{
$tpColor = imagecolortransparent($rsc);
$msg = "<p align='center' > " . $filename . ( ($tpColor == -1 ) ?
" HAS NO TRANSPARENCY. " : " has transparency! " );
}
else
$msg = "<p > " . $filename . " is not a png file.";
echo $msg;
echo "<img src='$filename' border=0 > </p>\n";
}
http://www.republiclocomotiveworks.com/buttons/test.php runs the tests
on our current web site. This test page generates a call to the above
php function for each of the icons in /buttons/icons.
The url for each of png icon files is at:
http://www.repbuliclocomotiveworks.com/buttons/icons/<filename>.png
where <filename> is one of:
alert, group, home, left, mail, right, send, stop, stop1, trash, user.
Note that RepublicLocomotiveWorks is not yet running PHP 5.2.5 -- we
are preparing to upgrade.
Regards and thanks for looking at this issue.
/bruce
------------------------------------------------------------------------
[2007-12-05 22:09:31] email***@***.com
Please provide a small script. In your case, open a png, check the
transparent color.
I also need the images you use for your tests. Please provide a link to
them.
------------------------------------------------------------------------
[2007-12-05 20:13:30] vbhunt at silverfox dot com
Description:
------------
I want to overlay an icon on a button image. The icon is a 32 x 32
pixel png file with transparency. Icon was built in Photoshop 7.01 and
tested for transparency on FireFox 2.0.0.11 and IE 7.0.5730.13. The
button image is a jpeg. I expected the Icon to overlay part of the jpeg
image showing through the transparent png pixels as they do in IE and
FF. Instead, the pixels are turned white. I have written and tested
the following simple script that reproduces the bug on my system. I
expect the script to report the transparent color if there is one.
This bug has been reported previously as 12619 which was dismissed as
"bogus" but notes that if you have additional information, submit it.
When I attempted to comment on it (upon invitation) I get the message,
"You can not comment bogus reports or change their status." Therefore
I'm re-submitting this ;-)
Reproduce code:
---------------
<?php
function testTransparency( $filename )
{ error_log( "Entering testTransparency." );
$rsc = null;
if ( $ext = pathinfo($filename,PATHINFO_EXTENSION) ) // if an image
switch( strtolower( $ext ) )
{ case "gif" : $rsc=imagecreatefromgif( $filename ); break;
case "png" : $rsc=imagecreatefrompng( $filename ); break;
case "jpg" : $rsc=imagecreatefromjpeg( $filename ); break;
}
if ( $rsc )
{ $tpColor = imagecolortransparent($rsc);
$trueColor=(imageistruecolor($rsc))? 'true color':'indexed color';
if ( $tpColor == -1 ) $tpColorString = 'no transparency';
else
{ $tpColor=(imageistruecolor($rsc))?$tpColor
: imagecolorsforindex($rsc, $tpColor);
$red = ($tpColor>>16)&0xFF; $green = ($tpColor >>8)&0xFF;
$blue = ($tpColor>>00)&0xFF;
$tpColorString = 'transparency color: Red='
. dechex($red) . ' Green='. dechex($green)
. ' Blue=' . dechex($blue) . ' ';
}
error_log("$filename $trueColor image has $tpColorString.");
imagedestroy($rsc);
}
else error_log(" $filename is not a supported image.");
}
?>
Expected result:
----------------
I expected to see:
[05-Dec-2007 11:11:09] Entering testTransparency.
[05-Dec-2007 11:11:09] buttons/icons/stop1.png true color image has
transparency color: Red=0xFF Green=0xFF Blue=0xFF
but I got:
[05-Dec-2007 11:11:09] Entering testTransparency.
[05-Dec-2007 11:11:09] buttons/icons/stop1.png true color image has no
transparency.
I've tested this on 10 different png icon files with the same result.
All of these icons display with correct transparency in Firefox and IE
as reported above.
Actual result:
--------------
[05-Dec-2007 11:52:36] Entering testTransparency.
[05-Dec-2007 11:52:36] buttons/icons/alert.png true color image has no
transparency.
[05-Dec-2007 11:52:36] Entering testTransparency.
[05-Dec-2007 11:52:36] buttons/icons/home.png true color image has no
transparency.
The tests below actually do not have transparency.
[05-Dec-2007 11:52:36] Entering testTransparency.
[05-Dec-2007 11:52:36] buttons/images/hotmaples1_1.gif indexed color
image has no transparency.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43508&edit=1
- 11
- #36542 [Opn->Bgs]: Flash file causes crash when using getimagesize() ID: 36542
Updated by: email***@***.com
Reported By: ogs22 at cam dot ac dot uk
-Status: Open
+Status: Bogus
Bug Type: Reproducible crash
PHP Version: 5.1.2
New Comment:
So, it works fine and doesn't crash.
No bug here.
Previous Comments:
------------------------------------------------------------------------
[2006-02-27 16:11:37] ogs22 at cam dot ac dot uk
After some testing- getimagesize() in 5.1.3-dev only works
with flash files that are not in SWC format.
php was compiled using:
./configure --enable-debug --with-apxs=/usr/sbin/apxs --with-
zlib=/usr
------------------------------------------------------------------------
[2006-02-27 16:00:10] email***@***.com
With 5.1.3-dev and zlib enabled I get this:
array(5) {
[0]=>
int(550)
[1]=>
int(400)
[2]=>
int(13)
[3]=>
string(24) "width="550" height="400""
["mime"]=>
string(29) "application/x-shockwave-flash"
}
------------------------------------------------------------------------
[2006-02-27 15:47:07] ogs22 at cam dot ac dot uk
getimagesize does not work on the test flash file in 5.1.3
dev - but does not cause crash - so I can't append a
backtrace, getimagesize returns false instead.
I can append a backtrace from a non debug php5.1.2 though.
Program received signal EXC_BAD_ACCESS, Could not access
memory.
Reason: 10 at address: 0x017e9000
0xffff8824 in ___memcpy () at /System/Library/Frameworks/
System.framework/PrivateHeaders/ppc/cpu_capabilities.h:189
189 /System/Library/Frameworks/System.framework/
PrivateHeaders/ppc/cpu_capabilities.h: No such file or
directory.
in /System/Library/Frameworks/System.framework/
PrivateHeaders/ppc/cpu_capabilities.h
(gdb) bt
#0 0xffff8824 in ___memcpy () at /System/Library/
Frameworks/System.framework/PrivateHeaders/ppc/
cpu_capabilities.h:189
#1 0x0249cae8 in _php_stream_copy_to_mem ()
#2 0x023e983c in php_handle_swc ()
#3 0x023ec694 in zif_getimagesize ()
#4 0x0250db20 in zend_do_fcall_common_helper_SPEC ()
#5 0x0251217c in ZEND_DO_FCALL_SPEC_CONST_HANDLER ()
#6 0x0250d5a4 in execute ()
#7 0x024e3bec in zend_execute_scripts ()
#8 0x02481d80 in php_execute_script ()
#9 0x02575318 in apache_php_module_main ()
#10 0x025766fc in send_php ()
#11 0x0257677c in send_parsed_php ()
#12 0x0000dd18 in ap_invoke_handler ()
#13 0x00017dd4 in process_request_internal ()
#14 0x00017e54 in ap_process_request ()
#15 0x00006b60 in child_main ()
#16 0x00006d18 in make_child ()
#17 0x00006e7c in startup_children ()
#18 0x000074ec in standalone_main ()
#19 0x00007d74 in main ()
------------------------------------------------------------------------
[2006-02-27 14:16:05] 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.
------------------------------------------------------------------------
[2006-02-27 14:03:22] ogs22 at cam dot ac dot uk
Description:
------------
Tested on php5.1.2 on FreeBSD and MacOSX 10.4.5 both running
apache 1.3.3
using getimagesize on certain swf files causes crash
test file is http://maths.org/~ogs22/ConstantDrop.swf
it is a version 8 flash file - other version 8 files seem OK.
Reproduce code:
---------------
<?php
$file="/Users/ogs/ConstantDrop.swf";
$x=getimagesize($file);
print_r($x);
?>
Expected result:
----------------
Array ( [0] => 720 [1] => 576 [2] => 13 [3] => width="720"
height="576" [mime] => application/x-shockwave-flash )
Actual result:
--------------
causes
[Mon Feb 27 12:21:14 2006] [notice] child pid 19520 exit
signal Bus error (10)
to appear in apache error log
and nothing to appear in browser
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36542&edit=1
- 12
- #32119 [Opn->Bgs]: Unable to load dynamic library ID: 32119
Updated by: email***@***.com
Reported By: basheer98 at yahoo dot com
-Status: Open
+Status: Bogus
Bug Type: OCI8 related
Operating System: Windows 2000
PHP Version: 5.0.3
New Comment:
You need to install Oracle Client libraries, that come with Oracle
installation.
php_oracle.dll & php_oci8.dll are different modules, don't mess them.
Previous Comments:
------------------------------------------------------------------------
[2005-02-27 10:23:53] basheer98 at yahoo dot com
Please check out this complete error msg..
Fatal error: Call to undefined function ocilogon() in
c:\Inetpub\wwwroot\MYWEB\ora_test.php on line 4
PHP Warning: PHP Startup: Unable to load dynamic library
'C:\PHP\extensions\php_oci8.dll' - The specified module could not be
found.
in Unknown on line 0
my extension path
extension_dir = ".;C:\PHP\extensions"
extension=php_oci8.dll
And using Microsoft IIS web server with ORACLE SERVER
I have copy the php5ts.dll to windows/system32 directory.
Is there any thing more i have to configure please let me know in one
article i came to know that we have to copy the ora.dll from oracle
home to IIS home exactly where i have to paste this ora.dll file.
awating for your early reponse.....
------------------------------------------------------------------------
[2005-02-27 10:22:32] basheer98 at yahoo dot com
Please check out this complete error msg..
Fatal error: Call to undefined function ocilogon() in
c:\Inetpub\wwwroot\MYWEB\ora_test.php on line 4
PHP Warning: PHP Startup: Unable to load dynamic library
'C:\PHP\extensions\php_oracle.dll' - The specified module could not be
found.
in Unknown on line 0
my extension path
extension_dir = ".;C:\PHP\extensions"
extension=php_oci8.dll
And using Microsoft IIS web server with ORACLE SERVER
I have copy the php5ts.dll to windows/system32 directory.
Is there any thing more i have to configure please let me know in one
article i came to know that we have to copy the ora.dll from oracle
home to IIS home exactly where i have to paste this ora.dll file.
awating for your early reponse.....
------------------------------------------------------------------------
[2005-02-26 23:27:13] 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.
What's the exact error message?
What webserver do you use?
What server API do you use?
Did you installed Oracle Client libraries?
------------------------------------------------------------------------
[2005-02-26 08:49:02] basheer98 at yahoo dot com
Description:
------------
I have install PHP 5.0.3. and running Oracle 8.1.7 and install IIS. I
have tested the ODBC connection for SQL Server its working fine, but
when i am trying to connect to ORacleits giving me error ubale to load
dynamic library.
I have download the php_*dll from PHP 4
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=32119&edit=1
- 13
- #37602 [NEW]: crash in COM_DOTNET when releasing typelib in php_com_typelibrary_dtorFrom: olek at neurosoft dot pl
Operating system: Windows
PHP version: 5.1.4
PHP Bug Type: Reproducible crash
Bug description: crash in COM_DOTNET when releasing typelib in php_com_typelibrary_dtor
Description:
------------
Crash caused by bug in function: php_com_typelibrary_dtor in module:
ext/com_dotnet/com_typeinfo.c
Patch is following:
--- php-5.1.4/ext/com_dotnet/com_typeinfo.c 2006-01-01
12:50:00.000000000 +0100
+++ php_build/php-5.1.4/ext/com_dotnet/com_typeinfo.c 2006-05-26
15:57:02.000000000 +0200
@@ -220,7 +220,7 @@
/* Type-library stuff */
void php_com_typelibrary_dtor(void *pDest)
{
- ITypeLib *Lib = *(ITypeLib**)pDest;
+ ITypeLib *Lib = (ITypeLib*)pDest;
ITypeLib_Release(Lib);
}
--
Edit bug report at http://bugs.php.net/?id=37602&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37602&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=37602&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37602&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=37602&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=37602&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=37602&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=37602&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=37602&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=37602&r=support
Expected behavior: http://bugs.php.net/fix.php?id=37602&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=37602&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=37602&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=37602&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37602&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=37602&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=37602&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=37602&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=37602&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=37602&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=37602&r=mysqlcfg
- 14
- #26615 [NEW]: exec crash on long input linesFrom: runekl at opoint dot com
Operating system: All
PHP version: 5CVS-2003-12-13 (dev)
PHP Bug Type: *General Issues
Bug description: exec crash on long input lines
Description:
------------
If the command ran by exec outputs a line that is 2*EXEC_INPUT_BUF longer
than the previous line a segfault may occur. It is not difficult to see
why this happens just by reading the source code.
In exec.c, line 118, reads
if (buflen < (bufl + EXEC_INPUT_BUF)) {
This condition is correct only the first time, e.g when b=buf. I think
the like should be
if (buflen < (bufl + (b - buf) + EXEC_INPUT_BUF)) {
Reproduce code:
---------------
#!/usr/local/bin/php
<?php
$out = array();
$status = -1;
exec('/usr/bin/seq 5000 | tr \'\n\' \' \'', $out, $status);
print_r($out);
?>
Expected result:
----------------
Numbers from 1 to 5000 separated by blanks on one line.
Actual result:
--------------
segfault
--
Edit bug report at http://bugs.php.net/?id=26615&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26615&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26615&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=26615&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=26615&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=26615&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=26615&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=26615&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=26615&r=support
Expected behavior: http://bugs.php.net/fix.php?id=26615&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=26615&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=26615&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=26615&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26615&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=26615&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=26615&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=26615&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26615&r=float
- 15
- #30753 [Opn->Bgs]: Converting Normal time to Unix time ID: 30753
Updated by: email***@***.com
Reported By: ecit12 at hotmail dot com
-Status: Open
+Status: Bogus
Bug Type: Date/time related
Operating System: Fedore Core 2
PHP Version: 4.3.8
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.
DUplicate of #30753
Previous Comments:
------------------------------------------------------------------------
[2004-11-10 22:02:05] ecit12 at hotmail dot com
Description:
------------
Basically, I wanted to take a normal time stamp that is in the form of
YYYYMMDDHHMMSS and convert it to Unix format using the Date function.
The last $myDate variable should match the initial date, but it doesn't
work.
It would be nice if PHP had more support for normal date formats
instead of forcing ppl to convert to unix time.
Reproduce code:
---------------
$myDate = 20041110113800 // 2004, Nov 10, 11:38:00
echo "The date in normal form: $myDate";
echo "<BR>";
$myDate = date("U",$myDate);
echo "The date in Unix format: $myDate";
echo "<BR>";
// added 00 for seconds since PHP has nothing for seconds
$myDate = date("YmdHi",$myDate)."00";
echo "The date in Normal format again: $myDate";
Expected result:
----------------
The date in normal form: 20041110113800
The date in Unix format: 1100086680
The date in Normal format again: 20041110113800
Actual result:
--------------
The date in normal form: 20041110113800
The date in Unix format: 792710664
The date in Normal format again: 19950213132400
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30753&edit=1
|
|
|