#45838 [NEW]: PHP has encountered an Access Violation

2008-08-16 Thread lotictech at gmail dot com
From: lotictech at gmail dot com
Operating system: xp sp2
PHP version:  5.2.6
PHP Bug Type: *Configuration Issues
Bug description:  PHP has encountered an Access Violation

Description:

i have installed php 5.2 through installer on Xp i have IIS working with
ASP but after reading many documentation and trying it for 4 time in last 1
year i never able to load PHP. 

Now as i have again tried it is not working I m getting error "PHP has
encountered an Access Violation at 010AB74EHTTP/1.1 500 Server Error
Server: Microsoft-IIS/5.1 Date: Sun, 17 Aug 2008 04:31:48 GMT Content-Type:
text/html Content-Length: 44 -2147417842 (0x8001010e)"

Reproduce code:
---
i just try to echo 'Hello word'


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



#45837 [NEW]: open_basedir failed for building outside of source tree

2008-08-16 Thread xuefer at gmail dot com
From: xuefer at gmail dot com
Operating system: linux
PHP version:  5.3CVS-2008-08-17 (CVS)
PHP Bug Type: Safe Mode/open_basedir
Bug description:  open_basedir failed for building outside of source tree

Description:

my php is built outside of the php source tree, i'm not sure if this is
the reason as i haven't try to built php witin source tree yet. looks like
most of the open_basedir* test failed

and btw tests/basic/bug20539.phpt also failed due to the same problem
imho.

Reproduce code:
---
~/src/php5 $ cd ../php5-debug-zts
~/src/php5-debug-zts $ ../php5/configure ...
~/src/php5-debug-zts $ make && make test


Actual result:
--
Bug #20539 (PHP CLI Segmentation Fault) [tests/basic/bug20539.phpt]
Test open_basedir configuration [tests/security/open_basedir_chdir.phpt]
Test open_basedir configuration [tests/security/open_basedir_chmod.phpt]
Test open_basedir configuration [tests/security/open_basedir_copy.phpt]
Test open_basedir configuration
[tests/security/open_basedir_copy_variation1.phpt]
Test open_basedir configuration [tests/security/open_basedir_dir.phpt]
Test open_basedir configuration
[tests/security/open_basedir_disk_free_space.phpt]
Test open_basedir configuration
[tests/security/open_basedir_error_log.phpt]
Test open_basedir configuration
[tests/security/open_basedir_error_log_variation.phpt]
Test open_basedir configuration [tests/security/open_basedir_file.phpt]
Test open_basedir configuration
[tests/security/open_basedir_file_exists.phpt]
Test open_basedir configuration
[tests/security/open_basedir_file_get_contents.phpt]
Test open_basedir configuration
[tests/security/open_basedir_file_put_contents.phpt]
Test open_basedir configuration
[tests/security/open_basedir_fileatime.phpt]
Test open_basedir configuration
[tests/security/open_basedir_filectime.phpt]
Test open_basedir configuration
[tests/security/open_basedir_filegroup.phpt]
Test open_basedir configuration
[tests/security/open_basedir_fileinode.phpt]
Test open_basedir configuration
[tests/security/open_basedir_filemtime.phpt]
Test open_basedir configuration
[tests/security/open_basedir_fileowner.phpt]
Test open_basedir configuration
[tests/security/open_basedir_fileperms.phpt]
Test open_basedir configuration
[tests/security/open_basedir_filesize.phpt]
Test open_basedir configuration
[tests/security/open_basedir_filetype.phpt]
Test open_basedir configuration [tests/security/open_basedir_fopen.phpt]
Test open_basedir configuration [tests/security/open_basedir_glob.phpt]
Test open_basedir configuration [tests/security/open_basedir_is_dir.phpt]
Test open_basedir configuration
[tests/security/open_basedir_is_executable.phpt]
Test open_basedir configuration
[tests/security/open_basedir_is_file.phpt]
Test open_basedir configuration
[tests/security/open_basedir_is_link.phpt]
Test open_basedir configuration
[tests/security/open_basedir_is_readable.phpt]
Test open_basedir configuration
[tests/security/open_basedir_is_writable.phpt]
Test open_basedir configuration [tests/security/open_basedir_link.phpt]
Test open_basedir configuration
[tests/security/open_basedir_linkinfo.phpt]
Test open_basedir configuration [tests/security/open_basedir_lstat.phpt]
Test open_basedir configuration
[tests/security/open_basedir_opendir.phpt]
Test open_basedir configuration
[tests/security/open_basedir_readlink.phpt]
Test open_basedir configuration [tests/security/open_basedir_rename.phpt]
Test open_basedir configuration [tests/security/open_basedir_rmdir.phpt]
Test open_basedir configuration
[tests/security/open_basedir_scandir.phpt]
Test open_basedir configuration [tests/security/open_basedir_stat.phpt]
Test open_basedir configuration
[tests/security/open_basedir_symlink.phpt]
Test open_basedir configuration
[tests/security/open_basedir_tempnam.phpt]
Test open_basedir configuration [tests/security/open_basedir_touch.phpt]
Test open_basedir configuration [tests/security/open_basedir_unlink.phpt]




/home/xuefer/src/php5/tests/basic/bug20539.phpt

Warning: Unknown:
open(./tests/basic//sess_e1122b5c18b3b0ef0b69cbc36c5d0d0f, O_RDWR) failed:
No such file or directory (2) in Unknown on line 0

Warning: Unknown: Cannot send session cookie - headers already sent in
Unknown on line 0

Warning: Unknown: Cannot send session cache limiter - headers already sent
in Unknown on line 0
good :)

Warning:
unlink(/home/xuefer/src/php5/tests/basic/sess_e1122b5c18b3b0ef0b69cbc36c5d0d0f):
No such file or directory in /home/xuefer/src/php5/tests/basic/bug20539.php
on line 3

Warning: Unknown:
open(./tests/basic//sess_e1122b5c18b3b0ef0b69cbc36c5d0d0f, O_RDWR) failed:
No such file or directory (2) in Unknown on line 0

Warning: Unknown: Failed to write session data (files). Please verify that
the current setting of session.save_path is correct (./tests/basic/) in
Unknown on

#36646 [Com]: foreach($_SESSION as $key => $value) unset($_SESSION[$key]) crashes apache2

2008-08-16 Thread jay at websynergia dot com
 ID:   36646
 Comment by:   jay at websynergia dot com
 Reported By:  christian dot cal at gmx dot de
 Status:   No Feedback
 Bug Type: Session related
 Operating System: Windows XP
 PHP Version:  5.1.2
 New Comment:

$_SESSION = array();

Why not just do the above if you want to clear the session array?

It has always worked for me regardless.


Previous Comments:


[2007-03-30 22:16:55] grafelbd at telstar-online dot net

I am using PHP 5.2.1 and I have tested this same issue with an array of
15 items with randomly generated strings, and this bug did not affect
me.

I tried using PHP 5.2.1 both as an Apache module (running Apache
2.0.59) and as a FastCGI but was unable to reproduce this error in
either setup.

I believe this bug might have been resolved in PHP 5.2.1 ? Unless all
of you are referring to Apache 2.2.x, which I have not tested.



[2007-03-30 00:17:05] no at email dot here

No crash for me, but I confirm the bug with php version 5.2.0 under
windows : no unset the variables

The proposed solution is OK :

$helper=&$_SESSION;
foreach ($helper as $key => $value){
  unset($helper[$key]);
}

Thanks



[2006-09-18 13:53:29] s dot stok at rollerscapes dot net

Im ussing the latest version of php5.2, and i also haffing this
problem.

The whird thing is that on my linux box everything works fine,only on
windows it fails to work.
Only the workaround makes it work.



[2006-08-27 01:12:36] joe at gmail dot com

Actually to clarify, it doesn't crash Apache on my computer, but it
doesn't unset the variables!



[2006-08-27 01:09:31] joe at gmail dot com

I'm running 5.1.6 and I have this problem... it still hasn't been
fixed!



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

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



#45836 [Opn]: cannot use com

2008-08-16 Thread keichee at gmail dot com
 ID:   45836
 User updated by:  keichee at gmail dot com
 Reported By:  keichee at gmail dot com
 Status:   Open
-Bug Type: Reproducible crash
+Bug Type: COM related
 Operating System: windows xp sp3
 PHP Version:  6CVS-2008-08-16 (snap)
 New Comment:

changed the category to com related


Previous Comments:


[2008-08-16 23:55:33] keichee at gmail dot com

Description:

i cannot use com, it have error:
PHP Fatal error:  Call to undefined method com::Navigate2()
it works on php5 snaps though, but i want to work in php6


Reproduce code:
---
$ie = new COM("InternetExplorer.Application");
$ie->Visible = true;
$ie->Navigate2($url);

Expected result:

the ie will open and navigate to the said url

Actual result:
--
PHP Fatal error:  Call to undefined method com::Navigate2()





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



#45836 [NEW]: cannot use com

2008-08-16 Thread keichee at gmail dot com
From: keichee at gmail dot com
Operating system: windows xp sp3
PHP version:  6CVS-2008-08-16 (snap)
PHP Bug Type: Reproducible crash
Bug description:  cannot use com 

Description:

i cannot use com, it have error:
PHP Fatal error:  Call to undefined method com::Navigate2()
it works on php5 snaps though, but i want to work in php6


Reproduce code:
---
$ie = new COM("InternetExplorer.Application");
$ie->Visible = true;
$ie->Navigate2($url);

Expected result:

the ie will open and navigate to the said url

Actual result:
--
PHP Fatal error:  Call to undefined method com::Navigate2()

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



#45706 [NoF->Opn]: Serializing of ArrayIterator extended Objects

2008-08-16 Thread bobka at bigfoot dot com
 ID:   45706
 User updated by:  bobka at bigfoot dot com
 Reported By:  bobka at bigfoot dot com
-Status:   No Feedback
+Status:   Open
 Bug Type: Session related
 Operating System: Linux
 PHP Version:  5.2.6
 New Comment:

?!


Previous Comments:


[2008-08-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".



[2008-08-06 16:51:35] bobka at bigfoot dot com

Yes, it happens only with classes that extend ArrayIterator



[2008-08-06 16:46:37] [EMAIL PROTECTED]

Does this happen only with the ArrayIterator?



[2008-08-06 08:45:17] bobka at bigfoot dot com

The bug is somewhere in "php" or "php_bin" serialize_handler that is
used to serialize _SESSION



[2008-08-06 08:38:06] bobka at bigfoot dot com

To define the class before session_start is the usual case. But if two
applications use the same session data, where one part of session data
is shared between applications and other are used exclusively, you don't
have to include *all* class definitions in each application. In this
case the part of session data, that is not defined, should be preserved
and not corrupted, shouldn't 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/45706

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



#45835 [Opn->Asn]: include_once ans symlinks

2008-08-16 Thread bjori
 ID:   45835
 Updated by:   [EMAIL PROTECTED]
 Reported By:  hannes dot magnusson at gmail dot com
-Status:   Open
+Status:   Assigned
 Bug Type: CGI related
 Operating System: Ubuntu 8.04.1
 PHP Version:  5.3CVS-2008-08-16 (snap)
-Assigned To:  
+Assigned To:  dmitry


Previous Comments:


[2008-08-16 20:22:29] hannes dot magnusson at gmail dot com

Description:

Looks like the new realpath() implementation is having issues with
symlinks..

include_once with symlinks in the path, under lighttpd, is failing.
Can't seem to reproduce this under cli.

/www/bjori.php.is is a symlink to /www/local.php.net
/www/local.php.net is then a symlink to /home/bjori/php/web

Using the realpath of the file, or relative path, works fine.

Reproduce code:
---
[EMAIL PROTECTED]:~/php/5.3$ cat config.nice
#! /bin/sh
#
# Created by configure

'./configure' \
'--prefix=/home/bjori/.apps' \
'--enable-debug' \
'--with-zend-vm=GOTO' \
'--disable-all' \
'--without-pear' \

[EMAIL PROTECTED]:~/php/web$ cat test.php 
http://bugs.php.net/?id=45835&edit=1



#45835 [NEW]: include_once ans symlinks

2008-08-16 Thread hannes dot magnusson at gmail dot com
From: hannes dot magnusson at gmail dot com
Operating system: Ubuntu 8.04.1
PHP version:  5.3CVS-2008-08-16 (snap)
PHP Bug Type: CGI related
Bug description:  include_once ans symlinks

Description:

Looks like the new realpath() implementation is having issues with
symlinks..

include_once with symlinks in the path, under lighttpd, is failing.
Can't seem to reproduce this under cli.

/www/bjori.php.is is a symlink to /www/local.php.net
/www/local.php.net is then a symlink to /home/bjori/php/web

Using the realpath of the file, or relative path, works fine.

Reproduce code:
---
[EMAIL PROTECTED]:~/php/5.3$ cat config.nice
#! /bin/sh
#
# Created by configure

'./configure' \
'--prefix=/home/bjori/.apps' \
'--enable-debug' \
'--with-zend-vm=GOTO' \
'--disable-all' \
'--without-pear' \

[EMAIL PROTECTED]:~/php/web$ cat test.php 
http://bugs.php.net/?id=45835&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=45835&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=45835&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=45835&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=45835&r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=45835&r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=45835&r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=45835&r=needscript
Try newer version:http://bugs.php.net/fix.php?id=45835&r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=45835&r=support
Expected behavior:http://bugs.php.net/fix.php?id=45835&r=notwrong
Not enough info:  
http://bugs.php.net/fix.php?id=45835&r=notenoughinfo
Submitted twice:  
http://bugs.php.net/fix.php?id=45835&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=45835&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=45835&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=45835&r=dst
IIS Stability:http://bugs.php.net/fix.php?id=45835&r=isapi
Install GNU Sed:  http://bugs.php.net/fix.php?id=45835&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=45835&r=float
No Zend Extensions:   http://bugs.php.net/fix.php?id=45835&r=nozend
MySQL Configuration Error:http://bugs.php.net/fix.php?id=45835&r=mysqlcfg



#45829 [Opn->Asn]: [intl] Allow MessageFormatter / IntlDateFormatter to accept DateTime objects?

2008-08-16 Thread bjori
 ID:   45829
 Updated by:   [EMAIL PROTECTED]
 Reported By:  mathieuk at gmail dot com
-Status:   Open
+Status:   Assigned
 Bug Type: Feature/Change Request
 Operating System: Mac OSX 10.5
 PHP Version:  5.3.0alpha1
-Assigned To:  
+Assigned To:  stas


Previous Comments:


[2008-08-16 16:09:15] mathieuk at gmail dot com

Additionally, MessageFormatter::parse() might return a DateTime object

instead of a UNIX timestamp.



[2008-08-15 06:13:57] mathieuk at gmail dot com

Description:

Feature request for the new intl extension.

Both the MessageFormatter and the IntlDateFormatter accept values for 
dates. The IntlDateFormatter accepts both Unix timestamps and the value

for localtime(). I'm assuming it's the same for the MessageFormatter.

Since PHP 5.2 we have the DateTime object through the standard date 
extension. While it's easy to get the unix timestamp from a DateTime 
object through DateTime::getTimestamp() introduce in 5.3, this is an 
extra statement which just adds clutter.

Could these two formatters be made to also accept DateTime objects ?





Reproduce code:
---
format(array($date));

?>



Expected result:

Output: Today one year ago is 15 aug 2007

Actual result:
--
Output: Today one year ago is 1 jan 1970





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



#45829 [Com]: [intl] Allow MessageFormatter / IntlDateFormatter to accept DateTime objects?

2008-08-16 Thread mathieuk at gmail dot com
 ID:   45829
 Comment by:   mathieuk at gmail dot com
 Reported By:  mathieuk at gmail dot com
 Status:   Open
 Bug Type: Feature/Change Request
 Operating System: Mac OSX 10.5
 PHP Version:  5.3.0alpha1
 New Comment:

Additionally, MessageFormatter::parse() might return a DateTime object

instead of a UNIX timestamp.


Previous Comments:


[2008-08-15 06:13:57] mathieuk at gmail dot com

Description:

Feature request for the new intl extension.

Both the MessageFormatter and the IntlDateFormatter accept values for 
dates. The IntlDateFormatter accepts both Unix timestamps and the value

for localtime(). I'm assuming it's the same for the MessageFormatter.

Since PHP 5.2 we have the DateTime object through the standard date 
extension. While it's easy to get the unix timestamp from a DateTime 
object through DateTime::getTimestamp() introduce in 5.3, this is an 
extra statement which just adds clutter.

Could these two formatters be made to also accept DateTime objects ?





Reproduce code:
---
format(array($date));

?>



Expected result:

Output: Today one year ago is 15 aug 2007

Actual result:
--
Output: Today one year ago is 1 jan 1970





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



#45834 [NEW]: INSERT INTO t VALUES (...) ON DUPLICATE KEY UPDATE ... and mysql_insert_id()

2008-08-16 Thread swadlern at op dot pl
From: swadlern at op dot pl
Operating system: Mandriva Linux 2008.1 x86_64
PHP version:  5.2.6
PHP Bug Type: MySQL related
Bug description:  INSERT INTO t VALUES (...) ON DUPLICATE KEY UPDATE ... and 
mysql_insert_id()

Description:

I execute the following query:

INSERT INTO test VALUES (NULL,'key','value') ON DUPLICATE KEY UPDATE
v='value';

key exists and value of v column is the same as new value in UPDATE
clause.
I call $id=mysql_insert_id(); and expect that $id is id of existing row
(id is INT NOT NULL PRIMARY KEY AUTO_INCREMENT column) but $id contains
another value.

MySQL version is 5.0.51a

Reproduce code:
---



Expected result:

I expect $id to be 1

Actual result:
--
$id is 2

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



#45833 [NEW]: Enable MessageFormatter to select custom currency

2008-08-16 Thread mathieuk at gmail dot com
From: mathieuk at gmail dot com
Operating system: MacOSX
PHP version:  5.3.0alpha1
PHP Bug Type: Feature/Change Request
Bug description:  Enable MessageFormatter to select custom currency

Description:

Feature Request for the intl extension

The MessageFormatter is capable of formatting a number in a currency 
format. This is only marginally useful because it always uses the 
currency symbol for the locale given to it. 

It probably wouldn't be uncommon to want to display a currency in your 
own currency format, but using a different currency symbol.

Reproduce code:
---
setCurrency('USD');

echo $msgfmt->format(array(15.95));

?>



Expected result:

Price (USD): $ 15,00





Actual result:
--
(without the imagined setCurrency call)

Price (USD): € 15,00





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