tflori
Repos
61
Followers
17
Following
12

just another orm...

15
4

translation module for angular

21
6

Non-Blocking-Sessions made easy

3
1

Protect your business logic against invalid input

5
0

A PHP library for command-line argument processing

319
59

Extension of ulrichsg/getopt-php to handle multiple commands

1
1

Events

Setting up key combinations to open the terminal

I want to open Yakuake on ctrl+f12 but everything I tried to enter does not work. Is there some additional work or am I just missing the correct way to define the modifier?

Created at 2 weeks ago
Setting up key combinations to open the terminal

NVM.. it was this format: <modifier>Key for example <Ctrl>F12 where modifier can be <Ctrl>, <Super>, <Alt> or <Shift> (or am I missing something?)

Maybe you can add that to the readme for dumb people like me :smile:

Created at 2 weeks ago
Setting up key combinations to open the terminal

I want to open Yakuake on ctrl+f12 but everything I tried to enter does not work. Is there some additional work or am I just missing the correct was to define the modifier?

Created at 2 weeks ago
issue comment
pcntl fork is not exiting and the main thread is waiting forever

FYI: then maybe it is something because of docker images. Maybe I'm missing a package that is necessary for pcntl wait...

My workaround at the moment is to kill the pid with SIGTERM.

Created at 2 months ago
issue comment
pcntl fork is not exiting and the main thread is waiting forever

Yes, with your package of php7.4 on ubuntu 20.04 it worked. I have not tried php8.1 on ubuntu 22.04.

Created at 2 months ago
opened issue
pcntl fork is not exiting and the main thread is waiting forever

Frequently asked questions

Describe the bug I wrote a test script to confirm that is working with the shipped php versions on ubuntu 20.04 and 22.04. But it is not working on ubuntu 20.04 with your ppa on php 7.3 or with your ppa on ubuntu 22.04 with php7.3, 7.1 or 8.0. Unfortunately I don't have a clue how I could debug that and as it works with the packages from canonical I assume it has something to do your packages.

The test script basically waits for a fork to end (using pcntl_fork() to start the fork and pcntl_wait() to wait for the fork to end. After some debugging it became some extra output and other unusal things. However this is the current version:

<?php

$pid = pcntl_fork();
if ($pid) {
        echo 'started pid ' . $pid . ' waiting...' . PHP_EOL;
        sleep(1);
        echo 'this is 1 second later' . PHP_EOL;
        pcntl_waitpid($pid, $status);
        echo 'the fork stopped' . PHP_EOL;
        return;
} else {
        echo 'this is pid ' . $pid . ': ';
        echo 'something failed...' . PHP_EOL;
        die(1);
}

echo 'this will never be executed' . PHP_EOL;

I tried that with die(), exit(), and return; with different exit codes - none worked.

To Reproduce Steps to reproduce the behavior:

  1. create a php file with the content from above
  2. execute it with php <path to file>
  3. the main process does not stop and it hangs after output "this is 1 second later" and is waiting forever for the child to exit
  4. in a processlist you can see that the child process is still active even though we exited

Expected behavior I would expect the following output (as I'm getting with the canonical version):

started pid 20867 waiting...
this is pid 0: something failed...
this is 1 second later
the fork stopped

Distribution (please complete the following information):

  • OS: Ubuntu
  • Architecture: amd64
  • Repository: Ubuntu PPA

Package(s) (please complete the following information):

$ apt-cache policy php7.3-cli
php7.3-cli:
  Installed: 7.3.33-1+ubuntu22.04.1+deb.sury.org+1.9
  Candidate: 7.3.33-1+ubuntu22.04.1+deb.sury.org+1.9
  Version table:
 *** 7.3.33-1+ubuntu22.04.1+deb.sury.org+1.9 100
        100 /var/lib/dpkg/status
Created at 2 months ago