#29884 [Bgs]: incorrect intval return

2004-08-30 Thread babansky at cox dot net
 ID:   29884
 User updated by:  babansky at cox dot net
 Reported By:  babansky at cox dot net
 Status:   Bogus
 Bug Type: Strings related
 Operating System: Mandrake 9.2
 PHP Version:  4.3.7
 New Comment:

Yet you'd expect intval to return decimal number and not octal (!!).
The default intval base is 10.

Try the same script with $str_value='0912345678';
and $str_value='09123456789' to see the difference;


Previous Comments:


[2004-08-30 06:49:31] [EMAIL PROTECTED]

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.

Read about octal numbers and type-juggling here:
http://www.php.net/manual/en/language.types.integer.php



[2004-08-29 22:57:13] babansky at cox dot net

Description:

if you try to do intval on the following string:
$str_value='09123456789';

you receive the following: 2147483647



Reproduce code:
---
$str_value='09123456789';

echo str_value - $str_valueBR;

$num_value=intval($str_value);
echo num_value - $num_valueBR;


Expected result:

$num_value = 9123456789

Actual result:
--
$num_value=2147483647





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


#29889 [NEW]: session and gzencode

2004-08-30 Thread abyss at gmx dot net
From: abyss at gmx dot net
Operating system: Linux
PHP version:  4.3.7
PHP Bug Type: Session related
Bug description:  session and gzencode

Description:

sending gzcompressed output to the browser doesn't get the session-id
added

I know that is because gzencode returns a compressed binary string which
php can not search for urls to which the session-id has to be added

Why does gzencode not invoke the url-rewriting before compressing the
input data?

By the way: I know this question being asked two times (#29584 and #29752)
already but you guys declared both questions as bogus and don't seem to
react to postings made to bogus bug reports so please don't tell me that
this topic has been mentioned already since there is neither a solution nor
an explanation mentioned


-- 
Edit bug report at http://bugs.php.net/?id=29889edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=29889r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=29889r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=29889r=trysnapshot51
Fixed in CVS:http://bugs.php.net/fix.php?id=29889r=fixedcvs
Fixed in release:http://bugs.php.net/fix.php?id=29889r=alreadyfixed
Need backtrace:  http://bugs.php.net/fix.php?id=29889r=needtrace
Need Reproduce Script:   http://bugs.php.net/fix.php?id=29889r=needscript
Try newer version:   http://bugs.php.net/fix.php?id=29889r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=29889r=support
Expected behavior:   http://bugs.php.net/fix.php?id=29889r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=29889r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=29889r=submittedtwice
register_globals:http://bugs.php.net/fix.php?id=29889r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=29889r=php3
Daylight Savings:http://bugs.php.net/fix.php?id=29889r=dst
IIS Stability:   http://bugs.php.net/fix.php?id=29889r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=29889r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=29889r=float


#29882 [Csd-Fbk]: isset crashes on arrays

2004-08-30 Thread derick
 ID:   29882
 Updated by:   [EMAIL PROTECTED]
 Reported By:  tomas_matousek at hotmail dot com
-Status:   Closed
+Status:   Feedback
 Bug Type: Reproducible crash
 Operating System: *
 PHP Version:  4.3.8, 5.0.1
 Assigned To:  helly
 New Comment:

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php

Once you have generated a backtrace, please submit it to this bug
report and change the status back to Open. Thank you for helping
us make PHP better.


Previous Comments:


[2004-08-29 18:57:33] [EMAIL PROTECTED]

Correct versions. 4.3.9 and 5.0.2 will be correct.



[2004-08-29 18:56:39] [EMAIL PROTECTED]

This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.



[2004-08-29 15:42:57] [EMAIL PROTECTED]

Fixed in 5, 4.3 still returns false.



[2004-08-29 15:27:28] [EMAIL PROTECTED]

4.3.8 returns false which is wrong, too.



[2004-08-29 13:07:12] tomas_matousek at hotmail dot com

Description:

isset applied to operator [] with empty array key crashes

Reproduce code:
---
 $x = array();
 var_dump(isset($x[]));

Expected result:

bool(false)

Actual result:
--
Crash





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


#29879 [WFx-Asn]: strtotime() should return false instead of -1 on failure

2004-08-30 Thread derick
 ID:   29879
 Updated by:   [EMAIL PROTECTED]
 Reported By:  info at peter-thomassen dot de
-Status:   Wont fix
+Status:   Assigned
 Bug Type: Date/time related
 Operating System: any
 PHP Version:  Irrelevant
-Assigned To:  
+Assigned To:  derick
 New Comment:

This is going to be changed for 5.1, which will have new datetime
parse/handling stuff.


Previous Comments:


[2004-08-29 20:15:11] info at peter-thomassen dot de

That's right, but I think -- since PHP5 is not that 
established to avoid any minor changes -- you can keep the 
old behaviour if zend.ze1_compatibility_mode is set to On 
and otherwise use more meaningful return values, can't 
you? 
 
I find it kind of sad if there wouldn't be any possibility 
to do proper date calculations, but another would be 
overkill ...



[2004-08-29 19:01:48] [EMAIL PROTECTED]

This change would break backwards compatibility. 



[2004-08-29 00:50:56] info at peter-thomassen dot de

Description:

If an invalid time is specified, strtotime() returns -1. 
 
Because -1 is ambiguous (it could also mean 1969-12-31 
23:59:59 UTC), I request to return (bool)false on failure. 
 
BTW: 
http://www.gnu.org/software/tar/manual/html_chapter/tar_7.html#SEC117 
which is mentioned in the docs allows a number preceded by 
an '@' for the time argument to represent seconds since 
the epoch. This results in an error -- shall I report 
another bug for that? 
 
Thanks! 

Reproduce code:
---
?php
var_dump(strtotime('invalid'));
?

Expected result:

bool(false) 

Actual result:
--
int(-1) 





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


#29888 [Opn-Fbk]: Compile Failure due to mbstring error: redefinition of `struct re_registers'

2004-08-30 Thread derick
 ID:   29888
 Updated by:   [EMAIL PROTECTED]
 Reported By:  alietss at yahoo dot com
-Status:   Open
+Status:   Feedback
 Bug Type: Compile Failure
 Operating System: Fedora Core 2
 PHP Version:  5.0.1
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php5-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.0-win32-latest.zip


Previous Comments:


[2004-08-30 06:33:48] alietss at yahoo dot com

Description:

Hi php team, I'm trying to build rpms of php 5.0.1 on a Fedora Core 2
system, with httpd-2.0.50, but the compile process is failing to a
error related to mbstring here my configure line and the error...

%configure \
--cache-file=../config.cache \
--with-config-file-path=%{_sysconfdir} \
--with-config-file-scan-dir=%{_sysconfdir}/php.d \
--enable-force-cgi-redirect \
--disable-debug \
--enable-pic \
--disable-rpath \
--enable-inline-optimization \
--with-bz2 \
--with-db4=%{_prefix} \
--with-curl \
--with-exec-dir=%{_bindir} \
--with-freetype-dir=%{_prefix} \
--with-png-dir=%{_prefix} \
--with-gd \
--enable-gd-native-ttf \
--without-gdbm \
--with-gettext \
--with-ncurses \
--with-gmp \
--with-iconv \
--with-jpeg-dir=%{_prefix} \
--with-openssl \
--with-png \
--with-pspell \
--with-regex=system \
--with-xml \
--with-expat-dir=%{_prefix} \
--with-dom=shared,%{_prefix} \
--with-dom-xslt=%{_prefix} --with-dom-exslt=%{_prefix} \
--with-xmlrpc=shared \
--with-pcre-regex=%{_prefix} \
--with-zlib \
--with-layout=GNU \
--enable-bcmath \
--enable-exif \
--enable-ftp \
--enable-magic-quotes \
--enable-safe-mode \
--enable-sockets \
--enable-sysvsem \
--enable-sysvshm \
--enable-track-vars \
--enable-trans-sid \
--enable-yp \
--enable-wddx \
--with-pear=/usr/share/pear \
--with-imap=shared --with-imap-ssl \
--with-kerberos \
--with-ldap=shared \
--with-mysql=shared,%{_prefix} \
%{?_with_oci8:--with-oci8=shared} \
%{?_with_mssql:--with-mssql=shared} \
%{?_with_mhash:--with-mhash=shared} \
--with-pgsql=shared \
--with-snmp=shared,%{_prefix} \
--with-snmp=shared \
--enable-ucd-snmp-hack \
--with-unixODBC=shared,%{_prefix} \
--enable-memory-limit \
--enable-bcmath \
--enable-shmop \
--enable-calendar \
--enable-dbx \
--enable-dio \
--enable-mcal \
--enable-mbstring=shared --enable-mbstr-enc-trans \
--enable-mbregex \
$*

make %{?_smp_mflags}
}

the error...

In file included from
/usr/src/redhat/BUILD/php-5.0.1/ext/mbstring/php_mbregex.h:28,
 from
/usr/src/redhat/BUILD/php-5.0.1/ext/mbstring/mbstring.h:77,
 from
/usr/src/redhat/BUILD/php-5.0.1/ext/standard/html.c:52:
/usr/src/redhat/BUILD/php-5.0.1/ext/mbstring/oniguruma/oniguruma.h:573:
error: redefinition of `struct re_registers'
make: *** [ext/standard/html.lo] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.73791 (%build)
 
 
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.73791 (%build)


Expected result:

php builds






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


#29831 [Asn-Csd]: gettext missing from windows build

2004-08-30 Thread edink
 ID:   29831
 Updated by:   [EMAIL PROTECTED]
 Reported By:  tedf at ndrw dot co dot uk
-Status:   Assigned
+Status:   Closed
 Bug Type: Gettext related
 Operating System: Windows NT
 PHP Version:  4.3.8
 Assigned To:  edink
 New Comment:

You can use 4.3.9RC1 until 4.3.9 final is released.


Previous Comments:


[2004-08-25 09:58:57] tedf at ndrw dot co dot uk

Description:

It seems that this function requires the gettext module, I assume this
is php-gettext.dll this is not shipped with 4.3.8. My test code work OK
on Linux fails on Windows. Any suggestions? I am using 4.3.8 becasue it
is the same version as My ISP is using.

There is fix in bug report #18693 but the download link is bad

Reproduce code:
---
?php
// Set language to German
setlocale(LC_ALL, 'de_DE');

// Specify location of translation tables
bindtextdomain(myPHPApp, ./locale);

// Choose domain
textdomain(myPHPApp);

// Translation is looking for in ./locale/de_DE/LC_MESSAGES/myPHPApp.mo
now

// Print a test message
echo gettext(Welcome to My PHP Application);

// Or use the alias _() for gettext()
echo _(Have a nice day);
? 

Expected result:

Dsiplay some text

Actual result:
--
Fatal error: Call to undefined function: bindtextdomain() in
F:\Inetpub\wwwroot\test\bind.php on line 6





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


#29889 [Opn-Bgs]: session and gzencode

2004-08-30 Thread derick
 ID:   29889
 Updated by:   [EMAIL PROTECTED]
 Reported By:  abyss at gmx dot net
-Status:   Open
+Status:   Bogus
 Bug Type: Session related
 Operating System: Linux
 PHP Version:  4.3.7
 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.

THis is not a suppor forum, and it was reported twice already. You
should know better.


Previous Comments:


[2004-08-30 08:15:11] abyss at gmx dot net

Description:

sending gzcompressed output to the browser doesn't get the session-id
added

I know that is because gzencode returns a compressed binary string
which php can not search for urls to which the session-id has to be
added

Why does gzencode not invoke the url-rewriting before compressing the
input data?

By the way: I know this question being asked two times (#29584 and
#29752) already but you guys declared both questions as bogus and don't
seem to react to postings made to bogus bug reports so please don't
tell me that this topic has been mentioned already since there is
neither a solution nor an explanation mentioned






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


#29882 [Fbk-Csd]: isset crashes on arrays

2004-08-30 Thread derick
 ID:   29882
 Updated by:   [EMAIL PROTECTED]
 Reported By:  tomas_matousek at hotmail dot com
-Status:   Feedback
+Status:   Closed
 Bug Type: Reproducible crash
 Operating System: *
 PHP Version:  4.3.8, 5.0.1
 Assigned To:  helly
 New Comment:

Sorry, wrong button.


Previous Comments:


[2004-08-30 08:16:42] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php

Once you have generated a backtrace, please submit it to this bug
report and change the status back to Open. Thank you for helping
us make PHP better.



[2004-08-29 18:57:33] [EMAIL PROTECTED]

Correct versions. 4.3.9 and 5.0.2 will be correct.



[2004-08-29 18:56:39] [EMAIL PROTECTED]

This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.



[2004-08-29 15:42:57] [EMAIL PROTECTED]

Fixed in 5, 4.3 still returns false.



[2004-08-29 15:27:28] [EMAIL PROTECTED]

4.3.8 returns false which is wrong, too.



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

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


#29890 [NEW]: set_error_handler race

2004-08-30 Thread maurice at alletha dot nl
From: maurice at alletha dot nl
Operating system: Windows/Linux
PHP version:  Irrelevant
PHP Bug Type: Unknown/Other Function
Bug description:  set_error_handler race

Description:

When creating a error function which has a parameter with an reference,
php will create an endless loop in calling itself (i think). 
The proces keeps running and will not stop.
You can blog up a windows machine running under iis/cgi because it doesn't
react on set_time_limit().
I've seen this problem in php 4.x and 5.x under windows and in linux on a
dual system. Linux with a single cpu seemed not to have this problem (?)
(I'm using an additional parameter to my error function because of custom
calling of the function)

Reproduce code:
---
?

function customErrorHandler($fErrNo,$fErrStr,$fErrFile,$fErrLine,$fClass)
{

echo error :.$fErrStr;

}



set_time_limit(5);

error_reporting(E_ALL);

set_error_handler(customErrorHandler);



define(TEST,2);

//should return a notice that the constant is already defined

define(TEST,3);

?



Expected result:

There should be a notice about the redefined TEST define

Actual result:
--
An endless loop.

-- 
Edit bug report at http://bugs.php.net/?id=29890edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=29890r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=29890r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=29890r=trysnapshot51
Fixed in CVS:http://bugs.php.net/fix.php?id=29890r=fixedcvs
Fixed in release:http://bugs.php.net/fix.php?id=29890r=alreadyfixed
Need backtrace:  http://bugs.php.net/fix.php?id=29890r=needtrace
Need Reproduce Script:   http://bugs.php.net/fix.php?id=29890r=needscript
Try newer version:   http://bugs.php.net/fix.php?id=29890r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=29890r=support
Expected behavior:   http://bugs.php.net/fix.php?id=29890r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=29890r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=29890r=submittedtwice
register_globals:http://bugs.php.net/fix.php?id=29890r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=29890r=php3
Daylight Savings:http://bugs.php.net/fix.php?id=29890r=dst
IIS Stability:   http://bugs.php.net/fix.php?id=29890r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=29890r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=29890r=float


#29891 [NEW]: PHP attempts to load all extensions via relative path

2004-08-30 Thread jtyocum at publicmx dot com
From: jtyocum at publicmx dot com
Operating system: RH Linux 9.0/Virtuozzo 2.6
PHP version:  4.3.9RC1
PHP Bug Type: Dynamic loading
Bug description:  PHP attempts to load all extensions via relative path

Description:

When running PHP via commandline, it'll complain the paths for the modules
are invalid. It appears to be trying to load the modules via a relative
path, e.g. prepending ./ to the path. However, the zend_extension seems to
be fine, as it loads the module.

snip php.ini

;Enable MySQL
extension=/usr/lib/extensions/no-debug-non-zts-20020429/mysql.so

;Enable SNMP
extension=/usr/lib/extensions/no-debug-non-zts-20020429/snmp.so

;Turck MMCache
zend_extension=/usr/lib/extensions/no-debug-non-zts-20020429/mmcache.so

/snip php.ini


Expected result:

This what I would expect to get from PHP. In fact, if I am at the root of
the file system /, it works fine.

[EMAIL PROTECTED] /]# php -v
PHP 4.3.9RC1 (cli) (built: Aug 28 2004 11:05:56)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
with Turck MMCache v2.4.6, Copyright (c) 2002-2003 TurckSoft, St.
Petersburg, by Dmitry Stogov


Actual result:
--
In this case, i'm in /usr and PHP generates the error. However, as you can
see the zend_extension Turck MMCache doesn't have this problem.

[EMAIL PROTECTED] usr]# php -v
PHP Warning:  Unknown(): Unable to load dynamic library
'.//usr/lib/extensions/no-debug-non-zts-20020429/mysql.so' -
.//usr/lib/extensions/no-debug-non-zts-20020429/mysql.so: cannot open
shared object file: No such file or directory in Unknown on line 0
PHP Warning:  Unknown(): Unable to load dynamic library
'.//usr/lib/extensions/no-debug-non-zts-20020429/snmp.so' -
.//usr/lib/extensions/no-debug-non-zts-20020429/snmp.so: cannot open
shared object file: No such file or directory in Unknown on line 0
PHP 4.3.9RC1 (cli) (built: Aug 28 2004 11:05:56)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
with Turck MMCache v2.4.6, Copyright (c) 2002-2003 TurckSoft, St.
Petersburg, by Dmitry Stogov


-- 
Edit bug report at http://bugs.php.net/?id=29891edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=29891r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=29891r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=29891r=trysnapshot51
Fixed in CVS:http://bugs.php.net/fix.php?id=29891r=fixedcvs
Fixed in release:http://bugs.php.net/fix.php?id=29891r=alreadyfixed
Need backtrace:  http://bugs.php.net/fix.php?id=29891r=needtrace
Need Reproduce Script:   http://bugs.php.net/fix.php?id=29891r=needscript
Try newer version:   http://bugs.php.net/fix.php?id=29891r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=29891r=support
Expected behavior:   http://bugs.php.net/fix.php?id=29891r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=29891r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=29891r=submittedtwice
register_globals:http://bugs.php.net/fix.php?id=29891r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=29891r=php3
Daylight Savings:http://bugs.php.net/fix.php?id=29891r=dst
IIS Stability:   http://bugs.php.net/fix.php?id=29891r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=29891r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=29891r=float


#12038 [Com]: problem with closing database handles

2004-08-30 Thread dennis at benade dot co dot za
 ID:   12038
 Comment by:   dennis at benade dot co dot za
 Reported By:  kirill at mns dot ru
 Status:   Bogus
 Bug Type: InterBase related
 Operating System: RedHat 7.1
 PHP Version:  4.0.6
 New Comment:

I had exactly the same problem and got it to work by using:
ibase_free_result($res);

before:
ibase_close($dbhandle);

This solved the problem for me.


Previous Comments:


[2002-07-01 07:15:43] [EMAIL PROTECTED]

Better try the CVS snapshots as there have been few
fixes in CVS for interbase..




[2002-07-01 06:22:14] [EMAIL PROTECTED]

Thank you for taking the time to report a problem with PHP.
Unfortunately your version of PHP is too old -- the problem
might already be fixed. Please download a new PHP
version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to Open.
Again, thank you for your continued support of PHP.





[2001-07-11 04:26:56] kirill at mns dot ru

Here is warning for sample code:
Warning: InterBase: invalid statement handle in
/var/www/users/kirill/bug.php on line 2



[2001-07-11 04:25:14] kirill at mns dot ru

PHP reports warning about invalid statement handle after I
use ibase_close() to close opened with ipbase_connect()
database connection. If I comment ibase_close that removes
this warning (all this code must be in function to get
warning,in plain use - there are no warnings in any case). I
think that it's a bug in cleanup code at shutdown.

?
first_connect();
 
function first_connect(){
$dbh =
ibase_connect(localhost:/usr/interbase/data/db.gdb,
login,password, none, 100, 3, role); 
if (!$dbh)
{
echo An error occured while connecting!!!\n;
exit;
}
else
{
$username = KIRILL;
$qry = SELECT * FROM GETUSERROLE('$username');
$sth = ibase_query ($dbh, $qry);
while ($row = ibase_fetch_object ($sth)){}
ibase_close($dbh);
}
}
 
?

 './configure' '--prefix=/usr'
'--with-config-file-path=/etc' '--disable-debug'
'--enable-pic' '--enable-shared'
'--enable-inline-optimization' '--with-apxs=/usr/sbin/apxs'
'--with-exec-dir=/usr/bin' '--with-regex=system'
'--with-gettext' '--with-gd' '--with-jpeg-dir=/usr'
'--with-png' '--with-zlib' '--with-db2' '--with-gdbm'
'--enable-debugger' '--enable-magic-quotes'
'--enable-safe-mode' '--enable-sockets' '--enable-sysvsem'
'--enable-sysvshm' '--enable-track-vars' '--enable-yp'
'--enable-ftp' '--enable-wddx' '--without-mysql'
'--without-oracle' '--without-oci8' '--with-xml'
'--with-mod_charset' '--without-pgsql' '--without-interbase'
'--without-recode' '--without-mhash' '--without-sablot'





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


#29891 [Opn-Bgs]: PHP attempts to load all extensions via relative path

2004-08-30 Thread edink
 ID:   29891
 Updated by:   [EMAIL PROTECTED]
 Reported By:  jtyocum at publicmx dot com
-Status:   Open
+Status:   Bogus
 Bug Type: Dynamic loading
 Operating System: RH Linux 9.0/Virtuozzo 2.6
 PHP Version:  4.3.9RC1
 New Comment:

You cannot specify path in extension= line in php.ini. Use
extension_dir and try reading the instructions the next time.


Previous Comments:


[2004-08-30 09:32:07] jtyocum at publicmx dot com

Description:

When running PHP via commandline, it'll complain the paths for the
modules are invalid. It appears to be trying to load the modules via a
relative path, e.g. prepending ./ to the path. However, the
zend_extension seems to be fine, as it loads the module.

snip php.ini

;Enable MySQL
extension=/usr/lib/extensions/no-debug-non-zts-20020429/mysql.so

;Enable SNMP
extension=/usr/lib/extensions/no-debug-non-zts-20020429/snmp.so

;Turck MMCache
zend_extension=/usr/lib/extensions/no-debug-non-zts-20020429/mmcache.so

/snip php.ini


Expected result:

This what I would expect to get from PHP. In fact, if I am at the root
of the file system /, it works fine.

[EMAIL PROTECTED] /]# php -v
PHP 4.3.9RC1 (cli) (built: Aug 28 2004 11:05:56)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
with Turck MMCache v2.4.6, Copyright (c) 2002-2003 TurckSoft, St.
Petersburg, by Dmitry Stogov


Actual result:
--
In this case, i'm in /usr and PHP generates the error. However, as you
can see the zend_extension Turck MMCache doesn't have this problem.

[EMAIL PROTECTED] usr]# php -v
PHP Warning:  Unknown(): Unable to load dynamic library
'.//usr/lib/extensions/no-debug-non-zts-20020429/mysql.so' -
.//usr/lib/extensions/no-debug-non-zts-20020429/mysql.so: cannot open
shared object file: No such file or directory in Unknown on line 0
PHP Warning:  Unknown(): Unable to load dynamic library
'.//usr/lib/extensions/no-debug-non-zts-20020429/snmp.so' -
.//usr/lib/extensions/no-debug-non-zts-20020429/snmp.so: cannot open
shared object file: No such file or directory in Unknown on line 0
PHP 4.3.9RC1 (cli) (built: Aug 28 2004 11:05:56)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
with Turck MMCache v2.4.6, Copyright (c) 2002-2003 TurckSoft, St.
Petersburg, by Dmitry Stogov






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


#29608 [Com]: OCi reports OCIStmtExecute: ORA-24324: service handle not initialized

2004-08-30 Thread symedeot at yahoo dot fr
 ID:   29608
 Comment by:   symedeot at yahoo dot fr
 Reported By:  tomek at matrox dot pl
 Status:   No Feedback
 Bug Type: OCI8 related
 Operating System: W2k, Red Hat
 PHP Version:  5.0.0
 New Comment:

I have exactly the same problem ! If works sometimes, sometime not. If
you ask the same page again, it should work or not... 


Warning: oci_execute() [function.oci-execute]: OCIStmtExecute:
ORA-24324: descripteur de service non initialisé in ...
Warning: ocifetch() [function.ocifetch]: OCIFetch: ORA-24338:
descripteur d'instruction non exécuté in...

Just try to access Oracle like this : 

$conn = OCILogon(GPE, gpe,PLSE);
$stmt = OCIParse($conn,$myrequest);
OCI_Execute($stmt,OCI_DEFAULT);
while ( OCIFetch($stmt) )
{
}
OCIFreeStatement($stmt);
OCILogoff($conn);

Oracle 9.i under RedHat 9, php 5.00 and 5.01(same), any Apache 2
version.

Everything fine on same server when using PHP 4.3x

It is clearly a bug ! And we are quite a lot to report it !


Previous Comments:


[2004-08-19 01:00:08] 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.



[2004-08-12 11:02:53] izhekov at ppartner dot com

I've tried to reproduce this problem.
I've installed 2 apache services on different ports 80 and 81 - first
of them using PHP5 and the other using PHP4 then I restarted the
system.
When first I access my scripts using PHP5 on port 80 everythings goes
fine.
Running scripts afterthat with PHP4 on port 81 also worked fine.
When I tried to access again scripts on apache service running on 80
port, errors occured again:

-
Warning: ociexecute() [function.ociexecute]: OCIStmtExecute: ORA-24324:
service handle not initialized in
C:\SERVER\HTTPD\htdocs\service\db_modul.php on line 21

Warning: ocifetch() [function.ocifetch]: OCIFetch: ORA-24338: statement
handle not executed in C:\SERVER\HTTPD\htdocs\service\db_modul.php on
line 27
--



[2004-08-12 10:09:03] izhekov at ppartner dot com

I migrate from PHP 4 to PHP 5 on my Windows 2003 server. Everything
goes fine, but when I try to use an PHP application that uses Oracle
database I receive the error mentioned above. I restarted the Oracle
server but that not helped me. Other applications and PHP 4 works fine
with my Oracle server, but PHP 5 did not.

Last night the power supply goes down unexpectally and both Oracle
server and web server was restarted. Now everything seems to be fine,
but I'm sure the problem exists and many people will have the same
problems also.

Searching in Google for: 
http://www.google.com/search?hl=bgie=UTF-8q=%22service+handle+not+initialized+in%22+%2Bwarninglr=
shows many sites with the same problem.



[2004-08-11 17:43:31] [EMAIL PROTECTED]

I think the OCI8 functions did not work at all in PHP 5.
you're wrong.
OCI8 functions work for most of the people.
Perhaps you're misusing them or having some problems with Oracle
client/Oracle server.
I still need more info to find out what happens and/or to reproduce
your situation. Feel free to provide this info and open the bug report
again.



[2004-08-11 16:34:48] izhekov at ppartner dot com

I have the same problem. If you search in google for this error, you'll
find some sites that have the same problem. I'm using Windows 2003
Server. I think this bug is fatal for many people. I think the OCI8
functions did not work at all in PHP 5.



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

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


#29892 [NEW]: strtotime('now'); doesn't work

2004-08-30 Thread alexander dot over at koeln dot de
From: alexander dot over at koeln dot de
Operating system: Suse9.1
PHP version:  5.0.1
PHP Bug Type: Unknown/Other Function
Bug description:  strtotime('now'); doesn't work

Description:

the result from strtotime(now); gives me only the timestamp from the
beginning of the actual day.

Reproduce code:
---
?
echo strtotime(now);
?

Expected result:

1093854300

Actual result:
--
1093816800 - 30.08.2004 00:00:00

-- 
Edit bug report at http://bugs.php.net/?id=29892edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=29892r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=29892r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=29892r=trysnapshot51
Fixed in CVS:http://bugs.php.net/fix.php?id=29892r=fixedcvs
Fixed in release:http://bugs.php.net/fix.php?id=29892r=alreadyfixed
Need backtrace:  http://bugs.php.net/fix.php?id=29892r=needtrace
Need Reproduce Script:   http://bugs.php.net/fix.php?id=29892r=needscript
Try newer version:   http://bugs.php.net/fix.php?id=29892r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=29892r=support
Expected behavior:   http://bugs.php.net/fix.php?id=29892r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=29892r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=29892r=submittedtwice
register_globals:http://bugs.php.net/fix.php?id=29892r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=29892r=php3
Daylight Savings:http://bugs.php.net/fix.php?id=29892r=dst
IIS Stability:   http://bugs.php.net/fix.php?id=29892r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=29892r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=29892r=float


#29903 [NEW]: sapi_apache2.c is not compatible

2004-08-30 Thread jakawan at jakawan dot com
From: jakawan at jakawan dot com
Operating system: Redhat 9
PHP version:  5.0.1
PHP Bug Type: Apache2 related
Bug description:  sapi_apache2.c is not compatible

Description:

Can somebody help please?
I'm really desperate now.
I have read the install.txt, support forum about 50 times. I recompiled
back and forth about 10 times. Download the latest PHP from both PHP.net
and http://snaps.php.net.

I still get the same error below:

httpd: module
/usr/src/build/274778-i386/BUILD/php-4.2.2/sapi/apache2filter/sapi_apache2.c
is not compatible with this version of Apache (found 20020628, need
20020903).
Please contact the vendor for the correct version.

Here is my Apache and PHP version:

[EMAIL PROTECTED] etc]# apachectl -v
Server version: Apache/2.0.50
Server built: Aug 24 2004 16:21:47

[EMAIL PROTECTED] etc]# php -v
PHP 5.0.2-dev (cli) (built: Aug 24 2004 10:40:57)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.2-dev, Copyright (c) 1998-2004 Zend Technologies

When I compile, I only use the basic switches:
./configure --prefix=/usr/local/apache2
then do
make  make install

for PHP, I follow the INSTALL document:
./configure --with-apxs2=/usr/local/apache2/bin/apxs
then 
make  make install...

-
Here's what I have in the httpd.conf (partially)

LoadModule php5_module modules/libphp5.so
...

VirtualHost \
xxx.xxx.xxx.xxx:80 \

DocumentRoot /home/httpd/vhosts/webmail
ServerName webmail
ServerAlias webmail.*
UseCanonicalName Off
Directory /home/httpd/vhosts/webmail/horde
IfModule sapi_apache2.c
php_admin_flag engine on
php_admin_flag magic_quotes_gpc off
php_admin_value safe_mode off
php_admin_value open_basedir /home/httpd/vhosts/webmail:/etc/psa:/tmp
php_admin_value include_path
/home/httpd/vhosts/webmail/horde/lib:/home/httpd/vhosts/webmail/horde/pe
ar:.
/IfModule
/Directory
/VirtualHost

Everything went well during the compilation, but I cannot run apache
anymore.

I searched in http://www.php.net/support.php and other php forums, I can't
find anything related to this issue. I have also download the latest from
http://snaps.php.net and recompile - still not working.

I know that there is something hanging on my server that I have missed.


Any great advice would be appriciated. I'm really desperate now. My server
has been down for almost a week already.

Thanks in advance.

Jak


-- 
Edit bug report at http://bugs.php.net/?id=29903edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=29903r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=29903r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=29903r=trysnapshot51
Fixed in CVS:http://bugs.php.net/fix.php?id=29903r=fixedcvs
Fixed in release:http://bugs.php.net/fix.php?id=29903r=alreadyfixed
Need backtrace:  http://bugs.php.net/fix.php?id=29903r=needtrace
Need Reproduce Script:   http://bugs.php.net/fix.php?id=29903r=needscript
Try newer version:   http://bugs.php.net/fix.php?id=29903r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=29903r=support
Expected behavior:   http://bugs.php.net/fix.php?id=29903r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=29903r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=29903r=submittedtwice
register_globals:http://bugs.php.net/fix.php?id=29903r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=29903r=php3
Daylight Savings:http://bugs.php.net/fix.php?id=29903r=dst
IIS Stability:   http://bugs.php.net/fix.php?id=29903r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=29903r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=29903r=float


#26286 [Com]: Parent: child process exited with status 3221225477 -- Restarting

2004-08-30 Thread ajvdhek at dds dot nl
 ID:   26286
 Comment by:   ajvdhek at dds dot nl
 Reported By:  igg10 at alu dot ua dot es
 Status:   No Feedback
 Bug Type: Apache2 related
 Operating System: Windows 2000
 PHP Version:  4.3.4
 New Comment:

Exact same bug for me... Win XP pro + XAMMP 1.4.6 (Apache/2.0.50
(Win32) mod_ssl/2.0.50 OpenSSL/0.9.7c PHP/5.0.1 MySQL 4.0.20a-nt)


Previous Comments:


[2004-07-05 16:23:19] adam dot phillips at orange dot net

Continuing from my post above, I tried replacing the switch statement
with if () {} elseif ... and still got the error so it appears it is
not the switch statement



[2004-07-05 16:01:24] adam dot phillips at orange dot net

I experienced the same problem on 2 systems - Win2k with Apache
2.0.48/PHP 4.3.4 and Red Hat Linux with Apache 1.3.29 and PHP 4.3.5. 
So far as i can tell, the cause of the error is a switch statement.  I
have a function withian a class module declared as follows:

function getsales($scope=, $returnasobjects=false) {
}

Inside this function is a switch statment based on $scope.  

There are four cases.  The first three perform different functions
which all return arrays and the fourth case (which is the default)
performs all 3 of the previous cases and merges the results into a
single array (I won't write out all the code since it all appears to
work outside of this switch statement.  Please e-mail if needed).  The
error occurs in the fourth case but originally the code was identical
to that of the first 3 'stuck together'.  I have since tried a number
of alternatives none of which work.  Most intriguing was when instead
of using default: for the fourth case i renamed it case all.  Then it
worked when called from another page but not when called from within the
same class module.  I then renamed it everything and the opposite was
true.  I then tried changed my function declaration to 

function getsales($scope=all, $returnasobjects=false) {}

and it wouldn't work in either case.  Similarly if i replaced all
with everything.  The final bit of strangeness was that i tried using
the following code in the default case

return array_merge($this-getsales(case1), $this-getsales(case2),
$this-getsales(case3))

which wouldn't work even tho each of the cases worked individually.
Each time i get the same error in my Apache Error Log

Parent: child process exited with status 3221225725 -- Restarting



[2004-06-28 16:54:47] joker at localfoo dot info

The snippet posted by ''hakk at email dot it'' reproduces the
...Restarting... problem with the following packages also under
WinXP/SP1 
(not tested under Win2000)

===HOST:
P3-1GHz/256MB Notebook
Windows XP/SP1 
Apache 2.0.49 
PHP 4.3.7 (php4apache2.dll)
with/without ZendOptimizer 2.5.1
===TESTED WITH: 
PHP 4-win32-STABLE-200406272030
(PHP 4.3.8-dev as module)
PHP 5-win32-200406271830
(PHP5.0.0-dev as module)


===SNIP OD SYSLOG:
Ereignistyp:Informationen
Ereignisquelle: Application Popup
Ereigniskategorie:  Keine
Ereigniskennung:26
Datum:  28.06.2004
Zeit:   16:36:16
Benutzer:   Nicht zutreffend
Computer:   LT04
Beschreibung:
Anwendungspopup: apache.exe - Fehler in Anwendung: Die Anweisung in
0x verweist auf Speicher in 0x. Der Vorgang
read konnte nicht auf dem Speicher durchgeführt werden.
===END OF SNIP

This also occurs on some webapplications (e.g. mamboserver-cms,
mylansite). They RIP sometimes under several circumstances preferred
running with php as module. They work almost fine with PHP in CGI mode.
I also had a user reporting Error 128 instead of 3221225477 


-
[Referring: http://bugs.php.net/bug.php?id=26771]

The author of Bug 26771 has similar problems (...restarting...)
executing the 'tick'-script (see the mentioned BUG report and
http://nl.php.net/manual/en/control-structures.declare.php) crashes my
constellation without ANY log (Apache2 error) entry. It doesn't even
make the ...Restarting... log entry in Apache2 but this occurs on
several applications as well. So the 'tick'-script might be an
appropriate script for reproducing this error...

My host closed with the following syslog message when executing the
'tick':

===SNIP OF SYSLOG:
Ereignistyp:Informationen
Ereignisquelle: Application Popup
Ereigniskategorie:  Keine
Ereigniskennung:26
Datum:  28.06.2004
Zeit:   14:26:17
Benutzer:   Nicht zutreffend
Computer:   LT04
Beschreibung:
Anwendungspopup: apache.exe - Fehler in Anwendung: Die Anweisung in
0x100c0afd verweist auf Speicher in 0x. Der Vorgang
written konnte nicht auf dem Speicher durchgeführt werden.
===END OF SNIP

Thx
Chris



[2004-06-15 15:37:05] 

#28595 [Com]: sapi/apache/sapi_apache2.c is not compatible with Apach 2.0.49

2004-08-30 Thread jakawan at jakawan dot com
 ID:   28595
 Comment by:   jakawan at jakawan dot com
 Reported By:  btnguyen2k at yahoo dot com
 Status:   Bogus
 Bug Type: Apache2 related
 Operating System: Linux Redhat 8.0
 PHP Version:  4.3.6
 New Comment:

So what is the solution to this problem. I know something is hanging on
the server, but what exactly I need to look for?
Please help.


Previous Comments:


[2004-06-01 08:14:39] [EMAIL PROTECTED]

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.

You probably have some old headers on your system somewhere which
interfere with the compilation of PHP against a newer Apache. Please
contact the appropriate support channels as this is not a bug.



[2004-06-01 00:55:20] btnguyen2k at yahoo dot com

Description:

Today I installed a new server (clean install) with Apache 2.0.49 and
PHP 4.3.6.
Everythings was fine from ./configure to make, make test, and make
install.
However, when restarting Apache, I got the following error message:
Starting httpd: httpd: module
/root/download/php-4.3.6/sapi/apache2filter/sapi_apache2.c is not
compatible with this version of Apache.
Please contact the vendor for the correct version.

On my old servers (Apache 2.0.47/48 with PHP 4.3.4) there was no such
an error message.

This is the configuration command I used for PHP:
./configure --enable-force-cgi-redirect --disable-debug --with-gd
--with-ttf --with-zlib --enable-memory-limit --enable-mbstring
--with-mysql --enable-safe-mode --enable-pic --with-png --with-jpeg

Note: I do find some previous bug reports regarding to this issue, but
with different versions of Apache and PHP. The solution in all of those
bug reports was download the CVS version of PHP. However it's not the
choice for me now because I need a stable version of PHP that works
with my current Apache.






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


#29613 [Fbk-NoF]: construct Class error when used 2 parameters or more

2004-08-30 Thread php-bugs
 ID:   29613
 Updated by:   [EMAIL PROTECTED]
 Reported By:  onebird at 21cn dot com
-Status:   Feedback
+Status:   No Feedback
 Bug Type: Zend Engine 2 problem
 Operating System: win2k
 PHP Version:  5.0.0
 New Comment:

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


Previous Comments:


[2004-08-23 08:09:10] [EMAIL PROTECTED]

Can't reproduce it with your code. Works fine.



[2004-08-11 17:00:01] onebird at 21cn dot com

if I used an object to $DB , like :
$a = new system_login ($Global_DB_Connection, Form);
I found the Form can't transfer to $mode also !



[2004-08-11 16:49:57] onebird at 21cn dot com

More for code :

// file base.inc
?php
class Base
{ var $test;
  var $info;
 function test()
  { //...anything..
  }
}
?
//this is other file
?php
require_once(base.inc);
class system_login extends Base
{
   private $db_conn; 
   private $user_table = 'user';
  function system_login( $DB = , $mode = http )
  {
  global $Global_DB_Connection;
   if (empty($DB)) 
$this-db_conn = $Global_DB_Connection;
   else
$this-db_conn = $DB;
   if ($mode == 'http')
{
if (!isset($_SERVER['PHP_AUTH_USER'])) {
   header('WWW-Authenticate: Basic realm=My Realm');
   header('HTTP/1.0 401 Unauthorized');
   echo 'please login at first !';
   exit;
  } else {
   Base::sys_login($_SERVER['PHP_AUTH_USER'],$_SERVER['PHP_AUTH_PW']);
   // ...anything..
  }
  }
 else
{
//... something for Form submit to login ...
}  
}
}

$a = new system_login (,Form);
?

if changed the :
function system_login( $DB = , $mode = http )
to
function system_login( $DB, $mode )
used the
$a = new system_login (,Form);
or
$a = new system_login (,);

The PHP5 told me all the parameters missing !!



[2004-08-11 13:41:27] [EMAIL PROTECTED]

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

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

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



[2004-08-11 13:33:09] onebird at 21cn dot com

Description:

construct Class error when used 2 parameters or more ;

The first parameter can't used the Default value !!


Reproduce code:
---
class Base
{.}
class system_login extends Base
{
   var $db_conn; 
   var $user_table = 'user';
  function system_login( $DB = , $mode = http )
  {.}
}
$a = new system_login (,Form);

Expected result:

I found the $mode == http always ;
but it will be $mode == Form when construct this class;

if I used :$a = new system_login (ss,Form);
the $mode == Form is OK!

The first parameter can't used the Default value !!

this code can used under PHP4 , it OK always !






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


#29665 [Com]: PHP Fails to compile when soap is enabled

2004-08-30 Thread clewis at myfonts dot com
 ID:   29665
 Comment by:   clewis at myfonts dot com
 Reported By:  moontumbo at hotmail dot com
 Status:   No Feedback
 Bug Type: Compile Failure
 Operating System: Red Hat Enterprise Linux WS 3.0
 PHP Version:  5.0.1
 New Comment:

I too saw this problem on RedHat Enterprise 3 using 
libxml2 2.5.10.  Upgrading to 2.6.12 solved the problem.


Previous Comments:


[2004-08-28 16:52:52] michiel at dotgeek dot org

same problem, slack 9.0 
 
$ xml2-config --version 
2.6.12



[2004-08-25 01:00:11] 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.



[2004-08-17 23:17:13] ibrash at gaernin dot aswwc dot net

Issue reproduced on Slackware 9.1 with libxml2 2.5.11.



[2004-08-17 08:06:37] [EMAIL PROTECTED]

Which libxml2 did you have installed before?



[2004-08-16 21:51:08] ppritzl at hotmail dot com

Upgrading the libxml2 to 2.6.11-1 solved this issue for me on both RH9
and RH Enterprise



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

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


#29888 [Fbk-Opn]: Compile Failure due to mbstring error: redefinition of `struct re_registers'

2004-08-30 Thread alietss at yahoo dot com
 ID:   29888
 User updated by:  alietss at yahoo dot com
 Reported By:  alietss at yahoo dot com
-Status:   Feedback
+Status:   Open
 Bug Type: Compile Failure
 Operating System: Fedora Core 2
 PHP Version:  5.0.1
 New Comment:

Tested with http://snaps.php.net/php5-STABLE-latest.tar.gz
, but the error is still there, I changed --with-regex=system \, with
--with-regex, and it worked...
Regards


Previous Comments:


[2004-08-30 08:18:53] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.0-win32-latest.zip



[2004-08-30 06:33:48] alietss at yahoo dot com

Description:

Hi php team, I'm trying to build rpms of php 5.0.1 on a Fedora Core 2
system, with httpd-2.0.50, but the compile process is failing to a
error related to mbstring here my configure line and the error...

%configure \
--cache-file=../config.cache \
--with-config-file-path=%{_sysconfdir} \
--with-config-file-scan-dir=%{_sysconfdir}/php.d \
--enable-force-cgi-redirect \
--disable-debug \
--enable-pic \
--disable-rpath \
--enable-inline-optimization \
--with-bz2 \
--with-db4=%{_prefix} \
--with-curl \
--with-exec-dir=%{_bindir} \
--with-freetype-dir=%{_prefix} \
--with-png-dir=%{_prefix} \
--with-gd \
--enable-gd-native-ttf \
--without-gdbm \
--with-gettext \
--with-ncurses \
--with-gmp \
--with-iconv \
--with-jpeg-dir=%{_prefix} \
--with-openssl \
--with-png \
--with-pspell \
--with-regex=system \
--with-xml \
--with-expat-dir=%{_prefix} \
--with-dom=shared,%{_prefix} \
--with-dom-xslt=%{_prefix} --with-dom-exslt=%{_prefix} \
--with-xmlrpc=shared \
--with-pcre-regex=%{_prefix} \
--with-zlib \
--with-layout=GNU \
--enable-bcmath \
--enable-exif \
--enable-ftp \
--enable-magic-quotes \
--enable-safe-mode \
--enable-sockets \
--enable-sysvsem \
--enable-sysvshm \
--enable-track-vars \
--enable-trans-sid \
--enable-yp \
--enable-wddx \
--with-pear=/usr/share/pear \
--with-imap=shared --with-imap-ssl \
--with-kerberos \
--with-ldap=shared \
--with-mysql=shared,%{_prefix} \
%{?_with_oci8:--with-oci8=shared} \
%{?_with_mssql:--with-mssql=shared} \
%{?_with_mhash:--with-mhash=shared} \
--with-pgsql=shared \
--with-snmp=shared,%{_prefix} \
--with-snmp=shared \
--enable-ucd-snmp-hack \
--with-unixODBC=shared,%{_prefix} \
--enable-memory-limit \
--enable-bcmath \
--enable-shmop \
--enable-calendar \
--enable-dbx \
--enable-dio \
--enable-mcal \
--enable-mbstring=shared --enable-mbstr-enc-trans \
--enable-mbregex \
$*

make %{?_smp_mflags}
}

the error...

In file included from
/usr/src/redhat/BUILD/php-5.0.1/ext/mbstring/php_mbregex.h:28,
 from
/usr/src/redhat/BUILD/php-5.0.1/ext/mbstring/mbstring.h:77,
 from
/usr/src/redhat/BUILD/php-5.0.1/ext/standard/html.c:52:
/usr/src/redhat/BUILD/php-5.0.1/ext/mbstring/oniguruma/oniguruma.h:573:
error: redefinition of `struct re_registers'
make: *** [ext/standard/html.lo] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.73791 (%build)
 
 
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.73791 (%build)


Expected result:

php builds






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


#29665 [NoF-Opn]: PHP Fails to compile when soap is enabled

2004-08-30 Thread philip
 ID:   29665
 Updated by:   [EMAIL PROTECTED]
 Reported By:  moontumbo at hotmail dot com
-Status:   No Feedback
+Status:   Open
 Bug Type: Compile Failure
 Operating System: Red Hat Enterprise Linux WS 3.0
 PHP Version:  5.0.1


Previous Comments:


[2004-08-31 01:30:36] clewis at myfonts dot com

I too saw this problem on RedHat Enterprise 3 using 
libxml2 2.5.10.  Upgrading to 2.6.12 solved the problem.



[2004-08-28 16:52:52] michiel at dotgeek dot org

same problem, slack 9.0 
 
$ xml2-config --version 
2.6.12



[2004-08-25 01:00:11] 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.



[2004-08-17 23:17:13] ibrash at gaernin dot aswwc dot net

Issue reproduced on Slackware 9.1 with libxml2 2.5.11.



[2004-08-17 08:06:37] [EMAIL PROTECTED]

Which libxml2 did you have installed before?



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

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


#29441 [Bgs]: After copying a class, changes to new class affect old class.

2004-08-30 Thread php at cyruslesser dot com
 ID:   29441
 User updated by:  php at cyruslesser dot com
 Reported By:  php at cyruslesser dot com
 Status:   Bogus
 Bug Type: Class/Object related
 Operating System: *
 PHP Version:  5.*
 New Comment:

BTW, for anyone else reading this who also had trouble finding the
documention, check this URL which is details the changes in the Zend 2
engine:

http://www.php.net/zend-engine-2.php

Specifically, the solution to my problem was very simple:

$new_object = clone $old_object;

Although I still feel that always forcing passing objects by reference
to functions is a bit silly, I'm willing to live with it for the sake
of the many great improvements to PHP5.

Thanks.

Cyrus


Previous Comments:


[2004-08-03 03:38:32] [EMAIL PROTECTED]

http://zend.com/manual/migration5.oop.php
scroll down to Objects Cloning



[2004-08-03 03:30:50] php at cyruslesser dot com

Sorry, that was supposed to read ARE THERE new functions to aid in the
duplication of objects by value?

Cyrus



[2004-08-03 03:26:24] php at cyruslesser dot com

Yes, why must everyone I ask about this point out the blatantly obvious
when I ask about this?  :)

It's passing classes by reference (or pointer if you prefer the C
analog) not by value.  I get it.  Honestly I do.   I just don't get
why.

Please, is there a way I can quickly copy an object?  Where is
memcpy()?  Why can't I call clone() directly?  Are the new functions to
aid in the duplication of objects by value?  

I'm assuming that they do exist, and that I just don't know about them.
 I have faith in you guys... your language is the easiest and most
intuitive language I have ever seen, and I love it.   

But what I do not understand why you have chosen to do this, or how it
aids the language.

I appreciate that copying a pointer (or reference) to a class is
somewhat quicker than copying the entire object itself, but I don't
really see how duplicating pointers is more useful that duplicating
complete copies of the object.

I just don't think that a small time saving (surely it's just a few
memcpy() calls) is worth the extra time it now takes when you wish to
duplicate an object.  Or the problems this is going to cause with PHP4
software running under PHP5.

In PHP5, if I have an object containing data retrieved from a database,
and I want to copy it, I have to instantiate a new object, and either
repeat all the calls to the database to retrieve the data, or copy
every member variable individually to the new class.

Either way it's slow and tedious.   But I'm very hopeful that there is
a new object copy function that wasn't in the PHP5 what's new
documentation.

I have to say, even C++ will automatically copy the contents of a class
unless you override the assignment operator.

Another irksome factor about this whole thing, is the inconsistency
that this brings to the language.

Previously a string object could be treated identically to a class
object. 

$string1 = a;  
$string2 = $string1;
$string2 = b;

Which of course, will leave $string1 == a.

But if they where class objects, then the behavior suddenly changes,
and $string1 is changed.   

This is going to be very confusing to people who have never learnt a
lower-level OO language before.

Even in C++ (which I would regard by today’s standard, as a pretty hard
language to learn), strings and class objects behave in the same fashion
when assigned, or used as arguments to functions.

While we're on the topic of functions:

In PHP4:

function ($object) {  /* pass by value */
 /* This doesn't change the original object */
 $object-change();
}

function ($object) { /* pass by reference */
 /* This DOES change the original object */
 $object-change();
}


That made sense.  There are two different ways to pass an object, and
you can chose which one you wish to use in the declaration of the
function, using ''.

In PHP5, both of those function have the same effect, they both modify
the original object which is now always passed by reference.

Is this the way it's going to stay?

Cyrus Lesser



[2004-08-02 18:24:11] [EMAIL PROTECTED]

You don't copy a class, you copy an instance.
And since PHP 5.0.0 you no longer copy by value but instead by object
id.



[2004-08-02 14:21:08] php at cyruslesser dot com

Well, in version 4.3.8, it returns

a: 1
b: 2

In version 5.0.0 it returns (without error or notification)

a: 2
b: 2

That may or may not be intentional, but if there's a way to copy an
object instead of a pointer to an object, I can't find it in the
manual.

Cyrus Lesser


#29394 [Opn-Bgs]: Cant delete folder with name 2003

2004-08-30 Thread davey
 ID:   29394
 Updated by:   [EMAIL PROTECTED]
 Reported By:  m at shnee dot com
-Status:   Open
+Status:   Bogus
 Bug Type: Directory function related
 Operating System: winxp pro
 PHP Version:  4.3.7
 New Comment:

Tested in WinXP Home SP2, both functions work fine for me.

- Davey


Previous Comments:


[2004-07-26 21:03:16] m at shnee dot com

Description:

Its funny, when a directory is named 2003, I am unable to rmdir or
rename it.  If I change the folder name (using windows explorer) to
2005, then I can run rmdir and rename with no problem.

The return error is Permission Denied.  But that isnt the issue as I
can create a 2003 folder and 2005 folder at the same time, and I get
the same problem.  I can only edit/delete 2005, and 2003 always gives
permission denied no matter what.

I realize its possible this could be a windows issue.

Just curious don't ya think?

Reproduce code:
---
rmdir(2003);
rename (2003, 2002);

Expected result:

I expect it to delete/rename the directory.

Actual result:
--
Warning: rmdir(2003): Permission denied in C:\Documents and
Settings\Mark\Desktop\www\new_pics\index.php on line 401





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


#29904 [NEW]: php crash ( object creation + autoload )

2004-08-30 Thread segv at sayclub dot com
From: segv at sayclub dot com
Operating system: linux
PHP version:  5.0.1
PHP Bug Type: Reproducible crash
Bug description:  php crash ( object creation + autoload )

Description:

It seems that php crashes when creating object with arguments of
autoloaded class.

Reproduce code:
---
test.inc 
?
  class B {
function func() {
  return true;
}
  }
?

test.php 
?
  function __autoload($className) {
include test.inc;
  }

  class A {
function __construct ($a) { }
  }
  $a = new A(B::func());
  var_dump($a)
?


Actual result:
--
% php test.php
segment fault


-- 
Edit bug report at http://bugs.php.net/?id=29904edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=29904r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=29904r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=29904r=trysnapshot51
Fixed in CVS:http://bugs.php.net/fix.php?id=29904r=fixedcvs
Fixed in release:http://bugs.php.net/fix.php?id=29904r=alreadyfixed
Need backtrace:  http://bugs.php.net/fix.php?id=29904r=needtrace
Need Reproduce Script:   http://bugs.php.net/fix.php?id=29904r=needscript
Try newer version:   http://bugs.php.net/fix.php?id=29904r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=29904r=support
Expected behavior:   http://bugs.php.net/fix.php?id=29904r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=29904r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=29904r=submittedtwice
register_globals:http://bugs.php.net/fix.php?id=29904r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=29904r=php3
Daylight Savings:http://bugs.php.net/fix.php?id=29904r=dst
IIS Stability:   http://bugs.php.net/fix.php?id=29904r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=29904r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=29904r=float


#29905 [NEW]: mysqli prepare() does not work

2004-08-30 Thread lucas at maurobenevides dot com dot br
From: lucas at maurobenevides dot com dot br
Operating system: Windows 2000
PHP version:  5.0.1
PHP Bug Type: MySQL related
Bug description:  mysqli prepare() does not work

Description:

I could not use Prepared Statement in my program. Any query I use within
$mysqli-prepare() returns a null variable. When I print the
$mysqli-error it prints out Unknown command
I am pretty sure it is not the query string, because the same Query I use
with the query() (without prepare) statement and it works fine.

I haven't changed my php.ini, except by uncommenting the line
extension=php_mysql.dll and adding the line: 
extension=php_mysqli.dll

Please, Test it in the Windows 2000
I use Mysql 4.0.2


Reproduce code:
---
$conn = new mysqli(HOST_MYSQL, USER_MYSQL, PASSWD_MYSQL, DBNAME_MYSQL);
if (mysqli_connect_errno()) {
printf(Connect failed: %s\n, mysqli_connect_error());
exit();
}
$consulta = $conn-prepare(SELECT MD5_PASSWORD FROM tb_user WHERE
TXT_LOGIN=? );
if (!$consulta) 
printf($conn-error);
$consulta-bind_param(s, $_POST[password]);
$result = $consulta-fetch();


Expected result:

Unknown command
Fatal error: Call to a member function fetch() on a non-object in C:mydir
on line 17



-- 
Edit bug report at http://bugs.php.net/?id=29905edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=29905r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=29905r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=29905r=trysnapshot51
Fixed in CVS:http://bugs.php.net/fix.php?id=29905r=fixedcvs
Fixed in release:http://bugs.php.net/fix.php?id=29905r=alreadyfixed
Need backtrace:  http://bugs.php.net/fix.php?id=29905r=needtrace
Need Reproduce Script:   http://bugs.php.net/fix.php?id=29905r=needscript
Try newer version:   http://bugs.php.net/fix.php?id=29905r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=29905r=support
Expected behavior:   http://bugs.php.net/fix.php?id=29905r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=29905r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=29905r=submittedtwice
register_globals:http://bugs.php.net/fix.php?id=29905r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=29905r=php3
Daylight Savings:http://bugs.php.net/fix.php?id=29905r=dst
IIS Stability:   http://bugs.php.net/fix.php?id=29905r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=29905r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=29905r=float


#29904 [Opn-Fbk]: php crash ( object creation + autoload )

2004-08-30 Thread tony2001
 ID:   29904
 Updated by:   [EMAIL PROTECTED]
 Reported By:  segv at sayclub dot com
-Status:   Open
+Status:   Feedback
 Bug Type: Reproducible crash
 Operating System: linux
 PHP Version:  5.0.1
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php5-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.0-win32-latest.zip

Cannot reproduce. Please try it with the latest snapshot.



Previous Comments:


[2004-08-31 06:33:57] segv at sayclub dot com

Description:

It seems that php crashes when creating object with arguments of
autoloaded class.

Reproduce code:
---
test.inc 
?
  class B {
function func() {
  return true;
}
  }
?

test.php 
?
  function __autoload($className) {
include test.inc;
  }

  class A {
function __construct ($a) { }
  }
  $a = new A(B::func());
  var_dump($a)
?


Actual result:
--
% php test.php
segment fault






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


#29903 [Opn-Bgs]: sapi_apache2.c is not compatible

2004-08-30 Thread tony2001
 ID:   29903
 Updated by:   [EMAIL PROTECTED]
 Reported By:  jakawan at jakawan dot com
-Status:   Open
+Status:   Bogus
 Bug Type: Apache2 related
 Operating System: Redhat 9
 PHP Version:  5.0.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. 

Thank you for your interest in PHP.

You are trying to load 4.2.2 module instead of your new, 5.0.1 module.
Check your Apache config.


Previous Comments:


[2004-08-30 23:12:08] jakawan at jakawan dot com

Description:

Can somebody help please?
I'm really desperate now.
I have read the install.txt, support forum about 50 times. I recompiled
back and forth about 10 times. Download the latest PHP from both PHP.net
and http://snaps.php.net.

I still get the same error below:

httpd: module
/usr/src/build/274778-i386/BUILD/php-4.2.2/sapi/apache2filter/sapi_apache2.c
is not compatible with this version of Apache (found 20020628, need
20020903).
Please contact the vendor for the correct version.

Here is my Apache and PHP version:

[EMAIL PROTECTED] etc]# apachectl -v
Server version: Apache/2.0.50
Server built: Aug 24 2004 16:21:47

[EMAIL PROTECTED] etc]# php -v
PHP 5.0.2-dev (cli) (built: Aug 24 2004 10:40:57)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.2-dev, Copyright (c) 1998-2004 Zend Technologies

When I compile, I only use the basic switches:
./configure --prefix=/usr/local/apache2
then do
make  make install

for PHP, I follow the INSTALL document:
./configure --with-apxs2=/usr/local/apache2/bin/apxs
then 
make  make install...

-
Here's what I have in the httpd.conf (partially)

LoadModule php5_module modules/libphp5.so
...

VirtualHost \
xxx.xxx.xxx.xxx:80 \

DocumentRoot /home/httpd/vhosts/webmail
ServerName webmail
ServerAlias webmail.*
UseCanonicalName Off
Directory /home/httpd/vhosts/webmail/horde
IfModule sapi_apache2.c
php_admin_flag engine on
php_admin_flag magic_quotes_gpc off
php_admin_value safe_mode off
php_admin_value open_basedir
/home/httpd/vhosts/webmail:/etc/psa:/tmp
php_admin_value include_path
/home/httpd/vhosts/webmail/horde/lib:/home/httpd/vhosts/webmail/horde/pe
ar:.
/IfModule
/Directory
/VirtualHost

Everything went well during the compilation, but I cannot run apache
anymore.

I searched in http://www.php.net/support.php and other php forums, I
can't find anything related to this issue. I have also download the
latest from http://snaps.php.net and recompile - still not working.

I know that there is something hanging on my server that I have
missed.


Any great advice would be appriciated. I'm really desperate now. My
server has been down for almost a week already.

Thanks in advance.

Jak






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


#29902 [Opn-Bgs]: oci8 doesn't disconnect sessions, overloads oracle server

2004-08-30 Thread tony2001
 ID:   29902
 Updated by:   [EMAIL PROTECTED]
 Reported By:  jwoodrich at avaya dot com
-Status:   Open
+Status:   Bogus
 Bug Type: OCI8 related
 Operating System: Solaris 7
 PHP Version:  5.0.1
 New Comment:

OCI8 module doesn't close connections and leaves this duty to the
Oracle server. That was done intentionally long time ago and that's how
it works. Currently all OCI8 connections are persistent (except those
established with oci_new_connect()/ocinlogon()), i.e. most often you
will have one OCI8 connection for each Apache child. You should tune
your Oracle to be able to close connections after a timeout.
Look here http://php.net/oci_close for additional info.


Previous Comments:


[2004-08-30 20:54:50] jwoodrich at avaya dot com

Description:

PHP's oci8 opens connections to the database server but does not
disconnect.  This appears to be done for each instance of apache that
uses PHP oci8.  Eventually the maximum number of sessions is reached on
the database server and no more connections can be made.  This has
occured on three different Solaris servers (two v7 and one v8) running
PHP 5.0.1.  After downgrading to PHP 4.3.8 the problem disappeared and
connections disappeared from session listing in Oracle as web
transactions completed.

Config line:
./configure --with-apxs --with-oci8 \
--enable-ftp --with-curl --with-informix \
--with-imap \
--with-ldap --with-gd --with-jpeg- \
--with-pgsql \
--with-libxml-dir \
--prefix \
--with-png-dir --with-zlib --enable-pcntl --disable-debug

Oracle Server version: 8.1.7.2
Oracle Client version: 8.1.7



Reproduce code:
---
Example:
$dbh=ocilogon(LOGIN,PASSWORD,DATABASE);
$sth=ociparse($dbh,select sysdate from dual);
ociexecute($sth);
ocifetchinto($sth,$svret,OCI_ASSOC+OCI_RETURN_NULLS);
ocifreestatement($sth);
oci_close($dbh);
var_dump($svret);


Expected result:

array(1) { [SYSDATE]=string(11) the time }

Actual result:
--
Once the maximum number of sessions is reached this error message is
returned: ORA-00604: error occurred at recursive SQL level 1 ORA-00018:
maximum number of sessions exceeded 





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


#28417 [Opn-Fbk]: pages not completly loaded

2004-08-30 Thread curt
 ID:   28417
 Updated by:   [EMAIL PROTECTED]
 Reported By:  prof_moriarty at veryfast dot biz
-Status:   Open
+Status:   Feedback
 Bug Type: Apache2 related
 Operating System: win XP
 PHP Version:  5.0.0RC2
 New Comment:

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

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

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


Previous Comments:


[2004-05-16 20:50:38] prof_moriarty at veryfast dot biz

Description:

Running PHP5RC2 on Apache2.0.recent as a module (MYSQL 4.0.18).
When running phpmyadmin, and listing tables (i.e. listing the contents
of a MySQL table in HTML tables, or listing the table list itself etc
(anything that uses HTML tables)), much of the time the server only
bothers returning Partial tables.
Some-times it even finishs with a page in the middle of a tag.
This should be reproduceable by anyone using a similar setup to the
above. Just nab a copy of phpmyadmin, and play around. You can't miss
it. It doesn't always happen. 1 in 10 pages may load properly (just
keep hitting that reload :) ).

Note: Works fine with Apache 1.3.recent. Therefore the problem lies
with apache 2 or php5's support thereof.

Note2: There are no errors returned by apache or PHP. (php error
reporting is on e_all in phpmyadmin)

note3: Similar to bug 23653. But with much more recent versions of
everything.






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


#29904 [Fbk-Opn]: php crash ( object creation + autoload )

2004-08-30 Thread segv at sayclub dot com
 ID:   29904
 User updated by:  segv at sayclub dot com
 Reported By:  segv at sayclub dot com
-Status:   Feedback
+Status:   Open
 Bug Type: Reproducible crash
 Operating System: linux
 PHP Version:  5.0.1
 New Comment:

I'm sorry. It was a problem of xdebug. :-)
I'm really sorry for annoying you.


Previous Comments:


[2004-08-31 07:06:37] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.0-win32-latest.zip

Cannot reproduce. Please try it with the latest snapshot.




[2004-08-31 06:33:57] segv at sayclub dot com

Description:

It seems that php crashes when creating object with arguments of
autoloaded class.

Reproduce code:
---
test.inc 
?
  class B {
function func() {
  return true;
}
  }
?

test.php 
?
  function __autoload($className) {
include test.inc;
  }

  class A {
function __construct ($a) { }
  }
  $a = new A(B::func());
  var_dump($a)
?


Actual result:
--
% php test.php
segment fault






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


#29905 [Opn-Bgs]: mysqli prepare() does not work

2004-08-30 Thread georg
 ID:   29905
 Updated by:   [EMAIL PROTECTED]
 Reported By:  lucas at maurobenevides dot com dot br
-Status:   Open
+Status:   Bogus
 Bug Type: MySQL related
 Operating System: Windows 2000
 PHP Version:  5.0.1
 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

ext/mysqli doesn't work with MySQL 4.0.x. You need MySQL 
= 4.1.3. 


Previous Comments:


[2004-08-31 06:36:48] lucas at maurobenevides dot com dot br

Description:

I could not use Prepared Statement in my program. Any query I use
within $mysqli-prepare() returns a null variable. When I print the
$mysqli-error it prints out Unknown command
I am pretty sure it is not the query string, because the same Query I
use with the query() (without prepare) statement and it works fine.

I haven't changed my php.ini, except by uncommenting the line
extension=php_mysql.dll and adding the line: 
extension=php_mysqli.dll

Please, Test it in the Windows 2000
I use Mysql 4.0.2


Reproduce code:
---
$conn = new mysqli(HOST_MYSQL, USER_MYSQL, PASSWD_MYSQL,
DBNAME_MYSQL);
if (mysqli_connect_errno()) {
printf(Connect failed: %s\n, mysqli_connect_error());
exit();
}
$consulta = $conn-prepare(SELECT MD5_PASSWORD FROM tb_user WHERE
TXT_LOGIN=? );
if (!$consulta) 
printf($conn-error);
$consulta-bind_param(s, $_POST[password]);
$result = $consulta-fetch();


Expected result:

Unknown command
Fatal error: Call to a member function fetch() on a non-object in
C:mydir on line 17







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