You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by "zheyu1995 (via GitHub)" <gi...@apache.org> on 2023/06/26 06:16:16 UTC
[GitHub] [skywalking] zheyu1995 opened a new issue, #10996: [Bug] skywalking-php Unable to capture connect information by using variables to connect Redis
zheyu1995 opened a new issue, #10996:
URL: https://github.com/apache/skywalking/issues/10996
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/skywalking/issues?q=is%3Aissue) and found no similar issues.
### Apache SkyWalking Component
PHP (apache/skywalking-php)
### What happened
Code for using variables
```
<?php
echo '111';
{
try {
$client = new Redis();
$host = "127.0.0.1";
$port = "6379";
$client->connect($host, $port, 1);
$client->set('foo', '1111');
} catch (RedisException $e) {
}
}
echo "ok";
```

Code for Unused Variables
```
<?php
echo '111';
{
$client = new Redis();
$client->connect("127.0.0.1", 6379, 1);
$client->set('foo', '1111');
}
echo "ok";
```

### What you expected to happen

### How to reproduce
```
<?php
echo '111';
{
try {
$client = new Redis();
$host = "127.0.0.1";
$port = "6379";
$client->connect($host, $port, 1);
$client->set('foo', '1111');
} catch (RedisException $e) {
}
}
echo "ok";
```
### Anything else
_No response_
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng closed issue #10996: [Bug] skywalking-php Unable to capture connect information by using variables to connect Redis
Posted by "wu-sheng (via GitHub)" <gi...@apache.org>.
wu-sheng closed issue #10996: [Bug] skywalking-php Unable to capture connect information by using variables to connect Redis
URL: https://github.com/apache/skywalking/issues/10996
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] jmjoy commented on issue #10996: [Bug] skywalking-php Unable to capture connect information by using variables to connect Redis
Posted by "jmjoy (via GitHub)" <gi...@apache.org>.
jmjoy commented on issue #10996:
URL: https://github.com/apache/skywalking/issues/10996#issuecomment-1611131616
Because the $port is string, skywalking agent except it to int failed, I will adapt this case.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org