php-sdl icon indicating copy to clipboard operation
php-sdl copied to clipboard

Warning: Module "SDL" is already loaded in Unknown on line 0

Open sensorario opened this issue 3 years ago • 0 comments

I am following README file instructions. I am at the point where README file show first examples:

Standard SDL2 API is available in procedural style:

$window = SDL_CreateWindow( "Foo window", 500, 50, 350, 300, SDL_WINDOW_SHOWN+SDL_WINDOW_RESIZABLE);
SDL_SetWindowTitle($window, "Some new title");
SDL_DestroyWindow($window);

And is also available in object oriented style:

$window = new SDL_Window( "Foo window", 100, 50, 350, 300, SDL_Window::SHOWN|SDL_Window::RESIZABLE);
$window->SetTitle("Some new title");
unset($window); // will destroy the window

In both cases I do not see anything. In my dock I see an icon for a millisecond. The it disappear and nothing happens.

Here my php version:

PHP 8.1.2 (cli) (built: Jan 21 2022 04:46:45) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.2, Copyright (c) Zend Technologies
    with Zend OPcache v8.1.2, Copyright (c), by Zend Technologies

sensorario avatar Apr 08 '22 12:04 sensorario