Hosting de Calidad
  • Inicio
  • Precios y servicios
  • F.a.q y ayudas
  • Realizar pedido
  • Webs alojadas
  • Quienes somos
  • Foro HyD
  • Contacto

    Zona Dominios

    Entrar
    registro de dominios


    Zona Hosting

    Entrar
    alojamiento web


    5 Métodos de Pago
    Tarjeta de crédito
    Domiciliación
    Transferencia
    Soporte Epagado
    Soporte Paypal

    Liberalización .es

    Ver mas
    dominios .es


  •  
     
     
    Assuring Write Safety for Other Parameters

    Assuring Write Safety for Other Parameters

    You might run into a situation in which you need write access to a parameter that's retrieved with zend_get_parameters_ex() but not passed by reference_ For this case, you can use the macro SEPARATE_ZVAL, which does a zval separation on the provided container_ The newly generated zval is detached from internal data and has only a local scope, meaning that it can be changed or destroyed without implying global changes in the script context:
    zval **parameter;
         
    /* retrieve parameter */
    zend_get_parameters_ex(1, &parameter);
    
    /* at this stage, <parameter> still is connected */
    /* to Zend's internal data buffers */
    
    /* make <parameter> write_safe */
    SEPARATE_ZVAL(parameter);
    
    /* now we can safely modify <parameter> */
    /* without implying global changes */
    SEPARATE_ZVAL uses emalloc() to allocate the new zval container, which means that even if you don't deallocate this memory yourself, it will be destroyed automatically upon script termination_ However, doing a lot of calls to this macro without freeing the resulting containers will clutter up your RAM_

    Note: As you can easily work around the lack of write access in the "traditional" API (with zend_get_parameters() and so on), this API seems to be obsolete, and is not discussed further in this chapter_

     
       



    registro de dominios | alojamiento web | hosting por publicidad

       

     

    Manual de linux Manual de apache Manual de php Manual de mysql Manual de SQL Manual del Plesk Como funciona Paypal Manual de html