Giter Site home page Giter Site logo

Memory issues about phpquery HOT 7 CLOSED

jimco avatar jimco commented on August 15, 2024
Memory issues

from phpquery.

Comments (7)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 15, 2024
It's on this line the script is timed out :
<php>$section_tableau_ligne_element->find('select[name="onglet[]"]:has(option[va
lue='.$section['onglet'].'])').addClass('onglet_desactive');</php>

The selector text is : "select[name="onglet[]"]:has(option[value=12])"

Original comment by [email protected] on 18 Sep 2008 at 9:18

from phpquery.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 15, 2024

Original comment by [email protected] on 18 Sep 2008 at 9:31

  • Changed title: Selecting attributes with brackets
  • Changed state: Started
  • Added labels: Priority-High
  • Removed labels: Priority-Medium

from phpquery.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 15, 2024
Can't reproduce it, brackets are fine, selector passes also just fine. Can you 
post a
line number of fatal error ?

Original comment by [email protected] on 18 Sep 2008 at 9:43

from phpquery.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 15, 2024
The error occurs on the line number of phpQuery file.

I think it's not the attribute with bracket the problem.
Cause I use it in other place, and it work well.

The real problem seems to be the ":has()" selector.
Perhaps the Xpath is so complicated then?

Original comment by [email protected] on 18 Sep 2008 at 10:26

from phpquery.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 15, 2024
line 3353 ;)

Original comment by [email protected] on 18 Sep 2008 at 10:26

from phpquery.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 15, 2024
I need more information to reproduce this issue. Full problematic source code 
and
HTML may be needed, but there are couple of hints you can give before:
1. is select element detached from DOM (do it has parent) ?
2. if yes, how many parents ?
3. what operations has been done prior to problematic code ?
4. how many nodes are present in document ? pq('*')->size() + all detached
5. how many documents are created in problematic script ?
6. if you remove :has pseudoclass, does the problem occures ?
7. can you supply stack trace ? eg xdebug extension dumps it
8. add `phpQuery::$debug = true;` on beggining of the script, then send me 
output by
@ or place on web, because it will be long...

Original comment by [email protected] on 18 Sep 2008 at 10:58

  • Changed title: Memory issues

from phpquery.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 15, 2024
Fixed in r110 :)))

This was NASTY bug which could affect almost everyone, so big thx for 
cooperation in
finding it out !

Problem was manipulating on nodes which one of parents were detached...

Original comment by [email protected] on 22 Sep 2008 at 2:37

  • Changed state: Fixed

from phpquery.

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.