I resolved the issue by reading my own post. :queasy:
Strangely, using php.exe -l (syntax checker) produces no syntax errors, but php.exe -f (syntax checker + execute file) does.
Could anyone shed some light onto this subject?
edit
If anyone wants the working code (don't know why), here it is:
<?php
$window = new GtkWindow();
$window->connect_simple('destroy', array('gtk', 'main_quit'));
$label = new GtkLabel('Files');
$vBox = new GtkVBox();
$files = array();
$dir = dir('C:\\delete');
while(($entry = $dir->read()) !== FALSE){
$files[] = $entry;
}
$fileString = implode("\n", $files);
$fileLabel = new GtkLabel($fileString);
$window->add($vBox);
$vBox->add($label);
$vBox->add($fileLabel);
$window->show_all();
Gtk::main();
?>