#49466 [NEW]: Gtk::timeout_add updates "date" function but not "filesize"

[email protected] ("willgriffiths1 at yahoo dot co dot uk") Fri, 4 Sep 2009 10:36:48 GMT
Newsgroups php.gtk.dev
Message-ID <[email protected]>
From:             willgriffiths1 at yahoo dot co dot uk
Operating system: Windows Vista
PHP version:      5.3.0
PHP Bug Type:     PHP-GTK related
Bug description:  Gtk::timeout_add updates "date" function but not "filesize"

Description:
------------
I put PHP 5.3 because it made me pick a version. I'm actually using
PHP-GTK2.

The function in the example given echos the 'date' and the 'filesize'
every 3 seconds.

However, while the date updates correctly (+3 seconds each time), the
filesize stays the same even if you increase the size of the file.

Is this expected behaviour?

Reproduce code:
---------------
Gtk::timeout_add(3000, 'update', $store); 

function update($store) {

$offset = filesize('file.txt') - 100; 
echo $offset." ".date('H:i:s')."\r\n";

}

Expected result:
----------------
195382 11:18:06
195387 11:18:09
195399 11:18:12
...

Actual result:
--------------
195380 11:18:06
195380 11:18:09
195380 11:18:12
...


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