Subject | Re: FLAP (FirebirdSS-2.1.2+CentOS-5.3+Apache-2.2.3+PHP-5.3) |
---|---|
Author | lee_domain |
Post date | 2009-06-25T05:02:52Z |
--- In firebird-php@yahoogroups.com, "lee_domain" <lee_domain@...> wrote:
Following is a PHP script to test the FirebirdSS-2.1.2
to see if the decimal function has been improved on PHP-5.3.
Folowing functions require that the database is on the connection
Here is it, test it, and expecting your reply.
trying to connect the database...
database connection OK
CREATE TABLE PHP53( d1 decimal(4,2), d2 decimal(6,3), d3 decimal(8,4), d4 decimal(10,5), d5 decimal(14,7), d6 decimal(16,8), dd double precision, df float)
create table OK
insert into PHP53 (d1,d2,d3,d4,d5,d6,dd,df) values ( 12.52, 918.812, 1234.8765, 54321.06789,6543210.1234567, 87654321.01234567, 1234.5678, 1234.56)
insert table OK
select * from PHP53
12.52 = : 12.52
918.812 = : 918.812
1234.8765 = : 1234.8765
54321.06789 = : 54321.06789
6543210.1234567 = : 6543210.1234567
87654321.01234567 = : 87654321.01234567
1234.5678 = : 1234.5678
1234.56 = : 1234.5600585938
DROP TABLE PHP53
drop table OK
disconnect from database OK !
http://sites.google.com/site/firebirdarchitect/Home/flap/fb212-php53
>Result from the above php script:
> Hi, all of you,
> Most cheerful for me is that it seems having
> overcome the numeric/decimal difficulties
> which have been trapping PHP a long time.
>
> Following is the script to do this test:
> ...........................
> ...........................
Following is a PHP script to test the FirebirdSS-2.1.2
to see if the decimal function has been improved on PHP-5.3.
Folowing functions require that the database is on the connection
Here is it, test it, and expecting your reply.
trying to connect the database...
database connection OK
CREATE TABLE PHP53( d1 decimal(4,2), d2 decimal(6,3), d3 decimal(8,4), d4 decimal(10,5), d5 decimal(14,7), d6 decimal(16,8), dd double precision, df float)
create table OK
insert into PHP53 (d1,d2,d3,d4,d5,d6,dd,df) values ( 12.52, 918.812, 1234.8765, 54321.06789,6543210.1234567, 87654321.01234567, 1234.5678, 1234.56)
insert table OK
select * from PHP53
12.52 = : 12.52
918.812 = : 918.812
1234.8765 = : 1234.8765
54321.06789 = : 54321.06789
6543210.1234567 = : 6543210.1234567
87654321.01234567 = : 87654321.01234567
1234.5678 = : 1234.5678
1234.56 = : 1234.5600585938
DROP TABLE PHP53
drop table OK
disconnect from database OK !
http://sites.google.com/site/firebirdarchitect/Home/flap/fb212-php53