ID:               34037
 Updated by:       [EMAIL PROTECTED]
 Reported By:      aesthete at telecenter dot ru
-Status:           Open
+Status:           Bogus
 Bug Type:         InterBase related
 Operating System: Linux 2.6.12 (Fedora Core 3)
 PHP Version:      4.4.0
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.




Previous Comments:
------------------------------------------------------------------------

[2005-08-08 15:36:18] aesthete at telecenter dot ru

Description:
------------
I have 2 machines
WinXp(test server): php 4.4.0, apache 1.3.33, firebird-1.5.2
Linux(working serv): php 4.4.0, apache 1.3.33, firebird-1.5.2 (php
compilled with interbase and bcmath options)

I have simple firebird table:
CREATE TABLE ZAP_KNIGA (
    TIME_         TIME NOT NULL,
    PRIMECH       VARCHAR(500));

Some data in table rows (TIME_ colomn):
10:00:00
10:34:02
11:05:10
(this is right values in db ... cheked up with IBExpert).

My time zone:
WinXP: GMT+3  Moscow
Linux:
[EMAIL PROTECTED] tests]# date
Ïíä Àâã  8 17:02:19 MSD 2005

I have php script:

$sql_str = 'SELECT TIME_, PRIMECH FROM ZAP_KNIGA';
$sth = ibase_query($sql_str) or die('error');
while ($row = ibase_fetch_assoc($sth))
   echo $row['TIME_'].' '.$row['PRIMECH'].'<br>';

My problem:
When i go to my test site on winxp, explorer shows correct rows:
10:00:00
10:34:02
11:05:10
When i put my script on Linux serv, explorer shows wrong rows:
23:15:52
23:15:52
23:15:52
(one value for all rows!!!!!!)
When i go to linux site from linux console using 'links' 
rows is WRONG!

The first idea was something wrong in time zones client and server
machines, but php shows one value in all rows and doesnt calculate GMT
offsets from each time value.  

How can I resolv this problem ?

P.S: Sorry my English...




------------------------------------------------------------------------


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

Reply via email to