Giter Site home page Giter Site logo

ngx_var_get nginx Signal 11 about ngx-php HOT 4 OPEN

Qwoker avatar Qwoker commented on June 9, 2024
ngx_var_get nginx Signal 11

from ngx-php.

Comments (4)

joanhey avatar joanhey commented on June 9, 2024

ngx_var_get() and ngx_var_set() are for the nginx variables, nothing from PHP.

https://www.javatpoint.com/nginx-variables

If in an nginx config, you call a variable that is NOT set before, you will always get a signal 11 error. With or without ngx-php.

from ngx-php.

Qwoker avatar Qwoker commented on June 9, 2024

ngx_var_get() and ngx_var_set() are for the nginx variables, nothing from PHP.

https://www.javatpoint.com/nginx-variables

If in an nginx config, you call a variable that is NOT set before, you will always get a signal 11 error. With or without ngx-php.

everything is correct if I call a function with a non-existent variable in nginx i got crash with signal 11
UPD: if i try call NULL variable on nginx a got "nil", but in PHP i got crashed with signal 11

from ngx-php.

joanhey avatar joanhey commented on June 9, 2024

I'll add a test for null variables. And if needed a fix.

from ngx-php.

Qwoker avatar Qwoker commented on June 9, 2024

I'll add a test for null variables. And if needed a fix.

I check sources PHP ZEND on repository. I found only RETURN_NULL(); but i don't know why nginx got crash.

If you know how fix it? do it, please)

from ngx-php.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.