Skip to content

Conversation

@bernardnormier
Copy link
Member

@bernardnormier bernardnormier commented Feb 4, 2025

We may want to add a second HTML version of this demo. Or maybe make "secure" HTML.

// Send a request to the remote object and get the response.
$greeting = $greeter->greet(get_current_user());

echo "$greeting\n";
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume that's the correct syntax. Please check.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it is.

php test.php 
Hello, Jose
jose@studio rpm % cat test.php 
<?php
$greeting = "Hello, Jose";
echo "$greeting\n";

require_once 'Ice.php';
require_once 'Greeter.php';

// Create an Ice communicator to initialize the Ice runtime. This communicator is destroyed automatically at the end of
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I verified the communicator is indeed destroyed even though there is no call to ->destroy

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

require_once 'Ice.php';
require_once 'Greeter.php';

// Create an Ice communicator to initialize the Ice runtime. This communicator is destroyed automatically at the end of
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// Send a request to the remote object and get the response.
$greeting = $greeter->greet(get_current_user());

echo "$greeting\n";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it is.

php test.php 
Hello, Jose
jose@studio rpm % cat test.php 
<?php
$greeting = "Hello, Jose";
echo "$greeting\n";

@bernardnormier bernardnormier merged commit 03416b8 into zeroc-ice:main Feb 5, 2025
7 checks passed
@bernardnormier bernardnormier deleted the php-greeter branch June 18, 2025 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants