Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 882139
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T12:22:50+00:00 2026-05-15T12:22:50+00:00

Php has a Zend Engine.. The zend engine provides fopen.. Php also provides fopen…

  • 0

Php has a Zend Engine.. The zend engine provides fopen.. Php also provides fopen…

But when we call fopen, php’s fopen is called.. I have three questions here

  1. What is the purpose of the /php–Nn/ext folder .
  2. Do the functions in ext folder need to be recompiled everytime they are changed?
  3. Do the functions in the ext folder (if they happen to have same name as zend functions) over-ride the zend functions..
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T12:22:50+00:00Added an answer on May 15, 2026 at 12:22 pm

    What is the purpose of the /php–Nn/ext folder

    It contains the PHP extensions, i.e., the things built on top of the Zend Engine that actually provide PHP functions and the built-in objects.

    Do the functions in ext folder need to be recompiled everytime they are changed?

    Yes, if you want the change to be reflected in the binaries.

    Do the functions in the ext folder (if they happen to have same name as zend functions) over-ride the zend functions..

    You’re mistaken, the Zend Engine does not define the PHP function fopen. In fact, the Zend Engine provides no PHP functions. It can be compiled independently and used for something completely unrelated to PHP. The Zend Engine actually provides a few PHP functions (declared with
    ZEND_FUNCTION), see zend_builtin_functions.c. PHP_FUNCTION is actually a synonymous to ZEND_FUNCTION, but relying on ZEND_FUNCTION to declare PHP functions is an abstraction violation.

    You may be confusing the PHP function function (declared internally as PHP_FUNCTION(fopen)) with some other C function called fopen (like the one in the standard C library).


    As to whether Zend provides a file open function… What I could find:

    • A true global that’s a pointer to a open function in zend.c. This is used by zend_stream_open, whose call hierarchy suggests is used when opening include files.
    • A small wrapper around the standard C library that is used a fall-back value for said global.

    I imagine the reason for providing a global with a function pointer is so that it can be substituted for e.g. TSRM or the Phar extension.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 532k
  • Answers 532k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer There are various command line tools for this sort of… May 17, 2026 at 12:07 am
  • Editorial Team
    Editorial Team added an answer EDIT: I point out a syntax gotcha in my answer,… May 17, 2026 at 12:07 am
  • Editorial Team
    Editorial Team added an answer I'd say definitely do not place a click handler on… May 17, 2026 at 12:07 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I have asked several questions about Zend and its search functions. Now after further
Note: I'm using Zend Framework, but I think most of this applies to PHP
I would like to build a cms with php using zend framework. I have
According to Phpinfo Zend is installed (Zend Engine v2.1.0) . How ever when I
I am trying to set up a PHP path to my Zend Framework. I
I've seen in a few places lately people saying that PHP has a poor
Hi Need to confirm Zend Framework Hierarchy of Objects , Zend_Application has a Property
I am going through the Zend Framework "quickstart" tutorial at the mo'. I have
I am using Drush which is launching php in command line. I copied my
in the form action i have the following line\ <form action={URL} method=post target=_self id=xxx

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.