You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/fr/known-issues.md
-30Lines changed: 0 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,35 +1,5 @@
1
1
# Problèmes Connus
2
2
3
-
## Fibres
4
-
5
-
Appeller de fonctions et mots clefs PHP qui eux-mêmes appellent [cgo](https://go.dev/blog/cgo) dans des [Fibres](https://www.php.net/manual/fr/language.fibers.php) est connu pour provoquer des plantages.
6
-
7
-
Ce problème est [en cours de correction par le projet Go](https://github.com/golang/go/issues/62130).
8
-
9
-
En attendant, une solution consiste à ne pas utiliser de mots clefs (comme `echo`) et de fonctions (comme `header()`) qui délèguent à Go depuis l'intérieur de fibres.
10
-
11
-
Ce code risque de planter car il utilise `echo` dans une fibre :
12
-
13
-
```php
14
-
$fiber = new Fiber(function() {
15
-
echo 'Dans la fibre'.PHP_EOL;
16
-
echo 'Toujours dedans'.PHP_EOL;
17
-
});
18
-
$fiber->start();
19
-
```
20
-
21
-
A la place, retournez la valeur de la Fibre et utilisez-la à l'extérieur :
22
-
23
-
```php
24
-
$fiber = new Fiber(function() {
25
-
Fiber::suspend('Dans la fibre'.PHP_EOL));
26
-
Fiber::suspend('Toujours dedans'.PHP_EOL));
27
-
});
28
-
echo $fiber->start();
29
-
echo $fiber->resume();
30
-
$fiber->resume();
31
-
```
32
-
33
3
## Extensions PHP non prises en charge
34
4
35
5
Les extensions suivantes sont connues pour ne pas être compatibles avec FrankenPHP :
Copy file name to clipboardExpand all lines: docs/known-issues.md
-30Lines changed: 0 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,35 +1,5 @@
1
1
# Known Issues
2
2
3
-
## Fibers
4
-
5
-
Calling PHP functions and language constructs that themselves call [cgo](https://go.dev/blog/cgo) in [Fibers](https://www.php.net/manual/en/language.fibers.php) is known to cause crashes.
6
-
7
-
This issue [is being worked on by the Go project](https://github.com/golang/go/issues/62130).
8
-
9
-
In the meantime, one solution is not to use constructs (like `echo`) and functions (like `header()`) that delegate to Go from inside Fibers.
10
-
11
-
This code will likely crash because it uses `echo` in the Fiber:
12
-
13
-
```php
14
-
$fiber = new Fiber(function() {
15
-
echo 'In the Fiber'.PHP_EOL;
16
-
echo 'Still inside'.PHP_EOL;
17
-
});
18
-
$fiber->start();
19
-
```
20
-
21
-
Instead, return the value from the Fiber and use it outside:
22
-
23
-
```php
24
-
$fiber = new Fiber(function() {
25
-
Fiber::suspend('In the Fiber'.PHP_EOL));
26
-
Fiber::suspend('Still inside'.PHP_EOL));
27
-
});
28
-
echo $fiber->start();
29
-
echo $fiber->resume();
30
-
$fiber->resume();
31
-
```
32
-
33
3
## Unsupported PHP Extensions
34
4
35
5
The following extensions are known not to be compatible with FrankenPHP:
Copy file name to clipboardExpand all lines: docs/tr/known-issues.md
-30Lines changed: 0 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,35 +1,5 @@
1
1
# Bilinen Sorunlar
2
2
3
-
## Fibers
4
-
5
-
[Fibers](https://www.php.net/manual/en/language.fibers.php) içinde [cgo](https://go.dev/blog/cgo) çağrısı yapan PHP fonksiyonlarının ve dil yapılarının çağrılmasının çökmelere neden olduğu bilinmektedir.
6
-
7
-
Bu sorun [Go projesi tarafından üzerinde çalışılmaktadır](https://github.com/golang/go/issues/62130).
8
-
9
-
Bu arada, bir çözüm Fibers içinden Go'ya temsilci atayan yapıları (`echo` gibi) ve fonksiyonları (`header()` gibi) kullanmamaktır.
10
-
11
-
Bu kod, Fiber içinde `echo` kullandığı için büyük olasılıkla çökecektir:
12
-
13
-
```php
14
-
$fiber = new Fiber(function() {
15
-
echo 'In the Fiber'.PHP_EOL;
16
-
echo 'Still inside'.PHP_EOL;
17
-
});
18
-
$fiber->start();
19
-
```
20
-
21
-
Bunun yerine, değeri Fiber'den döndürün ve dışarıda kullanın:
22
-
23
-
```php
24
-
$fiber = new Fiber(function() {
25
-
Fiber::suspend('In the Fiber'.PHP_EOL));
26
-
Fiber::suspend('Still inside'.PHP_EOL));
27
-
});
28
-
echo $fiber->start();
29
-
echo $fiber->resume();
30
-
$fiber->resume();
31
-
```
32
-
33
3
## Desteklenmeyen PHP Eklentileri
34
4
35
5
Aşağıdaki eklentilerin FrankenPHP ile uyumlu olmadığı bilinmektedir:
0 commit comments