#37757 [NEW]: Result fetched from MSSQL is truncated to 255 characters

2006-06-09 Thread nguyenhoang at vnideadesign dot com
From: nguyenhoang at vnideadesign dot com
Operating system: XP sp2
PHP version:  5.1.4
PHP Bug Type: MSSQL related
Bug description:  Result fetched from MSSQL is truncated to 255 characters

Description:

Problem on: PHP 5.1.2 and 5.1.4
OS: Windows XP sp2
Server: Apache ( apache2triad 1.5.4/1.4.4 and WAMP5 with PHP 5.1.4 i was
un/installing each of these server to test)
I'm sure that I connected to MSSQL server 2000 and ran a stored procedure
( after enable mssql extention ) but i only got the first 255 characters
from the remote MSSQL server. From PHP version 5.1.2, I upgraded it to PHP
5.1.4 but the result is as it was on PHP 5.1.2. Read the note from other
PHP user, i got these way to fix this problem:
-in php file:
mssql_query("set textsize 4000", $s); // 
ini_set('mssql.textsize', '4000');
ini_set('mssql.textlimit', '4000');
-in php.ini
mssql.textlimit = 4096
mssql.textsize = 4096

After the fix, the result has no changed, always is the first 255 chars
appeared.

Reproduce code:
---
Here is the code.
//Connect:
$s = @mssql_connect($myServer, $myUser, $myPass) or die("He Thong dang
ban. Xin ban thu lai trong giay lat. Chung toi rat tiec vi su co nay. Rat
mong ban thong cam..");
$d = @mssql_select_db($myDB, $s) or die("He Thong dang ban. Xin ban thu
lai trong giay lat. Chung toi rat tiec vi su co nay. Rat mong ban thong
cam..");
//...other code here, then the line to got row Text from MSSQL
database
/*
#GOT INFO - QUERY DATABASE!!!
*/
$datetime = $d . "/" . $m . "/" . $y;
if ($smstxt[1] == "SAT") {
// Bind datetime
$rs = mssql_query("TG_SAT '$datetime','$enableU2Text'");
} else {
$rs = mssql_query("TG_CAT '$datetime','$enableU2Text'");
}
$row = mssql_fetch_array($rs);
// Display the result
GoKannel($row['Text']); //


Expected result:

I have no idea to expect what problem with my code. It run perfectly with
other part of the scipt. I wish that the text on MSSQL was not more than
255 chars, If so this should not be a problem. Maybe there was a problem
with php_mssql.dll extention or maybe I am a stupid PHP coder :( Hope u
can give me an answer. Thanks


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


#37723 [Opn->Bgs]: Incorrect Inheretence Context

2006-06-09 Thread helly
 ID:   37723
 Updated by:   [EMAIL PROTECTED]
 Reported By:  matt at c dot anvas dot es
-Status:   Open
+Status:   Bogus
 Bug Type: Class/Object related
-Operating System: Any
+Operating System: *
-PHP Version:  5.1.4
+PHP Version:  *
 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

Static methods are bound at compile time. At compile time function name
resides in Parent. Thats it - perfectly correct.


Previous Comments:


[2006-06-09 05:21:22] matt at c dot anvas dot es

See previous comment



[2006-06-07 22:32:55] matt at c dot anvas dot es

The fact that it ignores the child class if it doesn't 
define a matching static method and instead changes its 
context to that of the parent is expected? How does that 
make sense if it inherits the parent class? If it does, 
indeed, inherit the parent class, it will have the static 
method, not having to go to the parent and ignore the 
child's existence.

I understand that finding methods and the like from parents 
can be tricky, having to navigate the inheritence tree, but 
it's unexpected to suddenly become the parent class when 
you're working with the child class.

I may not sway you to keep this open as an actual bug (as I 
see it), but your answers will at least teach me, if nothing 
else, the mindset of the core developers et al.

I'd like to know if late static binding is considered a 
feature or a bug fix. If it is a bug fix, then you're right: 
this bug report is just a duplicate. However, if the late 
static binding really is just a feature to cover this up, I 
see a potential problem. I'd like to know, really, if this 
is considered a bug or a mere inconvenience.

M.T.



[2006-06-07 22:02:21] [EMAIL PROTECTED]

>hey, this is a bug, because the child class should 
>inheret its parents innards'
That's EXACTLY what it does and I personally consider this expected.
The child inherits parents context, what's wrong here?
But we're working on late static binding, which would change this
behaviour to the expected one, that's why there is no sense in keeping
this report open.
Thank you.



[2006-06-07 21:02:04] matt at c dot anvas dot es

I did search, and I see something beyond 'late static 
binding' here. The child class (or the parser) is leaving 
its context in search of the method to inheret, but it 
doesn't bring it into its context. In fact, it takes the 
user into the parent's context. It changes its context.

This goes beyond simply saying that you're trying to figure 
out how to do 'late static binding', and more into the realm 
of 'hey, this is a bug, because the child class should 
inheret its parents innards, and _stay within its context_.'

Am I mistaken in this thought? Is is perfectly OK and not a 
bug that the context itself is changed?

I submitted this bug because I don't think the previous bug 
submissions adequately described the issue at hand. Please 
read the description.

M.T.



[2006-06-07 08:05:47] [EMAIL PROTECTED]

Try to search bug DB before reporting new issues.
See bug #37654 and bug #37684.



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

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


#37759 [NEW]: OCIEnvNlsCreate() failed

2006-06-09 Thread christian dot schaffer at muenchen dot de
From: christian dot schaffer at muenchen dot de
Operating system: Solaris 10
PHP version:  5.1.4
PHP Bug Type: OCI8 related
Bug description:  OCIEnvNlsCreate() failed

Description:

OCIEnvNlsCreate() failed. There is something wrong with your system -
please check that ORACLE_HOME is set and points to the right directory in
.php

Configure line is:
#!/bin/sh
#
/localdata/build/php/php-5.1.4/configure \
--enable-bcmath \
--enable-calendar \
--enable-ctype \
--enable-dbase \
--enable-discard-path \
--enable-exif \
--enable-filepro \
--enable-force-cgi-redirect \
--enable-ftp \
--enable-gd-native-ttf \
--enable-magic-quotes \
--enable-mbstring \
--enable-memory-limit \
--enable-safe-mode \
--enable-shmop \
--enable-sigchild \
--enable-sysvsem \
--enable-sysvshm \
--enable-versioning \
--enable-wddx \
--with-bz2 \
--with-dom \
--with-libxml-dir=/opt/csw \
--with-gettext=/opt/csw \
--with-jpeg-dir=/opt/csw \
--with-ldap=/opt/csw \
--with-mysql=/opt/csw/mysql5 \
--with-ndbm \
--with-pgsql=/opt/csw/postgresql \
--with-png-dir=/opt/csw \
--with-iconv=/opt/csw \
--with-tiff-dir=/opt/csw \
--with-ttf=/opt/csw \
--with-freetype-dir=/opt/csw \
--with-xpm-dir=/opt/csw \
--with-zlib=/opt/csw \
--with-gd=/opt/csw \
--with-oci8=/opt/oracle \
--with-apxs2=/opt/csw/apache2/sbin/apxs

System applies Oracle Client 10.2.0.1.0

Reproduce code:
---
$co = OciLogon(user,pass,sid);


Expected result:

Oracle connection establishes

Actual result:
--
Warning: ocilogon() [function.ocilogon]: OCIEnvNlsCreate() failed. There
is something wrong with your system - please check that ORACLE_HOME is set
and points to the right directory in /data/www/htdocs/const.php on line 120

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


#37758 [NEW]: SIGINT signals screw with further posix_kill() calls

2006-06-09 Thread aeolianmeson at blitzeclipse dot com
From: aeolianmeson at blitzeclipse dot com
Operating system: Fed4
PHP version:  5.1.4
PHP Bug Type: Semaphore related
Bug description:  SIGINT signals screw with further posix_kill() calls

Description:

When a SIGINT is sent via CTRL+C or CTRL+BREAK, the handler is called. If
this handler sends a SIGTERM to other children, the signals are not
received.

SIGINT can be sent via posix_kill() and it work exactly as expected-- This
only applies when initiated via a hard break.

SIGTERM will also work perfectly.

Reproduce code:
---
http://www.blitzeclipse.com:81/breakhandle.php

Expected result:

Once the main process, its child, and that child's child are up, pressing
CTRL+C or CTRL+BREAK should cause the first process to terminate the
second process, and the second process should then terminate the third
process.

Actual result:
--
When CTRL+C or CTRL+BREAK is pressed, the first process terminates, and
nothing else responds.

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


#37381 [Com]: auto_globals_jit fails to correctly intialize variables

2006-06-09 Thread me at thomaskeller dot biz
 ID:   37381
 Comment by:   me at thomaskeller dot biz
 Reported By:  gcp at sjeng dot org
 Status:   No Feedback
 Bug Type: Variables related
 Operating System: FreeBSD 6.0
 PHP Version:  5.1.4
 New Comment:

I've encountered the same problem, with a normal rpm installation of
php-5.1.4-1 which ships with FC5.

A simple reproducable script would be



which returns NULL if auto_globals_jit is set to on (default in this
rpm package). This is the same deal with $_REQUEST, which is also
NULL.

Now, even if auto_globals_jit is set to false, $_GLOBALS is still not
available.


Previous Comments:


[2006-06-01 01:00:00] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".



[2006-05-24 21:59:33] [EMAIL PROTECTED]

Unfortunately, I don't think anybody will be able to find time to debug
phpMyAdmin.
So please provide a short but complete reproduce script to speedup the
resolution of the issue.



[2006-05-10 11:19:09] gcp at sjeng dot org

I don't know of any small testcase. As indicated, this is 100% a
regression in PHP 5.1.3 or 5.1.4 compared to 5.1.2, it's possible to
make it appear/disappear by toggling the indicated PHP setting, and it
happens with a very popular PHP package, in the routine mentioned
earlier.

I can provide help tracing the issue, but I do not have a "10-20 line
reproducible case".



[2006-05-10 10:14:28] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with ,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.





[2006-05-09 14:14:16] gcp at sjeng dot org

Description:

In some circumstances, global variables will fail to be initialized
when auto_globals_jit is enabled (the default). This is a regression,
the problem did not exist in 5.1.2.

php.ini is default recommended one. Server is lighttpd 1.4.11 using PHP
in FastCGI mode. 

Reproduce code:
---
Using for example, phpMyAdmin 2.8.0.3, and looking in the 
libaries/Config.class.php code:

 function checkPmaAbsoluteUri()
{
// Setup a default value to let the people and lazy syadmins
work anyway,
// they'll get an error if the autodetect code doesn't work
$pma_absolute_uri = $this->get('PmaAbsoluteUri');

if ( strlen($pma_absolute_uri) < 1 ) {
$url = array();

// At first we try to parse REQUEST_URI, it might contain
full URI
if ( ! empty($_SERVER['REQUEST_URI'] ) ) {
$url = parse_url($_SERVER['REQUEST_URI']);
}

// If we don't have scheme, we didn't have full URL so we
need to
// dig deeper
if ( empty( $url['scheme'] ) ) {
// Scheme
if ( ! empty( $_SERVER['HTTP_SCHEME'] ) ) {
$url['scheme'] = $_SERVER['HTTP_SCHEME'];
} else {
$url['scheme'] =
!empty($_SERVER['HTTPS']) &&
strtolower($_SERVER['HTTPS']) != 'off'
? 'https'
: 'http';
}
etc...


It's possible to enter this function with $_SERVER missing essential
things such as HTTP_HOST:

array(4) {
["PHP_SELF"]=>
string(21) "/mysqladmin/index.php"
["PHP_AUTH_USER"]=> (censored)
["PHP_AUTH_PW"]=> (censored)
["REQUEST_TIME"]=>
int(1147178223)
}

If auto_global_jit is disabled, this does not not happen, and HTTP_HOST
etc are set correctly.







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


#37381 [Com]: auto_globals_jit fails to correctly intialize variables

2006-06-09 Thread me at thomaskeller dot biz
 ID:   37381
 Comment by:   me at thomaskeller dot biz
 Reported By:  gcp at sjeng dot org
 Status:   No Feedback
 Bug Type: Variables related
 Operating System: FreeBSD 6.0
 PHP Version:  5.1.4
 New Comment:

I forgot to mention: I'm using the apache2handler with httpd-2.2.0


Previous Comments:


[2006-06-09 10:57:48] me at thomaskeller dot biz

I've encountered the same problem, with a normal rpm installation of
php-5.1.4-1 which ships with FC5.

A simple reproducable script would be



which returns NULL if auto_globals_jit is set to on (default in this
rpm package). This is the same deal with $_REQUEST, which is also
NULL.

Now, even if auto_globals_jit is set to false, $_GLOBALS is still not
available.



[2006-06-01 01:00:00] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".



[2006-05-24 21:59:33] [EMAIL PROTECTED]

Unfortunately, I don't think anybody will be able to find time to debug
phpMyAdmin.
So please provide a short but complete reproduce script to speedup the
resolution of the issue.



[2006-05-10 11:19:09] gcp at sjeng dot org

I don't know of any small testcase. As indicated, this is 100% a
regression in PHP 5.1.3 or 5.1.4 compared to 5.1.2, it's possible to
make it appear/disappear by toggling the indicated PHP setting, and it
happens with a very popular PHP package, in the routine mentioned
earlier.

I can provide help tracing the issue, but I do not have a "10-20 line
reproducible case".



[2006-05-10 10:14:28] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with ,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.





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

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


#37761 [NEW]: Pass by reference function parameter passed as copy

2006-06-09 Thread hadrianoliver at hotmail dot com
From: hadrianoliver at hotmail dot com
Operating system: Windows XP Service Pack 2
PHP version:  5CVS-2006-06-09 (snap)
PHP Bug Type: Scripting Engine problem
Bug description:  Pass by reference function parameter passed as copy

Description:

When passing an argument to a function such as: -

  preg_match( string pattern, string subject [, array &matches [, int
flags [, int offset]]] )

using the syntax:

  preg_match($pattern, $subject, $array = array())

a copy of the $array is passed to the function, rather than a pointer.

Reproduce code:
---
// Without first defining variable
preg_match("/a/", "a", $matches1);
echo count($matches1); // Outputs 1 - OK

// Defining variable before function call
$matches2 = array();
preg_match("/a/", "a", $matches2);
echo count($matches2); // Outputs 1 - OK

// Defining variable within function parameters
preg_match("/a/", "a", $matches3 = array());
echo count($matches3); // Outputs 0 - UNEXPECTED!!



Expected result:

Expected result: 111


Actual result:
--
Observed result: 110

Further toying around, such as by using: -

function _array() 
{
  $a = array('a', 'b', 'c');
}

instead of array() and 

function _preg_match($pattern, $subject, &$matches)
{
  if (!$matches) 
  {
$digits = array();
  }
  echo "in: " . count($matches) ."\n";
  $result = preg_match($pattern, $subject, $matches);
  echo "out: " . count($matches) ."\n";
  return $result;
}

instead of preg_match(), reveal that the array is being passed by copy,
not reference.

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


#37761 [Opn]: Pass by reference function parameter passed as copy

2006-06-09 Thread hadrianoliver at hotmail dot com
 ID:   37761
 User updated by:  hadrianoliver at hotmail dot com
 Reported By:  hadrianoliver at hotmail dot com
 Status:   Open
 Bug Type: Scripting Engine problem
 Operating System: Windows XP Service Pack 2
 PHP Version:  5CVS-2006-06-09 (snap)
 New Comment:

//Correction: _array() function should be:

function &_array() 
{
  $a = array('a', 'b', 'c');
  return $a;
}


Previous Comments:


[2006-06-09 11:17:19] hadrianoliver at hotmail dot com

Description:

When passing an argument to a function such as: -

  preg_match( string pattern, string subject [, array &matches [, int
flags [, int offset]]] )

using the syntax:

  preg_match($pattern, $subject, $array = array())

a copy of the $array is passed to the function, rather than a pointer.

Reproduce code:
---
// Without first defining variable
preg_match("/a/", "a", $matches1);
echo count($matches1); // Outputs 1 - OK

// Defining variable before function call
$matches2 = array();
preg_match("/a/", "a", $matches2);
echo count($matches2); // Outputs 1 - OK

// Defining variable within function parameters
preg_match("/a/", "a", $matches3 = array());
echo count($matches3); // Outputs 0 - UNEXPECTED!!



Expected result:

Expected result: 111


Actual result:
--
Observed result: 110

Further toying around, such as by using: -

function _array() 
{
  $a = array('a', 'b', 'c');
}

instead of array() and 

function _preg_match($pattern, $subject, &$matches)
{
  if (!$matches) 
  {
$digits = array();
  }
  echo "in: " . count($matches) ."\n";
  $result = preg_match($pattern, $subject, $matches);
  echo "out: " . count($matches) ."\n";
  return $result;
}

instead of preg_match(), reveal that the array is being passed by copy,
not reference.





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


#37761 [Opn->Bgs]: Pass by reference function parameter passed as copy

2006-06-09 Thread mike
 ID:   37761
 Updated by:   [EMAIL PROTECTED]
 Reported By:  hadrianoliver at hotmail dot com
-Status:   Open
+Status:   Bogus
 Bug Type: Scripting Engine problem
 Operating System: Windows XP Service Pack 2
 PHP Version:  5CVS-2006-06-09 (snap)
 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

http://php.net/manual/en/language.references.pass.php


Previous Comments:


[2006-06-09 11:19:21] hadrianoliver at hotmail dot com

//Correction: _array() function should be:

function &_array() 
{
  $a = array('a', 'b', 'c');
  return $a;
}



[2006-06-09 11:17:19] hadrianoliver at hotmail dot com

Description:

When passing an argument to a function such as: -

  preg_match( string pattern, string subject [, array &matches [, int
flags [, int offset]]] )

using the syntax:

  preg_match($pattern, $subject, $array = array())

a copy of the $array is passed to the function, rather than a pointer.

Reproduce code:
---
// Without first defining variable
preg_match("/a/", "a", $matches1);
echo count($matches1); // Outputs 1 - OK

// Defining variable before function call
$matches2 = array();
preg_match("/a/", "a", $matches2);
echo count($matches2); // Outputs 1 - OK

// Defining variable within function parameters
preg_match("/a/", "a", $matches3 = array());
echo count($matches3); // Outputs 0 - UNEXPECTED!!



Expected result:

Expected result: 111


Actual result:
--
Observed result: 110

Further toying around, such as by using: -

function _array() 
{
  $a = array('a', 'b', 'c');
}

instead of array() and 

function _preg_match($pattern, $subject, &$matches)
{
  if (!$matches) 
  {
$digits = array();
  }
  echo "in: " . count($matches) ."\n";
  $result = preg_match($pattern, $subject, $matches);
  echo "out: " . count($matches) ."\n";
  return $result;
}

instead of preg_match(), reveal that the array is being passed by copy,
not reference.





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


#37762 [NEW]: Array Associative in a for using the wrong key crash the system

2006-06-09 Thread bits dot e dot bytes at gmail dot com
From: bits dot e dot bytes at gmail dot com
Operating system: Linux
PHP version:  5.1.4
PHP Bug Type: Arrays related
Bug description:  Array Associative in a for using the wrong key crash the 
system

Description:

When i make a for in a array associative, but using some wrong key like
numeric, this crash the system.
Please see the code 

Reproduce code:
---
protected function getArray() {
$days = array();
for ($i = 31; $i > 0; $i--) {
$day  = mktime (0, 0, 0, date("m")  , date("d")-$i, date("Y"));
if (date('w', $day) != 0 && date('w', $day) != 6 ){
$days[] = date('d/m/Y', $day);
}
}
$days = array_flip($days);
for ($i = 0; $i < count($days); $i++) {
//Here is the problem, becouse insted of use a correct key, i use a
number. In this point the system crash.
$days[$i] = 0;
}
return $days;
}



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


#37763 [NEW]: cloneNode doesn't clone namespaces of attributes

2006-06-09 Thread storm at rustex dot ru
From: storm at rustex dot ru
Operating system: Windows 2003, FreeBSD 5.4
PHP version:  5.1.4
PHP Bug Type: DOM XML related
Bug description:  cloneNode doesn't clone namespaces of attributes

Description:

Try to work with Microsoft XML SpreadSheet. When I try clone "Column"
element and insert it, namespaces of its attributes doesn't save. But if I
rewrite attributes with setAttributeNS(getAttributeNS), this attribute save
normal.
Sorry for bad english, see example below.

Reproduce code:
---
xls.xml



http://www.w3.org/TR/REC-html40";>








code:

$xls = new DOMDocument();
$xls->load("xls.xml");
$column = $xls->getElementsByTagName('Column')->item(0);
$column2 = $column->parentNode->insertBefore($column->cloneNode(),
$column);
echo $xls->save("xls2.xml");

Expected result:



http://www.w3.org/TR/REC-html40";>








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


#37764 [NEW]: Strict Standards ReflectionMethod::export()

2006-06-09 Thread RQuadling at GMail dot com
From: RQuadling at GMail dot com
Operating system: Windows XP SP2
PHP version:  5CVS-2006-06-09 (snap)
PHP Bug Type: SPL related
Bug description:  Strict Standards ReflectionMethod::export() 

Description:

Using the latest win32 snap - PHP 5.2.0-dev (cli) (built: Jun  9 2006
12:19:10) and at the command line ...

Getting errors when error_reporting is set to 

E_ALL|E_STRICT

If I remove |E_STRICT I don't get the errors.

Reproduce code:
---
php -v

Expected result:

PHP 5.2.0-dev (cli) (built: Jun  9 2006 12:19:10)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies

Actual result:
--
Strict Standards: Declaration of ReflectionMethod::export() should be
compatible with that of ReflectionFunction::export() in Unknown on line 0
Strict Standards: Declaration of ReflectionMethod::invoke() should be
compatible with that of ReflectionFunction::invoke() in Unknown on line 0
Strict Standards: Declaration of ReflectionMethod::invokeArgs() should be
compatible with that of ReflectionFunction::invokeArgs() in Unknown on
line 0
PHP 5.2.0-dev (cli) (built: Jun  9 2006 12:19:10)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies

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


#35854 [Com]: PHP hangs on session-related functions on form submit

2006-06-09 Thread geert at hauwaerts dot be
 ID:   35854
 Comment by:   geert at hauwaerts dot be
 Reported By:  jlampa at poczta dot onet dot pl
 Status:   No Feedback
 Bug Type: Session related
 Operating System: Windows XP Professional
 PHP Version:  4.4.1
 New Comment:

I have exactly the same problem:

As jlampa described the problem appears and stops at random.

When I first load the page (no session started yet) I get the HTML
code. After submitting the form nothing hapens and the page look lik
it's stuck in a foreach/while loop.

When puttting exit; before session start (right before submitting) it
doesn't happen.

So I am 100% sure that session_start() hangs for some reason...
 

submit.php:
===




select a router
br0.bru1.benesol.be




=== END ===


Previous Comments:


[2006-01-07 01:00:05] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".



[2005-12-30 20:08:24] [EMAIL PROTECTED]

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

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

Thank you for your interest in PHP.






[2005-12-30 20:04:22] jlampa at poczta dot onet dot pl

Description:

SOMETIMES, after POST-ing a form, a script hangs on any session-related
function. This problm appears and stops at random. It only happens on
one server, I haven't been able to reproduce it in any other
environment

Reproduce code:
---
Eg. session_start() or session_register()

Expected result:

The session-related functions should work properly instead of hanging. 

Actual result:
--
Script hangs on first session-related function





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


#35854 [Com]: PHP hangs on session-related functions on form submit

2006-06-09 Thread geert at hauwaerts dot be
 ID:   35854
 Comment by:   geert at hauwaerts dot be
 Reported By:  jlampa at poczta dot onet dot pl
 Status:   No Feedback
 Bug Type: Session related
 Operating System: Windows XP Professional
 PHP Version:  4.4.1
 New Comment:

Oh, and I am using PHP 5.1.4 compiled by source on Gentoo.

Below are my configure lines:

'./configure' '--with-config-file-path=/etc'
'--with-apxs2=/usr/local/apache/bin/apxs' '--enable-safe-mode'
'--disable-ipv6' '--with-openssl' '--with-zlib' '--enable-bcmath'
'--with-bz2' '--enable-calendar' '--with-curl' '--with-inifile'
'--with-flatfile' '--enable-dbase' '--enable-dbx' '--enable-exif'
'--enable-ftp' '--with-gd' '--with-gettext' '--with-gmp' '--with-imap'
'--with-imap-ssl' '--with-mcrypt' '--with-mhash' '--with-mysql'
'--with-readline' '--with-mm' '--with-snmp' '--enable-sockets'
'--enable-sysvmsg' '--enable-sysvsem' '--enable-sysvshm' '--with-tidy'
'--with-xsl' '--enable-yp' '--with-pear' '--with-zip'
'--enable-gd-native-ttf' '--with-ttf' '--with-jpeg-dir=/usr/lib'
'--with-freetype-dir=/usr/lib'


Previous Comments:


[2006-06-09 13:35:48] geert at hauwaerts dot be

I have exactly the same problem:

As jlampa described the problem appears and stops at random.

When I first load the page (no session started yet) I get the HTML
code. After submitting the form nothing hapens and the page look lik
it's stuck in a foreach/while loop.

When puttting exit; before session start (right before submitting) it
doesn't happen.

So I am 100% sure that session_start() hangs for some reason...
 

submit.php:
===




select a router
br0.bru1.benesol.be




=== END ===



[2006-01-07 01:00:05] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".



[2005-12-30 20:08:24] [EMAIL PROTECTED]

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

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

Thank you for your interest in PHP.






[2005-12-30 20:04:22] jlampa at poczta dot onet dot pl

Description:

SOMETIMES, after POST-ing a form, a script hangs on any session-related
function. This problm appears and stops at random. It only happens on
one server, I haven't been able to reproduce it in any other
environment

Reproduce code:
---
Eg. session_start() or session_register()

Expected result:

The session-related functions should work properly instead of hanging. 

Actual result:
--
Script hangs on first session-related function





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


#37765 [NEW]: Parent: child process exited with status 3221225477 -- Restarting.

2006-06-09 Thread wangjianjin at hotmail dot com
From: wangjianjin at hotmail dot com
Operating system: Windows 2003 Server
PHP version:  5CVS-2006-06-09 (snap)
PHP Bug Type: Apache2 related
Bug description:  Parent: child process exited with status 3221225477 -- 
Restarting.

Description:

Environment: Apache 2.2.2+PHP5.cvs snap+MySQL 5.0.21+windows 2003 server
the application is Tikiwiki. (tikiwiki.org)
  the PHP.ini 
 mysql.allow_persistent = On, 
 mysql.max_persistent = -1,
 mysql.connect_timeout = -1
When I do some operations editing page, and want to save it to mySQL
database. after saving operations to database, in PHP script, I will send
this to display the edited page.  
header("location: tiki-index.php?page=$page");
Then errors ocurr.the browser( whatever IE,netscape, firefox) will crash.
IE -page can not be displayed, netscape-get no data, firefox--connection
is reset. 
   Before i send Function 'header', i checked the connection status with
MySQL, it is normal. although only I am connecting to this WEB server, but
it still displayed three processes connecting with MySQL. 
   After I send Function 'header', All the processes connecting to the
MySQL are broken.  Apache error.log

Parent: child process exited with status 3221225477 -- Restarting.
Apache/2.2.2 (Win32) PHP/5.2.0-dev configured -- resuming normal
operations
Server built: Apr 29 2006 18:32:31
Parent: Created child process 4728
Child 4728: Child process is running
Child 4728: Acquired the start mutex.
Child 4728: Starting 250 worker threads.
Child 4728: Starting thread to listen on port 8089.
Child 4728: Starting thread to listen on port 8080.
Child 4728: Starting thread to listen on port 80.

if I change to google.com--header("location: http://www.google.com/";), it
is no problem. just header("location: tiki-index.php?page=$page"); have
some actions with MySQL. 
   I do not know who causes who? SQL operations cause the Apache child
process exit, or child process exit cause the broken SQL connection?
   what situation will the apache produce "Parent: child process exited
with status 3221225477 "?  
  


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


#37763 [Opn->Bgs]: cloneNode doesn't clone namespaces of attributes

2006-06-09 Thread rrichards
 ID:   37763
 Updated by:   [EMAIL PROTECTED]
 Reported By:  storm at rustex dot ru
-Status:   Open
+Status:   Bogus
 Bug Type: DOM XML related
 Operating System: Windows 2003, FreeBSD 5.4
 PHP Version:  5.1.4
 New Comment:

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

libxml2 bug occuring due to the default namespace being the same as the
ss prefix'd namespace.

Workaround is to use one of the following:
 - either not use the default namespace (prefixing everything with
ss:)
 - prefix the parent node to which clone is being appendded to. In this
case you would need ss:Table.
 - redefine the xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
declaration on the Table element.


Previous Comments:


[2006-06-09 13:22:40] storm at rustex dot ru

Description:

Try to work with Microsoft XML SpreadSheet. When I try clone "Column"
element and insert it, namespaces of its attributes doesn't save. But
if I rewrite attributes with setAttributeNS(getAttributeNS), this
attribute save normal.
Sorry for bad english, see example below.

Reproduce code:
---
xls.xml



http://www.w3.org/TR/REC-html40";>








code:

$xls = new DOMDocument();
$xls->load("xls.xml");
$column = $xls->getElementsByTagName('Column')->item(0);
$column2 = $column->parentNode->insertBefore($column->cloneNode(),
$column);
echo $xls->save("xls2.xml");

Expected result:



http://www.w3.org/TR/REC-html40";>












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


#37764 [Opn->Asn]: Strict Standards ReflectionMethod::export()

2006-06-09 Thread bjori
 ID:   37764
 Updated by:   [EMAIL PROTECTED]
 Reported By:  RQuadling at GMail dot com
-Status:   Open
+Status:   Assigned
-Bug Type: SPL related
+Bug Type: Unknown/Other Function
-Operating System: Windows XP SP2
+Operating System: *
-PHP Version:  5CVS-2006-06-09 (snap)
+PHP Version:  5_2, 6
-Assigned To:  
+Assigned To:  bjori


Previous Comments:


[2006-06-09 13:26:02] RQuadling at GMail dot com

Description:

Using the latest win32 snap - PHP 5.2.0-dev (cli) (built: Jun  9 2006
12:19:10) and at the command line ...

Getting errors when error_reporting is set to 

E_ALL|E_STRICT

If I remove |E_STRICT I don't get the errors.

Reproduce code:
---
php -v

Expected result:

PHP 5.2.0-dev (cli) (built: Jun  9 2006 12:19:10)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies

Actual result:
--
Strict Standards: Declaration of ReflectionMethod::export() should be
compatible with that of ReflectionFunction::export() in Unknown on line
0
Strict Standards: Declaration of ReflectionMethod::invoke() should be
compatible with that of ReflectionFunction::invoke() in Unknown on line
0
Strict Standards: Declaration of ReflectionMethod::invokeArgs() should
be compatible with that of ReflectionFunction::invokeArgs() in Unknown
on line 0
PHP 5.2.0-dev (cli) (built: Jun  9 2006 12:19:10)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies





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


#37720 [Opn->Csd]: merge_php_config scrambles values when using DirectoryMatch / VirtualHost

2006-06-09 Thread mike
 ID:   37720
 Updated by:   [EMAIL PROTECTED]
 Reported By:  pumuckel at metropolis dot de
-Status:   Open
+Status:   Closed
 Bug Type: Apache2 related
 Operating System: Linux
 PHP Version:  5.1.4
 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:


[2006-06-07 11:16:56] pumuckel at metropolis dot de

First, this is apache2 related, i have modified bug category
appropriate.

Second: A testcase is located at
http://www.metropolis-ag.de/downloads/bug37720.tgz

Please read the README file within this archive, which explains steps
to reproduce the bug.

Also attached in the README is a possible (but incomplete) patch for
5.1.4. Please contact me via email if you have any questions / need to
discuss things.



[2006-06-06 22:16:02] [EMAIL PROTECTED]

>I can provide a testcase configuration on request.
Please upload it somewhere and put the link here.

>Configuration is mixed occasionally.
It'd be good to have a couple of examples.



[2006-06-06 22:05:30] pumuckel at metropolis dot de

Description:

When using DirectoryMatch in httpd.conf / .htaccess and virtualHost
entries, then php_values inside those directives get scrambled. The
reason seems likely to be that in merge_php_config the new_conf
parameter gets modified even this is strictly forbidden by apache2
api!

Solution: Make a copy of new_conf (with proper hash initialization) and
return a pointer to the new copy.


Reproduce code:
---
I can provide a testcase configuration on request.

Expected result:

The configuration parameters should be as configured.

Actual result:
--
Configuration is mixed occasionally.





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


#36257 [Ctl->Fbk]: php ini master values are reset between vhosts

2006-06-09 Thread mike
 ID:   36257
 Updated by:   [EMAIL PROTECTED]
 Reported By:  cnovak at gmx dot net
-Status:   Critical
+Status:   Feedback
 Bug Type: *Configuration Issues
 Operating System: Linux srv-01 2.6.12-vs2.0-gentoo
 PHP Version:  5.1.2, 4.4.2
 New Comment:

Please try the next CVS snapshot.


Previous Comments:


[2006-05-19 16:53:14] technophreak at gammae dot com

Will someone PLEASE put a priority on this. I have been suffereing from
this bug for over 4 months now.



[2006-05-06 08:47:17] marco at aktex dot net

Hello, 

I also had this bug with version 4.4.2 from Debian packages. Yesterday
I recompiled with latest CVS (php4-STABLE-200605042030.tar.gz).
Unfortunatly the bug is still present. We suffer from leaking
include_path settings in vhosts which is very annoying. We cannot
upgrade to PHP5.  

Thanks,
Marco



[2006-04-30 21:31:55] technophreak at gammae dot com

I've just tried with BUILD Apr 30 2006 16:49:02 in Latest CVS, same
problem occurs.

Note: #36328 is probably the same problem as this bug report.



[2006-03-22 15:54:33] tim at sharper dot nl

After upgrade to PHP 5.1.2 this error still occurs.



[2006-03-02 18:26:06] tim at sharper dot nl

W're currently using Apache 2.0.55 with about 100 virtualhosts on
Freebsd. It occasionaly happens
that the open_basedir settings, made in the virtualhosts, get mixed
up.
Here an example error, when accesing a file in
"/home/dev.sharper.nl/www/".

Warning: Unknown(): open_basedir restriction in effect.
File(/home/dev.sharper.nl/www/index.php) is not within the allowed
path(s): (/home/cvr12.sharper.nl/www/) in Unknown on line 0

Warning: Unknown(/home/dev.sharper.nl/www/index.php): failed to open
stream: Operation not permitted in Unknown on line 0



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

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


#34211 [NoF->Opn]: ext/oci8: Allow for data type "TIMESTAMP(0) WITH LOCAL TIME ZONE"

2006-06-09 Thread kurtb149 at yahoo dot com
 ID:   34211
 User updated by:  kurtb149 at yahoo dot com
 Reported By:  kurtb149 at yahoo dot com
-Status:   No Feedback
+Status:   Open
 Bug Type: Feature/Change Request
 Operating System: Linux
 PHP Version:  6CVS-2005-08-22 (CVS)
 Assigned To:  tony2001
 New Comment:

1. Create a table in Oracle that used the "timestamp(0) with local time
zone" type:

   SQL> create table ltz_test(aa timestamp(0) with local time zone not
null) ;

2. Insert a row into ltz_test:

   SQL> insert into ltz_test values(current_timestamp);

3. Using PDO, read the table:

setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$dbh->setAttribute(PDO::ATTR_CASE, PDO::CASE_LOWER);
$sth = $dbh->prepare('select aa from ltz_test');
$sth->execute();
$r = $sth->fetch();
print $r[0] . "\n";
?>

The following error is produced:

Warning: PDOStatement::fetch(): column 0 data was too large for buffer
and was truncated to fit it in ltz_test.php on line 7


Previous Comments:


[2006-04-14 01:00:00] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".



[2006-04-06 07:27:34] [EMAIL PROTECTED]

Thanks for posting the patch again.
Actually I asked you to provide a small piece of PHP code I can use to
test the problem you are trying to fix.



[2006-04-05 23:32:59] kurtb149 at yahoo dot com

$ cvs diff oci_statement.c
Index: oci_statement.c
===
RCS file: /repository/php-src/ext/pdo_oci/oci_statement.c,v
retrieving revision 1.20
diff -r1.20 oci_statement.c
420a421,424
> #ifdef SQLT_TIMESTAMP_LTZ
> || dtype == SQLT_TIMESTAMP_LTZ
> #endif
>



[2006-04-04 09:52:45] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with ,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.





[2005-08-22 23:28:18] [EMAIL PROTECTED]

reclassified




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

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


#36328 [Opn->Bgs]: Random vhosts and .htaccess configuration leaks

2006-06-09 Thread mike
 ID:   36328
 Updated by:   [EMAIL PROTECTED]
 Reported By:  technophreak at gammae dot com
-Status:   Open
+Status:   Bogus
 Bug Type: Apache2 related
 Operating System: Fedora Core 4
 PHP Version:  5.1.2, Latest CVS
 New Comment:

Dupe of bug #36257
Please try the next CVS snapshot.



Previous Comments:


[2006-04-30 21:35:11] technophreak at gammae dot com

I've just tried with BUILD Apr 30 2006 16:49:02 in Latest CVS, same
problem occurs.

Similar bug report: #36257



[2006-02-19 01:00:04] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".



[2006-02-11 13:23:33] [EMAIL PROTECTED]

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





[2006-02-08 15:55:35] technophreak at gammae dot com

Changed the Summary to something people will expect to look for if they
have the same problem.



[2006-02-08 02:48:54] technophreak at gammae dot com

Description:

Problem is similar to BUG #25753

I am running Apache 2.0.55

I have seen this bug with PHP 5.0.5 also.

Some configuration gets leaked into random vhosts.

Reproduce code:
---
Let's have 3 different web sites using 3 vhosts.

One of those vhost, lets call it vhost A, I set a .htaccess file into
the document_root folder:

php_flag session.use_trans_sid on
php_flag session.use_cookies off

-

If I load a page wich has a session ID already set in the cookies in
Vhost B or C, the session ID will be changed as if I would load the
page with no cookie.

Here is a really simple code: 

Note: This happens maybe 1 time on 50 so you have to refresh the page a
lot of times.


Expected result:

Should print ALWAYS the same session ID as long as the session doesnt
expire.

Actual result:
--
Sometimes, the session ID changes because session does not use cookies
because the VHOST A .htaccess leaked to VHOST B.





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


#37766 [NEW]: include_once() adds file more them one time

2006-06-09 Thread boris_k at iname dot com
From: boris_k at iname dot com
Operating system: win2000
PHP version:  5CVS-2006-06-09 (snap)
PHP Bug Type: Unknown/Other Function
Bug description:  include_once() adds file more them one time

Description:

File inc/test3.inc included in code more then one time.

php is module of apache 2.2

php.ihi is here http://bdr.kiev.ua/tmpboris/php.ini till some time.

ICQ 176869864

Good luck! 


Reproduce code:
---
File test.php


File inc/test2.inc
 

File inc/test3.inc


Expected result:

file inc/file3.inc
Array
(
[0] => C:\tmp\bdr\html\php\test.php
[1] => C:\tmp\bdr\html\php\inc\test3.inc
)


Actual result:
--
file inc/file3.inc
Array
(
[0] => C:\tmp\bdr\html\php\test.php
[1] => C:\tmp\bdr\html\php\inc\test3.inc
)
file inc/file3.inc
Array
(
[0] => C:\tmp\bdr\html\php\test.php
[1] => C:\tmp\bdr\html\php\inc\test3.inc
[2] => C:\tmp\bdr\html\php\inc\test2.inc
[3] => c:\tmp\bdr\html\php\inc\test3.inc
)

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


#37767 [NEW]: ldap_bind fails with Out of memory error over apache

2006-06-09 Thread peter dot buki at vodafone dot hu
From: peter dot buki at vodafone dot hu
Operating system: Solaris 10
PHP version:  5.1.4
PHP Bug Type: LDAP related
Bug description:  ldap_bind fails with Out of memory error over apache

Description:

Using php-5.1.4 with mysql-5.0.22 (libs only), apache-2.2.2 (tried 2.0.55
also) and openldap-2.3.24 (tried 2.3.21 also).

When invoking the script with command line, it runs fine, but when using
the mod_php (with a browser over apache) it fails with "Out of memory"
error number -10.

Reproduce code:
---
LDAP query test";
echo "Connecting ...";
$ds=ldap_connect("172.16.2.8") or die('Could not connect.') ;;  // must be
a valid LDAP server!

if ($ds) {
   echo "Binding ...";
   $r=ldap_bind($ds,'DC=whatever,DC=hu','')
   or die(ldap_errno($ds) . " : " . ldap_error($ds)) ;

   echo "Bind result is " . $r . "";

}
?>


Expected result:

Over browser something like:
LDAP query testConnecting ...Binding ...Bind result is 1

Over command line:
LDAP query testConnecting ...Binding ...Bind result is 1

Actual result:
--
Over browser:
LDAP query testConnecting ...Binding ...
Warning:  ldap_bind() [function.ldap-bind]: Unable to bind to
server: Out of memory in /var/www/test/index.php on line
11
-10 : Out of memory

Over command line:
LDAP query testConnecting ...Binding ...Bind result is 1

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


#37762 [Opn->Bgs]: Array Associative in a for using the wrong key crash the system

2006-06-09 Thread mike
 ID:   37762
 Updated by:   [EMAIL PROTECTED]
 Reported By:  bits dot e dot bytes at gmail dot com
-Status:   Open
+Status:   Bogus
 Bug Type: Arrays related
 Operating System: Linux
 PHP Version:  5.1.4
 New Comment:

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

You create an endless loop.


Previous Comments:


[2006-06-09 13:21:39] bits dot e dot bytes at gmail dot com

Description:

When i make a for in a array associative, but using some wrong key like
numeric, this crash the system.
Please see the code 

Reproduce code:
---
protected function getArray() {
$days = array();
for ($i = 31; $i > 0; $i--) {
$day  = mktime (0, 0, 0, date("m")  , date("d")-$i,
date("Y"));
if (date('w', $day) != 0 && date('w', $day) != 6 ){
$days[] = date('d/m/Y', $day);
}
}
$days = array_flip($days);
for ($i = 0; $i < count($days); $i++) {
//Here is the problem, becouse insted of use a correct key, i use a
number. In this point the system crash.
$days[$i] = 0;
}
return $days;
}







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


#37757 [Opn->Bgs]: Result fetched from MSSQL is truncated to 255 characters

2006-06-09 Thread fmk
 ID:   37757
 Updated by:   [EMAIL PROTECTED]
 Reported By:  nguyenhoang at vnideadesign dot com
-Status:   Open
+Status:   Bogus
 Bug Type: MSSQL related
 Operating System: XP sp2
 PHP Version:  5.1.4
 New Comment:

This is a limitation in Microsofts DBLIB, used to build the extension.

You can switch to php_dblib.dll This is a drop in replacement for
mssql_* functions build with FreeTDS


Previous Comments:


[2006-06-09 07:16:35] nguyenhoang at vnideadesign dot com

Description:

Problem on: PHP 5.1.2 and 5.1.4
OS: Windows XP sp2
Server: Apache ( apache2triad 1.5.4/1.4.4 and WAMP5 with PHP 5.1.4 i
was un/installing each of these server to test)
I'm sure that I connected to MSSQL server 2000 and ran a stored
procedure ( after enable mssql extention ) but i only got the first 255
characters from the remote MSSQL server. From PHP version 5.1.2, I
upgraded it to PHP 5.1.4 but the result is as it was on PHP 5.1.2. Read
the note from other PHP user, i got these way to fix this problem:
-in php file:
mssql_query("set textsize 4000", $s); // 
ini_set('mssql.textsize', '4000');
ini_set('mssql.textlimit', '4000');
-in php.ini
mssql.textlimit = 4096
mssql.textsize = 4096

After the fix, the result has no changed, always is the first 255 chars
appeared.

Reproduce code:
---
Here is the code.
//Connect:
$s = @mssql_connect($myServer, $myUser, $myPass) or die("He Thong dang
ban. Xin ban thu lai trong giay lat. Chung toi rat tiec vi su co nay.
Rat mong ban thong cam..");
$d = @mssql_select_db($myDB, $s) or die("He Thong dang ban. Xin ban thu
lai trong giay lat. Chung toi rat tiec vi su co nay. Rat mong ban thong
cam..");
//...other code here, then the line to got row Text from MSSQL
database
/*
#GOT INFO - QUERY DATABASE!!!
*/
$datetime = $d . "/" . $m . "/" . $y;
if ($smstxt[1] == "SAT") {
// Bind datetime
$rs = mssql_query("TG_SAT '$datetime','$enableU2Text'");
} else {
$rs = mssql_query("TG_CAT '$datetime','$enableU2Text'");
}
$row = mssql_fetch_array($rs);
// Display the result
GoKannel($row['Text']); //


Expected result:

I have no idea to expect what problem with my code. It run perfectly
with other part of the scipt. I wish that the text on MSSQL was not
more than 255 chars, If so this should not be a problem. Maybe there
was a problem with php_mssql.dll extention or maybe I am a stupid PHP
coder :( Hope u can give me an answer. Thanks






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


#37769 [NEW]: configure fails to link to specified libfreetype in /usr/local/X11R6

2006-06-09 Thread openmacnews at gmail dot com
From: openmacnews at gmail dot com
Operating system: osx
PHP version:  5CVS-2006-06-09 (CVS)
PHP Bug Type: Dynamic loading
Bug description:  configure fails to link to specified libfreetype in 
/usr/local/X11R6

Description:

hi,

i'm, building php-5.2 cvs-head on OSX 10.4.6.

as prereq, i've FreeType2 built into my /usr/local/X11R6 tree:

cd /usr/local/X11R6/lib/
ls -al *freetype*
-rwxr-xr-x 1 root wheel 1975684 2006-06-05 21:50
libfreetype.6.3.10.dylib
lrwxr-xr-x 1 root wheel  24 2006-06-05 21:50 
libfreetype.6.dylib ->
libfreetype.6.3.10.dylib
-rw-r--r-- 1 root wheel 2093880 2006-06-05 21:50 libfreetype.a
lrwxr-xr-x 1 root wheel  24 2006-06-05 21:50 
libfreetype.dylib ->
libfreetype.6.3.10.dylib
-rwxr-xr-x 1 root wheel 901 2006-06-05 21:50 libfreetype.la


nonetheless, w/ ENV of:

setenv CPPFLAGS "-I${ULDM}/mysql/include/mysql
-I${ULDM}/berkeley-db/include -I/usr/local/include
-I/usr/local/ssl/include -I/usr/local/ncurses/include
-I/usr/local/X11R6/include"
setenv LDFLAGS "-bind_at_load -L${ULDM}/mysql/lib/mysql -lmysqlclient_r
-L${ULDM}/berkeley-db/lib -ldb -L/usr/local/lib -lpcre
-L/usr/local/ssl/lib -lssl -lcrypto -L/usr/local/ncurses/lib -lncurses
-L/usr/local/X11R6/lib"

and config'ing as:

./configure \
...
--with-freetype-dir=/usr/local/X11R6 \
...

config output to console reports, as expected:

...
checking for FreeType 2... /usr/local/X11R6
...

BUT, once built,checking the binary's linking,

otool -L ${ULDM}/php5/bin/php | grep freetype
/usr/X11R6/lib/libfreetype.6.dylib (compatibility version 10.0.0,
current version 10.8.0)


i.e., NOT the libfreetype we're targeting!


checking in the Makefile:

grep X11R6 Makefile


i find:

...
CPPFLAGS = -I/usr/local/mysql/include/mysql
-I/usr/local/berkeley-db/include -I/usr/local/include
-I/usr/local/ssl/include -I/usr/local/ncurses/include
-I/usr/local/X11R6/include -no-cpp-precomp
EXTRA_LDFLAGS = -L/usr/local/lib -L/usr/local/ssl/lib
-L/usr/local/berkeley-db/lib -L/usr/X11R6/lib -L/usr/local/X11R6/lib
-L/usr/local/gd/lib -L/usr/local/ncurses/lib/ -L/usr/local/mysql/lib/mysql
-L/usr/local/ncurses/lib -L/usr/local/net-snmp/lib
EXTRA_LDFLAGS_PROGRAM = -L/usr/local/lib -L/usr/local/ssl/lib
-L/usr/local/berkeley-db/lib -L/usr/X11R6/lib -L/usr/local/X11R6/lib
-L/usr/local/gd/lib -L/usr/local/ncurses/lib/ -L/usr/local/mysql/lib/mysql
-L/usr/local/ncurses/lib -L/usr/local/net-snmp/lib
INCLUDES = -I/usr/local/include/libxml2 -I/usr/local/include
-I/usr/local/ssl/include -I/usr/ports/php-5.2cvs/ext/date/lib
-I/usr/X11R6/include -I/usr/local/X11R6/include
-I/usr/local/X11R6/include/freetype2 -I/usr/local/gd/include
-I/usr/ports/php-5.2cvs/ext/mbstring/oniguruma
-I/usr/ports/php-5.2cvs/ext/mbstring/libmbfl
-I/usr/ports/php-5.2cvs/ext/mbstring/libmbfl/mbfl
-I/usr/local/mysql/include/mysql -I/usr/local/ncurses/include/ncurses
-I/usr/local/net-snmp/include -I$(top_builddir)/TSRM
-I$(top_builddir)/Zend
NATIVE_RPATHS = -L/usr/local/lib -L/usr/local/ssl/lib
-L/usr/local/berkeley-db/lib -L/usr/X11R6/lib -L/usr/local/X11R6/lib
-L/usr/local/gd/lib -L/usr/local/ncurses/lib/ -L/usr/local/mysql/lib/mysql
-L/usr/local/ncurses/lib -L/usr/local/net-snmp/lib
PHP_LDFLAGS = -L/usr/local/lib -L/usr/local/ssl/lib
-L/usr/local/berkeley-db/lib -L/usr/X11R6/lib -L/usr/local/X11R6/lib
-L/usr/local/gd/lib -L/usr/local/ncurses/lib/ -L/usr/local/mysql/lib/mysql
-L/usr/local/ncurses/lib -L/usr/local/net-snmp/lib
PHP_RPATHS = -R /usr/local/lib -R /usr/local/ssl/lib -R
/usr/local/berkeley-db/lib -R /usr/X11R6/lib -R /usr/local/X11R6/lib -R
/usr/local/gd/lib -R /usr/local/ncurses/lib/ -R /usr/local/mysql/lib/mysql
-R /usr/local/ncurses/lib -R /usr/local/net-snmp/lib


there needs to be a way to get php build to pick up freetype from where i
tell it to ...


richard


-- 
Edit bug report at http://bugs.php.net/?id=37769&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=37769&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=37769&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=37769&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=37769&r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=37769&r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=37769&r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=37769&r=needscript
Try newer version:http://bugs.php.net/fix.php?id=37769&r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=37769&r=support
Expected behavior:http://bugs.php.net/fix.php?id=37769&r=notwrong
Not enough info:  
http://bugs.php.net/fix.php?id=37769&r=notenoughinfo
Submitted twice:  
http://bugs.php.net/fix.php?id=3776

#37735 [Bgs->Csd]: oci_password_change - not all the times works

2006-06-09 Thread bbarnett at fomuvel dot com
 ID:   37735
 User updated by:  bbarnett at fomuvel dot com
 Reported By:  bbarnett at fomuvel dot com
-Status:   Bogus
+Status:   Closed
 Bug Type: OCI8 related
 Operating System: W2k
 PHP Version:  5.1.4
 New Comment:

I resolved my problem. Thanks for your help.


Previous Comments:


[2006-06-08 18:47:40] [EMAIL PROTECTED]

Again you need to install ORACLE INSTANT CLIENT. "ORACLE CLIENT
9.2.0.1.0" is totally different thing.
OCI8 for windows is compiled using INSTANT client, that's why INSTANT
client is required.

Please find a support forum or mailing list, this system is for bug
reports only.
Thank you.



[2006-06-08 18:36:20] bbarnett at fomuvel dot com

I have installed the ORACLE CLIENT 9.2.0.1.0 again in my web server and
the problem continues. But if I install PHP 5.1.4 with php_oci8.dll ->
oci8 $Revision: 1.292 $ I recover the oracle connection but the
password problem continues.

I have installed in my develop machine the PHP Version 5.2.0-dev and I
can't load php_oci8.dll like I wrote before.
My computer is using:
- WXP SP2
- Microsoft-IIS/5.1
- ORACLE CLIENT 9.2.0.1.0



[2006-06-08 18:16:07] [EMAIL PROTECTED]

You need to install Oracle Instant Client.




[2006-06-08 18:09:23] bbarnett at fomuvel dot com

following your instructions I installed the new version : PHP Version
5.2.0-dev, but I have a new problem that I didn't have before the
report. Can you help me please?, because I need to resolve this problem
because I need to publish the new site next week and this is the unique
bug that I can't resolve.
I tryed to seek more information in the forum/mailing,but it's
impossible at this time.



[2006-06-08 17:49:46] [EMAIL PROTECTED]

Please use appropriate support forum/mailing list to know how to
install PHP and its modules.
Feel free to reopen the report if you're still able to reproduce it.



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

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


#37770 [NEW]: 'For' cycle bad work

2006-06-09 Thread sorrentino at ingv dot it
From: sorrentino at ingv dot it
Operating system: Linux Slackware
PHP version:  4.4.2
PHP Bug Type: Scripting Engine problem
Bug description:  'For' cycle bad work

Description:

cyclyng (with for and while) from 'A' to 'Z' the cycle doesn't stop to 'Z'
but continue, passing from 'AA', 'till 'YZ'

ps.
the bug was submitted here too
 
on date: 18 Feb 2002
php version: 4.1.1
and is still present in php4.4.2 and in php5.2-200606091630

Reproduce code:
---


Expected result:

A, B, C, ..., Z

Actual result:
--
A, B, C, ..., Z, AA, AB, AC, ..., YW, YX, YY, YZ

i can't post a backtrace because the program exit normally, without a
crash :-(

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


#37770 [Com]: 'For' cycle bad work

2006-06-09 Thread judas dot iscariote at gmail dot com
 ID:   37770
 Comment by:   judas dot iscariote at gmail dot com
 Reported By:  sorrentino at ingv dot it
 Status:   Open
 Bug Type: Scripting Engine problem
 Operating System: Linux Slackware
 PHP Version:  4.4.2
 New Comment:

altough this is not a bug, because this is the expected, correct
behaviuor, the documentation do not mention this feature, and can be
confusing for newbies.

I suggest you reclassify this as a documentation problem.and read this
comment http://cl2.php.net/manual/en/control-structures.for.php#42850
to get the result you expect, also make sure to ask in a support forum
next time.


Previous Comments:


[2006-06-09 18:51:21] sorrentino at ingv dot it

Description:

cyclyng (with for and while) from 'A' to 'Z' the cycle doesn't stop to
'Z' but continue, passing from 'AA', 'till 'YZ'

ps.
the bug was submitted here too
 
on date: 18 Feb 2002
php version: 4.1.1
and is still present in php4.4.2 and in php5.2-200606091630

Reproduce code:
---


Expected result:

A, B, C, ..., Z

Actual result:
--
A, B, C, ..., Z, AA, AB, AC, ..., YW, YX, YY, YZ

i can't post a backtrace because the program exit normally, without a
crash :-(





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


#37770 [Opn->Bgs]: 'For' cycle bad work

2006-06-09 Thread derick
 ID:   37770
 Updated by:   [EMAIL PROTECTED]
 Reported By:  sorrentino at ingv dot it
-Status:   Open
+Status:   Bogus
 Bug Type: Scripting Engine problem
 Operating System: Linux Slackware
 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-06-09 19:36:32] judas dot iscariote at gmail dot com

altough this is not a bug, because this is the expected, correct
behaviuor, the documentation do not mention this feature, and can be
confusing for newbies.

I suggest you reclassify this as a documentation problem.and read this
comment http://cl2.php.net/manual/en/control-structures.for.php#42850
to get the result you expect, also make sure to ask in a support forum
next time.



[2006-06-09 18:51:21] sorrentino at ingv dot it

Description:

cyclyng (with for and while) from 'A' to 'Z' the cycle doesn't stop to
'Z' but continue, passing from 'AA', 'till 'YZ'

ps.
the bug was submitted here too
 
on date: 18 Feb 2002
php version: 4.1.1
and is still present in php4.4.2 and in php5.2-200606091630

Reproduce code:
---


Expected result:

A, B, C, ..., Z

Actual result:
--
A, B, C, ..., Z, AA, AB, AC, ..., YW, YX, YY, YZ

i can't post a backtrace because the program exit normally, without a
crash :-(





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


#37752 [Opn->Bgs]: php does not honour open_basedir when used with mod_fastcgi

2006-06-09 Thread yurtesen at ispro dot net
 ID:   37752
 User updated by:  yurtesen at ispro dot net
 Reported By:  yurtesen at ispro dot net
-Status:   Open
+Status:   Bogus
 Bug Type: CGI related
 Operating System: FreeBSD
 PHP Version:  4.4.2
 New Comment:

It was my mistake, I thought open_basedir also stops the initial .php
file to be opened by the server. However it seems to stop the open
requests from within the .php files.
Sorry,
Evren


Previous Comments:


[2006-06-08 21:14:31] yurtesen at ispro dot net

Description:

I set open_basedir in php.ini to /tmp (for testing purposes) and use a
script  in /home/user/www.domain.com

I can see that open_basedir set as /tmp however the script continues to
function without any troubles.

Expected result:

I expected that the script would bail out with an open_basedir
restriction error.

Actual result:
--
Script doesnt give open_basedir restriction error.





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


#37772 [NEW]: The GMT time actually shows UTC time

2006-06-09 Thread rosty dot kerei at gmail dot com
From: rosty dot kerei at gmail dot com
Operating system: Windows
PHP version:  5.1.4
PHP Bug Type: Date/time related
Bug description:  The GMT time actually shows UTC time

Description:

The function gmdate() actually returns UTC time instead of GMT and it's
different on summer time (GMT = UTC+1 hour). Learn more here:
http://en.wikipedia.org/wiki/GMT
http://en.wikipedia.org/wiki/UTC

For example, now I'm situated in Kiev, Ukraine (GMT+2), it's summer time
and it's 04:00AM here, but in London (in GMT zone) it's 02:00AM, however
the function returns 01:00AM - it's not GMT, it's UTC time. This function
should work well in winter.

Reproduce code:
---


Expected result:

02:00AM



Actual result:
--
01:00AM

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


#37772 [Opn->Fbk]: The GMT time actually shows UTC time

2006-06-09 Thread derick
 ID:   37772
 Updated by:   [EMAIL PROTECTED]
 Reported By:  rosty dot kerei at gmail dot com
-Status:   Open
+Status:   Feedback
 Bug Type: Date/time related
 Operating System: Windows
 PHP Version:  5.1.4
 New Comment:

Paste the output of the following script please:





Previous Comments:


[2006-06-09 21:50:42] rosty dot kerei at gmail dot com

Description:

The function gmdate() actually returns UTC time instead of GMT and it's
different on summer time (GMT = UTC+1 hour). Learn more here:
http://en.wikipedia.org/wiki/GMT
http://en.wikipedia.org/wiki/UTC

For example, now I'm situated in Kiev, Ukraine (GMT+2), it's summer
time and it's 04:00AM here, but in London (in GMT zone) it's 02:00AM,
however the function returns 01:00AM - it's not GMT, it's UTC time.
This function should work well in winter.

Reproduce code:
---


Expected result:

02:00AM



Actual result:
--
01:00AM





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


#37772 [Com]: The GMT time actually shows UTC time

2006-06-09 Thread judas dot iscariote at gmail dot comn
 ID:   37772
 Comment by:   judas dot iscariote at gmail dot comn
 Reported By:  rosty dot kerei at gmail dot com
 Status:   Feedback
 Bug Type: Date/time related
 Operating System: Windows
 PHP Version:  5.1.4
 New Comment:

test returns here :

America/Santiago
Fri, 09 Jun 2006 19:08:00 -0400 CLT America/Santiago -14400
Fri, 09 Jun 2006 23:08:00 + GMT UTC 0
Europe/Kiev
Sat, 10 Jun 2006 02:08:00 +0300 EEST Europe/Kiev 10800
Fri, 09 Jun 2006 23:08:00 + GMT UTC 0

current PHP_5_2


Previous Comments:


[2006-06-09 23:01:32] [EMAIL PROTECTED]

Paste the output of the following script please:






[2006-06-09 21:50:42] rosty dot kerei at gmail dot com

Description:

The function gmdate() actually returns UTC time instead of GMT and it's
different on summer time (GMT = UTC+1 hour). Learn more here:
http://en.wikipedia.org/wiki/GMT
http://en.wikipedia.org/wiki/UTC

For example, now I'm situated in Kiev, Ukraine (GMT+2), it's summer
time and it's 04:00AM here, but in London (in GMT zone) it's 02:00AM,
however the function returns 01:00AM - it's not GMT, it's UTC time.
This function should work well in winter.

Reproduce code:
---


Expected result:

02:00AM



Actual result:
--
01:00AM





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


#37769 [Opn]: configure fails to link to specified libfreetype in /usr/local/X11R6

2006-06-09 Thread openmacnews at gmail dot com
 ID:   37769
 User updated by:  openmacnews at gmail dot com
 Reported By:  openmacnews at gmail dot com
 Status:   Open
-Bug Type: Dynamic loading
+Bug Type: *Configuration Issues
 Operating System: osx
-PHP Version:  5CVS-2006-06-09 (CVS)
+PHP Version:  5.1.4, 5.2 cvs
 New Comment:

also the case on v5.1.4


Previous Comments:


[2006-06-09 18:18:46] openmacnews at gmail dot com

Description:

hi,

i'm, building php-5.2 cvs-head on OSX 10.4.6.

as prereq, i've FreeType2 built into my /usr/local/X11R6 tree:

cd /usr/local/X11R6/lib/
ls -al *freetype*
-rwxr-xr-x 1 root wheel 1975684 2006-06-05 21:50
libfreetype.6.3.10.dylib
lrwxr-xr-x 1 root wheel  24 2006-06-05 21:50 
libfreetype.6.dylib
-> libfreetype.6.3.10.dylib
-rw-r--r-- 1 root wheel 2093880 2006-06-05 21:50 libfreetype.a
lrwxr-xr-x 1 root wheel  24 2006-06-05 21:50 
libfreetype.dylib ->
libfreetype.6.3.10.dylib
-rwxr-xr-x 1 root wheel 901 2006-06-05 21:50 libfreetype.la


nonetheless, w/ ENV of:

setenv CPPFLAGS "-I${ULDM}/mysql/include/mysql
-I${ULDM}/berkeley-db/include -I/usr/local/include
-I/usr/local/ssl/include -I/usr/local/ncurses/include
-I/usr/local/X11R6/include"
setenv LDFLAGS "-bind_at_load -L${ULDM}/mysql/lib/mysql
-lmysqlclient_r -L${ULDM}/berkeley-db/lib -ldb -L/usr/local/lib -lpcre
-L/usr/local/ssl/lib -lssl -lcrypto -L/usr/local/ncurses/lib -lncurses
-L/usr/local/X11R6/lib"

and config'ing as:

./configure \
...
--with-freetype-dir=/usr/local/X11R6 \
...

config output to console reports, as expected:

...
checking for FreeType 2... /usr/local/X11R6
...

BUT, once built,checking the binary's linking,

otool -L ${ULDM}/php5/bin/php | grep freetype
/usr/X11R6/lib/libfreetype.6.dylib (compatibility version
10.0.0, current version 10.8.0)


i.e., NOT the libfreetype we're targeting!


checking in the Makefile:

grep X11R6 Makefile


i find:

...
CPPFLAGS = -I/usr/local/mysql/include/mysql
-I/usr/local/berkeley-db/include -I/usr/local/include
-I/usr/local/ssl/include -I/usr/local/ncurses/include
-I/usr/local/X11R6/include -no-cpp-precomp
EXTRA_LDFLAGS = -L/usr/local/lib -L/usr/local/ssl/lib
-L/usr/local/berkeley-db/lib -L/usr/X11R6/lib -L/usr/local/X11R6/lib
-L/usr/local/gd/lib -L/usr/local/ncurses/lib/
-L/usr/local/mysql/lib/mysql -L/usr/local/ncurses/lib
-L/usr/local/net-snmp/lib
EXTRA_LDFLAGS_PROGRAM = -L/usr/local/lib -L/usr/local/ssl/lib
-L/usr/local/berkeley-db/lib -L/usr/X11R6/lib -L/usr/local/X11R6/lib
-L/usr/local/gd/lib -L/usr/local/ncurses/lib/
-L/usr/local/mysql/lib/mysql -L/usr/local/ncurses/lib
-L/usr/local/net-snmp/lib
INCLUDES = -I/usr/local/include/libxml2 -I/usr/local/include
-I/usr/local/ssl/include -I/usr/ports/php-5.2cvs/ext/date/lib
-I/usr/X11R6/include -I/usr/local/X11R6/include
-I/usr/local/X11R6/include/freetype2 -I/usr/local/gd/include
-I/usr/ports/php-5.2cvs/ext/mbstring/oniguruma
-I/usr/ports/php-5.2cvs/ext/mbstring/libmbfl
-I/usr/ports/php-5.2cvs/ext/mbstring/libmbfl/mbfl
-I/usr/local/mysql/include/mysql -I/usr/local/ncurses/include/ncurses
-I/usr/local/net-snmp/include -I$(top_builddir)/TSRM
-I$(top_builddir)/Zend
NATIVE_RPATHS = -L/usr/local/lib -L/usr/local/ssl/lib
-L/usr/local/berkeley-db/lib -L/usr/X11R6/lib -L/usr/local/X11R6/lib
-L/usr/local/gd/lib -L/usr/local/ncurses/lib/
-L/usr/local/mysql/lib/mysql -L/usr/local/ncurses/lib
-L/usr/local/net-snmp/lib
PHP_LDFLAGS = -L/usr/local/lib -L/usr/local/ssl/lib
-L/usr/local/berkeley-db/lib -L/usr/X11R6/lib -L/usr/local/X11R6/lib
-L/usr/local/gd/lib -L/usr/local/ncurses/lib/
-L/usr/local/mysql/lib/mysql -L/usr/local/ncurses/lib
-L/usr/local/net-snmp/lib
PHP_RPATHS = -R /usr/local/lib -R /usr/local/ssl/lib -R
/usr/local/berkeley-db/lib -R /usr/X11R6/lib -R /usr/local/X11R6/lib -R
/usr/local/gd/lib -R /usr/local/ncurses/lib/ -R
/usr/local/mysql/lib/mysql -R /usr/local/ncurses/lib -R
/usr/local/net-snmp/lib


there needs to be a way to get php build to pick up freetype from where
i tell it to ...


richard






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


#37773 [NEW]: Can't access file via file://

2006-06-09 Thread dave at dgx dot cz
From: dave at dgx dot cz
Operating system: 
PHP version:  5.1.4
PHP Bug Type: ICONV related
Bug description:  Can't access file via file://

Description:

(Similar to bug #34757).

When input string length = 1, iconv_substr() produces "Unknown error (0)"
and returns FALSE.

Reproduce code:
---
$s = 'x';
$s = iconv_substr($s, 0, 1, 'UTF-8');

var_dump($s);

Expected result:

string(1) "x"



Actual result:
--
bool(false)


and Notice: iconv_substr() [function.iconv-substr.html]: Unknown error (0)
in ...




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


#37773 [Opn]: Can't access file via file://

2006-06-09 Thread dave at dgx dot cz
 ID:  37773
 User updated by: dave at dgx dot cz
 Reported By: dave at dgx dot cz
 Status:  Open
 Bug Type:ICONV related
 PHP Version: 5.1.4
 New Comment:

Of course, title is: iconv_substr() gives "Unknown error" when string
length = 1" 

Operating system: Windows XP.

It is not my error - bugs.php.net has bugs!


Previous Comments:


[2006-06-10 00:01:14] dave at dgx dot cz

Description:

(Similar to bug #34757).

When input string length = 1, iconv_substr() produces "Unknown error
(0)" and returns FALSE.

Reproduce code:
---
$s = 'x';
$s = iconv_substr($s, 0, 1, 'UTF-8');

var_dump($s);

Expected result:

string(1) "x"



Actual result:
--
bool(false)


and Notice: iconv_substr() [function.iconv-substr.html]: Unknown error
(0) in ...








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


#37764 [Asn->Csd]: Strict Standards ReflectionMethod::export()

2006-06-09 Thread bjori
 ID:   37764
 Updated by:   [EMAIL PROTECTED]
 Reported By:  RQuadling at GMail dot com
-Status:   Assigned
+Status:   Closed
 Bug Type: Unknown/Other Function
 Operating System: *
 PHP Version:  5_2, 6
 Assigned To:  bjori
 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:


[2006-06-09 13:26:02] RQuadling at GMail dot com

Description:

Using the latest win32 snap - PHP 5.2.0-dev (cli) (built: Jun  9 2006
12:19:10) and at the command line ...

Getting errors when error_reporting is set to 

E_ALL|E_STRICT

If I remove |E_STRICT I don't get the errors.

Reproduce code:
---
php -v

Expected result:

PHP 5.2.0-dev (cli) (built: Jun  9 2006 12:19:10)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies

Actual result:
--
Strict Standards: Declaration of ReflectionMethod::export() should be
compatible with that of ReflectionFunction::export() in Unknown on line
0
Strict Standards: Declaration of ReflectionMethod::invoke() should be
compatible with that of ReflectionFunction::invoke() in Unknown on line
0
Strict Standards: Declaration of ReflectionMethod::invokeArgs() should
be compatible with that of ReflectionFunction::invokeArgs() in Unknown
on line 0
PHP 5.2.0-dev (cli) (built: Jun  9 2006 12:19:10)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies





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